VpcEndpointServiceProps

class aws_cdk.aws_ec2.VpcEndpointServiceProps(*, vpc_endpoint_service_load_balancers, acceptance_required=None, allowed_principals=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

ExampleMetadata

infused

Example:

# Example automatically generated from non-compiling source. May contain errors.
# 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")]
)

Attributes

acceptance_required

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

Default

true

Return type

Optional[bool]

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

Return type

Optional[List[ArnPrincipal]]

vpc_endpoint_service_load_balancers

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

Return type

List[IVpcEndpointServiceLoadBalancer]