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 Summary
Modifier and TypeMethodDescriptionbuild()
The identifier for the Data Catalog .permissions
(List<String> permissions) The permissions granted or revoked.permissionsWithGrantOption
(List<String> permissionsWithGrantOption) Indicates the ability to grant permissions (as a subset of permissions granted).principal
(IResolvable principal) The principal to be granted a permission.The principal to be granted a permission.resource
(IResolvable resource) The resource to be granted or revoked permissions.The resource to be granted or revoked permissions.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnPrincipalPermissions.Builder
.
-
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
The principal to be granted a permission.- Parameters:
principal
- The principal to be granted a permission. This parameter is required.- Returns:
this
-
principal
@Stability(Stable) public CfnPrincipalPermissions.Builder principal(CfnPrincipalPermissions.DataLakePrincipalProperty principal) The principal to be granted a permission.- Parameters:
principal
- The principal to be granted a permission. This parameter is required.- Returns:
this
-
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrincipalPermissions>
- Returns:
- a newly built instance of
CfnPrincipalPermissions
.
-