CfnVPCEndpointServicePermissionsProps

class aws_cdk.aws_ec2.CfnVPCEndpointServicePermissionsProps(*, service_id, allowed_principals=None)

Bases: object

Properties for defining a CfnVPCEndpointServicePermissions.

Parameters:
  • service_id (str) – The ID of the service.

  • allowed_principals (Optional[Sequence[str]]) – 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_vPCEndpoint_service_permissions_props = ec2.CfnVPCEndpointServicePermissionsProps(
    service_id="serviceId",

    # the properties below are optional
    allowed_principals=["allowedPrincipals"]
)

Attributes

allowed_principals

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-allowedprincipals

service_id

The ID of the service.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceid