Package com.pulumi.aws.ecs.inputs
Class GetTaskExecutionOverridesContainerOverride.Builder
- java.lang.Object
-
- com.pulumi.aws.ecs.inputs.GetTaskExecutionOverridesContainerOverride.Builder
-
- Enclosing class:
- GetTaskExecutionOverridesContainerOverride
public static final class GetTaskExecutionOverridesContainerOverride.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GetTaskExecutionOverridesContainerOverride defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetTaskExecutionOverridesContainerOverride defaults)
-
-
Method Detail
-
commands
public GetTaskExecutionOverridesContainerOverride.Builder commands(@Nullable java.util.List<java.lang.String> commands)
- Parameters:
commands
- The command to send to the container that overrides the default command from the Docker image or the task definition.- Returns:
- builder
-
commands
public GetTaskExecutionOverridesContainerOverride.Builder commands(java.lang.String... commands)
- Parameters:
commands
- The command to send to the container that overrides the default command from the Docker image or the task definition.- Returns:
- builder
-
cpu
public GetTaskExecutionOverridesContainerOverride.Builder cpu(@Nullable java.lang.Integer cpu)
- Parameters:
cpu
- The number of cpu units reserved for the container, instead of the default value from the task definition.- Returns:
- builder
-
environments
public GetTaskExecutionOverridesContainerOverride.Builder environments(@Nullable java.util.List<GetTaskExecutionOverridesContainerOverrideEnvironment> environments)
- Parameters:
environments
- 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. See below.- Returns:
- builder
-
environments
public GetTaskExecutionOverridesContainerOverride.Builder environments(GetTaskExecutionOverridesContainerOverrideEnvironment... environments)
- Parameters:
environments
- 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. See below.- Returns:
- builder
-
memory
public GetTaskExecutionOverridesContainerOverride.Builder memory(@Nullable java.lang.Integer memory)
- 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.- Returns:
- builder
-
memoryReservation
public GetTaskExecutionOverridesContainerOverride.Builder memoryReservation(@Nullable java.lang.Integer memoryReservation)
- Parameters:
memoryReservation
- The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition.- Returns:
- builder
-
name
public GetTaskExecutionOverridesContainerOverride.Builder name(java.lang.String name)
- Parameters:
name
- The name of the container that receives the override. This parameter is required if any override is specified.- Returns:
- builder
-
resourceRequirements
public GetTaskExecutionOverridesContainerOverride.Builder resourceRequirements(@Nullable java.util.List<GetTaskExecutionOverridesContainerOverrideResourceRequirement> resourceRequirements)
- 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. See below.- Returns:
- builder
-
resourceRequirements
public GetTaskExecutionOverridesContainerOverride.Builder resourceRequirements(GetTaskExecutionOverridesContainerOverrideResourceRequirement... resourceRequirements)
- 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. See below.- Returns:
- builder
-
build
public GetTaskExecutionOverridesContainerOverride build()
-
-