CfnLocationEFSProps Struct
Properties for defining a CfnLocationEFS.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
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',
}],
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync
cfn_location_efs_props = datasync.CfnLocationEFSProps(
ec2_config=datasync.CfnLocationEFS.Ec2ConfigProperty(
security_group_arns=["securityGroupArns"],
subnet_arn="subnetArn"
),
# the properties below are optional
access_point_arn="accessPointArn",
efs_filesystem_arn="efsFilesystemArn",
file_system_access_role_arn="fileSystemAccessRoleArn",
in_transit_encryption="inTransitEncryption",
subdirectory="subdirectory",
tags=[CfnTag(
key="key",
value="value"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.datasync.*;
CfnLocationEFSProps cfnLocationEFSProps = CfnLocationEFSProps.builder()
.ec2Config(Ec2ConfigProperty.builder()
.securityGroupArns(List.of("securityGroupArns"))
.subnetArn("subnetArn")
.build())
// the properties below are optional
.accessPointArn("accessPointArn")
.efsFilesystemArn("efsFilesystemArn")
.fileSystemAccessRoleArn("fileSystemAccessRoleArn")
.inTransitEncryption("inTransitEncryption")
.subdirectory("subdirectory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// 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.DataSync;
var cfnLocationEFSProps = new CfnLocationEFSProps {
Ec2Config = new Ec2ConfigProperty {
SecurityGroupArns = new [] { "securityGroupArns" },
SubnetArn = "subnetArn"
},
// the properties below are optional
AccessPointArn = "accessPointArn",
EfsFilesystemArn = "efsFilesystemArn",
FileSystemAccessRoleArn = "fileSystemAccessRoleArn",
InTransitEncryption = "inTransitEncryption",
Subdirectory = "subdirectory",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// 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"
cfnLocationEFSProps := &CfnLocationEFSProps{
Ec2Config: &Ec2ConfigProperty{
SecurityGroupArns: []*string{
jsii.String("securityGroupArns"),
},
SubnetArn: jsii.String("subnetArn"),
},
// the properties below are optional
AccessPointArn: jsii.String("accessPointArn"),
EfsFilesystemArn: jsii.String("efsFilesystemArn"),
FileSystemAccessRoleArn: jsii.String("fileSystemAccessRoleArn"),
InTransitEncryption: jsii.String("inTransitEncryption"),
Subdirectory: jsii.String("subdirectory"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
accessPointArnoptionalstringaccess_point_arnoptionalstraccessPointArnoptionalStringAccessPointArnoptionalstringAccessPointArnoptional*string #For more information, see Accessing restricted file systems .
ec2ConfigIResolvable | CfnLocationEFS.Ec2ConfigPropertyec2_configtyping.Union[IResolvable, Ec2ConfigProperty]ec2ConfigIResolvableEc2ConfigIResolvableEc2Configinterface{} required #efsFilesystemArnoptionalstring | IFileSystemRefefs_filesystem_arnoptionaltyping.Union[str, IFileSystemRef]efsFilesystemArnoptionalStringEfsFilesystemArnoptionalstringEfsFilesystemArnoptionalinterface{} #fileSystemAccessRoleArnoptionalstringfile_system_access_role_arnoptionalstrfileSystemAccessRoleArnoptionalStringFileSystemAccessRoleArnoptionalstringFileSystemAccessRoleArnoptional*string #For information on creating this role, see Creating a DataSync IAM role for file system access .
inTransitEncryptionoptionalstringin_transit_encryptionoptionalstrinTransitEncryptionoptionalStringInTransitEncryptionoptionalstringInTransitEncryptionoptional*string #If you specify an access point using AccessPointArn or an IAM role using FileSystemAccessRoleArn , you must set this parameter to TLS1_2 .
subdirectoryoptionalstringsubdirectoryoptionalstrsubdirectoryoptionalStringSubdirectoryoptionalstringSubdirectoryoptional*string #notes
This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).
By default, DataSync uses the root directory (or access point if you provide one by using AccessPointArn ). You can also include subdirectories using forward slashes (for example, /path/to/folder ).
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #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.