public static final class ContainerDefinitionOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerDefinitionOptions
ContainerDefinitionOptions
ContainerDefinitionOptions.Builder, ContainerDefinitionOptions.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.String> |
getCommand()
The command that is passed to the container.
|
java.lang.String |
getContainerName()
The name of the container.
|
java.lang.Number |
getCpu()
The minimum number of CPU units to reserve for the container.
|
java.lang.Boolean |
getDisableNetworking()
Specifies whether networking is disabled within the container.
|
java.util.List<java.lang.String> |
getDnsSearchDomains()
A list of DNS search domains that are presented to the container.
|
java.util.List<java.lang.String> |
getDnsServers()
A list of DNS servers that are presented to the container.
|
java.util.Map<java.lang.String,java.lang.String> |
getDockerLabels()
A key/value map of labels to add to the container.
|
java.util.List<java.lang.String> |
getDockerSecurityOptions()
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
|
java.util.List<java.lang.String> |
getEntryPoint()
The ENTRYPOINT value to pass to the container.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironment()
The environment variables to pass to the container.
|
java.util.List<EnvironmentFile> |
getEnvironmentFiles()
The environment files to pass to the container.
|
java.lang.Boolean |
getEssential()
Specifies whether the container is marked essential.
|
java.util.Map<java.lang.String,java.lang.String> |
getExtraHosts()
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
|
java.lang.Number |
getGpuCount()
The number of GPUs assigned to the container.
|
HealthCheck |
getHealthCheck()
The health check command and associated configuration parameters for the container.
|
java.lang.String |
getHostname()
The hostname to use for your container.
|
ContainerImage |
getImage()
The image used to start a container.
|
java.util.List<java.lang.String> |
getInferenceAcceleratorResources()
The inference accelerators referenced by the container.
|
LinuxParameters |
getLinuxParameters()
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
|
LogDriver |
getLogging()
The log configuration specification for the container.
|
java.lang.Number |
getMemoryLimitMiB()
The amount (in MiB) of memory to present to the container.
|
java.lang.Number |
getMemoryReservationMiB()
The soft limit (in MiB) of memory to reserve for the container.
|
java.util.List<PortMapping> |
getPortMappings()
The port mappings to add to the container definition.
|
java.lang.Boolean |
getPrivileged()
Specifies whether the container is marked as privileged.
|
java.lang.Boolean |
getReadonlyRootFilesystem()
When this parameter is true, the container is given read-only access to its root file system.
|
java.util.Map<java.lang.String,Secret> |
getSecrets()
The secret environment variables to pass to the container.
|
Duration |
getStartTimeout()
Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
|
Duration |
getStopTimeout()
Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
|
java.util.List<SystemControl> |
getSystemControls()
A list of namespaced kernel parameters to set in the container.
|
java.lang.String |
getUser()
The user name to use inside the container.
|
java.lang.String |
getWorkingDirectory()
The working directory in which to run commands inside the container.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final ContainerImage getImage()
ContainerDefinitionOptions
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
getImage
in interface ContainerDefinitionOptions
public final java.util.List<java.lang.String> getCommand()
ContainerDefinitionOptions
If you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
getCommand
in interface ContainerDefinitionOptions
public final java.lang.String getContainerName()
ContainerDefinitionOptions
Default: - id of node associated with ContainerDefinition.
getContainerName
in interface ContainerDefinitionOptions
public final java.lang.Number getCpu()
ContainerDefinitionOptions
Default: - No minimum CPU units reserved.
getCpu
in interface ContainerDefinitionOptions
public final java.lang.Boolean getDisableNetworking()
ContainerDefinitionOptions
When this parameter is true, networking is disabled within the container.
Default: false
getDisableNetworking
in interface ContainerDefinitionOptions
public final java.util.List<java.lang.String> getDnsSearchDomains()
ContainerDefinitionOptions
Default: - No search domains.
getDnsSearchDomains
in interface ContainerDefinitionOptions
public final java.util.List<java.lang.String> getDnsServers()
ContainerDefinitionOptions
Default: - Default DNS servers.
getDnsServers
in interface ContainerDefinitionOptions
public final java.util.Map<java.lang.String,java.lang.String> getDockerLabels()
ContainerDefinitionOptions
Default: - No labels.
getDockerLabels
in interface ContainerDefinitionOptions
public final java.util.List<java.lang.String> getDockerSecurityOptions()
ContainerDefinitionOptions
Default: - No security labels.
getDockerSecurityOptions
in interface ContainerDefinitionOptions
public final java.util.List<java.lang.String> getEntryPoint()
ContainerDefinitionOptions
Default: - Entry point configured in container.
getEntryPoint
in interface ContainerDefinitionOptions
public final java.util.Map<java.lang.String,java.lang.String> getEnvironment()
ContainerDefinitionOptions
Default: - No environment variables.
getEnvironment
in interface ContainerDefinitionOptions
public final java.util.List<EnvironmentFile> getEnvironmentFiles()
ContainerDefinitionOptions
Default: - No environment files.
getEnvironmentFiles
in interface ContainerDefinitionOptions
public final java.lang.Boolean getEssential()
ContainerDefinitionOptions
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
getEssential
in interface ContainerDefinitionOptions
public final java.util.Map<java.lang.String,java.lang.String> getExtraHosts()
ContainerDefinitionOptions
Default: - No extra hosts.
getExtraHosts
in interface ContainerDefinitionOptions
public final java.lang.Number getGpuCount()
ContainerDefinitionOptions
Default: - No GPUs assigned.
getGpuCount
in interface ContainerDefinitionOptions
public final HealthCheck getHealthCheck()
ContainerDefinitionOptions
Default: - Health check configuration from container.
getHealthCheck
in interface ContainerDefinitionOptions
public final java.lang.String getHostname()
ContainerDefinitionOptions
Default: - Automatic hostname.
getHostname
in interface ContainerDefinitionOptions
public final java.util.List<java.lang.String> getInferenceAcceleratorResources()
ContainerDefinitionOptions
Default: - No inference accelerators assigned.
getInferenceAcceleratorResources
in interface ContainerDefinitionOptions
public final LinuxParameters getLinuxParameters()
ContainerDefinitionOptions
For more information see KernelCapabilities.
Default: - No Linux parameters.
getLinuxParameters
in interface ContainerDefinitionOptions
public final LogDriver getLogging()
ContainerDefinitionOptions
Default: - Containers use the same logging driver that the Docker daemon uses.
getLogging
in interface ContainerDefinitionOptions
public final java.lang.Number getMemoryLimitMiB()
ContainerDefinitionOptions
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.
getMemoryLimitMiB
in interface ContainerDefinitionOptions
public final java.lang.Number getMemoryReservationMiB()
ContainerDefinitionOptions
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.
getMemoryReservationMiB
in interface ContainerDefinitionOptions
public final java.util.List<PortMapping> getPortMappings()
ContainerDefinitionOptions
Default: - No ports are mapped.
getPortMappings
in interface ContainerDefinitionOptions
public final java.lang.Boolean getPrivileged()
ContainerDefinitionOptions
When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).
Default: false
getPrivileged
in interface ContainerDefinitionOptions
public final java.lang.Boolean getReadonlyRootFilesystem()
ContainerDefinitionOptions
Default: false
getReadonlyRootFilesystem
in interface ContainerDefinitionOptions
public final java.util.Map<java.lang.String,Secret> getSecrets()
ContainerDefinitionOptions
Default: - No secret environment variables.
getSecrets
in interface ContainerDefinitionOptions
public final Duration getStartTimeout()
ContainerDefinitionOptions
Default: - none
getStartTimeout
in interface ContainerDefinitionOptions
public final Duration getStopTimeout()
ContainerDefinitionOptions
Default: - none
getStopTimeout
in interface ContainerDefinitionOptions
public final java.util.List<SystemControl> getSystemControls()
ContainerDefinitionOptions
Default: - No system controls are set.
public final java.lang.String getUser()
ContainerDefinitionOptions
Default: root
getUser
in interface ContainerDefinitionOptions
public final java.lang.String getWorkingDirectory()
ContainerDefinitionOptions
Default: /
getWorkingDirectory
in interface ContainerDefinitionOptions
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()