@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.416Z") @Stability(value=Stable) public class GatewayVpcEndpoint extends VpcEndpoint implements IGatewayVpcEndpoint
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());
| Modifier and Type | Class and Description |
|---|---|
static class |
GatewayVpcEndpoint.Builder
A fluent builder for
GatewayVpcEndpoint. |
software.amazon.jsii.JsiiObject.InitializationModeIGatewayVpcEndpoint.Jsii$Default, IGatewayVpcEndpoint.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
GatewayVpcEndpoint(software.constructs.Construct scope,
String id,
GatewayVpcEndpointProps props) |
protected |
GatewayVpcEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GatewayVpcEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IGatewayVpcEndpoint |
fromGatewayVpcEndpointId(software.constructs.Construct scope,
String id,
String gatewayVpcEndpointId) |
String |
getVpcEndpointCreationTimestamp()
The date and time the gateway VPC endpoint was created.
|
List<String> |
getVpcEndpointDnsEntries() |
String |
getVpcEndpointId()
The gateway VPC endpoint identifier.
|
List<String> |
getVpcEndpointNetworkInterfaceIds() |
addToPolicy, getPolicyDocument, setPolicyDocumentapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected GatewayVpcEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected GatewayVpcEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public GatewayVpcEndpoint(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
GatewayVpcEndpointProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IGatewayVpcEndpoint fromGatewayVpcEndpointId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String gatewayVpcEndpointId)
scope - This parameter is required.id - This parameter is required.gatewayVpcEndpointId - This parameter is required.@Stability(value=Stable) @NotNull public String getVpcEndpointCreationTimestamp()
@Stability(value=Stable) @NotNull public List<String> getVpcEndpointDnsEntries()
@Stability(value=Stable) @NotNull public String getVpcEndpointId()
getVpcEndpointId in interface IVpcEndpointgetVpcEndpointId in class VpcEndpointCopyright © 2022. All rights reserved.