Class GatewayVpcEndpoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.ec2.VpcEndpoint
software.amazon.awscdk.services.ec2.GatewayVpcEndpoint
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IGatewayVpcEndpoint,IVpcEndpoint,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.319Z")
@Stability(Stable)
public class GatewayVpcEndpoint
extends VpcEndpoint
implements IGatewayVpcEndpoint
A gateway VPC endpoint.
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());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IGatewayVpcEndpoint
IGatewayVpcEndpoint.Jsii$Default, IGatewayVpcEndpoint.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVpcEndpoint
IVpcEndpoint.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGatewayVpcEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedGatewayVpcEndpoint(software.amazon.jsii.JsiiObjectRef objRef) GatewayVpcEndpoint(software.constructs.Construct scope, String id, GatewayVpcEndpointProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IGatewayVpcEndpointfromGatewayVpcEndpointId(software.constructs.Construct scope, String id, String gatewayVpcEndpointId) The date and time the gateway VPC endpoint was created.The gateway VPC endpoint identifier.Methods inherited from class software.amazon.awscdk.services.ec2.VpcEndpoint
addToPolicy, getPolicyDocument, setPolicyDocumentMethods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
GatewayVpcEndpoint
protected GatewayVpcEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
GatewayVpcEndpoint
protected GatewayVpcEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
GatewayVpcEndpoint
@Stability(Stable) public GatewayVpcEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull GatewayVpcEndpointProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromGatewayVpcEndpointId
@Stability(Stable) @NotNull public static IGatewayVpcEndpoint fromGatewayVpcEndpointId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String gatewayVpcEndpointId) - Parameters:
scope- This parameter is required.id- This parameter is required.gatewayVpcEndpointId- This parameter is required.
-
getVpcEndpointCreationTimestamp
The date and time the gateway VPC endpoint was created. -
getVpcEndpointDnsEntries
-
getVpcEndpointId
The gateway VPC endpoint identifier.- Specified by:
getVpcEndpointIdin interfaceIVpcEndpoint- Specified by:
getVpcEndpointIdin classVpcEndpoint
-
getVpcEndpointNetworkInterfaceIds
-