AWS MWAA气流我无法添加标签和气流选项

2024-10-03 21:35:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要在代码中更改什么才能添加标记和配置选项

        airflow = aws_mwaa.CfnEnvironment(
            scope=self,
            id='test',
            name='test',
            airflow_configuration_options=????,
            tags=????
        )

如果我使用tags={'Environment': 'Example'},我会得到以下错误

tags = CfnEnvironment.TagMapProperty(**tags)
TypeError: __init__() got an unexpected keyword argument 'Environment'

Tags: 代码name标记testselfawsidenvironment