Class CfnServerPropsMixin.EndpointDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerPropsMixin.EndpointDetailsProperty>
- Enclosing interface:
CfnServerPropsMixin.EndpointDetailsProperty
CfnServerPropsMixin.EndpointDetailsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressAllocationIds(List<String> addressAllocationIds) Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getAddressAllocationIds()build()Builds the configured instance.securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getSecurityGroupIds()Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getSubnetIds()vpcEndpointId(String vpcEndpointId) Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getVpcEndpointId()Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addressAllocationIds
@Stability(Stable) public CfnServerPropsMixin.EndpointDetailsProperty.Builder addressAllocationIds(List<String> addressAllocationIds) Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getAddressAllocationIds()- Parameters:
addressAllocationIds- A list of address allocation IDs that are required to attach an Elastic IP address to your server's endpoint. An address allocation ID corresponds to the allocation ID of an Elastic IP address. This value can be retrieved from theallocationIdfield from the Amazon EC2 Address data type. One way to retrieve this value is by calling the EC2 DescribeAddresses API.This parameter is optional. Set this parameter if you want to make your VPC endpoint public-facing. For details, see Create an internet-facing endpoint for your server .
This property can only be set as follows:
EndpointTypemust be set toVPC- The Transfer Family server must be offline.
- You cannot set this parameter for Transfer Family servers that use the FTP protocol.
- The server must already have
SubnetIdspopulated (SubnetIdsandAddressAllocationIdscannot be updated simultaneously). AddressAllocationIdscan't contain duplicates, and must be equal in length toSubnetIds. For example, if you have three subnet IDs, you must also specify three address allocation IDs.- Call the
UpdateServerAPI to set or change this parameter. - You can't set address allocation IDs for servers that have an
IpAddressTypeset toDUALSTACKYou can only set this property ifIpAddressTypeis set toIPV4.
- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnServerPropsMixin.EndpointDetailsProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of security groups IDs that are available to attach to your server's endpoint.While
SecurityGroupIdsappears in the response syntax for consistency withCreateServerandUpdateServeroperations, this field is not populated inDescribeServerresponses. Security groups are managed at the VPC endpoint level and can be modified outside of the Transfer Family service. To retrieve current security group information, use the EC2DescribeVpcEndpointsAPI with theVpcEndpointIdreturned in the response.This property can only be set when
EndpointTypeis set toVPC.You can edit the
SecurityGroupIdsproperty in the UpdateServer API only if you are changing theEndpointTypefromPUBLICorVPC_ENDPOINTtoVPC. To change security groups associated with your server's VPC endpoint after creation, use the Amazon EC2 ModifyVpcEndpoint API.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnServerPropsMixin.EndpointDetailsProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getSubnetIds()- Parameters:
subnetIds- A list of subnet IDs that are required to host your server endpoint in your VPC.This property can only be set when
EndpointTypeis set toVPC.- Returns:
this
-
vpcEndpointId
@Stability(Stable) public CfnServerPropsMixin.EndpointDetailsProperty.Builder vpcEndpointId(String vpcEndpointId) Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getVpcEndpointId()- Parameters:
vpcEndpointId- The ID of the VPC endpoint.This property can only be set when
EndpointTypeis set toVPC_ENDPOINT.- Returns:
this
-
vpcId
Sets the value ofCfnServerPropsMixin.EndpointDetailsProperty.getVpcId()- Parameters:
vpcId- The VPC ID of the virtual private cloud in which the server's endpoint will be hosted.This property can only be set when
EndpointTypeis set toVPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerPropsMixin.EndpointDetailsProperty>- Returns:
- a new instance of
CfnServerPropsMixin.EndpointDetailsProperty - Throws:
NullPointerException- if any required attribute was not provided
-