@Stability(value=Stable) public static final class CfnVPCEndpointProps.Builder extends Object implements software.amazon.jsii.Builder<CfnVPCEndpointProps>
CfnVPCEndpointProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnVPCEndpointProps.Builder serviceName(String serviceName)
CfnVPCEndpointProps.getServiceName()serviceName - The service name. This parameter is required.
To list the available services, use DescribeVpcEndpointServices . Otherwise, get the name from the service provider.this@Stability(value=Stable) public CfnVPCEndpointProps.Builder vpcId(String vpcId)
CfnVPCEndpointProps.getVpcId()vpcId - The ID of the VPC in which the endpoint will be used. This parameter is required.this@Stability(value=Stable) public CfnVPCEndpointProps.Builder policyDocument(Object policyDocument)
CfnVPCEndpointProps.getPolicyDocument()policyDocument - A policy that controls access to the service from the VPC.
If this parameter is not specified, the default 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.
this@Stability(value=Stable) public CfnVPCEndpointProps.Builder privateDnsEnabled(Boolean privateDnsEnabled)
CfnVPCEndpointProps.getPrivateDnsEnabled()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 and enableDnsSupport .
This property is supported only for interface endpoints.
Default: false
this@Stability(value=Stable) public CfnVPCEndpointProps.Builder privateDnsEnabled(IResolvable privateDnsEnabled)
CfnVPCEndpointProps.getPrivateDnsEnabled()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 and enableDnsSupport .
This property is supported only for interface endpoints.
Default: false
this@Stability(value=Stable) public CfnVPCEndpointProps.Builder routeTableIds(List<String> routeTableIds)
CfnVPCEndpointProps.getRouteTableIds()routeTableIds - The route table IDs.
Routing is supported only for gateway endpoints.this@Stability(value=Stable) public CfnVPCEndpointProps.Builder securityGroupIds(List<String> securityGroupIds)
CfnVPCEndpointProps.getSecurityGroupIds()securityGroupIds - The IDs of the security groups to associate with the endpoint network interface.
Security groups are supported only for interface endpoints.this@Stability(value=Stable) public CfnVPCEndpointProps.Builder subnetIds(List<String> subnetIds)
CfnVPCEndpointProps.getSubnetIds()subnetIds - The ID of the subnets in which to create an endpoint network interface.
You must specify this property for an interface endpoints 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.this@Stability(value=Stable) public CfnVPCEndpointProps.Builder vpcEndpointType(String vpcEndpointType)
CfnVPCEndpointProps.getVpcEndpointType()vpcEndpointType - The type of endpoint.
Default: Gatewaythis@Stability(value=Stable) public CfnVPCEndpointProps build()
build in interface software.amazon.jsii.Builder<CfnVPCEndpointProps>CfnVPCEndpointPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.