Class CfnJobDefinition.EksContainerProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnJobDefinition.EksContainerProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnJobDefinition.EksContainerProperty
CfnJobDefinition.EksContainerProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.CfnJobDefinition.EksContainerProperty
CfnJobDefinition.EksContainerProperty.Builder, CfnJobDefinition.EksContainerProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnJobDefinition.EksContainerProperty.Builder.protectedJsii$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.JsonNodefinal booleangetArgs()An array of arguments to the entrypoint.The entrypoint for the container.final ObjectgetEnv()The environment variables to pass to a container.final StringgetImage()The Docker image used to start the container.final StringThe image pull policy for the container.final StringgetName()The name of the container.final ObjectThe type and amount of resources to assign to a container.final ObjectThe security context for a job.final ObjectThe volume mounts for the container.final inthashCode()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 theCfnJobDefinition.EksContainerProperty.Builder.
-
-
Method Details
-
getImage
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe Docker image used to start the container.- Specified by:
getImagein interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getArgs
Description copied from interface:CfnJobDefinition.EksContainerPropertyAn array of arguments to the entrypoint.If this isn't specified, the
CMDof the container image is used. This corresponds to theargsmember 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 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)is passed as$(VAR_NAME)whether or not theVAR_NAMEenvironment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation .- Specified by:
getArgsin interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getCommand
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe 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. For more information, see ENTRYPOINT in the Dockerfile reference and Define a command and arguments for a container and Entrypoint in the Kubernetes documentation .- Specified by:
getCommandin interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getEnv
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe environment variables to pass to a container.Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that AWS Batch sets.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnJobDefinition.EksContainerEnvironmentVariableProperty>- Specified by:
getEnvin interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getImagePullPolicy
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe image pull policy for the container.Supported values are
Always,IfNotPresent, andNever. This parameter defaults toIfNotPresent. However, if the:latesttag is specified, it defaults toAlways. For more information, see Updating images in the Kubernetes documentation .- Specified by:
getImagePullPolicyin interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getName
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe name of the container.If the name isn't specified, the default name "
Default" is used. Each container in a pod must have a unique name.- Specified by:
getNamein interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getResources
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe type and amount of resources to assign to a container.The supported resources include
memory,cpu, andnvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation .Returns union: either
IResolvableorCfnJobDefinition.ResourcesProperty- Specified by:
getResourcesin interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getSecurityContext
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe security context for a job.For more information, see Configure a security context for a pod or container in the Kubernetes documentation .
Returns union: either
IResolvableorCfnJobDefinition.SecurityContextProperty- Specified by:
getSecurityContextin interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
getVolumeMounts
Description copied from interface:CfnJobDefinition.EksContainerPropertyThe volume mounts for the container.AWS Batch supports
emptyDir,hostPath, andsecretvolume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation .Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnJobDefinition.EksContainerVolumeMountProperty>- Specified by:
getVolumeMountsin interfaceCfnJobDefinition.EksContainerProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-