interface Ec2ConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.DataSync.CfnLocationEFSPropsMixin.Ec2ConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsdatasync#CfnLocationEFSPropsMixin_Ec2ConfigProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnLocationEFSPropsMixin.Ec2ConfigProperty |
Python | aws_cdk.cfn_property_mixins.aws_datasync.CfnLocationEFSPropsMixin.Ec2ConfigProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_datasync » CfnLocationEFSPropsMixin » Ec2ConfigProperty |
The subnet and security groups that AWS DataSync uses to connect to one of your Amazon EFS file system's mount targets .
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/cfn-property-mixins';
const ec2ConfigProperty: datasync.CfnLocationEFSPropsMixin.Ec2ConfigProperty = {
securityGroupArns: ['securityGroupArns'],
subnetArn: 'subnetArn',
};
Properties
| Name | Type | Description |
|---|---|---|
| security | string[] | Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target. |
| subnet | string | Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer. |
securityGroupArns?
Type:
string[]
(optional)
Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.
subnetArn?
Type:
string
(optional)
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.

.NET
Go
Java
Python
TypeScript