@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:29:47.668Z") @Stability(value=Stable) public interface ContainerDefinitionOptions extends software.amazon.jsii.JsiiSerializable
Modifier and Type | Interface and Description |
---|---|
static class |
ContainerDefinitionOptions.Builder
A builder for
ContainerDefinitionOptions |
static class |
ContainerDefinitionOptions.Jsii$Proxy
An implementation for
ContainerDefinitionOptions |
Modifier and Type | Method and Description |
---|---|
static ContainerDefinitionOptions.Builder |
builder() |
default List<String> |
getCommand()
The command that is passed to the container.
|
default Number |
getCpu()
The minimum number of CPU units to reserve for the container.
|
default Boolean |
getDisableNetworking()
Specifies whether networking is disabled within the container.
|
default List<String> |
getDnsSearchDomains()
A list of DNS search domains that are presented to the container.
|
default List<String> |
getDnsServers()
A list of DNS servers that are presented to the container.
|
default Map<String,String> |
getDockerLabels()
A key/value map of labels to add to the container.
|
default List<String> |
getDockerSecurityOptions()
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
|
default List<String> |
getEntryPoint()
The ENTRYPOINT value to pass to the container.
|
default Map<String,String> |
getEnvironment()
The environment variables to pass to the container.
|
default List<EnvironmentFile> |
getEnvironmentFiles()
The environment files to pass to the container.
|
default Boolean |
getEssential()
Specifies whether the container is marked essential.
|
default Map<String,String> |
getExtraHosts()
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
|
default Number |
getGpuCount()
The number of GPUs assigned to the container.
|
default HealthCheck |
getHealthCheck()
The health check command and associated configuration parameters for the container.
|
default String |
getHostname()
The hostname to use for your container.
|
ContainerImage |
getImage()
The image used to start a container.
|
default LinuxParameters |
getLinuxParameters()
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
|
default LogDriver |
getLogging()
The log configuration specification for the container.
|
default Number |
getMemoryLimitMiB()
The amount (in MiB) of memory to present to the container.
|
default Number |
getMemoryReservationMiB()
The soft limit (in MiB) of memory to reserve for the container.
|
default Boolean |
getPrivileged()
Specifies whether the container is marked as privileged.
|
default Boolean |
getReadonlyRootFilesystem()
When this parameter is true, the container is given read-only access to its root file system.
|
default Map<String,Secret> |
getSecrets()
The secret environment variables to pass to the container.
|
default Duration |
getStartTimeout()
Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
|
default Duration |
getStopTimeout()
Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
|
default String |
getUser()
The user name to use inside the container.
|
default String |
getWorkingDirectory()
The working directory in which to run commands inside the container.
|
@Stability(value=Stable) @NotNull ContainerImage getImage()
This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest. TODO: Update these to specify using classes of IContainerImage
@Stability(value=Stable) @Nullable default List<String> getCommand()
If you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
@Stability(value=Stable) @Nullable default Number getCpu()
Default: - No minimum CPU units reserved.
@Stability(value=Stable) @Nullable default Boolean getDisableNetworking()
When this parameter is true, networking is disabled within the container.
Default: false
@Stability(value=Stable) @Nullable default List<String> getDnsSearchDomains()
Default: - No search domains.
@Stability(value=Stable) @Nullable default List<String> getDnsServers()
Default: - Default DNS servers.
@Stability(value=Stable) @Nullable default Map<String,String> getDockerLabels()
Default: - No labels.
@Stability(value=Stable) @Nullable default List<String> getDockerSecurityOptions()
Default: - No security labels.
@Stability(value=Stable) @Nullable default List<String> getEntryPoint()
Default: - Entry point configured in container.
https://docs.docker.com/engine/reference/builder/#entrypoint
@Stability(value=Stable) @Nullable default Map<String,String> getEnvironment()
Default: - No environment variables.
@Stability(value=Stable) @Nullable default List<EnvironmentFile> getEnvironmentFiles()
Default: - No environment files.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html
@Stability(value=Stable) @Nullable default Boolean getEssential()
If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, then its failure does not affect the rest of the containers in a task. All tasks must have at least one essential container.
If this parameter is omitted, a container is assumed to be essential.
Default: true
@Stability(value=Stable) @Nullable default Map<String,String> getExtraHosts()
Default: - No extra hosts.
@Stability(value=Stable) @Nullable default Number getGpuCount()
Default: - No GPUs assigned.
@Stability(value=Stable) @Nullable default HealthCheck getHealthCheck()
Default: - Health check configuration from container.
@Stability(value=Stable) @Nullable default String getHostname()
Default: - Automatic hostname.
@Stability(value=Stable) @Nullable default LinuxParameters getLinuxParameters()
For more information see KernelCapabilities.
Default: - No Linux parameters.
@Stability(value=Stable) @Nullable default LogDriver getLogging()
Default: - Containers use the same logging driver that the Docker daemon uses.
@Stability(value=Stable) @Nullable default Number getMemoryLimitMiB()
If your container attempts to exceed the allocated memory, the container is terminated.
At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
Default: - No memory limit.
@Stability(value=Stable) @Nullable default Number getMemoryReservationMiB()
When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first.
At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
Default: - No memory reserved.
@Stability(value=Stable) @Nullable default Boolean getPrivileged()
When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).
Default: false
@Stability(value=Stable) @Nullable default Boolean getReadonlyRootFilesystem()
Default: false
@Stability(value=Stable) @Nullable default Map<String,Secret> getSecrets()
Default: - No secret environment variables.
@Stability(value=Stable) @Nullable default Duration getStartTimeout()
Default: - none
@Stability(value=Stable) @Nullable default Duration getStopTimeout()
Default: - none
@Stability(value=Stable) @Nullable default String getUser()
Default: root
@Stability(value=Stable) @Nullable default String getWorkingDirectory()
Default: /
@Stability(value=Stable) static ContainerDefinitionOptions.Builder builder()
ContainerDefinitionOptions.Builder
of ContainerDefinitionOptions
Copyright © 2020. All rights reserved.