Class CfnVPCEndpointServicePermissionsProps
Properties for defining a CfnVPCEndpointServicePermissions
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVPCEndpointServicePermissionsProps : ICfnVPCEndpointServicePermissionsProps
Syntax (vb)
Public Class CfnVPCEndpointServicePermissionsProps Implements ICfnVPCEndpointServicePermissionsProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnVPCEndpointServicePermissionsProps = new CfnVPCEndpointServicePermissionsProps {
ServiceId = "serviceId",
// the properties below are optional
AllowedPrincipals = new [] { "allowedPrincipals" }
};
Synopsis
Constructors
CfnVPCEndpointServicePermissionsProps() | Properties for defining a |
Properties
AllowedPrincipals | The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and AWS accounts ). |
ServiceId | The ID of the service. |
Constructors
CfnVPCEndpointServicePermissionsProps()
Properties for defining a CfnVPCEndpointServicePermissions
.
public CfnVPCEndpointServicePermissionsProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnVPCEndpointServicePermissionsProps = new CfnVPCEndpointServicePermissionsProps {
ServiceId = "serviceId",
// the properties below are optional
AllowedPrincipals = new [] { "allowedPrincipals" }
};
Properties
AllowedPrincipals
The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and AWS accounts ).
public string[]? AllowedPrincipals { get; set; }
Property Value
string[]
Remarks
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.
ServiceId
The ID of the service.
public string ServiceId { get; set; }