Class CfnPrincipalPermissions.ResourceProperty
A structure for the resource.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.LakeFormation
Assembly: Amazon.CDK.AWS.LakeFormation.dll
Syntax (csharp)
public class ResourceProperty : Object, CfnPrincipalPermissions.IResourceProperty
Syntax (vb)
Public Class ResourceProperty
Inherits Object
Implements CfnPrincipalPermissions.IResourceProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.LakeFormation;
var catalog;
var tableWildcard;
var resourceProperty = new ResourceProperty {
Catalog = catalog,
Database = new DatabaseResourceProperty {
CatalogId = "catalogId",
Name = "name"
},
DataCellsFilter = new DataCellsFilterResourceProperty {
DatabaseName = "databaseName",
Name = "name",
TableCatalogId = "tableCatalogId",
TableName = "tableName"
},
DataLocation = new DataLocationResourceProperty {
CatalogId = "catalogId",
ResourceArn = "resourceArn"
},
LfTag = new LFTagKeyResourceProperty {
CatalogId = "catalogId",
TagKey = "tagKey",
TagValues = new [] { "tagValues" }
},
LfTagPolicy = new LFTagPolicyResourceProperty {
CatalogId = "catalogId",
Expression = new [] { new LFTagProperty {
TagKey = "tagKey",
TagValues = new [] { "tagValues" }
} },
ResourceType = "resourceType"
},
Table = new TableResourceProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
// the properties below are optional
Name = "name",
TableWildcard = tableWildcard
},
TableWithColumns = new TableWithColumnsResourceProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
Name = "name",
// the properties below are optional
ColumnNames = new [] { "columnNames" },
ColumnWildcard = new ColumnWildcardProperty {
ExcludedColumnNames = new [] { "excludedColumnNames" }
}
}
};
Synopsis
Constructors
ResourceProperty() |
Properties
Catalog | The identifier for the Data Catalog. |
Database | The database for the resource. |
DataCellsFilter | A data cell filter. |
DataLocation | The location of an Amazon S3 path where permissions are granted or revoked. |
LfTag | The LF-tag key and values attached to a resource. |
LfTagPolicy | A list of LF-tag conditions that define a resource's LF-tag policy. |
Table | The table for the resource. |
TableWithColumns | The table with columns for the resource. |
Constructors
ResourceProperty()
public ResourceProperty()
Properties
Catalog
The identifier for the Data Catalog.
public object Catalog { get; set; }
Property Value
System.Object
Remarks
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.
Database
The database for the resource.
public object Database { get; set; }
Property Value
System.Object
Remarks
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.
DataCellsFilter
A data cell filter.
public object DataCellsFilter { get; set; }
Property Value
System.Object
Remarks
DataLocation
The location of an Amazon S3 path where permissions are granted or revoked.
public object DataLocation { get; set; }
Property Value
System.Object
Remarks
LfTag
The LF-tag key and values attached to a resource.
public object LfTag { get; set; }
Property Value
System.Object
Remarks
LfTagPolicy
A list of LF-tag conditions that define a resource's LF-tag policy.
public object LfTagPolicy { get; set; }
Property Value
System.Object
Remarks
Table
The table for the resource.
public object Table { get; set; }
Property Value
System.Object
Remarks
A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
TableWithColumns
The table with columns for the resource.
public object TableWithColumns { get; set; }
Property Value
System.Object
Remarks
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.