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