VpcEndpointServiceProps

class aws_cdk.aws_ec2.VpcEndpointServiceProps(*, vpc_endpoint_service_load_balancers, acceptance_required=None, allowed_principals=None, contributor_insights=None)

Bases: object

Construction properties for a VpcEndpointService.

Parameters:
  • vpc_endpoint_service_load_balancers (Sequence[IVpcEndpointServiceLoadBalancer]) – One or more load balancers to host the VPC Endpoint Service.

  • acceptance_required (Optional[bool]) – Whether requests from service consumers to connect to the service through an endpoint must be accepted. Default: true

  • allowed_principals (Optional[Sequence[ArnPrincipal]]) – IAM users, IAM roles, or AWS accounts to allow inbound connections from. These principals can connect to your service using VPC endpoints. Takes a list of one or more ArnPrincipal. Default: - no principals

  • contributor_insights (Optional[bool]) – Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink. Default: false

ExampleMetadata:

infused

Example:

# network_load_balancer1: elbv2.NetworkLoadBalancer
# network_load_balancer2: elbv2.NetworkLoadBalancer


ec2.VpcEndpointService(self, "EndpointService",
    vpc_endpoint_service_load_balancers=[network_load_balancer1, network_load_balancer2],
    acceptance_required=True,
    allowed_principals=[iam.ArnPrincipal("arn:aws:iam::123456789012:root")],
    contributor_insights=True
)

Attributes

acceptance_required

Whether requests from service consumers to connect to the service through an endpoint must be accepted.

Default:

true

allowed_principals

IAM users, IAM roles, or AWS accounts to allow inbound connections from.

These principals can connect to your service using VPC endpoints. Takes a list of one or more ArnPrincipal.

Default:
  • no principals

contributor_insights

Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink.

Default:

false

vpc_endpoint_service_load_balancers

One or more load balancers to host the VPC Endpoint Service.