@Stability(value=Stable)
public static interface CfnLocationEFS.Ec2ConfigProperty
extends software.amazon.jsii.JsiiSerializable
The subnet must have at least one mount target for that file system. The security group that you provide must be able to communicate with the security group on the mount target in the subnet specified.
Example:
// 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLocationEFS.Ec2ConfigProperty.Builder
A builder for
CfnLocationEFS.Ec2ConfigProperty |
static class |
CfnLocationEFS.Ec2ConfigProperty.Jsii$Proxy
An implementation for
CfnLocationEFS.Ec2ConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLocationEFS.Ec2ConfigProperty.Builder |
builder() |
List<String> |
getSecurityGroupArns()
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
String |
getSubnetArn()
The Amazon Resource Name (ARN) of the subnet that DataSync uses to access the target EFS file system.
|
@Stability(value=Stable) @NotNull List<String> getSecurityGroupArns()
Pattern : ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\-0-9]*:[0-9]{12}:security-group/.*$
@Stability(value=Stable) @NotNull String getSubnetArn()
@Stability(value=Stable) static CfnLocationEFS.Ec2ConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.