Class EcsEc2ContainerDefinitionProps.Jsii$Proxy
- All Implemented Interfaces:
EcsContainerDefinitionProps,EcsEc2ContainerDefinitionProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
EcsEc2ContainerDefinitionProps
EcsEc2ContainerDefinitionProps-
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.EcsEc2ContainerDefinitionProps
EcsEc2ContainerDefinitionProps.Builder, EcsEc2ContainerDefinitionProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theEcsEc2ContainerDefinitionProps.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 booleanThe command that's passed to the container.final NumbergetCpu()The number of vCPUs reserved for the container.final BooleanDetermines whether execute command functionality is turned on for this task.The environment variables to pass to a container.final IRoleThe role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.final NumbergetGpu()The number of physical GPUs to reserve for the container.final ContainerImagegetImage()The image that this container will run.final IRoleThe role that the container can assume.final LinuxParametersLinux-specific modifications that are applied to the container, such as details for device mappings.final LogDriverThe loging configuration for this Job.final SizeThe memory hard limit present to the container.final BooleanWhen this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).final BooleanGives the container readonly access to its root filesystem.A map from environment variable names to the secrets for the container.Limits to set for the user this docker container will run as.final StringgetUser()The user name to use inside the container.The volumes to mount to this 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 theEcsEc2ContainerDefinitionProps.Builder.
-
-
Method Details
-
getGpu
Description copied from interface:EcsEc2ContainerDefinitionPropsThe number of physical GPUs to reserve for the container.Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on.
Default: - no gpus
- Specified by:
getGpuin interfaceEcsEc2ContainerDefinitionProps
-
getPrivileged
Description copied from interface:EcsEc2ContainerDefinitionPropsWhen this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).Default: false
- Specified by:
getPrivilegedin interfaceEcsEc2ContainerDefinitionProps
-
getUlimits
Description copied from interface:EcsEc2ContainerDefinitionPropsLimits to set for the user this docker container will run as.Default: - no ulimits
- Specified by:
getUlimitsin interfaceEcsEc2ContainerDefinitionProps
-
getCpu
Description copied from interface:EcsContainerDefinitionPropsThe number of vCPUs reserved for the container.Each vCPU is equivalent to 1,024 CPU shares. For containers running on EC2 resources, you must specify at least one vCPU.
- Specified by:
getCpuin interfaceEcsContainerDefinitionProps
-
getImage
Description copied from interface:EcsContainerDefinitionPropsThe image that this container will run.- Specified by:
getImagein interfaceEcsContainerDefinitionProps
-
getMemory
Description copied from interface:EcsContainerDefinitionPropsThe memory hard limit present to the container.If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job.
- Specified by:
getMemoryin interfaceEcsContainerDefinitionProps
-
getCommand
Description copied from interface:EcsContainerDefinitionPropsThe command that's passed to the container.Default: - no command
- Specified by:
getCommandin interfaceEcsContainerDefinitionProps- See Also:
-
getEnableExecuteCommand
Description copied from interface:EcsContainerDefinitionPropsDetermines whether execute command functionality is turned on for this task.If true, execute command functionality is turned on all the containers in the task.
This allows you to use ECS Exec to access containers interactively. When enabled, a job role with required SSM permissions will be created automatically if no job role is provided. If a job role is alreadyprovided, the required permissions will be added to it.
Default: undefined - AWS Batch default is false
- Specified by:
getEnableExecuteCommandin interfaceEcsContainerDefinitionProps- See Also:
-
getEnvironment
Description copied from interface:EcsContainerDefinitionPropsThe environment variables to pass to a container.Cannot start with
AWS_BATCH. We don't recommend using plaintext environment variables for sensitive information, such as credential data.Default: - no environment variables
- Specified by:
getEnvironmentin interfaceEcsContainerDefinitionProps
-
getExecutionRole
Description copied from interface:EcsContainerDefinitionPropsThe role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.Default: - a Role will be created
- Specified by:
getExecutionRolein interfaceEcsContainerDefinitionProps- See Also:
-
getJobRole
Description copied from interface:EcsContainerDefinitionPropsThe role that the container can assume.Default: - no job role
- Specified by:
getJobRolein interfaceEcsContainerDefinitionProps- See Also:
-
getLinuxParameters
Description copied from interface:EcsContainerDefinitionPropsLinux-specific modifications that are applied to the container, such as details for device mappings.Default: none
- Specified by:
getLinuxParametersin interfaceEcsContainerDefinitionProps
-
getLogging
Description copied from interface:EcsContainerDefinitionPropsThe loging configuration for this Job.Default: - the log configuration of the Docker daemon
- Specified by:
getLoggingin interfaceEcsContainerDefinitionProps
-
getReadonlyRootFilesystem
Description copied from interface:EcsContainerDefinitionPropsGives the container readonly access to its root filesystem.Default: false
- Specified by:
getReadonlyRootFilesystemin interfaceEcsContainerDefinitionProps
-
getSecrets
Description copied from interface:EcsContainerDefinitionPropsA map from environment variable names to the secrets for the container.Allows your job definitions to reference the secret by the environment variable name defined in this property.
Default: - no secrets
- Specified by:
getSecretsin interfaceEcsContainerDefinitionProps- See Also:
-
getUser
Description copied from interface:EcsContainerDefinitionPropsThe user name to use inside the container.Default: - no user
- Specified by:
getUserin interfaceEcsContainerDefinitionProps
-
getVolumes
Description copied from interface:EcsContainerDefinitionPropsThe volumes to mount to this container.Automatically added to the job definition.
Default: - no volumes
- Specified by:
getVolumesin interfaceEcsContainerDefinitionProps
-
$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()
-