Interface CfnJobDefinition.VolumesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobDefinition.VolumesProperty.Jsii$Proxy
- Enclosing class:
CfnJobDefinition
@Stability(Stable)
public static interface CfnJobDefinition.VolumesProperty
extends software.amazon.jsii.JsiiSerializable
A list of volumes that are associated with the job.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.batch.*; VolumesProperty volumesProperty = VolumesProperty.builder() .efsVolumeConfiguration(EfsVolumeConfigurationProperty.builder() .fileSystemId("fileSystemId") // the properties below are optional .authorizationConfig(AuthorizationConfigProperty.builder() .accessPointId("accessPointId") .iam("iam") .build()) .rootDirectory("rootDirectory") .transitEncryption("transitEncryption") .transitEncryptionPort(123) .build()) .host(VolumesHostProperty.builder() .sourcePath("sourcePath") .build()) .name("name") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnJobDefinition.VolumesProperty
static final class
An implementation forCfnJobDefinition.VolumesProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
This is used when you're using an Amazon Elastic File System file system for job storage.default Object
getHost()
The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it's stored.default String
getName()
The name of the volume.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEfsVolumeConfiguration
This is used when you're using an Amazon Elastic File System file system for job storage.For more information, see Amazon EFS Volumes in the AWS Batch User Guide .
- See Also:
-
getHost
The contents of thehost
parameter determine whether your data volume persists on the host container instance and where it's stored.If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
- See Also:
-
getName
The name of the volume.It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the
sourceVolume
parameter of container definitionmountPoints
.- See Also:
-
builder
-