Class CfnPrincipalPermissions.Builder

java.lang.Object
software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrincipalPermissions>
Enclosing class:
CfnPrincipalPermissions

@Stability(Stable) public static final class CfnPrincipalPermissions.Builder extends Object implements software.amazon.jsii.Builder<CfnPrincipalPermissions>
A fluent builder for CfnPrincipalPermissions.
  • Method Details

    • create

      @Stability(Stable) public static CfnPrincipalPermissions.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 CfnPrincipalPermissions.Builder.
    • permissions

      @Stability(Stable) public CfnPrincipalPermissions.Builder permissions(List<String> permissions)
      The permissions granted or revoked.

      Parameters:
      permissions - The permissions granted or revoked. This parameter is required.
      Returns:
      this
    • permissionsWithGrantOption

      @Stability(Stable) public CfnPrincipalPermissions.Builder permissionsWithGrantOption(List<String> permissionsWithGrantOption)
      Indicates the ability to grant permissions (as a subset of permissions granted).

      Parameters:
      permissionsWithGrantOption - Indicates the ability to grant permissions (as a subset of permissions granted). This parameter is required.
      Returns:
      this
    • principal

      @Stability(Stable) public CfnPrincipalPermissions.Builder principal(IResolvable principal)
      The principal to be granted a permission.

      Parameters:
      principal - The principal to be granted a permission. This parameter is required.
      Returns:
      this
    • principal

      The principal to be granted a permission.

      Parameters:
      principal - The principal to be granted a permission. This parameter is required.
      Returns:
      this
    • resource

      @Stability(Stable) public CfnPrincipalPermissions.Builder resource(IResolvable resource)
      The resource to be granted or revoked permissions.

      Parameters:
      resource - The resource to be granted or revoked permissions. This parameter is required.
      Returns:
      this
    • resource

      @Stability(Stable) public CfnPrincipalPermissions.Builder resource(CfnPrincipalPermissions.ResourceProperty resource)
      The resource to be granted or revoked permissions.

      Parameters:
      resource - The resource to be granted or revoked permissions. This parameter is required.
      Returns:
      this
    • catalog

      @Stability(Stable) public CfnPrincipalPermissions.Builder catalog(String catalog)
      The identifier for the Data Catalog .

      By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      Parameters:
      catalog - The identifier for the Data Catalog . This parameter is required.
      Returns:
      this
    • build

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