interface CfnLocationEFSProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.DataSync.CfnLocationEFSProps |
![]() | software.amazon.awscdk.services.datasync.CfnLocationEFSProps |
![]() | aws_cdk.aws_datasync.CfnLocationEFSProps |
![]() | @aws-cdk/aws-datasync » CfnLocationEFSProps |
Properties for defining a CfnLocationEFS
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as datasync from '@aws-cdk/aws-datasync';
const cfnLocationEFSProps: datasync.CfnLocationEFSProps = {
ec2Config: {
securityGroupArns: ['securityGroupArns'],
subnetArn: 'subnetArn',
},
// the properties below are optional
accessPointArn: 'accessPointArn',
efsFilesystemArn: 'efsFilesystemArn',
fileSystemAccessRoleArn: 'fileSystemAccessRoleArn',
inTransitEncryption: 'inTransitEncryption',
subdirectory: 'subdirectory',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
ec2 | Ec2 | IResolvable | Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. |
access | string | Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system. |
efs | string | Specifies the ARN for the Amazon EFS file system. |
file | string | Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. |
in | string | Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system. |
subdirectory? | string | Specifies a mount path for your Amazon EFS file system. |
tags? | Cfn [] | Specifies the key-value pair that represents a tag that you want to add to the resource. |
ec2Config
Type:
Ec2
|
IResolvable
Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.
accessPointArn?
Type:
string
(optional)
Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.
efsFilesystemArn?
Type:
string
(optional)
Specifies the ARN for the Amazon EFS file system.
fileSystemAccessRoleArn?
Type:
string
(optional)
Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
inTransitEncryption?
Type:
string
(optional)
Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.
If you specify an access point using AccessPointArn
or an IAM role using FileSystemAccessRoleArn
, you must set this parameter to TLS1_2
.
subdirectory?
Type:
string
(optional)
Specifies a mount path for your Amazon EFS file system.
This is where DataSync reads or writes data (depending on if this is a source or destination location). By default, DataSync uses the root directory, but you can also include subdirectories.
You must specify a value with forward slashes (for example,
/path/to/folder
).
tags?
Type:
Cfn
[]
(optional)
Specifies the key-value pair that represents a tag that you want to add to the resource.
The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.