Class CfnVPCEndpointServicePermissions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCEndpointServicePermissions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpointServicePermissions>
- Enclosing class:
- CfnVPCEndpointServicePermissions
@Stability(Stable)
public static final class CfnVPCEndpointServicePermissions.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCEndpointServicePermissions>
A fluent builder for
CfnVPCEndpointServicePermissions
.-
Method Summary
Modifier and TypeMethodDescriptionallowedPrincipals
(List<String> allowedPrincipals) The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and AWS accounts ).build()
The ID of the service.
-
Method Details
-
create
@Stability(Stable) public static CfnVPCEndpointServicePermissions.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnVPCEndpointServicePermissions.Builder
.
-
serviceId
The ID of the service.- Parameters:
serviceId
- The ID of the service. This parameter is required.- Returns:
this
-
allowedPrincipals
@Stability(Stable) public CfnVPCEndpointServicePermissions.Builder allowedPrincipals(List<String> allowedPrincipals) 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.
- Parameters:
allowedPrincipals
- The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and AWS accounts ). This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCEndpointServicePermissions>
- Returns:
- a newly built instance of
CfnVPCEndpointServicePermissions
.
-