Interface AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder,
,AwsEcsTaskDefinitionContainerDefinitionsDetails> SdkBuilder<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder,
,AwsEcsTaskDefinitionContainerDefinitionsDetails> SdkPojo
- Enclosing class:
AwsEcsTaskDefinitionContainerDefinitionsDetails
-
Method Summary
Modifier and TypeMethodDescriptionThe command that is passed to the container.command
(Collection<String> command) The command that is passed to the container.The number of CPU units reserved for the container.The dependencies that are defined for container startup and shutdown.The dependencies that are defined for container startup and shutdown.The dependencies that are defined for container startup and shutdown.disableNetworking
(Boolean disableNetworking) Whether to disable networking within the container.dnsSearchDomains
(String... dnsSearchDomains) A list of DNS search domains that are presented to the container.dnsSearchDomains
(Collection<String> dnsSearchDomains) A list of DNS search domains that are presented to the container.dnsServers
(String... dnsServers) A list of DNS servers that are presented to the container.dnsServers
(Collection<String> dnsServers) A list of DNS servers that are presented to the container.dockerLabels
(Map<String, String> dockerLabels) A key-value map of labels to add to the container.dockerSecurityOptions
(String... dockerSecurityOptions) A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.dockerSecurityOptions
(Collection<String> dockerSecurityOptions) A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.entryPoint
(String... entryPoint) The entry point that is passed to the container.entryPoint
(Collection<String> entryPoint) The entry point that is passed to the container.The environment variables to pass to a container.environment
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.Builder>... environment) The environment variables to pass to a container.The environment variables to pass to a container.environmentFiles
(Collection<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails> environmentFiles) A list of files containing the environment variables to pass to a container.environmentFiles
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.Builder>... environmentFiles) A list of files containing the environment variables to pass to a container.environmentFiles
(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails... environmentFiles) A list of files containing the environment variables to pass to a container.Whether the container is essential.A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.extraHosts
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.Builder>... extraHosts) A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.firelensConfiguration
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.Builder> firelensConfiguration) The FireLens configuration for the container.firelensConfiguration
(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails firelensConfiguration) The FireLens configuration for the container.healthCheck
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder> healthCheck) The container health check command and associated configuration parameters for the container.The container health check command and associated configuration parameters for the container.The hostname to use for the container.The image used to start the container.interactive
(Boolean interactive) If set to true, then containerized applications can be deployed that requirestdin
or atty
to be allocated.A list of links for the container in the formcontainer_name:alias
.links
(Collection<String> links) A list of links for the container in the formcontainer_name:alias
.linuxParameters
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.Builder> linuxParameters) Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.logConfiguration
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.Builder> logConfiguration) The log configuration specification for the container.The log configuration specification for the container.The amount (in MiB) of memory to present to the container.memoryReservation
(Integer memoryReservation) The soft limit (in MiB) of memory to reserve for the container.The mount points for the data volumes in the container.mountPoints
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.Builder>... mountPoints) The mount points for the data volumes in the container.The mount points for the data volumes in the container.The name of the container.The list of port mappings for the container.portMappings
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder>... portMappings) The list of port mappings for the container.portMappings
(AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails... portMappings) The list of port mappings for the container.privileged
(Boolean privileged) Whether the container is given elevated privileges on the host container instance.pseudoTerminal
(Boolean pseudoTerminal) Whether to allocate a TTY to the container.readonlyRootFilesystem
(Boolean readonlyRootFilesystem) Whether the container is given read-only access to its root file system.repositoryCredentials
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.Builder> repositoryCredentials) The private repository authentication credentials to use.repositoryCredentials
(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails repositoryCredentials) The private repository authentication credentials to use.resourceRequirements
(Collection<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails> resourceRequirements) The type and amount of a resource to assign to a container.resourceRequirements
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.Builder>... resourceRequirements) The type and amount of a resource to assign to a container.resourceRequirements
(AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails... resourceRequirements) The type and amount of a resource to assign to a container.The secrets to pass to the container.The secrets to pass to the container.The secrets to pass to the container.startTimeout
(Integer startTimeout) The number of seconds to wait before giving up on resolving dependencies for a container.stopTimeout
(Integer stopTimeout) The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.systemControls
(Collection<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails> systemControls) A list of namespaced kernel parameters to set in the container.systemControls
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.Builder>... systemControls) A list of namespaced kernel parameters to set in the container.systemControls
(AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails... systemControls) A list of namespaced kernel parameters to set in the container.A list of ulimits to set in the container.A list of ulimits to set in the container.A list of ulimits to set in the container.The user to use inside the container.Data volumes to mount from another container.volumesFrom
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.Builder>... volumesFrom) Data volumes to mount from another container.Data volumes to mount from another container.workingDirectory
(String workingDirectory) The working directory in which to run commands inside the container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
command
The command that is passed to the container.
- Parameters:
command
- The command that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The command that is passed to the container.
- Parameters:
command
- The command that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpu
The number of CPU units reserved for the container.
- Parameters:
cpu
- The number of CPU units reserved for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dependsOn(Collection<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails> dependsOn) The dependencies that are defined for container startup and shutdown.
- Parameters:
dependsOn
- The dependencies that are defined for container startup and shutdown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dependsOn(AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails... dependsOn) The dependencies that are defined for container startup and shutdown.
- Parameters:
dependsOn
- The dependencies that are defined for container startup and shutdown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dependsOn(Consumer<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.Builder>... dependsOn) The dependencies that are defined for container startup and shutdown.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todependsOn(List<AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails>)
.- Parameters:
dependsOn
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disableNetworking
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder disableNetworking(Boolean disableNetworking) Whether to disable networking within the container.
- Parameters:
disableNetworking
- Whether to disable networking within the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsSearchDomains
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dnsSearchDomains(Collection<String> dnsSearchDomains) A list of DNS search domains that are presented to the container.
- Parameters:
dnsSearchDomains
- A list of DNS search domains that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsSearchDomains
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dnsSearchDomains(String... dnsSearchDomains) A list of DNS search domains that are presented to the container.
- Parameters:
dnsSearchDomains
- A list of DNS search domains that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsServers
A list of DNS servers that are presented to the container.
- Parameters:
dnsServers
- A list of DNS servers that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsServers
A list of DNS servers that are presented to the container.
- Parameters:
dnsServers
- A list of DNS servers that are presented to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dockerLabels
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dockerLabels(Map<String, String> dockerLabels) A key-value map of labels to add to the container.
- Parameters:
dockerLabels
- A key-value map of labels to add to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dockerSecurityOptions
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dockerSecurityOptions(Collection<String> dockerSecurityOptions) A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
- Parameters:
dockerSecurityOptions
- A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dockerSecurityOptions
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder dockerSecurityOptions(String... dockerSecurityOptions) A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
- Parameters:
dockerSecurityOptions
- A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entryPoint
The entry point that is passed to the container.
- Parameters:
entryPoint
- The entry point that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entryPoint
The entry point that is passed to the container.
- Parameters:
entryPoint
- The entry point that is passed to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environment(Collection<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails> environment) The environment variables to pass to a container.
- Parameters:
environment
- The environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environment(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails... environment) The environment variables to pass to a container.
- Parameters:
environment
- The environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environment(Consumer<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.Builder>... environment) The environment variables to pass to a container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenvironment(List<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails>)
.- Parameters:
environment
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentFiles
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environmentFiles(Collection<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails> environmentFiles) A list of files containing the environment variables to pass to a container.
- Parameters:
environmentFiles
- A list of files containing the environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentFiles
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environmentFiles(AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails... environmentFiles) A list of files containing the environment variables to pass to a container.
- Parameters:
environmentFiles
- A list of files containing the environment variables to pass to a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentFiles
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder environmentFiles(Consumer<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.Builder>... environmentFiles) A list of files containing the environment variables to pass to a container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenvironmentFiles(List<AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails>)
.- Parameters:
environmentFiles
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
essential
Whether the container is essential. All tasks must have at least one essential container.
- Parameters:
essential
- Whether the container is essential. All tasks must have at least one essential container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extraHosts
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder extraHosts(Collection<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails> extraHosts) A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
- Parameters:
extraHosts
- A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extraHosts
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder extraHosts(AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails... extraHosts) A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
- Parameters:
extraHosts
- A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extraHosts
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder extraHosts(Consumer<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.Builder>... extraHosts) A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toextraHosts(List<AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails>)
.- Parameters:
extraHosts
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
firelensConfiguration
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder firelensConfiguration(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails firelensConfiguration) The FireLens configuration for the container. Specifies and configures a log router for container logs.
- Parameters:
firelensConfiguration
- The FireLens configuration for the container. Specifies and configures a log router for container logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firelensConfiguration
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder firelensConfiguration(Consumer<AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.Builder> firelensConfiguration) The FireLens configuration for the container. Specifies and configures a log router for container logs.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofirelensConfiguration(AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails)
.- Parameters:
firelensConfiguration
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
healthCheck
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder healthCheck(AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails healthCheck) The container health check command and associated configuration parameters for the container.
- Parameters:
healthCheck
- The container health check command and associated configuration parameters for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder healthCheck(Consumer<AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder> healthCheck) The container health check command and associated configuration parameters for the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheck(AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails)
.- Parameters:
healthCheck
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hostname
The hostname to use for the container.
- Parameters:
hostname
- The hostname to use for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
The image used to start the container.
- Parameters:
image
- The image used to start the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interactive
If set to true, then containerized applications can be deployed that require
stdin
or atty
to be allocated.- Parameters:
interactive
- If set to true, then containerized applications can be deployed that requirestdin
or atty
to be allocated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
links
A list of links for the container in the form
container_name:alias
. Allows containers to communicate with each other without the need for port mappings.- Parameters:
links
- A list of links for the container in the formcontainer_name:alias
. Allows containers to communicate with each other without the need for port mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
links
A list of links for the container in the form
container_name:alias
. Allows containers to communicate with each other without the need for port mappings.- Parameters:
links
- A list of links for the container in the formcontainer_name:alias
. Allows containers to communicate with each other without the need for port mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linuxParameters
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder linuxParameters(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails linuxParameters) Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
- Parameters:
linuxParameters
- Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linuxParameters
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder linuxParameters(Consumer<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.Builder> linuxParameters) Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolinuxParameters(AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails)
.- Parameters:
linuxParameters
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logConfiguration
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder logConfiguration(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails logConfiguration) The log configuration specification for the container.
- Parameters:
logConfiguration
- The log configuration specification for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfiguration
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder logConfiguration(Consumer<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.Builder> logConfiguration) The log configuration specification for the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologConfiguration(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails)
.- Parameters:
logConfiguration
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memory
The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is shut down. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified.
- Parameters:
memory
- The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is shut down. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryReservation
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder memoryReservation(Integer memoryReservation) The soft limit (in MiB) of memory to reserve for the container.
- Parameters:
memoryReservation
- The soft limit (in MiB) of memory to reserve for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder mountPoints(Collection<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails> mountPoints) The mount points for the data volumes in the container.
- Parameters:
mountPoints
- The mount points for the data volumes in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder mountPoints(AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails... mountPoints) The mount points for the data volumes in the container.
- Parameters:
mountPoints
- The mount points for the data volumes in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder mountPoints(Consumer<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.Builder>... mountPoints) The mount points for the data volumes in the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomountPoints(List<AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails>)
.- Parameters:
mountPoints
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the container.
- Parameters:
name
- The name of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder portMappings(Collection<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails> portMappings) The list of port mappings for the container.
- Parameters:
portMappings
- The list of port mappings for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder portMappings(AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails... portMappings) The list of port mappings for the container.
- Parameters:
portMappings
- The list of port mappings for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder portMappings(Consumer<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder>... portMappings) The list of port mappings for the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toportMappings(List<AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails>)
.- Parameters:
portMappings
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privileged
Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.
- Parameters:
privileged
- Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pseudoTerminal
Whether to allocate a TTY to the container.
- Parameters:
pseudoTerminal
- Whether to allocate a TTY to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readonlyRootFilesystem
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder readonlyRootFilesystem(Boolean readonlyRootFilesystem) Whether the container is given read-only access to its root file system.
- Parameters:
readonlyRootFilesystem
- Whether the container is given read-only access to its root file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryCredentials
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder repositoryCredentials(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails repositoryCredentials) The private repository authentication credentials to use.
- Parameters:
repositoryCredentials
- The private repository authentication credentials to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryCredentials
default AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder repositoryCredentials(Consumer<AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.Builder> repositoryCredentials) The private repository authentication credentials to use.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torepositoryCredentials(AwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails)
.- Parameters:
repositoryCredentials
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsRepositoryCredentialsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceRequirements
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder resourceRequirements(Collection<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails> resourceRequirements) The type and amount of a resource to assign to a container. The only supported resource is a GPU.
- Parameters:
resourceRequirements
- The type and amount of a resource to assign to a container. The only supported resource is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder resourceRequirements(AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails... resourceRequirements) The type and amount of a resource to assign to a container. The only supported resource is a GPU.
- Parameters:
resourceRequirements
- The type and amount of a resource to assign to a container. The only supported resource is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder resourceRequirements(Consumer<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.Builder>... resourceRequirements) The type and amount of a resource to assign to a container. The only supported resource is a GPU.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceRequirements(List<AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails>)
.- Parameters:
resourceRequirements
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
secrets
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder secrets(Collection<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails> secrets) The secrets to pass to the container.
- Parameters:
secrets
- The secrets to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secrets
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder secrets(AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails... secrets) The secrets to pass to the container.
- Parameters:
secrets
- The secrets to pass to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secrets
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder secrets(Consumer<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.Builder>... secrets) The secrets to pass to the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecrets(List<AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails>)
.- Parameters:
secrets
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startTimeout
The number of seconds to wait before giving up on resolving dependencies for a container.
- Parameters:
startTimeout
- The number of seconds to wait before giving up on resolving dependencies for a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopTimeout
The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.
- Parameters:
stopTimeout
- The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemControls
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder systemControls(Collection<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails> systemControls) A list of namespaced kernel parameters to set in the container.
- Parameters:
systemControls
- A list of namespaced kernel parameters to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemControls
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder systemControls(AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails... systemControls) A list of namespaced kernel parameters to set in the container.
- Parameters:
systemControls
- A list of namespaced kernel parameters to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemControls
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder systemControls(Consumer<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.Builder>... systemControls) A list of namespaced kernel parameters to set in the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosystemControls(List<AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails>)
.- Parameters:
systemControls
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ulimits
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder ulimits(Collection<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails> ulimits) A list of ulimits to set in the container.
- Parameters:
ulimits
- A list of ulimits to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ulimits
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder ulimits(AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails... ulimits) A list of ulimits to set in the container.
- Parameters:
ulimits
- A list of ulimits to set in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ulimits
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder ulimits(Consumer<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.Builder>... ulimits) A list of ulimits to set in the container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toulimits(List<AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails>)
.- Parameters:
ulimits
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
user
The user to use inside the container.
The value can use one of the following formats.
-
user
-
user
:group
-
uid
-
uid
:gid
-
user
:gid
-
uid
:group
- Parameters:
user
- The user to use inside the container.The value can use one of the following formats.
-
user
-
user
:group
-
uid
-
uid
:gid
-
user
:gid
-
uid
:group
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
volumesFrom
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder volumesFrom(Collection<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails> volumesFrom) Data volumes to mount from another container.
- Parameters:
volumesFrom
- Data volumes to mount from another container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumesFrom
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder volumesFrom(AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails... volumesFrom) Data volumes to mount from another container.
- Parameters:
volumesFrom
- Data volumes to mount from another container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumesFrom
AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder volumesFrom(Consumer<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.Builder>... volumesFrom) Data volumes to mount from another container.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumesFrom(List<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails>)
.- Parameters:
volumesFrom
- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workingDirectory
The working directory in which to run commands inside the container.
- Parameters:
workingDirectory
- The working directory in which to run commands inside the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-