aws-cdk-lib.aws_datasync.CfnLocationEFS.Ec2ConfigProperty

interface Ec2ConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.DataSync.CfnLocationEFS.Ec2ConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsdatasync#CfnLocationEFS_Ec2ConfigProperty
Javasoftware.amazon.awscdk.services.datasync.CfnLocationEFS.Ec2ConfigProperty
Pythonaws_cdk.aws_datasync.CfnLocationEFS.Ec2ConfigProperty
TypeScript aws-cdk-lib » aws_datasync » CfnLocationEFS » Ec2ConfigProperty

The subnet and security groups that AWS DataSync uses to access your Amazon EFS file system.

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 ec2ConfigProperty: datasync.CfnLocationEFS.Ec2ConfigProperty = {
  securityGroupArns: ['securityGroupArns'],
  subnetArn: 'subnetArn',
};

Properties

NameTypeDescription
securityGroupArnsstring[]Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.
subnetArnstringSpecifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.

securityGroupArns

Type: string[]

Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.


subnetArn

Type: string

Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.

The subnet must be located:

  • In the same virtual private cloud (VPC) as the Amazon EFS file system.
  • In the same Availability Zone as at least one mount target for the Amazon EFS file system.

You don't need to specify a subnet that includes a file system mount target.