VolumesProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const volumesProperty: batch.CfnJobDefinition.VolumesProperty = {
efsVolumeConfiguration: {
fileSystemId: 'fileSystemId',
// the properties below are optional
authorizationConfig: {
accessPointId: 'accessPointId',
iam: 'iam',
},
rootDirectory: 'rootDirectory',
transitEncryption: 'transitEncryption',
transitEncryptionPort: 123,
},
host: {
sourcePath: 'sourcePath',
},
name: 'name',
s3FilesVolumeConfiguration: {
fileSystemArn: 'fileSystemArn',
// the properties below are optional
accessPointArn: 'accessPointArn',
rootDirectory: 'rootDirectory',
transitEncryptionPort: 123,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch
volumes_property = batch.CfnJobDefinition.VolumesProperty(
efs_volume_configuration=batch.CfnJobDefinition.EfsVolumeConfigurationProperty(
file_system_id="fileSystemId",
# the properties below are optional
authorization_config=batch.CfnJobDefinition.AuthorizationConfigProperty(
access_point_id="accessPointId",
iam="iam"
),
root_directory="rootDirectory",
transit_encryption="transitEncryption",
transit_encryption_port=123
),
host=batch.CfnJobDefinition.VolumesHostProperty(
source_path="sourcePath"
),
name="name",
s3_files_volume_configuration=batch.CfnJobDefinition.S3FilesVolumeConfigurationProperty(
file_system_arn="fileSystemArn",
# the properties below are optional
access_point_arn="accessPointArn",
root_directory="rootDirectory",
transit_encryption_port=123
)
)
java
// 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")
.s3FilesVolumeConfiguration(S3FilesVolumeConfigurationProperty.builder()
.fileSystemArn("fileSystemArn")
// the properties below are optional
.accessPointArn("accessPointArn")
.rootDirectory("rootDirectory")
.transitEncryptionPort(123)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var volumesProperty = new VolumesProperty {
EfsVolumeConfiguration = new EfsVolumeConfigurationProperty {
FileSystemId = "fileSystemId",
// the properties below are optional
AuthorizationConfig = new AuthorizationConfigProperty {
AccessPointId = "accessPointId",
Iam = "iam"
},
RootDirectory = "rootDirectory",
TransitEncryption = "transitEncryption",
TransitEncryptionPort = 123
},
Host = new VolumesHostProperty {
SourcePath = "sourcePath"
},
Name = "name",
S3FilesVolumeConfiguration = new S3FilesVolumeConfigurationProperty {
FileSystemArn = "fileSystemArn",
// the properties below are optional
AccessPointArn = "accessPointArn",
RootDirectory = "rootDirectory",
TransitEncryptionPort = 123
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
volumesProperty := &VolumesProperty{
EfsVolumeConfiguration: &EfsVolumeConfigurationProperty{
FileSystemId: jsii.String("fileSystemId"),
// the properties below are optional
AuthorizationConfig: &AuthorizationConfigProperty{
AccessPointId: jsii.String("accessPointId"),
Iam: jsii.String("iam"),
},
RootDirectory: jsii.String("rootDirectory"),
TransitEncryption: jsii.String("transitEncryption"),
TransitEncryptionPort: jsii.Number(123),
},
Host: &VolumesHostProperty{
SourcePath: jsii.String("sourcePath"),
},
Name: jsii.String("name"),
S3FilesVolumeConfiguration: &S3FilesVolumeConfigurationProperty{
FileSystemArn: jsii.String("fileSystemArn"),
// the properties below are optional
AccessPointArn: jsii.String("accessPointArn"),
RootDirectory: jsii.String("rootDirectory"),
TransitEncryptionPort: jsii.Number(123),
},
}
Properties
efsVolumeConfigurationoptionalIResolvable | CfnJobDefinition.efs_volume_configurationoptionaltyping.Union[IResolvable, EfsVolumeConfigurationProperty]efsVolumeConfigurationoptionalIResolvableEfsVolumeConfigurationoptionalIResolvableEfsVolumeConfigurationoptionalinterface{} #hostoptionalIResolvable | CfnJobDefinition.hostoptionaltyping.Union[IResolvable, VolumesHostProperty]hostoptionalIResolvableHostoptionalIResolvableHostoptionalinterface{} #s3FilesVolumeConfigurationoptionalIResolvable | CfnJobDefinition.s3_files_volume_configurationoptionaltyping.Union[IResolvable, S3FilesVolumeConfigurationProperty]s3FilesVolumeConfigurationoptionalIResolvableS3FilesVolumeConfigurationoptionalIResolvableS3FilesVolumeConfigurationoptionalinterface{} #