@Stability(value=Stable) public static final class GatewayVpcEndpoint.Builder extends Object implements software.amazon.jsii.Builder<GatewayVpcEndpoint>
GatewayVpcEndpoint.| Modifier and Type | Method and Description |
|---|---|
GatewayVpcEndpoint |
build() |
static GatewayVpcEndpoint.Builder |
create(software.constructs.Construct scope,
String id) |
GatewayVpcEndpoint.Builder |
service(IGatewayVpcEndpointService service)
The service to use for this gateway VPC endpoint.
|
GatewayVpcEndpoint.Builder |
subnets(List<? extends SubnetSelection> subnets)
Where to add endpoint routing.
|
GatewayVpcEndpoint.Builder |
vpc(IVpc vpc)
The VPC network in which the gateway endpoint will be used.
|
@Stability(value=Stable) public static GatewayVpcEndpoint.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.GatewayVpcEndpoint.Builder.@Stability(value=Stable) public GatewayVpcEndpoint.Builder service(IGatewayVpcEndpointService service)
service - The service to use for this gateway VPC endpoint. This parameter is required.this@Stability(value=Stable) public GatewayVpcEndpoint.Builder subnets(List<? extends SubnetSelection> subnets)
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:
// Example automatically generated from non-compiling source. May contain errors.
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());
subnets - Where to add endpoint routing. This parameter is required.this@Stability(value=Stable) public GatewayVpcEndpoint.Builder vpc(IVpc vpc)
vpc - The VPC network in which the gateway endpoint will be used. This parameter is required.this@Stability(value=Stable) public GatewayVpcEndpoint build()
build in interface software.amazon.jsii.Builder<GatewayVpcEndpoint>Copyright © 2022. All rights reserved.