Class CfnMountTarget.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMountTarget>
- Enclosing class:
CfnMountTarget
CfnMountTarget
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnMountTarget.Builder
fileSystemId
(String fileSystemId) The ID of the file system for which to create the mount target.If theIpAddressType
for the mount target is IPv4 (IPV4_ONLY
orDUAL_STACK
), then specify the IPv4 address to use.ipAddressType
(String ipAddressType) The IP address type for the mount target.ipv6Address
(String ipv6Address) If theIPAddressType
for the mount target is IPv6 (IPV6_ONLY
orDUAL_STACK
), then specify the IPv6 address to use.securityGroups
(List<String> securityGroups) VPC security group IDs, of the formsg-xxxxxxxx
.The ID of the subnet to add the mount target in.
-
Method Details
-
create
@Stability(Stable) public static CfnMountTarget.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnMountTarget.Builder
.
-
fileSystemId
The ID of the file system for which to create the mount target.- Parameters:
fileSystemId
- The ID of the file system for which to create the mount target. This parameter is required.- Returns:
this
- See Also:
-
securityGroups
VPC security group IDs, of the formsg-xxxxxxxx
.These must be for the same VPC as the subnet specified. The maximum number of security groups depends on account quota. For more information, see Amazon VPC Quotas in the Amazon VPC User Guide (see the Security Groups table). If you don't specify a security group, then Amazon EFS uses the default security group for the subnet's VPC.
- Parameters:
securityGroups
- VPC security group IDs, of the formsg-xxxxxxxx
. This parameter is required.- Returns:
this
- See Also:
-
subnetId
The ID of the subnet to add the mount target in.For One Zone file systems, use the subnet that is associated with the file system's Availability Zone. The subnet type must be the same type as the
IpAddressType
.- Parameters:
subnetId
- The ID of the subnet to add the mount target in. This parameter is required.- Returns:
this
- See Also:
-
ipAddress
If theIpAddressType
for the mount target is IPv4 (IPV4_ONLY
orDUAL_STACK
), then specify the IPv4 address to use.If you do not specify an
IpAddress
, then Amazon EFS selects an unused IP address from the subnet specified forSubnetId
.- Parameters:
ipAddress
- If theIpAddressType
for the mount target is IPv4 (IPV4_ONLY
orDUAL_STACK
), then specify the IPv4 address to use. This parameter is required.- Returns:
this
- See Also:
-
ipAddressType
The IP address type for the mount target.The possible values are
IPV4_ONLY
(only IPv4 addresses),IPV6_ONLY
(only IPv6 addresses), andDUAL_STACK
(dual-stack, both IPv4 and IPv6 addresses). If you don’t specify anIpAddressType
, thenIPV4_ONLY
is used.The
IPAddressType
must match the IP type of the subnet. Additionally, theIPAddressType
parameter overrides the value set as the default IP address for the subnet in the VPC. For example, if theIPAddressType
isIPV4_ONLY
andAssignIpv6AddressOnCreation
istrue
, then IPv4 is used for the mount target. For more information, see Modify the IP addressing attributes of your subnet .- Parameters:
ipAddressType
- The IP address type for the mount target. This parameter is required.- Returns:
this
- See Also:
-
ipv6Address
If theIPAddressType
for the mount target is IPv6 (IPV6_ONLY
orDUAL_STACK
), then specify the IPv6 address to use.If you do not specify an
Ipv6Address
, then Amazon EFS selects an unused IP address from the subnet specified forSubnetId
.- Parameters:
ipv6Address
- If theIPAddressType
for the mount target is IPv6 (IPV6_ONLY
orDUAL_STACK
), then specify the IPv6 address to use. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMountTarget>
- Returns:
- a newly built instance of
CfnMountTarget
.
-