CfnVPCEndpointProps Struct
Properties for defining a CfnVPCEndpoint.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const policyDocument: any;
const cfnVPCEndpointProps: ec2.CfnVPCEndpointProps = {
vpcId: 'vpcId',
// the properties below are optional
dnsOptions: {
dnsRecordIpType: 'dnsRecordIpType',
privateDnsOnlyForInboundResolverEndpoint: 'privateDnsOnlyForInboundResolverEndpoint',
privateDnsPreference: 'privateDnsPreference',
privateDnsSpecifiedDomains: ['privateDnsSpecifiedDomains'],
},
ipAddressType: 'ipAddressType',
policyDocument: policyDocument,
privateDnsEnabled: false,
resourceConfigurationArn: 'resourceConfigurationArn',
routeTableIds: ['routeTableIds'],
securityGroupIds: ['securityGroupIds'],
serviceName: 'serviceName',
serviceNetworkArn: 'serviceNetworkArn',
serviceRegion: 'serviceRegion',
subnetIds: ['subnetIds'],
tags: [{
key: 'key',
value: 'value',
}],
vpcEndpointType: 'vpcEndpointType',
};
Properties
dnsOptionsoptionalIResolvable | CfnVPCEndpoint.DnsOptionsSpecificationPropertydns_optionsoptionaltyping.Union[IResolvable, DnsOptionsSpecificationProperty]dnsOptionsoptionalIResolvableDnsOptionsoptionalIResolvableDnsOptionsoptionalinterface{}#ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string#policyDocumentoptionalanypolicy_documentoptionalAnypolicyDocumentoptionalObjectPolicyDocumentoptionalobjectPolicyDocumentoptionalinterface{}#notes
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. For example, if you have a JSON policy, you can convert it to YAML before including it in the YAML template, and AWS CloudFormation converts the policy to JSON format before calling the API actions for AWS PrivateLink . Alternatively, you can include the JSON directly in the YAML, as shown in the following Properties section:
Properties: VpcEndpointType: 'Interface' ServiceName: !Sub 'com.amazonaws.${AWS::Region}.logs' PolicyDocument: '{ "Version":"2012-10-17", "Statement": [{ "Effect":"Allow", "Principal":"*", "Action":["logs:Describe*","logs:Get*","logs:List*","logs:FilterLogEvents"], "Resource":"*" }] }'
privateDnsEnabledoptionalboolean | IResolvableprivate_dns_enabledoptionaltyping.Union[bool, IResolvable]privateDnsEnabledoptionalBooleanPrivateDnsEnabledoptionalboolPrivateDnsEnabledoptionalinterface{}#notes
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
resourceConfigurationArnoptionalstringresource_configuration_arnoptionalstrresourceConfigurationArnoptionalStringResourceConfigurationArnoptionalstringResourceConfigurationArnoptional*string#routeTableIdsoptionalstring | IRouteTableRef[]route_table_idsoptionaltyping.List[typing.Union[str, IRouteTableRef]]routeTableIdsoptionalList<String>RouteTableIdsoptionalstring[]RouteTableIdsoptional*[]interface{}#Routing is supported only for gateway endpoints.
securityGroupIdsoptionalstring | ISecurityGroupRef[]security_group_idsoptionaltyping.List[typing.Union[str, ISecurityGroupRef]]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]interface{}#If this parameter is not specified, we use the default security group for the VPC. Security groups are supported only for interface endpoints.
serviceNameoptionalstringservice_nameoptionalstrserviceNameoptionalStringServiceNameoptionalstringServiceNameoptional*string#serviceNetworkArnoptionalstringservice_network_arnoptionalstrserviceNetworkArnoptionalStringServiceNetworkArnoptionalstringServiceNetworkArnoptional*string#serviceRegionoptionalstringservice_regionoptionalstrserviceRegionoptionalStringServiceRegionoptionalstringServiceRegionoptional*string#subnetIdsoptionalstring | ISubnetRef[]subnet_idsoptionaltyping.List[typing.Union[str, ISubnetRef]]subnetIdsoptionalList<String>SubnetIdsoptionalstring[]SubnetIdsoptional*[]interface{}#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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#vpcEndpointTypeoptionalstringvpc_endpoint_typeoptionalstrvpcEndpointTypeoptionalStringVpcEndpointTypeoptionalstringVpcEndpointTypeoptional*string#Default: Gateway