Class ContainerDefinitionProps.Jsii$Proxy
- All Implemented Interfaces:
ContainerDefinitionOptions
,ContainerDefinitionProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
ContainerDefinitionProps
ContainerDefinitionProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.ContainerDefinitionProps
ContainerDefinitionProps.Builder, ContainerDefinitionProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theContainerDefinitionProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
The command that is passed to the container.final String
The name of the container.final Number
getCpu()
The minimum number of CPU units to reserve for the container.final Boolean
Specifies whether networking is disabled within the container.A list of DNS search domains that are presented to the container.A list of DNS servers that are presented to the container.A key/value map of labels to add to the container.A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.The ENTRYPOINT value to pass to the container.The environment variables to pass to the container.final List<EnvironmentFile>
The environment files to pass to the container.final Boolean
Specifies whether the container is marked essential.A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.final Number
The number of GPUs assigned to the container.final HealthCheck
The health check command and associated configuration parameters for the container.final String
The hostname to use for your container.final ContainerImage
getImage()
The image used to start a container.The inference accelerators referenced by the container.final LinuxParameters
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.final LogDriver
The log configuration specification for the container.final Number
The amount (in MiB) of memory to present to the container.final Number
The soft limit (in MiB) of memory to reserve for the container.final List<PortMapping>
The port mappings to add to the container definition.final Boolean
Specifies whether the container is marked as privileged.final Boolean
When this parameter is true, the container is given read-only access to its root file system.The secret environment variables to pass to the container.final Duration
Time duration (in seconds) to wait before giving up on resolving dependencies for a container.final Duration
Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.final List<SystemControl>
A list of namespaced kernel parameters to set in the container.final TaskDefinition
The name of the task definition that includes this container definition.final String
getUser()
The user name to use inside the container.final String
The working directory in which to run commands inside the container.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theContainerDefinitionProps.Builder
.
-
-
Method Details
-
getTaskDefinition
Description copied from interface:ContainerDefinitionProps
The name of the task definition that includes this container definition.[disable-awslint:ref-via-interface]
- Specified by:
getTaskDefinition
in interfaceContainerDefinitionProps
-
getImage
Description copied from interface:ContainerDefinitionOptions
The image used to start a container.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
- Specified by:
getImage
in interfaceContainerDefinitionOptions
-
getCommand
Description copied from interface:ContainerDefinitionOptions
The command that is passed to the container.If you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
- Specified by:
getCommand
in interfaceContainerDefinitionOptions
-
getContainerName
Description copied from interface:ContainerDefinitionOptions
The name of the container.Default: - id of node associated with ContainerDefinition.
- Specified by:
getContainerName
in interfaceContainerDefinitionOptions
-
getCpu
Description copied from interface:ContainerDefinitionOptions
The minimum number of CPU units to reserve for the container.Default: - No minimum CPU units reserved.
- Specified by:
getCpu
in interfaceContainerDefinitionOptions
-
getDisableNetworking
Description copied from interface:ContainerDefinitionOptions
Specifies whether networking is disabled within the container.When this parameter is true, networking is disabled within the container.
Default: false
- Specified by:
getDisableNetworking
in interfaceContainerDefinitionOptions
-
getDnsSearchDomains
Description copied from interface:ContainerDefinitionOptions
A list of DNS search domains that are presented to the container.Default: - No search domains.
- Specified by:
getDnsSearchDomains
in interfaceContainerDefinitionOptions
-
getDnsServers
Description copied from interface:ContainerDefinitionOptions
A list of DNS servers that are presented to the container.Default: - Default DNS servers.
- Specified by:
getDnsServers
in interfaceContainerDefinitionOptions
-
getDockerLabels
Description copied from interface:ContainerDefinitionOptions
A key/value map of labels to add to the container.Default: - No labels.
- Specified by:
getDockerLabels
in interfaceContainerDefinitionOptions
-
getDockerSecurityOptions
Description copied from interface:ContainerDefinitionOptions
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.Default: - No security labels.
- Specified by:
getDockerSecurityOptions
in interfaceContainerDefinitionOptions
-
getEntryPoint
Description copied from interface:ContainerDefinitionOptions
The ENTRYPOINT value to pass to the container.Default: - Entry point configured in container.
- Specified by:
getEntryPoint
in interfaceContainerDefinitionOptions
- See Also:
-
getEnvironment
Description copied from interface:ContainerDefinitionOptions
The environment variables to pass to the container.Default: - No environment variables.
- Specified by:
getEnvironment
in interfaceContainerDefinitionOptions
-
getEnvironmentFiles
Description copied from interface:ContainerDefinitionOptions
The environment files to pass to the container.Default: - No environment files.
- Specified by:
getEnvironmentFiles
in interfaceContainerDefinitionOptions
- See Also:
-
getEssential
Description copied from interface:ContainerDefinitionOptions
Specifies whether the container is marked essential.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
- Specified by:
getEssential
in interfaceContainerDefinitionOptions
-
getExtraHosts
Description copied from interface:ContainerDefinitionOptions
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.Default: - No extra hosts.
- Specified by:
getExtraHosts
in interfaceContainerDefinitionOptions
-
getGpuCount
Description copied from interface:ContainerDefinitionOptions
The number of GPUs assigned to the container.Default: - No GPUs assigned.
- Specified by:
getGpuCount
in interfaceContainerDefinitionOptions
-
getHealthCheck
Description copied from interface:ContainerDefinitionOptions
The health check command and associated configuration parameters for the container.Default: - Health check configuration from container.
- Specified by:
getHealthCheck
in interfaceContainerDefinitionOptions
-
getHostname
Description copied from interface:ContainerDefinitionOptions
The hostname to use for your container.Default: - Automatic hostname.
- Specified by:
getHostname
in interfaceContainerDefinitionOptions
-
getInferenceAcceleratorResources
Description copied from interface:ContainerDefinitionOptions
The inference accelerators referenced by the container.Default: - No inference accelerators assigned.
- Specified by:
getInferenceAcceleratorResources
in interfaceContainerDefinitionOptions
-
getLinuxParameters
Description copied from interface:ContainerDefinitionOptions
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.For more information see KernelCapabilities.
Default: - No Linux parameters.
- Specified by:
getLinuxParameters
in interfaceContainerDefinitionOptions
-
getLogging
Description copied from interface:ContainerDefinitionOptions
The log configuration specification for the container.Default: - Containers use the same logging driver that the Docker daemon uses.
- Specified by:
getLogging
in interfaceContainerDefinitionOptions
-
getMemoryLimitMiB
Description copied from interface:ContainerDefinitionOptions
The amount (in MiB) of memory to present to the container.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.
- Specified by:
getMemoryLimitMiB
in interfaceContainerDefinitionOptions
-
getMemoryReservationMiB
Description copied from interface:ContainerDefinitionOptions
The soft limit (in MiB) of memory to reserve for the container.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.
- Specified by:
getMemoryReservationMiB
in interfaceContainerDefinitionOptions
-
getPortMappings
Description copied from interface:ContainerDefinitionOptions
The port mappings to add to the container definition.Default: - No ports are mapped.
- Specified by:
getPortMappings
in interfaceContainerDefinitionOptions
-
getPrivileged
Description copied from interface:ContainerDefinitionOptions
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).
Default: false
- Specified by:
getPrivileged
in interfaceContainerDefinitionOptions
-
getReadonlyRootFilesystem
Description copied from interface:ContainerDefinitionOptions
When this parameter is true, the container is given read-only access to its root file system.Default: false
- Specified by:
getReadonlyRootFilesystem
in interfaceContainerDefinitionOptions
-
getSecrets
Description copied from interface:ContainerDefinitionOptions
The secret environment variables to pass to the container.Default: - No secret environment variables.
- Specified by:
getSecrets
in interfaceContainerDefinitionOptions
-
getStartTimeout
Description copied from interface:ContainerDefinitionOptions
Time duration (in seconds) to wait before giving up on resolving dependencies for a container.Default: - none
- Specified by:
getStartTimeout
in interfaceContainerDefinitionOptions
-
getStopTimeout
Description copied from interface:ContainerDefinitionOptions
Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.Default: - none
- Specified by:
getStopTimeout
in interfaceContainerDefinitionOptions
-
getSystemControls
Description copied from interface:ContainerDefinitionOptions
A list of namespaced kernel parameters to set in the container.Default: - No system controls are set.
- Specified by:
getSystemControls
in interfaceContainerDefinitionOptions
- See Also:
-
getUser
Description copied from interface:ContainerDefinitionOptions
The user name to use inside the container.Default: root
- Specified by:
getUser
in interfaceContainerDefinitionOptions
-
getWorkingDirectory
Description copied from interface:ContainerDefinitionOptions
The working directory in which to run commands inside the container.Default: /
- Specified by:
getWorkingDirectory
in interfaceContainerDefinitionOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-