You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're creating a new Glue Database and we want to use the create_table_default_permissions parameter of the DatabaseInputProperty class constructor as this example:
If we set None (default value) or another value, we always receive and error.
Expected Behavior
New database with empty "create table default permissions"
Current Behavior
Exception has occurred: TypeError (note: full exception trace is shown but execution is paused at: _run_module_as_main) init() got an unexpected keyword argument 'create_table_default_permissions'
File "/home/camilo/proyectos/cwp-gai-pan/IaC/.venv/lib/python3.9/site-packages/jsii/_runtime.py", line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File "/home/camilo/proyectos/cwp-gai-pan/IaC/cdk_stack.py", line 178, in _create_glue_database
kb_db =aws_glue.CfnDatabase(self,
File "/home/camilo/proyectos/cwp-gai-pan/IaC/cdk_stack.py", line 207, in build_template
self._kb_db = self._create_glue_database(config)
File "/home/camilo/proyectos/cwp-gai-pan/IaC/app.py", line 14, in
stack.build_template(config)
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
TypeError: init() got an unexpected keyword argument 'create_table_default_permissions'
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
We're creating a new Glue Database and we want to use the create_table_default_permissions parameter of the DatabaseInputProperty class constructor as this example:
https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_glue/CfnDatabase.html#aws_cdk.aws_glue.CfnDatabase.DatabaseInputProperty.create_table_default_permissions
If we set None (default value) or another value, we always receive and error.
Expected Behavior
New database with empty "create table default permissions"
Current Behavior
Exception has occurred: TypeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
init() got an unexpected keyword argument 'create_table_default_permissions'
File "/home/camilo/proyectos/cwp-gai-pan/IaC/.venv/lib/python3.9/site-packages/jsii/_runtime.py", line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File "/home/camilo/proyectos/cwp-gai-pan/IaC/cdk_stack.py", line 178, in _create_glue_database
kb_db =aws_glue.CfnDatabase(self,
File "/home/camilo/proyectos/cwp-gai-pan/IaC/cdk_stack.py", line 207, in build_template
self._kb_db = self._create_glue_database(config)
File "/home/camilo/proyectos/cwp-gai-pan/IaC/app.py", line 14, in
stack.build_template(config)
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
TypeError: init() got an unexpected keyword argument 'create_table_default_permissions'
Reproduction Steps
`
from aws_cdk import aws_glue)
kb_db =aws_glue.CfnDatabase(self,
'kb-gluedb',
catalog_id=self.account,
database_input=aws_glue.CfnDatabase.DatabaseInputProperty(
name=f'{config["projectName"]}_kb'),
create_table_default_permissions = []
)
`
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.94.0 (build 987c329)
Framework Version
No response
Node.js Version
v18.17.0
OS
Ubuntu 20.04.6 LTS
Language
Python
Language Version
3.9.17
Other information
No response
The text was updated successfully, but these errors were encountered: