Class InterfaceVpcEndpointAwsService
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService
- All Implemented Interfaces:
IInterfaceVpcEndpointService,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.430Z")
@Stability(Stable)
public class InterfaceVpcEndpointAwsService
extends software.amazon.jsii.JsiiObject
implements IInterfaceVpcEndpointService
An AWS service for an interface 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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IInterfaceVpcEndpointService
IInterfaceVpcEndpointService.Jsii$Default, IInterfaceVpcEndpointService.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsServicestatic final InterfaceVpcEndpointAwsService -
Constructor Summary
ConstructorsModifierConstructorDescriptionInterfaceVpcEndpointAwsService(String name, String prefix) InterfaceVpcEndpointAwsService(String name, String prefix, Number port) protectedInterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedInterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
APIGATEWAY
-
ATHENA
-
CLOUDFORMATION
-
CLOUDTRAIL
-
CLOUDWATCH
-
CLOUDWATCH_EVENTS
-
CLOUDWATCH_LOGS
-
CODEBUILD
-
CODEBUILD_FIPS
-
CODECOMMIT
-
CODECOMMIT_FIPS
-
CODECOMMIT_GIT
-
CODECOMMIT_GIT_FIPS
-
CODEGURU_PROFILER
-
CODEGURU_REVIEWER
-
CODEPIPELINE
-
CONFIG
-
EC2
-
EC2_MESSAGES
-
ECR
-
ECR_DOCKER
-
ECS
-
ECS_AGENT
-
ECS_TELEMETRY
-
ELASTIC_FILESYSTEM
-
ELASTIC_FILESYSTEM_FIPS
-
ELASTIC_INFERENCE_RUNTIME
-
ELASTIC_LOAD_BALANCING
-
GLUE
-
KEYSPACES
-
KINESIS_FIREHOSE
-
KINESIS_STREAMS
-
KMS
-
LAMBDA
-
RDS
-
RDS_DATA
-
REKOGNITION
-
REKOGNITION_FIPS
-
SAGEMAKER_API
-
SAGEMAKER_NOTEBOOK
-
SAGEMAKER_RUNTIME
-
SAGEMAKER_RUNTIME_FIPS
-
SECRETS_MANAGER
-
SERVICE_CATALOG
-
SNS
-
SQS
-
SSM
-
SSM_MESSAGES
-
STEP_FUNCTIONS
-
STORAGE_GATEWAY
-
STS
-
TRANSCRIBE
-
TRANSFER
-
XRAY
-
-
Constructor Details
-
InterfaceVpcEndpointAwsService
protected InterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObjectRef objRef) -
InterfaceVpcEndpointAwsService
protected InterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
InterfaceVpcEndpointAwsService
@Stability(Stable) public InterfaceVpcEndpointAwsService(@NotNull String name, @Nullable String prefix, @Nullable Number port) - Parameters:
name- This parameter is required.prefix-port-
-
InterfaceVpcEndpointAwsService
@Stability(Stable) public InterfaceVpcEndpointAwsService(@NotNull String name, @Nullable String prefix) - Parameters:
name- This parameter is required.prefix-
-
InterfaceVpcEndpointAwsService
- Parameters:
name- This parameter is required.
-
-
Method Details
-
getName
The name of the service.- Specified by:
getNamein interfaceIInterfaceVpcEndpointService
-
getPort
The port of the service.- Specified by:
getPortin interfaceIInterfaceVpcEndpointService
-
getPrivateDnsDefault
Whether Private DNS is supported by default.- Specified by:
getPrivateDnsDefaultin interfaceIInterfaceVpcEndpointService
-