Interface GatewayVpcEndpointOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
GatewayVpcEndpointProps
- All Known Implementing Classes:
GatewayVpcEndpointOptions.Jsii$Proxy,GatewayVpcEndpointProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-08-13T16:20:04.917Z")
@Stability(Stable)
public interface GatewayVpcEndpointOptions
extends software.amazon.jsii.JsiiSerializable
Options to add a gateway endpoint to a VPC.
Example:
// Interface endpoint with IPv6
vpc.addInterfaceEndpoint("ExampleEndpoint", InterfaceVpcEndpointOptions.builder()
.service(InterfaceVpcEndpointAwsService.ECR)
.ipAddressType(VpcEndpointIpAddressType.IPV6)
.dnsRecordIpType(VpcEndpointDnsRecordIpType.IPV6)
.build());
// Gateway endpoint with dualstack
vpc.addGatewayEndpoint("S3DualstackEndpoint", GatewayVpcEndpointOptions.builder()
.service(GatewayVpcEndpointAwsService.S3)
.ipAddressType(VpcEndpointIpAddressType.DUALSTACK)
.dnsRecordIpType(VpcEndpointDnsRecordIpType.DUALSTACK)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGatewayVpcEndpointOptionsstatic final classAn implementation forGatewayVpcEndpointOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default VpcEndpointDnsRecordIpTypeType of DNS records created for the VPC endpoint.default VpcEndpointIpAddressTypeThe IP address type for the endpoint.The service to use for this gateway VPC endpoint.default List<SubnetSelection> Where to add endpoint routing.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getService
The service to use for this gateway VPC endpoint. -
getDnsRecordIpType
Type of DNS records created for the VPC endpoint.Default: not specified
-
getIpAddressType
The IP address type for the endpoint.Default: not specified
-
getSubnets
Where to add endpoint routing.By default, this endpoint will be routable from all subnets in the VPC. Specify a list of subnet selection objects here to be more specific.
Default: - All subnets in the VPC
Example:
Vpc vpc; vpc.addGatewayEndpoint("DynamoDbEndpoint", GatewayVpcEndpointOptions.builder() .service(GatewayVpcEndpointAwsService.DYNAMODB) // Add only to ISOLATED subnets .subnets(List.of(SubnetSelection.builder().subnetType(SubnetType.PRIVATE_ISOLATED).build())) .build()); -
builder
- Returns:
- a
GatewayVpcEndpointOptions.BuilderofGatewayVpcEndpointOptions
-