InterfaceVpcEndpointService

class aws_cdk.aws_ec2.InterfaceVpcEndpointService(name, port=None)

Bases: object

A custom-hosted service for an interface VPC endpoint.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc


ec2.InterfaceVpcEndpoint(self, "VPC Endpoint",
    vpc=vpc,
    service=ec2.InterfaceVpcEndpointService("com.amazonaws.vpce.us-east-1.vpce-svc-uuddlrlrbastrtsvc", 443),
    # Choose which availability zones to place the VPC endpoint in, based on
    # available AZs
    subnets=ec2.SubnetSelection(
        availability_zones=["us-east-1a", "us-east-1c"]
    )
)
Parameters:
  • name (str)

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

Attributes

name

The name of the service.

port

The port of the service.

private_dns_default

Whether Private DNS is supported by default.