aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService

class InterfaceVpcEndpointService

LanguageType name
.NETAmazon.CDK.AWS.EC2.InterfaceVpcEndpointService
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#InterfaceVpcEndpointService
Javasoftware.amazon.awscdk.services.ec2.InterfaceVpcEndpointService
Pythonaws_cdk.aws_ec2.InterfaceVpcEndpointService
TypeScript (source)aws-cdk-lib » aws_ec2 » InterfaceVpcEndpointService

Implements IInterfaceVpcEndpointService

A custom-hosted service for an interface VPC endpoint.

Example

declare const vpc: ec2.Vpc;

new ec2.InterfaceVpcEndpoint(this, 'VPC Endpoint', {
  vpc,
  service: new 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: {
    availabilityZones: ['us-east-1a', 'us-east-1c']
  }
});

Initializer

new InterfaceVpcEndpointService(name: string, port?: number)

Parameters

  • name string — The name of the service.
  • port number — The port of the service.

Properties

NameTypeDescription
namestringThe name of the service.
portnumberThe port of the service.
privateDnsDefault?booleanWhether Private DNS is supported by default.

name

Type: string

The name of the service.


port

Type: number

The port of the service.


privateDnsDefault?

Type: boolean (optional)

Whether Private DNS is supported by default.