Class CfnPipe.EcsContainerOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.EcsContainerOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.EcsContainerOverrideProperty>
- Enclosing interface:
CfnPipe.EcsContainerOverrideProperty
@Stability(Stable)
public static final class CfnPipe.EcsContainerOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.EcsContainerOverrideProperty>
A builder for
CfnPipe.EcsContainerOverrideProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPipe.EcsContainerOverrideProperty.getCommand()
Sets the value ofCfnPipe.EcsContainerOverrideProperty.getCpu()
environment
(List<? extends Object> environment) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironment()
environment
(IResolvable environment) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironment()
environmentFiles
(List<? extends Object> environmentFiles) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironmentFiles()
environmentFiles
(IResolvable environmentFiles) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironmentFiles()
Sets the value ofCfnPipe.EcsContainerOverrideProperty.getMemory()
memoryReservation
(Number memoryReservation) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getMemoryReservation()
Sets the value ofCfnPipe.EcsContainerOverrideProperty.getName()
resourceRequirements
(List<? extends Object> resourceRequirements) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getResourceRequirements()
resourceRequirements
(IResolvable resourceRequirements) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getResourceRequirements()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder command(List<String> command) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getCommand()
- Parameters:
command
- The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.- Returns:
this
-
cpu
Sets the value ofCfnPipe.EcsContainerOverrideProperty.getCpu()
- Parameters:
cpu
- The number ofcpu
units reserved for the container, instead of the default value from the task definition. You must also specify a container name.- Returns:
this
-
environment
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder environment(IResolvable environment) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironment()
- Parameters:
environment
- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.- Returns:
this
-
environment
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder environment(List<? extends Object> environment) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironment()
- Parameters:
environment
- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.- Returns:
this
-
environmentFiles
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder environmentFiles(IResolvable environmentFiles) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironmentFiles()
- Parameters:
environmentFiles
- A list of files containing the environment variables to pass to a container, instead of the value from the container definition.- Returns:
this
-
environmentFiles
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder environmentFiles(List<? extends Object> environmentFiles) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getEnvironmentFiles()
- Parameters:
environmentFiles
- A list of files containing the environment variables to pass to a container, instead of the value from the container definition.- Returns:
this
-
memory
Sets the value ofCfnPipe.EcsContainerOverrideProperty.getMemory()
- Parameters:
memory
- The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.- Returns:
this
-
memoryReservation
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder memoryReservation(Number memoryReservation) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getMemoryReservation()
- Parameters:
memoryReservation
- The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.- Returns:
this
-
name
Sets the value ofCfnPipe.EcsContainerOverrideProperty.getName()
- Parameters:
name
- The name of the container that receives the override. This parameter is required if any override is specified.- Returns:
this
-
resourceRequirements
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder resourceRequirements(IResolvable resourceRequirements) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getResourceRequirements()
- Parameters:
resourceRequirements
- The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.- Returns:
this
-
resourceRequirements
@Stability(Stable) public CfnPipe.EcsContainerOverrideProperty.Builder resourceRequirements(List<? extends Object> resourceRequirements) Sets the value ofCfnPipe.EcsContainerOverrideProperty.getResourceRequirements()
- Parameters:
resourceRequirements
- The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.EcsContainerOverrideProperty>
- Returns:
- a new instance of
CfnPipe.EcsContainerOverrideProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-