Class IEksContainerDefinition.Jsii$Proxy
- All Implemented Interfaces:
IEksContainerDefinition,IEksContainerDefinition.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IEksContainerDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IEksContainerDefinition
IEksContainerDefinition.Jsii$Default, IEksContainerDefinition.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidMount a Volume to this container.getArgs()An array of arguments to the entrypoint.The entrypoint for the container.final NumberThe hard limit of CPUs to present to this container.final NumberThe soft limit of CPUs to reserve for the container Must be an even multiple of 0.25.getEnv()The environment variables to pass to this container.final NumberThe hard limit of GPUs to present to this container.final NumberThe soft limit of CPUs to reserve for the container Must be an even multiple of 0.25.final ContainerImagegetImage()The image that this container will run.final ImagePullPolicyThe image pull policy for this container.final SizeThe amount (in MiB) of memory to present to the container.final SizeThe soft limit (in MiB) of memory to reserve for the container.final StringgetName()The name of this container.final software.constructs.NodegetNode()The tree node.final BooleanIf specified, gives this container elevated permissions on the host container instance.final BooleanIf specified, gives this container readonly access to its root file system.final NumberIf specified, the container is run as the specified group ID (gid).final BooleanIf specified, the container is run as a user with auidother than 0.final NumberIf specified, this container is run as the specified user ID (uid).The Volumes to mount to this container.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIEksContainerDefinition.Jsii$Default
-
getImage
The image that this container will run.- Specified by:
getImagein interfaceIEksContainerDefinition- Specified by:
getImagein interfaceIEksContainerDefinition.Jsii$Default
-
getVolumes
The Volumes to mount to this container.Automatically added to the Pod.
- Specified by:
getVolumesin interfaceIEksContainerDefinition- Specified by:
getVolumesin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getArgs
An array of arguments to the entrypoint.If this isn't specified, the CMD of the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment. If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "$(NAME1)" and the NAME1 environment variable doesn't exist, the command string will remain "$(NAME1)." $$ is replaced with $, and the resulting string isn't expanded. or example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists.
- Specified by:
getArgsin interfaceIEksContainerDefinition- Specified by:
getArgsin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getCommand
The entrypoint for the container.This isn't run within a shell. If this isn't specified, the
ENTRYPOINTof the container image is used. Environment variable references are expanded using the container's environment. If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to"$(NAME1)"and theNAME1environment variable doesn't exist, the command string will remain"$(NAME1)."$$is replaced with$and the resulting string isn't expanded. For example,$$(VAR_NAME)will be passed as$(VAR_NAME)whether or not theVAR_NAMEenvironment variable exists.The entrypoint can't be updated.
- Specified by:
getCommandin interfaceIEksContainerDefinition- Specified by:
getCommandin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getCpuLimit
The hard limit of CPUs to present to this container. Must be an even multiple of 0.25.If your container attempts to exceed this limit, it will be terminated.
At least one of
cpuReservationandcpuLimitis required. If both are specified, thencpuLimitmust be at least as large ascpuReservation.Default: - No CPU limit
- Specified by:
getCpuLimitin interfaceIEksContainerDefinition- Specified by:
getCpuLimitin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getCpuReservation
The soft limit of CPUs to reserve for the container Must be an even multiple of 0.25.The container will given at least this many CPUs, but may consume more.
At least one of
cpuReservationandcpuLimitis required. If both are specified, thencpuLimitmust be at least as large ascpuReservation.Default: - No CPUs reserved
- Specified by:
getCpuReservationin interfaceIEksContainerDefinition- Specified by:
getCpuReservationin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getEnv
The environment variables to pass to this container.Note: Environment variables cannot start with "AWS_BATCH". This naming convention is reserved for variables that AWS Batch sets.
- Specified by:
getEnvin interfaceIEksContainerDefinition- Specified by:
getEnvin interfaceIEksContainerDefinition.Jsii$Default
-
getGpuLimit
The hard limit of GPUs to present to this container.If your container attempts to exceed this limit, it will be terminated.
If both
gpuReservationandgpuLimitare specified, thengpuLimitmust be equal togpuReservation.Default: - No GPU limit
- Specified by:
getGpuLimitin interfaceIEksContainerDefinition- Specified by:
getGpuLimitin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getGpuReservation
The soft limit of CPUs to reserve for the container Must be an even multiple of 0.25.The container will given at least this many CPUs, but may consume more.
If both
gpuReservationandgpuLimitare specified, thengpuLimitmust be equal togpuReservation.Default: - No GPUs reserved
- Specified by:
getGpuReservationin interfaceIEksContainerDefinition- Specified by:
getGpuReservationin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getImagePullPolicy
The image pull policy for this container.Default: - `ALWAYS` if the `:latest` tag is specified, `IF_NOT_PRESENT` otherwise
- Specified by:
getImagePullPolicyin interfaceIEksContainerDefinition- Specified by:
getImagePullPolicyin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getMemoryLimit
The amount (in MiB) of memory to present to the container.If your container attempts to exceed the allocated memory, it will be terminated.
Must be larger that 4 MiB
At least one of
memoryLimitandmemoryReservationis requiredNote: To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using.
Default: - No memory limit
- Specified by:
getMemoryLimitin interfaceIEksContainerDefinition- Specified by:
getMemoryLimitin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getMemoryReservation
The soft limit (in MiB) of memory to reserve for the container.Your container will be given at least this much memory, but may consume more.
Must be larger that 4 MiB
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
memoryLimitandmemoryReservationis required. If both are specified, thenmemoryLimitmust be equal tomemoryReservationNote: To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using.
Default: - No memory reserved
- Specified by:
getMemoryReservationin interfaceIEksContainerDefinition- Specified by:
getMemoryReservationin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getName
The name of this container.Default: : `'Default'`
- Specified by:
getNamein interfaceIEksContainerDefinition- Specified by:
getNamein interfaceIEksContainerDefinition.Jsii$Default
-
getPrivileged
If specified, gives this container elevated permissions on the host container instance.The level of permissions are similar to the root user permissions.
This parameter maps to
privilegedpolicy in the Privileged pod security policies in the Kubernetes documentation.Note: this is only compatible with Kubernetes < v1.25
Default: false
- Specified by:
getPrivilegedin interfaceIEksContainerDefinition- Specified by:
getPrivilegedin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getReadonlyRootFilesystem
If specified, gives this container readonly access to its root file system.This parameter maps to
ReadOnlyRootFilesystempolicy in the Volumes and file systems pod security policies in the Kubernetes documentation.Note: this is only compatible with Kubernetes < v1.25
Default: false
- Specified by:
getReadonlyRootFilesystemin interfaceIEksContainerDefinition- Specified by:
getReadonlyRootFilesystemin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getRunAsGroup
If specified, the container is run as the specified group ID (gid).If this parameter isn't specified, the default is the group that's specified in the image metadata. This parameter maps to
RunAsGroupandMustRunAspolicy in the Users and groups pod security policies in the Kubernetes documentation.Note: this is only compatible with Kubernetes < v1.25
Default: none
- Specified by:
getRunAsGroupin interfaceIEksContainerDefinition- Specified by:
getRunAsGroupin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getRunAsRoot
If specified, the container is run as a user with auidother than 0.Otherwise, no such rule is enforced. This parameter maps to
RunAsUserandMustRunAsNonRootpolicy in the Users and groups pod security policies in the Kubernetes documentation.Note: this is only compatible with Kubernetes < v1.25
Default: - the container is *not* required to run as a non-root user
- Specified by:
getRunAsRootin interfaceIEksContainerDefinition- Specified by:
getRunAsRootin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
getRunAsUser
If specified, this container is run as the specified user ID (uid).This parameter maps to
RunAsUserandMustRunAspolicy in the Users and groups pod security policies in the Kubernetes documentation.Note: this is only compatible with Kubernetes < v1.25
Default: - the user that is specified in the image metadata.
- Specified by:
getRunAsUserin interfaceIEksContainerDefinition- Specified by:
getRunAsUserin interfaceIEksContainerDefinition.Jsii$Default- See Also:
-
addVolume
Mount a Volume to this container.Automatically added to the Pod.
- Specified by:
addVolumein interfaceIEksContainerDefinition- Specified by:
addVolumein interfaceIEksContainerDefinition.Jsii$Default- Parameters:
volume- This parameter is required.
-