@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.462Z") @Stability(value=Stable) public class InterfaceVpcEndpointAwsService extends software.amazon.jsii.JsiiObject implements IInterfaceVpcEndpointService
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());
software.amazon.jsii.JsiiObject.InitializationModeIInterfaceVpcEndpointService.Jsii$Default, IInterfaceVpcEndpointService.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
InterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
InterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObjectRef objRef) |
|
InterfaceVpcEndpointAwsService(String name) |
|
InterfaceVpcEndpointAwsService(String name,
String prefix) |
|
InterfaceVpcEndpointAwsService(String name,
String prefix,
Number port) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The name of the service.
|
Number |
getPort()
The port of the service.
|
Boolean |
getPrivateDnsDefault()
Whether Private DNS is supported by default.
|
String |
getShortName()
The short name of the service.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService APIGATEWAY
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService APPLICATION_AUTOSCALING
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ATHENA
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService AUTOSCALING
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService AUTOSCALING_PLANS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService BATCH
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CLOUDFORMATION
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CLOUDTRAIL
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CLOUDWATCH
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CLOUDWATCH_EVENTS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CLOUDWATCH_LOGS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODEARTIFACT_API
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODEARTIFACT_REPOSITORIES
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODEBUILD
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODEBUILD_FIPS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODECOMMIT
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODECOMMIT_FIPS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODECOMMIT_GIT
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODECOMMIT_GIT_FIPS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODEGURU_PROFILER
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODEGURU_REVIEWER
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CODEPIPELINE
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService CONFIG
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService EC2
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService EC2_MESSAGES
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ECR
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ECR_DOCKER
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ECS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ECS_AGENT
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ECS_TELEMETRY
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ELASTIC_FILESYSTEM
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ELASTIC_FILESYSTEM_FIPS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ELASTIC_INFERENCE_RUNTIME
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService ELASTIC_LOAD_BALANCING
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService GLUE
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService KEYSPACES
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService KINESIS_FIREHOSE
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService KINESIS_STREAMS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService KMS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService LAMBDA
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService RDS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService RDS_DATA
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService REKOGNITION
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService REKOGNITION_FIPS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService S3
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SAGEMAKER_API
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SAGEMAKER_NOTEBOOK
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SAGEMAKER_RUNTIME
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SAGEMAKER_RUNTIME_FIPS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SAGEMAKER_STUDIO
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SECRETS_MANAGER
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SERVICE_CATALOG
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SNS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SQS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SSM
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService SSM_MESSAGES
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService STEP_FUNCTIONS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService STORAGE_GATEWAY
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService STS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService TEXTRACT
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService TEXTRACT_FIPS
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService TRANSCRIBE
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService TRANSFER
@Stability(value=Stable) public static final InterfaceVpcEndpointAwsService XRAY
protected InterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObjectRef objRef)
protected InterfaceVpcEndpointAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public InterfaceVpcEndpointAwsService(@NotNull
String name,
@Nullable
String prefix,
@Nullable
Number port)
name - This parameter is required.prefix - port - @Stability(value=Stable)
public InterfaceVpcEndpointAwsService(@NotNull
String name,
@Nullable
String prefix)
name - This parameter is required.prefix - @Stability(value=Stable)
public InterfaceVpcEndpointAwsService(@NotNull
String name)
name - This parameter is required.@Stability(value=Stable) @NotNull public String getName()
e.g. com.amazonaws.us-east-1.ecs
getName in interface IInterfaceVpcEndpointService@Stability(value=Stable) @NotNull public Number getPort()
getPort in interface IInterfaceVpcEndpointService@Stability(value=Stable) @NotNull public String getShortName()
e.g. ecs
@Stability(value=Stable) @Nullable public Boolean getPrivateDnsDefault()
getPrivateDnsDefault in interface IInterfaceVpcEndpointServiceCopyright © 2022. All rights reserved.