aws-cdk-lib.aws_ec2.CfnVPCEndpointServicePermissionsProps

interface CfnVPCEndpointServicePermissionsProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnVPCEndpointServicePermissionsProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnVPCEndpointServicePermissionsProps
Javasoftware.amazon.awscdk.services.ec2.CfnVPCEndpointServicePermissionsProps
Pythonaws_cdk.aws_ec2.CfnVPCEndpointServicePermissionsProps
TypeScript aws-cdk-lib » aws_ec2 » CfnVPCEndpointServicePermissionsProps

Properties for defining a CfnVPCEndpointServicePermissions.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnVPCEndpointServicePermissionsProps: ec2.CfnVPCEndpointServicePermissionsProps = {
  serviceId: 'serviceId',

  // the properties below are optional
  allowedPrincipals: ['allowedPrincipals'],
};

Properties

NameTypeDescription
serviceIdstringThe ID of the service.
allowedPrincipals?string[]The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and AWS accounts ).

serviceId

Type: string

The ID of the service.


allowedPrincipals?

Type: string[] (optional)

The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and AWS accounts ).

Permissions are granted to the principals in this list. To grant permissions to all principals, specify an asterisk (*). Permissions are revoked for principals not in this list. If the list is empty, then all permissions are revoked.