interface VpcEndpointServiceProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.VpcEndpointServiceProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#VpcEndpointServiceProps |
![]() | software.amazon.awscdk.services.ec2.VpcEndpointServiceProps |
![]() | aws_cdk.aws_ec2.VpcEndpointServiceProps |
![]() | aws-cdk-lib » aws_ec2 » VpcEndpointServiceProps |
Construction properties for a VpcEndpointService.
Example
declare const networkLoadBalancer1: elbv2.NetworkLoadBalancer;
declare const networkLoadBalancer2: elbv2.NetworkLoadBalancer;
new ec2.VpcEndpointService(this, 'EndpointService', {
vpcEndpointServiceLoadBalancers: [networkLoadBalancer1, networkLoadBalancer2],
acceptanceRequired: true,
allowedPrincipals: [new iam.ArnPrincipal('arn:aws:iam::123456789012:root')],
contributorInsights: true
});
Properties
Name | Type | Description |
---|---|---|
vpc | IVpc [] | One or more load balancers to host the VPC Endpoint Service. |
acceptance | boolean | Whether requests from service consumers to connect to the service through an endpoint must be accepted. |
allowed | Arn [] | IAM users, IAM roles, or AWS accounts to allow inbound connections from. |
contributor | boolean | Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink. |
vpcEndpointServiceLoadBalancers
Type:
IVpc
[]
One or more load balancers to host the VPC Endpoint Service.
acceptanceRequired?
Type:
boolean
(optional, default: true)
Whether requests from service consumers to connect to the service through an endpoint must be accepted.
allowedPrincipals?
Type:
Arn
[]
(optional, default: no 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.
contributorInsights?
Type:
boolean
(optional, default: false)
Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink.