Class CfnVPCEndpointServicePermissionsProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCEndpointServicePermissionsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpointServicePermissionsProps>
- Enclosing interface:
CfnVPCEndpointServicePermissionsProps
@Stability(Stable)
public static final class CfnVPCEndpointServicePermissionsProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCEndpointServicePermissionsProps>
A builder for
CfnVPCEndpointServicePermissionsProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowedPrincipals
(List<String> allowedPrincipals) Sets the value ofCfnVPCEndpointServicePermissionsProps.getAllowedPrincipals()
build()
Builds the configured instance.Sets the value ofCfnVPCEndpointServicePermissionsProps.getServiceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serviceId
Sets the value ofCfnVPCEndpointServicePermissionsProps.getServiceId()
- Parameters:
serviceId
- The ID of the service. This parameter is required.- Returns:
this
-
allowedPrincipals
@Stability(Stable) public CfnVPCEndpointServicePermissionsProps.Builder allowedPrincipals(List<String> allowedPrincipals) Sets the value ofCfnVPCEndpointServicePermissionsProps.getAllowedPrincipals()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCEndpointServicePermissionsProps>
- Returns:
- a new instance of
CfnVPCEndpointServicePermissionsProps
- Throws:
NullPointerException
- if any required attribute was not provided
-