@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.417Z") @Stability(value=Stable) public class GatewayVpcEndpointAwsService extends software.amazon.jsii.JsiiObject implements IGatewayVpcEndpointService
Example:
// Add gateway endpoints when creating the VPC
Vpc vpc = Vpc.Builder.create(this, "MyVpc")
.gatewayEndpoints(Map.of(
"S3", GatewayVpcEndpointOptions.builder()
.service(GatewayVpcEndpointAwsService.S3)
.build()))
.build();
// Alternatively gateway endpoints can be added on the VPC
GatewayVpcEndpoint dynamoDbEndpoint = vpc.addGatewayEndpoint("DynamoDbEndpoint", GatewayVpcEndpointOptions.builder()
.service(GatewayVpcEndpointAwsService.DYNAMODB)
.build());
// This allows to customize the endpoint policy
dynamoDbEndpoint.addToPolicy(
PolicyStatement.Builder.create() // Restrict to listing and describing tables
.principals(List.of(new AnyPrincipal()))
.actions(List.of("dynamodb:DescribeTable", "dynamodb:ListTables"))
.resources(List.of("*")).build());
// Add an interface endpoint
vpc.addInterfaceEndpoint("EcrDockerEndpoint", InterfaceVpcEndpointOptions.builder()
.service(InterfaceVpcEndpointAwsService.ECR_DOCKER)
.build());
software.amazon.jsii.JsiiObject.InitializationModeIGatewayVpcEndpointService.Jsii$Default, IGatewayVpcEndpointService.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static GatewayVpcEndpointAwsService |
DYNAMODB |
static GatewayVpcEndpointAwsService |
S3 |
| Modifier | Constructor and Description |
|---|---|
protected |
GatewayVpcEndpointAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GatewayVpcEndpointAwsService(software.amazon.jsii.JsiiObjectRef objRef) |
|
GatewayVpcEndpointAwsService(String name) |
|
GatewayVpcEndpointAwsService(String name,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The name of the service.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final GatewayVpcEndpointAwsService DYNAMODB
@Stability(value=Stable) public static final GatewayVpcEndpointAwsService S3
protected GatewayVpcEndpointAwsService(software.amazon.jsii.JsiiObjectRef objRef)
protected GatewayVpcEndpointAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public GatewayVpcEndpointAwsService(@NotNull
String name,
@Nullable
String prefix)
name - This parameter is required.prefix - @Stability(value=Stable)
public GatewayVpcEndpointAwsService(@NotNull
String name)
name - This parameter is required.@Stability(value=Stable) @NotNull public String getName()
getName in interface IGatewayVpcEndpointServiceCopyright © 2022. All rights reserved.