@Stability(value=Stable) public static final class ContainerDefinitionProps.Builder extends Object
ContainerDefinitionProps
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) public ContainerDefinitionProps.Builder taskDefinition(TaskDefinition taskDefinition)
taskDefinition
- The name of the task definition that includes this container definition. This parameter is required.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder image(ContainerImage image)
image
- The image used to start a container. This parameter is required.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder command(List<String> command)
command
- The command that is passed to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder cpu(Number cpu)
cpu
- The minimum number of CPU units to reserve for the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder disableNetworking(Boolean disableNetworking)
disableNetworking
- Specifies whether networking is disabled within the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder dnsSearchDomains(List<String> dnsSearchDomains)
dnsSearchDomains
- A list of DNS search domains that are presented to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder dnsServers(List<String> dnsServers)
dnsServers
- A list of DNS servers that are presented to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder dockerLabels(Map<String,String> dockerLabels)
dockerLabels
- A key/value map of labels to add to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder dockerSecurityOptions(List<String> dockerSecurityOptions)
dockerSecurityOptions
- A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder entryPoint(List<String> entryPoint)
entryPoint
- The ENTRYPOINT value to pass to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder environment(Map<String,String> environment)
environment
- The environment variables to pass to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder essential(Boolean essential)
essential
- Specifies whether the container is marked essential.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder extraHosts(Map<String,String> extraHosts)
extraHosts
- A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder gpuCount(Number gpuCount)
gpuCount
- The number of GPUs assigned to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder healthCheck(HealthCheck healthCheck)
healthCheck
- The health check command and associated configuration parameters for the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder hostname(String hostname)
hostname
- The hostname to use for your container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder linuxParameters(LinuxParameters linuxParameters)
linuxParameters
- Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see [KernelCapabilities](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html).this
@Stability(value=Stable) public ContainerDefinitionProps.Builder logging(LogDriver logging)
logging
- The log configuration specification for the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder memoryLimitMiB(Number memoryLimitMiB)
memoryLimitMiB
- The amount (in MiB) of memory to present to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder memoryReservationMiB(Number memoryReservationMiB)
memoryReservationMiB
- The soft limit (in MiB) of memory to reserve for the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder privileged(Boolean privileged)
privileged
- Specifies whether the container is marked as privileged. When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).this
@Stability(value=Stable) public ContainerDefinitionProps.Builder readonlyRootFilesystem(Boolean readonlyRootFilesystem)
readonlyRootFilesystem
- When this parameter is true, the container is given read-only access to its root file system.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder secrets(Map<String,Secret> secrets)
secrets
- The secret environment variables to pass to the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder startTimeout(Duration startTimeout)
startTimeout
- Time duration (in seconds) to wait before giving up on resolving dependencies for a container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder stopTimeout(Duration stopTimeout)
stopTimeout
- Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder user(String user)
user
- The user name to use inside the container.this
@Stability(value=Stable) public ContainerDefinitionProps.Builder workingDirectory(String workingDirectory)
workingDirectory
- The working directory in which to run commands inside the container.this
@Stability(value=Stable) public ContainerDefinitionProps build()
ContainerDefinitionProps
NullPointerException
- if any required attribute was not providedCopyright © 2019. All rights reserved.