GatewayVpcEndpointProps

class aws_cdk.aws_ec2.GatewayVpcEndpointProps(*, service, subnets=None, vpc)

Bases: aws_cdk.aws_ec2.GatewayVpcEndpointOptions

Construction properties for a GatewayVpcEndpoint.

Parameters
  • service (IGatewayVpcEndpointService) – The service to use for this gateway VPC endpoint.

  • subnets (Optional[List[SubnetSelection]]) – Where to add endpoint routing. By default, this endpoint will be routable from all subnets in the VPC. Specify a list of subnet selection objects here to be more specific. Default: - All subnets in the VPC

  • vpc (IVpc) – The VPC network in which the gateway endpoint will be used.

Attributes

service

The service to use for this gateway VPC endpoint.

Return type

IGatewayVpcEndpointService

subnets

Where to add endpoint routing.

By default, this endpoint will be routable from all subnets in the VPC. Specify a list of subnet selection objects here to be more specific.

Default
  • All subnets in the VPC

Example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
vpc.add_gateway_endpoint("DynamoDbEndpoint",
    service=ec2.GatewayVpcEndpointAwsService.DYNAMODB,
    # Add only to ISOLATED subnets
    subnets=[{"subnet_type": ec2.SubnetType.ISOLATED}
    ]
)
Return type

Optional[List[SubnetSelection]]

vpc

The VPC network in which the gateway endpoint will be used.

Return type

IVpc