Class CfnPrincipalPermissionsProps.Builder
java.lang.Object
software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissionsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrincipalPermissionsProps>
- Enclosing interface:
- CfnPrincipalPermissionsProps
@Stability(Stable)
public static final class CfnPrincipalPermissionsProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrincipalPermissionsProps>
A builder for
CfnPrincipalPermissionsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPrincipalPermissionsProps.getCatalog()permissions(List<String> permissions) Sets the value ofCfnPrincipalPermissionsProps.getPermissions()permissionsWithGrantOption(List<String> permissionsWithGrantOption) Sets the value ofCfnPrincipalPermissionsProps.getPermissionsWithGrantOption()principal(IResolvable principal) Sets the value ofCfnPrincipalPermissionsProps.getPrincipal()Sets the value ofCfnPrincipalPermissionsProps.getPrincipal()resource(IResolvable resource) Sets the value ofCfnPrincipalPermissionsProps.getResource()Sets the value ofCfnPrincipalPermissionsProps.getResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
permissions
@Stability(Stable) public CfnPrincipalPermissionsProps.Builder permissions(List<String> permissions) Sets the value ofCfnPrincipalPermissionsProps.getPermissions()- Parameters:
permissions- The permissions granted or revoked. This parameter is required.- Returns:
this
-
permissionsWithGrantOption
@Stability(Stable) public CfnPrincipalPermissionsProps.Builder permissionsWithGrantOption(List<String> permissionsWithGrantOption) Sets the value ofCfnPrincipalPermissionsProps.getPermissionsWithGrantOption()- Parameters:
permissionsWithGrantOption- Indicates the ability to grant permissions (as a subset of permissions granted). This parameter is required.- Returns:
this
-
principal
Sets the value ofCfnPrincipalPermissionsProps.getPrincipal()- Parameters:
principal- The principal to be granted a permission. This parameter is required.- Returns:
this
-
principal
@Stability(Stable) public CfnPrincipalPermissionsProps.Builder principal(CfnPrincipalPermissions.DataLakePrincipalProperty principal) Sets the value ofCfnPrincipalPermissionsProps.getPrincipal()- Parameters:
principal- The principal to be granted a permission. This parameter is required.- Returns:
this
-
resource
Sets the value ofCfnPrincipalPermissionsProps.getResource()- Parameters:
resource- The resource to be granted or revoked permissions. This parameter is required.- Returns:
this
-
resource
@Stability(Stable) public CfnPrincipalPermissionsProps.Builder resource(CfnPrincipalPermissions.ResourceProperty resource) Sets the value ofCfnPrincipalPermissionsProps.getResource()- Parameters:
resource- The resource to be granted or revoked permissions. This parameter is required.- Returns:
this
-
catalog
Sets the value ofCfnPrincipalPermissionsProps.getCatalog()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrincipalPermissionsProps>- Returns:
- a new instance of
CfnPrincipalPermissionsProps - Throws:
NullPointerException- if any required attribute was not provided
-