Ec2ConfigProperty Struct
The subnet and security groups that AWS DataSync uses to connect to one of your Amazon EFS file system's mount targets .
| 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_datasync as datasync } from 'aws-cdk-lib';
const ec2ConfigProperty: datasync.CfnLocationEFS.Ec2ConfigProperty = {
securityGroupArns: ['securityGroupArns'],
subnetArn: 'subnetArn',
};
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_datasync as datasync
ec2_config_property = datasync.CfnLocationEFS.Ec2ConfigProperty(
security_group_arns=["securityGroupArns"],
subnet_arn="subnetArn"
)
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.datasync.*;
Ec2ConfigProperty ec2ConfigProperty = Ec2ConfigProperty.builder()
.securityGroupArns(List.of("securityGroupArns"))
.subnetArn("subnetArn")
.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.DataSync;
var ec2ConfigProperty = new Ec2ConfigProperty {
SecurityGroupArns = new [] { "securityGroupArns" },
SubnetArn = "subnetArn"
};
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"
ec2ConfigProperty := &Ec2ConfigProperty{
SecurityGroupArns: []*string{
jsii.String("securityGroupArns"),
},
SubnetArn: jsii.String("subnetArn"),
}
Properties
securityGroupArnsstring[]security_group_arnstyping.List[str]securityGroupArnsList<String>SecurityGroupArnsstring[]SecurityGroupArns*[]*string required #Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.
Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.
notes
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.