public static final class CfnLocationEFS.Ec2ConfigProperty.Builder
extends java.lang.Object
CfnLocationEFS.Ec2ConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLocationEFS.Ec2ConfigProperty |
build()
Builds the configured instance.
|
CfnLocationEFS.Ec2ConfigProperty.Builder |
securityGroupArns(java.util.List<java.lang.String> securityGroupArns)
Sets the value of
CfnLocationEFS.Ec2ConfigProperty.getSecurityGroupArns() |
CfnLocationEFS.Ec2ConfigProperty.Builder |
subnetArn(java.lang.String subnetArn)
Sets the value of
CfnLocationEFS.Ec2ConfigProperty.getSubnetArn() |
public CfnLocationEFS.Ec2ConfigProperty.Builder securityGroupArns(java.util.List<java.lang.String> securityGroupArns)
CfnLocationEFS.Ec2ConfigProperty.getSecurityGroupArns()
securityGroupArns
- The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource. This parameter is required.
Pattern : ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\-0-9]*:[0-9]{12}:security-group/.*$
this
public CfnLocationEFS.Ec2ConfigProperty.Builder subnetArn(java.lang.String subnetArn)
CfnLocationEFS.Ec2ConfigProperty.getSubnetArn()
subnetArn
- The Amazon Resource Name (ARN) of the subnet that DataSync uses to access the target EFS file system. This parameter is required.this
public CfnLocationEFS.Ec2ConfigProperty build()
CfnLocationEFS.Ec2ConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided