@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:53.335Z") 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());
IGatewayVpcEndpointService.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(java.lang.String name,
java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
The name of the service.
|
public static final GatewayVpcEndpointAwsService DYNAMODB
public static final GatewayVpcEndpointAwsService S3
protected GatewayVpcEndpointAwsService(software.amazon.jsii.JsiiObjectRef objRef)
protected GatewayVpcEndpointAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public GatewayVpcEndpointAwsService(java.lang.String name, java.lang.String prefix)
name
- This parameter is required.prefix
- public java.lang.String getName()
getName
in interface IGatewayVpcEndpointService