CfnTagAssociationPropsMixin
- class aws_cdk.cfn_property_mixins.aws_lakeformation.CfnTagAssociationPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::LakeFormation::TagAssociationresource represents an assignment of an LF-tag to a Data Catalog resource (database, table, or column).During a stack operation, CloudFormation calls AWS Lake Formation
AddLFTagsToResourceAPI to create aTagAssociationresource and calls theRemoveLFTagsToResourceAPI to delete it.- See:
- CloudformationResource:
AWS::LakeFormation::TagAssociation
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lakeformation as lakeformation import aws_cdk as cdk # catalog: Any # merge_strategy: cdk.IMergeStrategy # table_wildcard: Any cfn_tag_association_props_mixin = lakeformation.CfnTagAssociationPropsMixin(lakeformation.CfnTagAssociationMixinProps( lf_tags=[lakeformation.CfnTagAssociationPropsMixin.LFTagPairProperty( catalog_id="catalogId", tag_key="tagKey", tag_values=["tagValues"] )], resource=lakeformation.CfnTagAssociationPropsMixin.ResourceProperty( catalog=catalog, database=lakeformation.CfnTagAssociationPropsMixin.DatabaseResourceProperty( catalog_id="catalogId", name="name" ), table=lakeformation.CfnTagAssociationPropsMixin.TableResourceProperty( catalog_id="catalogId", database_name="databaseName", name="name", table_wildcard=table_wildcard ), table_with_columns=lakeformation.CfnTagAssociationPropsMixin.TableWithColumnsResourceProperty( catalog_id="catalogId", column_names=["columnNames"], database_name="databaseName", name="name" ) ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::LakeFormation::TagAssociation.- Parameters:
props (
Union[CfnTagAssociationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['lfTags', 'resource']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
DatabaseResourceProperty
- class CfnTagAssociationPropsMixin.DatabaseResourceProperty(*, catalog_id=None, name=None)
Bases:
objectA structure for the database object.
- Parameters:
catalog_id (
Optional[str]) – The identifier for the Data Catalog . By default, it should be the account ID of the caller.name (
Optional[str]) – The name of the database resource. Unique to the Data Catalog.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lakeformation as lakeformation database_resource_property = lakeformation.CfnTagAssociationPropsMixin.DatabaseResourceProperty( catalog_id="catalogId", name="name" )
Attributes
- catalog_id
The identifier for the Data Catalog .
By default, it should be the account ID of the caller.
- name
The name of the database resource.
Unique to the Data Catalog.
LFTagPairProperty
- class CfnTagAssociationPropsMixin.LFTagPairProperty(*, catalog_id=None, tag_key=None, tag_values=None)
Bases:
objectA structure containing the catalog ID, tag key, and tag values of an LF-tag key-value pair.
- Parameters:
catalog_id (
Optional[str]) – The identifier for the Data Catalog . By default, it is the account ID of the caller.tag_key (
Optional[str]) – The key-name for the LF-tag.tag_values (
Optional[Sequence[str]]) – A list of possible values of the correspondingTagKeyof an LF-tag key-value pair.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lakeformation as lakeformation l_fTag_pair_property = lakeformation.CfnTagAssociationPropsMixin.LFTagPairProperty( catalog_id="catalogId", tag_key="tagKey", tag_values=["tagValues"] )
Attributes
- catalog_id
The identifier for the Data Catalog .
By default, it is the account ID of the caller.
- tag_key
The key-name for the LF-tag.
- tag_values
A list of possible values of the corresponding
TagKeyof an LF-tag key-value pair.
ResourceProperty
- class CfnTagAssociationPropsMixin.ResourceProperty(*, catalog=None, database=None, table=None, table_with_columns=None)
Bases:
objectA structure for the resource.
- Parameters:
catalog (
Any) – 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.database (
Union[IResolvable,DatabaseResourceProperty,Dict[str,Any],None]) – 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.table (
Union[IResolvable,TableResourceProperty,Dict[str,Any],None]) – 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.table_with_columns (
Union[IResolvable,TableWithColumnsResourceProperty,Dict[str,Any],None]) – 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.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lakeformation as lakeformation # catalog: Any # table_wildcard: Any resource_property = lakeformation.CfnTagAssociationPropsMixin.ResourceProperty( catalog=catalog, database=lakeformation.CfnTagAssociationPropsMixin.DatabaseResourceProperty( catalog_id="catalogId", name="name" ), table=lakeformation.CfnTagAssociationPropsMixin.TableResourceProperty( catalog_id="catalogId", database_name="databaseName", name="name", table_wildcard=table_wildcard ), table_with_columns=lakeformation.CfnTagAssociationPropsMixin.TableWithColumnsResourceProperty( catalog_id="catalogId", column_names=["columnNames"], database_name="databaseName", name="name" ) )
Attributes
- 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.
- 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.
- 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.
- table_with_columns
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.
TableResourceProperty
- class CfnTagAssociationPropsMixin.TableResourceProperty(*, catalog_id=None, database_name=None, name=None, table_wildcard=None)
Bases:
objectA structure for the table object.
A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
- Parameters:
catalog_id (
Optional[str]) – The identifier for the Data Catalog . By default, it is the account ID of the caller.database_name (
Optional[str]) – The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.name (
Optional[str]) – The name of the table.table_wildcard (
Any) – A wildcard object representing every table under a database.This is an object with no properties that effectively behaves as a true or false depending on whether not it is passed as a parameter. The valid inputs for a property with this type in either yaml or json is null or {}. At least one ofTableResource$NameorTableResource$TableWildcardis required.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lakeformation as lakeformation # table_wildcard: Any table_resource_property = lakeformation.CfnTagAssociationPropsMixin.TableResourceProperty( catalog_id="catalogId", database_name="databaseName", name="name", table_wildcard=table_wildcard )
Attributes
- catalog_id
The identifier for the Data Catalog .
By default, it is the account ID of the caller.
- database_name
The name of the database for the table.
Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.
- name
The name of the table.
- table_wildcard
A wildcard object representing every table under a database.This is an object with no properties that effectively behaves as a true or false depending on whether not it is passed as a parameter. The valid inputs for a property with this type in either yaml or json is null or {}.
At least one of
TableResource$NameorTableResource$TableWildcardis required.
TableWithColumnsResourceProperty
- class CfnTagAssociationPropsMixin.TableWithColumnsResourceProperty(*, catalog_id=None, column_names=None, database_name=None, name=None)
Bases:
objectA structure for a table with columns object. This object is only used when granting a SELECT permission.
This object must take a value for at least one of
ColumnsNames,ColumnsIndexes, orColumnsWildcard.- Parameters:
catalog_id (
Optional[str]) – A wildcard object representing every table under a database. At least one of TableResource$Name or TableResource$TableWildcard is required.column_names (
Optional[Sequence[str]]) – The list of column names for the table. At least one ofColumnNamesorColumnWildcardis required.database_name (
Optional[str]) – The name of the database for the table with columns 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 privileges to a principal.name (
Optional[str]) – The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lakeformation as lakeformation table_with_columns_resource_property = lakeformation.CfnTagAssociationPropsMixin.TableWithColumnsResourceProperty( catalog_id="catalogId", column_names=["columnNames"], database_name="databaseName", name="name" )
Attributes
- catalog_id
A wildcard object representing every table under a database.
At least one of TableResource$Name or TableResource$TableWildcard is required.
- column_names
The list of column names for the table.
At least one of
ColumnNamesorColumnWildcardis required.
- database_name
The name of the database for the table with columns 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 privileges to a principal.
- name
The name of the table resource.
A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.