@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.375Z") @Stability(value=Stable) public interface CfnVPCEndpointProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
Object policyDocument;
CfnVPCEndpointProps cfnVPCEndpointProps = CfnVPCEndpointProps.builder()
.serviceName("serviceName")
.vpcId("vpcId")
// the properties below are optional
.policyDocument(policyDocument)
.privateDnsEnabled(false)
.routeTableIds(List.of("routeTableIds"))
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.vpcEndpointType("vpcEndpointType")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnVPCEndpointProps.Builder
A builder for
CfnVPCEndpointProps |
static class |
CfnVPCEndpointProps.Jsii$Proxy
An implementation for
CfnVPCEndpointProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnVPCEndpointProps.Builder |
builder() |
default Object |
getPolicyDocument()
A policy that controls access to the service from the VPC.
|
default Object |
getPrivateDnsEnabled()
Indicate whether to associate a private hosted zone with the specified VPC.
|
default List<String> |
getRouteTableIds()
The route table IDs.
|
default List<String> |
getSecurityGroupIds()
The IDs of the security groups to associate with the endpoint network interface.
|
String |
getServiceName()
The service name.
|
default List<String> |
getSubnetIds()
The ID of the subnets in which to create an endpoint network interface.
|
default String |
getVpcEndpointType()
The type of endpoint.
|
String |
getVpcId()
The ID of the VPC in which the endpoint will be used.
|
@Stability(value=Stable) @NotNull String getServiceName()
To list the available services, use DescribeVpcEndpointServices . Otherwise, get the name from the service provider.
@Stability(value=Stable) @NotNull String getVpcId()
@Stability(value=Stable) @Nullable default Object getPolicyDocument()
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.
@Stability(value=Stable) @Nullable default Object getPrivateDnsEnabled()
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
@Stability(value=Stable) @Nullable default List<String> getRouteTableIds()
Routing is supported only for gateway endpoints.
@Stability(value=Stable) @Nullable default List<String> getSecurityGroupIds()
Security groups are supported only for interface endpoints.
@Stability(value=Stable) @Nullable default List<String> getSubnetIds()
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.
@Stability(value=Stable) @Nullable default String getVpcEndpointType()
Default: Gateway
@Stability(value=Stable) static CfnVPCEndpointProps.Builder builder()
CfnVPCEndpointProps.Builder of CfnVPCEndpointPropsCopyright © 2022. All rights reserved.