@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:06.367Z") @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()
(Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service.
|
default Object |
getPrivateDnsEnabled()
(Interface endpoint) Indicate whether to associate a private hosted zone with the specified VPC.
|
default List<String> |
getRouteTableIds()
(Gateway endpoint) One or more route table IDs.
|
default List<String> |
getSecurityGroupIds()
(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.
|
String |
getServiceName()
The service name.
|
default List<String> |
getSubnetIds()
(Interface and Gateway Load Balancer endpoints) The ID of one or more 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 get a list of available services, use the DescribeVpcEndpointServices request, or 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, we attach a default policy that allows full access to the service.
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 .
Default: false
@Stability(value=Stable) @Nullable default List<String> getRouteTableIds()
@Stability(value=Stable) @Nullable default List<String> getSecurityGroupIds()
@Stability(value=Stable) @Nullable default List<String> getSubnetIds()
For a Gateway Load Balancer endpoint, you can specify one subnet only.
@Stability(value=Stable) @Nullable default String getVpcEndpointType()
Default: Gateway
@Stability(value=Stable) static CfnVPCEndpointProps.Builder builder()
CfnVPCEndpointProps.Builder of CfnVPCEndpointPropsCopyright © 2022. All rights reserved.