@Stability(value=Experimental) @Internal public static final class ContainerDefinitionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerDefinitionProps
ContainerDefinitionPropssoftware.amazon.jsii.JsiiObject.InitializationModeContainerDefinitionProps.Builder, ContainerDefinitionProps.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.
|
protected |
Jsii$Proxy(TaskDefinition taskDefinition,
ContainerImage image,
List<String> command,
String containerName,
Number cpu,
Boolean disableNetworking,
List<String> dnsSearchDomains,
List<String> dnsServers,
Map<String,String> dockerLabels,
List<String> dockerSecurityOptions,
List<String> entryPoint,
Map<String,String> environment,
List<? extends EnvironmentFile> environmentFiles,
Boolean essential,
Map<String,String> extraHosts,
Number gpuCount,
HealthCheck healthCheck,
String hostname,
List<String> inferenceAcceleratorResources,
LinuxParameters linuxParameters,
LogDriver logging,
Number memoryLimitMiB,
Number memoryReservationMiB,
List<? extends PortMapping> portMappings,
Boolean privileged,
Boolean readonlyRootFilesystem,
Map<String,? extends Secret> secrets,
Duration startTimeout,
Duration stopTimeout,
String user,
String workingDirectory)
Constructor that initializes the object based on literal property values passed by the
ContainerDefinitionProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<String> |
getCommand()
(experimental) The command that is passed to the container.
|
String |
getContainerName()
(experimental) The name of the container.
|
Number |
getCpu()
(experimental) The minimum number of CPU units to reserve for the container.
|
Boolean |
getDisableNetworking()
(experimental) Specifies whether networking is disabled within the container.
|
List<String> |
getDnsSearchDomains()
(experimental) A list of DNS search domains that are presented to the container.
|
List<String> |
getDnsServers()
(experimental) A list of DNS servers that are presented to the container.
|
Map<String,String> |
getDockerLabels()
(experimental) A key/value map of labels to add to the container.
|
List<String> |
getDockerSecurityOptions()
(experimental) A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.
|
List<String> |
getEntryPoint()
(experimental) The ENTRYPOINT value to pass to the container.
|
Map<String,String> |
getEnvironment()
(experimental) The environment variables to pass to the container.
|
List<EnvironmentFile> |
getEnvironmentFiles()
(experimental) The environment files to pass to the container.
|
Boolean |
getEssential()
(experimental) Specifies whether the container is marked essential.
|
Map<String,String> |
getExtraHosts()
(experimental) A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
|
Number |
getGpuCount()
(experimental) The number of GPUs assigned to the container.
|
HealthCheck |
getHealthCheck()
(experimental) The health check command and associated configuration parameters for the container.
|
String |
getHostname()
(experimental) The hostname to use for your container.
|
ContainerImage |
getImage()
(experimental) The image used to start a container.
|
List<String> |
getInferenceAcceleratorResources()
(experimental) The inference accelerators referenced by the container.
|
LinuxParameters |
getLinuxParameters()
(experimental) Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
|
LogDriver |
getLogging()
(experimental) The log configuration specification for the container.
|
Number |
getMemoryLimitMiB()
(experimental) The amount (in MiB) of memory to present to the container.
|
Number |
getMemoryReservationMiB()
(experimental) The soft limit (in MiB) of memory to reserve for the container.
|
List<PortMapping> |
getPortMappings()
(experimental) The port mappings to add to the container definition.
|
Boolean |
getPrivileged()
(experimental) Specifies whether the container is marked as privileged.
|
Boolean |
getReadonlyRootFilesystem()
(experimental) When this parameter is true, the container is given read-only access to its root file system.
|
Map<String,Secret> |
getSecrets()
(experimental) The secret environment variables to pass to the container.
|
Duration |
getStartTimeout()
(experimental) Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
|
Duration |
getStopTimeout()
(experimental) Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.
|
TaskDefinition |
getTaskDefinition()
(experimental) The name of the task definition that includes this container definition.
|
String |
getUser()
(experimental) The user name to use inside the container.
|
String |
getWorkingDirectory()
(experimental) The working directory in which to run commands inside the container.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(TaskDefinition taskDefinition, ContainerImage image, List<String> command, String containerName, Number cpu, Boolean disableNetworking, List<String> dnsSearchDomains, List<String> dnsServers, Map<String,String> dockerLabels, List<String> dockerSecurityOptions, List<String> entryPoint, Map<String,String> environment, List<? extends EnvironmentFile> environmentFiles, Boolean essential, Map<String,String> extraHosts, Number gpuCount, HealthCheck healthCheck, String hostname, List<String> inferenceAcceleratorResources, LinuxParameters linuxParameters, LogDriver logging, Number memoryLimitMiB, Number memoryReservationMiB, List<? extends PortMapping> portMappings, Boolean privileged, Boolean readonlyRootFilesystem, Map<String,? extends Secret> secrets, Duration startTimeout, Duration stopTimeout, String user, String workingDirectory)
ContainerDefinitionProps.Builder.public final TaskDefinition getTaskDefinition()
ContainerDefinitionProps[disable-awslint:ref-via-interface]
getTaskDefinition in interface ContainerDefinitionPropspublic final ContainerImage getImage()
ContainerDefinitionOptionsThis 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 ContainerDefinitionOptionspublic final List<String> getCommand()
ContainerDefinitionOptionsIf 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 ContainerDefinitionOptionspublic final String getContainerName()
ContainerDefinitionOptionsDefault: - id of node associated with ContainerDefinition.
getContainerName in interface ContainerDefinitionOptionspublic final Number getCpu()
ContainerDefinitionOptionsDefault: - No minimum CPU units reserved.
getCpu in interface ContainerDefinitionOptionspublic final Boolean getDisableNetworking()
ContainerDefinitionOptionsWhen this parameter is true, networking is disabled within the container.
Default: false
getDisableNetworking in interface ContainerDefinitionOptionspublic final List<String> getDnsSearchDomains()
ContainerDefinitionOptionsDefault: - No search domains.
getDnsSearchDomains in interface ContainerDefinitionOptionspublic final List<String> getDnsServers()
ContainerDefinitionOptionsDefault: - Default DNS servers.
getDnsServers in interface ContainerDefinitionOptionspublic final Map<String,String> getDockerLabels()
ContainerDefinitionOptionsDefault: - No labels.
getDockerLabels in interface ContainerDefinitionOptionspublic final List<String> getDockerSecurityOptions()
ContainerDefinitionOptionsDefault: - No security labels.
getDockerSecurityOptions in interface ContainerDefinitionOptionspublic final List<String> getEntryPoint()
ContainerDefinitionOptionsDefault: - Entry point configured in container.
getEntryPoint in interface ContainerDefinitionOptionshttps://docs.docker.com/engine/reference/builder/#entrypointpublic final Map<String,String> getEnvironment()
ContainerDefinitionOptionsDefault: - No environment variables.
getEnvironment in interface ContainerDefinitionOptionspublic final List<EnvironmentFile> getEnvironmentFiles()
ContainerDefinitionOptionsDefault: - No environment files.
getEnvironmentFiles in interface ContainerDefinitionOptionshttps://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.htmlpublic final Boolean getEssential()
ContainerDefinitionOptionsIf 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 ContainerDefinitionOptionspublic final Map<String,String> getExtraHosts()
ContainerDefinitionOptionsDefault: - No extra hosts.
getExtraHosts in interface ContainerDefinitionOptionspublic final Number getGpuCount()
ContainerDefinitionOptionsDefault: - No GPUs assigned.
getGpuCount in interface ContainerDefinitionOptionspublic final HealthCheck getHealthCheck()
ContainerDefinitionOptionsDefault: - Health check configuration from container.
getHealthCheck in interface ContainerDefinitionOptionspublic final String getHostname()
ContainerDefinitionOptionsDefault: - Automatic hostname.
getHostname in interface ContainerDefinitionOptionspublic final List<String> getInferenceAcceleratorResources()
ContainerDefinitionOptionsDefault: - No inference accelerators assigned.
getInferenceAcceleratorResources in interface ContainerDefinitionOptionspublic final LinuxParameters getLinuxParameters()
ContainerDefinitionOptionsFor more information see KernelCapabilities.
Default: - No Linux parameters.
getLinuxParameters in interface ContainerDefinitionOptionspublic final LogDriver getLogging()
ContainerDefinitionOptionsDefault: - Containers use the same logging driver that the Docker daemon uses.
getLogging in interface ContainerDefinitionOptionspublic final Number getMemoryLimitMiB()
ContainerDefinitionOptionsIf 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 ContainerDefinitionOptionspublic final Number getMemoryReservationMiB()
ContainerDefinitionOptionsWhen 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 ContainerDefinitionOptionspublic final List<PortMapping> getPortMappings()
ContainerDefinitionOptionsDefault: - No ports are mapped.
getPortMappings in interface ContainerDefinitionOptionspublic final Boolean getPrivileged()
ContainerDefinitionOptionsWhen 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 ContainerDefinitionOptionspublic final Boolean getReadonlyRootFilesystem()
ContainerDefinitionOptionsDefault: false
getReadonlyRootFilesystem in interface ContainerDefinitionOptionspublic final Map<String,Secret> getSecrets()
ContainerDefinitionOptionsDefault: - No secret environment variables.
getSecrets in interface ContainerDefinitionOptionspublic final Duration getStartTimeout()
ContainerDefinitionOptionsDefault: - none
getStartTimeout in interface ContainerDefinitionOptionspublic final Duration getStopTimeout()
ContainerDefinitionOptionsDefault: - none
getStopTimeout in interface ContainerDefinitionOptionspublic final String getUser()
ContainerDefinitionOptionsDefault: root
getUser in interface ContainerDefinitionOptionspublic final String getWorkingDirectory()
ContainerDefinitionOptionsDefault: /
getWorkingDirectory in interface ContainerDefinitionOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.