InterfaceVpcEndpointService

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

Bases: object

A custom-hosted service for an interface VPC endpoint.

Example:

# vpc is of type 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.

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]