Interface CfnVPCEndpointProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVPCEndpointProps.Jsii$Proxy
CfnVPCEndpoint.
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()
.vpcId("vpcId")
// the properties below are optional
.dnsOptions(DnsOptionsSpecificationProperty.builder()
.dnsRecordIpType("dnsRecordIpType")
.privateDnsOnlyForInboundResolverEndpoint("privateDnsOnlyForInboundResolverEndpoint")
.privateDnsPreference("privateDnsPreference")
.privateDnsSpecifiedDomains(List.of("privateDnsSpecifiedDomains"))
.build())
.ipAddressType("ipAddressType")
.policyDocument(policyDocument)
.privateDnsEnabled(false)
.resourceConfigurationArn("resourceConfigurationArn")
.routeTableIds(List.of("routeTableIds"))
.securityGroupIds(List.of("securityGroupIds"))
.serviceName("serviceName")
.serviceNetworkArn("serviceNetworkArn")
.serviceRegion("serviceRegion")
.subnetIds(List.of("subnetIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcEndpointType("vpcEndpointType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnVPCEndpointPropsstatic final classAn implementation forCfnVPCEndpointProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnVPCEndpointProps.Builderbuilder()default ObjectDescribes the DNS options for an endpoint.default StringThe supported IP address types.default ObjectAn endpoint policy, which controls access to the service from the VPC.default ObjectIndicate whether to associate a private hosted zone with the specified VPC.default StringThe Amazon Resource Name (ARN) of the resource configuration.The IDs of the route tables.The IDs of the security groups to associate with the endpoint network interfaces.default StringThe name of the endpoint service.default StringThe Amazon Resource Name (ARN) of the service network.default StringDescribes a Region.The IDs of the subnets in which to create endpoint network interfaces.getTags()The tags to associate with the endpoint.default StringThe type of endpoint.getVpcId()The ID of the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpcId
- See Also:
-
getDnsOptions
Describes the DNS options for an endpoint.Returns union: either
IResolvableorCfnVPCEndpoint.DnsOptionsSpecificationProperty- See Also:
-
getIpAddressType
The supported IP address types.- See Also:
-
getPolicyDocument
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. 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
Propertiessection: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":"*" }] }'- See Also:
-
getPrivateDnsEnabled
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:enableDnsHostnamesandenableDnsSupport.This property is supported only for interface endpoints.
Default:
falseReturns union: either
BooleanorIResolvable- See Also:
-
getResourceConfigurationArn
The Amazon Resource Name (ARN) of the resource configuration.- See Also:
-
getRouteTableIds
The IDs of the route tables.Routing is supported only for gateway endpoints.
Returns union: Listinvalid input: '<'either
StringorIRouteTableRef>- See Also:
-
getSecurityGroupIds
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 union: Listinvalid input: '<'either
StringorISecurityGroupRef>- See Also:
-
getServiceName
The name of the endpoint service.- See Also:
-
getServiceNetworkArn
The Amazon Resource Name (ARN) of the service network.- See Also:
-
getServiceRegion
Describes a Region.- See Also:
-
getSubnetIds
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 union: Listinvalid input: '<'either
StringorISubnetRef>- See Also:
-
getTags
The tags to associate with the endpoint.- See Also:
-
getVpcEndpointType
The type of endpoint.Default: Gateway
- See Also:
-
builder
- Returns:
- a
CfnVPCEndpointProps.BuilderofCfnVPCEndpointProps
-