InterfaceVpcEndpointAwsService

class aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService(name, prefix=None, port=None)

Bases: object

An AWS service for an interface VPC endpoint.

ExampleMetadata

lit=test/integ.vpc-endpoint.lit.ts infused

Example:

# Add gateway endpoints when creating the VPC
vpc = ec2.Vpc(self, "MyVpc",
    gateway_endpoints={
        "S3": ec2.GatewayVpcEndpointOptions(
            service=ec2.GatewayVpcEndpointAwsService.S3
        )
    }
)

# Alternatively gateway endpoints can be added on the VPC
dynamo_db_endpoint = vpc.add_gateway_endpoint("DynamoDbEndpoint",
    service=ec2.GatewayVpcEndpointAwsService.DYNAMODB
)

# This allows to customize the endpoint policy
dynamo_db_endpoint.add_to_policy(
    iam.PolicyStatement( # Restrict to listing and describing tables
        principals=[iam.AnyPrincipal()],
        actions=["dynamodb:DescribeTable", "dynamodb:ListTables"],
        resources=["*"]))

# Add an interface endpoint
vpc.add_interface_endpoint("EcrDockerEndpoint",
    service=ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER
)
Parameters
  • name (str) –

  • prefix (Optional[str]) –

  • port (Union[int, float, None]) –

Attributes

APIGATEWAY = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ATHENA = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CLOUDFORMATION = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CLOUDTRAIL = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CLOUDWATCH = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CLOUDWATCH_EVENTS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CLOUDWATCH_LOGS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODEBUILD = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODEBUILD_FIPS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODECOMMIT = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODECOMMIT_FIPS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODECOMMIT_GIT = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODECOMMIT_GIT_FIPS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODEGURU_PROFILER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODEGURU_REVIEWER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODEPIPELINE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CONFIG = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
EC2 = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
EC2_MESSAGES = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ECR = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ECR_DOCKER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ECS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ECS_AGENT = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ECS_TELEMETRY = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ELASTIC_FILESYSTEM = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ELASTIC_FILESYSTEM_FIPS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ELASTIC_INFERENCE_RUNTIME = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ELASTIC_LOAD_BALANCING = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
GLUE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
KEYSPACES = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
KINESIS_FIREHOSE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
KINESIS_STREAMS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
KMS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
LAMBDA_ = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
RDS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
RDS_DATA = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
REKOGNITION = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
REKOGNITION_FIPS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SAGEMAKER_API = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SAGEMAKER_NOTEBOOK = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SAGEMAKER_RUNTIME = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SAGEMAKER_RUNTIME_FIPS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SECRETS_MANAGER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SERVICE_CATALOG = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SNS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SQS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SSM = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SSM_MESSAGES = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
STEP_FUNCTIONS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
STORAGE_GATEWAY = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
STS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
TRANSCRIBE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
TRANSFER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
XRAY = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
name

The name of the service.

Return type

str

port

The port of the service.

Return type

Union[int, float]

private_dns_default

Whether Private DNS is supported by default.

Return type

Optional[bool]