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 Details

    • create

      @Stability(Stable) public static CfnVPCEndpointServicePermissions.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnVPCEndpointServicePermissions.Builder.
    • serviceId

      @Stability(Stable) public CfnVPCEndpointServicePermissions.Builder serviceId(String 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

      @Stability(Stable) public CfnVPCEndpointServicePermissions build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnVPCEndpointServicePermissions>
      Returns:
      a newly built instance of CfnVPCEndpointServicePermissions.