Class CfnVPCEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpointProps>
- Enclosing interface:
- CfnVPCEndpointProps
CfnVPCEndpointProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(Object policyDocument) Sets the value ofCfnVPCEndpointProps.getPolicyDocument()
privateDnsEnabled
(Boolean privateDnsEnabled) Sets the value ofCfnVPCEndpointProps.getPrivateDnsEnabled()
privateDnsEnabled
(IResolvable privateDnsEnabled) Sets the value ofCfnVPCEndpointProps.getPrivateDnsEnabled()
routeTableIds
(List<String> routeTableIds) Sets the value ofCfnVPCEndpointProps.getRouteTableIds()
securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnVPCEndpointProps.getSecurityGroupIds()
serviceName
(String serviceName) Sets the value ofCfnVPCEndpointProps.getServiceName()
Sets the value ofCfnVPCEndpointProps.getSubnetIds()
vpcEndpointType
(String vpcEndpointType) Sets the value ofCfnVPCEndpointProps.getVpcEndpointType()
Sets the value ofCfnVPCEndpointProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serviceName
Sets the value ofCfnVPCEndpointProps.getServiceName()
- Parameters:
serviceName
- The name of the endpoint service. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnVPCEndpointProps.getVpcId()
- Parameters:
vpcId
- The ID of the VPC. This parameter is required.- Returns:
this
-
policyDocument
Sets the value ofCfnVPCEndpointProps.getPolicyDocument()
- Parameters:
policyDocument
- An endpoint policy, which controls access to the service from the VPC. The default endpoint policy allows full access to the service. Endpoint policies are supported only for gateway and interface endpoints.For CloudFormation templates in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation converts YAML policies to JSON format before calling the API to create or modify the VPC endpoint.
- Returns:
this
-
privateDnsEnabled
Sets the value ofCfnVPCEndpointProps.getPrivateDnsEnabled()
- Parameters:
privateDnsEnabled
- Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example,kinesis.us-east-1.amazonaws.com
), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.To use a private hosted zone, you must set the following VPC attributes to
true
:enableDnsHostnames
andenableDnsSupport
.This property is supported only for interface endpoints.
Default:
false
- Returns:
this
-
privateDnsEnabled
@Stability(Stable) public CfnVPCEndpointProps.Builder privateDnsEnabled(IResolvable privateDnsEnabled) Sets the value ofCfnVPCEndpointProps.getPrivateDnsEnabled()
- Parameters:
privateDnsEnabled
- Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example,kinesis.us-east-1.amazonaws.com
), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.To use a private hosted zone, you must set the following VPC attributes to
true
:enableDnsHostnames
andenableDnsSupport
.This property is supported only for interface endpoints.
Default:
false
- Returns:
this
-
routeTableIds
Sets the value ofCfnVPCEndpointProps.getRouteTableIds()
- Parameters:
routeTableIds
- The IDs of the route tables. Routing is supported only for gateway endpoints.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnVPCEndpointProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnVPCEndpointProps.getSecurityGroupIds()
- Parameters:
securityGroupIds
- The IDs of the security groups to associate with the endpoint network interfaces. If this parameter is not specified, we use the default security group for the VPC. Security groups are supported only for interface endpoints.- Returns:
this
-
subnetIds
Sets the value ofCfnVPCEndpointProps.getSubnetIds()
- Parameters:
subnetIds
- The IDs of the subnets in which to create endpoint network interfaces. You must specify this property for an interface endpoint or a Gateway Load Balancer endpoint. You can't specify this property for a gateway endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.- Returns:
this
-
vpcEndpointType
Sets the value ofCfnVPCEndpointProps.getVpcEndpointType()
- Parameters:
vpcEndpointType
- The type of endpoint. Default: Gateway- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCEndpointProps>
- Returns:
- a new instance of
CfnVPCEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-