(aws_cdk.aws_lakeformation.CfnTagAssociation.ResourceProperty): cannot define catalog #26261
Labels
@aws-cdk/aws-lakeformation
Related to AWS Lake Formation
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I'd like to assign LF Tags to some resources and therefor create a
aws_lakeformation.CfnTagAssociation
which takes as propertyresource
an object of typeaws_lakeformation.CfnTagAssociation.ResourceProperty
. That class has a property namedcatalog
, which by documentation is of typeAny
and is by default the aws account id. If i pass in my aws account id as a string i get the error messageRuntimeError: Error: Resolution error: Supplied properties not correct for "CfnTagAssociationProps" resource: supplied properties not correct for "ResourceProperty" catalog: "my_aws_account_id" should be an 'object'.
Expected Behavior
I never did that before, so no idea what is the expected behavior. I guess that object should just be created,.
Current Behavior
RuntimeError: Error: Resolution error: Supplied properties not correct for "CfnTagAssociationProps" resource: supplied properties not correct for "ResourceProperty" catalog: "my_aws_account_id" should be an 'object'.
Reproduction Steps
Setup that resource property
aws_lakeformation.CfnTagAssociation.ResourceProperty( catalog=env.account, database=aws_lakeformation.CfnTagAssociation.DatabaseResourceProperty( catalog_id=env.account, name="test_database", ))
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.86.0 (build 1130fab)
Framework Version
No response
Node.js Version
v18.16.1
OS
macos
Language
Python
Language Version
Python 3.10.12
Other information
No response
The text was updated successfully, but these errors were encountered: