InterfaceVpcEndpointAwsService

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

Bases: object

An AWS service for an interface VPC endpoint.

ExampleMetadata

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

Example:

# Add gateway endpoints when creating the VPC
vpc = ec2.Vpc(self, "MyVpc",
    gateway_endpoints={
        "S3": cdk.aws_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

ACCESS_ANALYZER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ACCOUNT_MANAGEMENT = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
APIGATEWAY = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
APPLICATION_AUTOSCALING = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
APPLICATION_MIGRATION_SERVICE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
APP_MESH = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
APP_RUNNER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
ATHENA = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
AUDIT_MANAGER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
AUTOSCALING = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
AUTOSCALING_PLANS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
BATCH = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
BILLING_CONDUCTOR = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
BRAKET = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CLOUDFORMATION = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CLOUDHSM = <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>
CLOUD_DIRECTORY = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODEARTIFACT_API = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CODEARTIFACT_REPOSITORIES = <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>
CODESTAR_CONNECTIONS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
COMPREHEND = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
COMPREHEND_MEDICAL = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
CONFIG = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
DATASYNC = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
DATA_EXCHANGE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
DEVOPS_GURU = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
EBS_DIRECT = <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>
ELASTICACHE = <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>
EMAIL_SMTP = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
EMR = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
EMR_EKS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
EMR_SERVERLESS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
FAULT_INJECTION_SIMULATOR = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
FRAUD_DETECTOR = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
GLUE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
GLUE_DATABREW = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
GRAFANA = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
GROUNDSTATION = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
HEALTHLAKE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
IAM_IDENTITY_CENTER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
IAM_ROLES_ANYWHERE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
IMAGE_BUILDER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
INSPECTOR = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
IOT_CORE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
IOT_GREENGRASS = <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>
PRIVATE_CERTIFICATE_AUTHORITY = <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>
ROBOMAKER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
S3 = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
S3_OUTPOSTS = <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>
SAGEMAKER_STUDIO = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SECRETS_MANAGER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SECURITYHUB = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SERVICE_CATALOG = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SES = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
SNOW_DEVICE_MANAGEMENT = <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>
TEXTRACT = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
TEXTRACT_FIPS = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
TRANSCRIBE = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
TRANSFER = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
WORKSPACES = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
XRAY = <aws_cdk.aws_ec2.InterfaceVpcEndpointAwsService object>
name

The name of the service.

e.g. com.amazonaws.us-east-1.ecs

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]

short_name

The short name of the service.

e.g. ecs

Return type

str