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
@Stability(Stable) public static CfnPrincipalPermissions.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
principal
The principal to be granted a permission.- Parameters:
principal
- The principal to be granted a permission. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrincipalPermissions>
- Returns:
- a newly built instance of
CfnPrincipalPermissions
.
-