@Stability(value=Stable) public static final class GatewayVpcEndpoint.Builder extends Object
GatewayVpcEndpoint
.Modifier and Type | Method and Description |
---|---|
GatewayVpcEndpoint |
build() |
static GatewayVpcEndpoint.Builder |
create(Construct scope,
String id) |
GatewayVpcEndpoint.Builder |
service(IGatewayVpcEndpointService service)
The service to use for this gateway VPC endpoint.
|
GatewayVpcEndpoint.Builder |
subnets(List<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(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<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 without compilation. See https://github.com/aws/jsii/issues/826 vpc.addGatewayEndpoint("DynamoDbEndpoint", Map.of( "service", ec2.GatewayVpcEndpointAwsService.getDYNAMODB(), // Add only to ISOLATED subnets "subnets", asList(Map.of("subnetType", ec2.SubnetType.getISOLATED()))));
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()
Copyright © 2020. All rights reserved.