Interface GatewayVpcEndpointProps
- All Superinterfaces:
GatewayVpcEndpointOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GatewayVpcEndpointProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:09.189Z")
@Stability(Stable)
public interface GatewayVpcEndpointProps
extends software.amazon.jsii.JsiiSerializable, GatewayVpcEndpointOptions
Construction properties for a GatewayVpcEndpoint.
Example:
Stack stack = new Stack();
VpcV2 myVpc = new VpcV2(this, "Vpc");
RouteTable routeTable = RouteTable.Builder.create(this, "RouteTable")
.vpc(myVpc)
.build();
SubnetV2 subnet = SubnetV2.Builder.create(this, "Subnet")
.vpc(myVpc)
.availabilityZone("eu-west-2a")
.ipv4CidrBlock(new IpCidr("10.0.0.0/24"))
.subnetType(SubnetType.PRIVATE)
.build();
GatewayVpcEndpoint dynamoEndpoint = GatewayVpcEndpoint.Builder.create(this, "DynamoEndpoint")
.service(GatewayVpcEndpointAwsService.DYNAMODB)
.vpc(myVpc)
.subnets(List.of(subnet))
.build();
Route.Builder.create(this, "DynamoDBRoute")
.routeTable(routeTable)
.destination("0.0.0.0/0")
.target(Map.of("endpoint", dynamoEndpoint))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGatewayVpcEndpointPropsstatic final classAn implementation forGatewayVpcEndpointProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.ec2.GatewayVpcEndpointOptions
getService, getSubnetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
The VPC network in which the gateway endpoint will be used. -
builder
- Returns:
- a
GatewayVpcEndpointProps.BuilderofGatewayVpcEndpointProps
-