public static interface ContainerOverride.Builder extends SdkPojo, CopyableBuilder<ContainerOverride.Builder,ContainerOverride>
| Modifier and Type | Method and Description |
|---|---|
ContainerOverride.Builder |
command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the task
definition.
|
ContainerOverride.Builder |
command(String... command)
The command to send to the container that overrides the default command from the Docker image or the task
definition.
|
ContainerOverride.Builder |
cpu(Integer cpu)
The number of
cpu units reserved for the container, instead of the default value from the task
definition. |
ContainerOverride.Builder |
environment(Collection<KeyValuePair> environment)
The environment variables to send to the container.
|
ContainerOverride.Builder |
environment(Consumer<KeyValuePair.Builder>... environment)
The environment variables to send to the container.
|
ContainerOverride.Builder |
environment(KeyValuePair... environment)
The environment variables to send to the container.
|
ContainerOverride.Builder |
environmentFiles(Collection<EnvironmentFile> environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the
container definition.
|
ContainerOverride.Builder |
environmentFiles(Consumer<EnvironmentFile.Builder>... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the
container definition.
|
ContainerOverride.Builder |
environmentFiles(EnvironmentFile... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the
container definition.
|
ContainerOverride.Builder |
memory(Integer memory)
The hard limit (in MiB) of memory to present to the container, instead of the default value from the task
definition.
|
ContainerOverride.Builder |
memoryReservation(Integer memoryReservation)
The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task
definition.
|
ContainerOverride.Builder |
name(String name)
The name of the container that receives the override.
|
ContainerOverride.Builder |
resourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task
definition.
|
ContainerOverride.Builder |
resourceRequirements(Consumer<ResourceRequirement.Builder>... resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task
definition.
|
ContainerOverride.Builder |
resourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task
definition.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildContainerOverride.Builder name(String name)
The name of the container that receives the override. This parameter is required if any override is specified.
name - The name of the container that receives the override. This parameter is required if any override is
specified.ContainerOverride.Builder command(Collection<String> 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.
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.ContainerOverride.Builder command(String... 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.
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.ContainerOverride.Builder environment(Collection<KeyValuePair> 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.
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.ContainerOverride.Builder environment(KeyValuePair... 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.
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.ContainerOverride.Builder environment(Consumer<KeyValuePair.Builder>... 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.
This is a convenience method that creates an instance of theKeyValuePair.Builder avoiding the need to create one
manually via KeyValuePair.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #environment(List.
environment - a consumer that will call methods on
KeyValuePair.Builder#environment(java.util.Collection) ContainerOverride.Builder environmentFiles(Collection<EnvironmentFile> environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
environmentFiles - A list of files containing the environment variables to pass to a container, instead of the value from
the container definition.ContainerOverride.Builder environmentFiles(EnvironmentFile... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
environmentFiles - A list of files containing the environment variables to pass to a container, instead of the value from
the container definition.ContainerOverride.Builder environmentFiles(Consumer<EnvironmentFile.Builder>... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
This is a convenience method that creates an instance of theEnvironmentFile.Builder avoiding the need to create one
manually via EnvironmentFile.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #environmentFiles(List.
environmentFiles - a consumer that will call methods on
EnvironmentFile.Builder#environmentFiles(java.util.Collection) ContainerOverride.Builder cpu(Integer cpu)
The number of cpu units reserved for the container, instead of the default value from the task
definition. You must also specify a container name.
cpu - The number of cpu units reserved for the container, instead of the default value from the
task definition. You must also specify a container name.ContainerOverride.Builder memory(Integer 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.
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.ContainerOverride.Builder memoryReservation(Integer 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.
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.ContainerOverride.Builder resourceRequirements(Collection<ResourceRequirement> 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.
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.ContainerOverride.Builder resourceRequirements(ResourceRequirement... 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.
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.ContainerOverride.Builder resourceRequirements(Consumer<ResourceRequirement.Builder>... 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.
This is a convenience method that creates an instance of theResourceRequirement.Builder avoiding the need to create one
manually via ResourceRequirement.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #resourceRequirements(List.
resourceRequirements - a consumer that will call methods on
ResourceRequirement.Builder#resourceRequirements(java.util.Collection) Copyright © 2022. All rights reserved.