InterfaceVpcEndpointOptions

class aws_cdk.aws_ec2.InterfaceVpcEndpointOptions(*, service, open=None, private_dns_enabled=None, security_groups=None, subnets=None)

Bases: object

__init__(*, service, open=None, private_dns_enabled=None, security_groups=None, subnets=None)

Options to add an interface endpoint to a VPC.

Parameters
  • service (IInterfaceVpcEndpointService) – The service to use for this interface VPC endpoint.

  • open (Optional[bool]) – Whether to automatically allow VPC traffic to the endpoint. If enabled, all traffic to the endpoint from within the VPC will be automatically allowed. This is done based on the VPC’s CIDR range. Default: true

  • private_dns_enabled (Optional[bool]) – Whether to associate a private hosted zone with the specified VPC. This allows you to make requests to the service using its default DNS hostname. Default: set by the instance of IInterfaceVpcEndpointService, or true if not defined by the instance of IInterfaceVpcEndpointService

  • security_groups (Optional[List[ISecurityGroup]]) – The security groups to associate with this interface VPC endpoint. Default: - a new security group is created

  • subnets (Optional[SubnetSelection]) – The subnets in which to create an endpoint network interface. At most one per availability zone. Default: - private subnets

Attributes

open

Whether to automatically allow VPC traffic to the endpoint.

If enabled, all traffic to the endpoint from within the VPC will be automatically allowed. This is done based on the VPC’s CIDR range.

default :default: true

Return type

Optional[bool]

private_dns_enabled

Whether to associate a private hosted zone with the specified VPC.

This allows you to make requests to the service using its default DNS hostname.

default :default:

set by the instance of IInterfaceVpcEndpointService, or true if not defined by the instance of IInterfaceVpcEndpointService

Return type

Optional[bool]

security_groups

The security groups to associate with this interface VPC endpoint.

default :default: - a new security group is created

Return type

Optional[List[ISecurityGroup]]

service

The service to use for this interface VPC endpoint.

Return type

IInterfaceVpcEndpointService

subnets

The subnets in which to create an endpoint network interface.

At most one per availability zone.

default :default: - private subnets

Return type

Optional[SubnetSelection]