@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:22.149Z") 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 . |
IGatewayVpcEndpoint.Jsii$Default, IGatewayVpcEndpoint.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
GatewayVpcEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GatewayVpcEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
|
GatewayVpcEndpoint(software.constructs.Construct scope,
java.lang.String id,
GatewayVpcEndpointProps props) |
Modifier and Type | Method and Description |
---|---|
static IGatewayVpcEndpoint |
fromGatewayVpcEndpointId(software.constructs.Construct scope,
java.lang.String id,
java.lang.String gatewayVpcEndpointId) |
java.lang.String |
getVpcEndpointCreationTimestamp()
The date and time the gateway VPC endpoint was created.
|
java.util.List<java.lang.String> |
getVpcEndpointDnsEntries() |
java.lang.String |
getVpcEndpointId()
The gateway VPC endpoint identifier.
|
java.util.List<java.lang.String> |
getVpcEndpointNetworkInterfaceIds() |
addToPolicy, getPolicyDocument, setPolicyDocument
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected GatewayVpcEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected GatewayVpcEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public GatewayVpcEndpoint(software.constructs.Construct scope, java.lang.String id, GatewayVpcEndpointProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IGatewayVpcEndpoint fromGatewayVpcEndpointId(software.constructs.Construct scope, java.lang.String id, java.lang.String gatewayVpcEndpointId)
scope
- This parameter is required.id
- This parameter is required.gatewayVpcEndpointId
- This parameter is required.public java.lang.String getVpcEndpointCreationTimestamp()
public java.util.List<java.lang.String> getVpcEndpointDnsEntries()
public java.lang.String getVpcEndpointId()
getVpcEndpointId
in interface IVpcEndpoint
getVpcEndpointId
in class VpcEndpoint
public java.util.List<java.lang.String> getVpcEndpointNetworkInterfaceIds()