Class CfnPrincipalPermissions.ResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.ResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrincipalPermissions.ResourceProperty>
- Enclosing interface:
CfnPrincipalPermissions.ResourceProperty
@Stability(Stable)
public static final class CfnPrincipalPermissions.ResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrincipalPermissions.ResourceProperty>
A builder for
CfnPrincipalPermissions.ResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPrincipalPermissions.ResourceProperty.getCatalog()
database
(IResolvable database) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDatabase()
Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDatabase()
dataCellsFilter
(IResolvable dataCellsFilter) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataCellsFilter()
dataCellsFilter
(CfnPrincipalPermissions.DataCellsFilterResourceProperty dataCellsFilter) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataCellsFilter()
dataLocation
(IResolvable dataLocation) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataLocation()
Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataLocation()
lfTag
(IResolvable lfTag) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTag()
Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTag()
lfTagPolicy
(IResolvable lfTagPolicy) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTagPolicy()
Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTagPolicy()
table
(IResolvable table) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTable()
Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTable()
tableWithColumns
(IResolvable tableWithColumns) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTableWithColumns()
tableWithColumns
(CfnPrincipalPermissions.TableWithColumnsResourceProperty tableWithColumns) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTableWithColumns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
catalog
Sets the value ofCfnPrincipalPermissions.ResourceProperty.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 AWS Lake Formation environment.- Returns:
this
-
database
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder database(IResolvable database) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDatabase()
- Parameters:
database
- The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.- Returns:
this
-
database
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder database(CfnPrincipalPermissions.DatabaseResourceProperty database) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDatabase()
- Parameters:
database
- The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.- Returns:
this
-
dataCellsFilter
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder dataCellsFilter(IResolvable dataCellsFilter) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataCellsFilter()
- Parameters:
dataCellsFilter
- A data cell filter.- Returns:
this
-
dataCellsFilter
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder dataCellsFilter(CfnPrincipalPermissions.DataCellsFilterResourceProperty dataCellsFilter) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataCellsFilter()
- Parameters:
dataCellsFilter
- A data cell filter.- Returns:
this
-
dataLocation
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder dataLocation(IResolvable dataLocation) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataLocation()
- Parameters:
dataLocation
- The location of an Amazon S3 path where permissions are granted or revoked.- Returns:
this
-
dataLocation
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder dataLocation(CfnPrincipalPermissions.DataLocationResourceProperty dataLocation) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getDataLocation()
- Parameters:
dataLocation
- The location of an Amazon S3 path where permissions are granted or revoked.- Returns:
this
-
lfTag
Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTag()
- Parameters:
lfTag
- The LF-tag key and values attached to a resource.- Returns:
this
-
lfTag
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder lfTag(CfnPrincipalPermissions.LFTagKeyResourceProperty lfTag) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTag()
- Parameters:
lfTag
- The LF-tag key and values attached to a resource.- Returns:
this
-
lfTagPolicy
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder lfTagPolicy(IResolvable lfTagPolicy) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTagPolicy()
- Parameters:
lfTagPolicy
- A list of LF-tag conditions that define a resource's LF-tag policy.- Returns:
this
-
lfTagPolicy
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder lfTagPolicy(CfnPrincipalPermissions.LFTagPolicyResourceProperty lfTagPolicy) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getLfTagPolicy()
- Parameters:
lfTagPolicy
- A list of LF-tag conditions that define a resource's LF-tag policy.- Returns:
this
-
table
Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTable()
- Parameters:
table
- The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.- Returns:
this
-
table
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder table(CfnPrincipalPermissions.TableResourceProperty table) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTable()
- Parameters:
table
- The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.- Returns:
this
-
tableWithColumns
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder tableWithColumns(IResolvable tableWithColumns) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTableWithColumns()
- Parameters:
tableWithColumns
- The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.- Returns:
this
-
tableWithColumns
@Stability(Stable) public CfnPrincipalPermissions.ResourceProperty.Builder tableWithColumns(CfnPrincipalPermissions.TableWithColumnsResourceProperty tableWithColumns) Sets the value ofCfnPrincipalPermissions.ResourceProperty.getTableWithColumns()
- Parameters:
tableWithColumns
- The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrincipalPermissions.ResourceProperty>
- Returns:
- a new instance of
CfnPrincipalPermissions.ResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-