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