public static interface EcsContainerOverride.Builder extends SdkPojo, CopyableBuilder<EcsContainerOverride.Builder,EcsContainerOverride>
| Modifier and Type | Method and Description |
|---|---|
EcsContainerOverride.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.
|
EcsContainerOverride.Builder |
command(String... command)
The command to send to the container that overrides the default command from the Docker image or the task
definition.
|
EcsContainerOverride.Builder |
cpu(Integer cpu)
The number of
cpu units reserved for the container, instead of the default value from the task
definition. |
EcsContainerOverride.Builder |
environment(Collection<EcsEnvironmentVariable> environment)
The environment variables to send to the container.
|
EcsContainerOverride.Builder |
environment(Consumer<EcsEnvironmentVariable.Builder>... environment)
The environment variables to send to the container.
|
EcsContainerOverride.Builder |
environment(EcsEnvironmentVariable... environment)
The environment variables to send to the container.
|
EcsContainerOverride.Builder |
environmentFiles(Collection<EcsEnvironmentFile> environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the
container definition.
|
EcsContainerOverride.Builder |
environmentFiles(Consumer<EcsEnvironmentFile.Builder>... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the
container definition.
|
EcsContainerOverride.Builder |
environmentFiles(EcsEnvironmentFile... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the
container definition.
|
EcsContainerOverride.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.
|
EcsContainerOverride.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.
|
EcsContainerOverride.Builder |
name(String name)
The name of the container that receives the override.
|
EcsContainerOverride.Builder |
resourceRequirements(Collection<EcsResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task
definition.
|
EcsContainerOverride.Builder |
resourceRequirements(Consumer<EcsResourceRequirement.Builder>... resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task
definition.
|
EcsContainerOverride.Builder |
resourceRequirements(EcsResourceRequirement... resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task
definition.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEcsContainerOverride.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.EcsContainerOverride.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.EcsContainerOverride.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.EcsContainerOverride.Builder environment(Collection<EcsEnvironmentVariable> 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.EcsContainerOverride.Builder environment(EcsEnvironmentVariable... 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.EcsContainerOverride.Builder environment(Consumer<EcsEnvironmentVariable.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 theEcsEnvironmentVariable.Builder avoiding the need to
create one manually via EcsEnvironmentVariable.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
EcsEnvironmentVariable.Builder#environment(java.util.Collection) EcsContainerOverride.Builder environmentFiles(Collection<EcsEnvironmentFile> 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.EcsContainerOverride.Builder environmentFiles(EcsEnvironmentFile... 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.EcsContainerOverride.Builder environmentFiles(Consumer<EcsEnvironmentFile.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 theEcsEnvironmentFile.Builder avoiding the need to create
one manually via EcsEnvironmentFile.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
EcsEnvironmentFile.Builder#environmentFiles(java.util.Collection) EcsContainerOverride.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.EcsContainerOverride.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.EcsContainerOverride.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.EcsContainerOverride.Builder resourceRequirements(Collection<EcsResourceRequirement> 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.EcsContainerOverride.Builder resourceRequirements(EcsResourceRequirement... 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.EcsContainerOverride.Builder resourceRequirements(Consumer<EcsResourceRequirement.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 theEcsResourceRequirement.Builder avoiding the need to
create one manually via EcsResourceRequirement.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
EcsResourceRequirement.Builder#resourceRequirements(java.util.Collection) Copyright © 2023. All rights reserved.