-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Description
This feature request proposes adding a utility method to convert Python dictionaries into the boto-style key-value list format required by AWS APIs. This will simplify the process of working with AWS services in Airflow by allowing users to pass dictionaries (a more intuitive and user-friendly format) instead of manually formatting key-value lists.
Use case/motivation
When interacting with AWS services (e.g., S3, RDS, SageMaker), many APIs expect parameters in a specific key-value list format ([{"Key": "name", "Value": "example"}]). Currently, users must manually format their data into this structure, which is error-prone and less intuitive.
By introducing a utility method to handle this conversion, users can simply pass a Python dictionary ({"name": "example"}), and the method will automatically transform it into the required format. This improves usability, reduces boilerplate code, and makes Airflow's AWS integration more accessible to users unfamiliar with boto3's quirks.
Related issues
- PR introduce a method to convert dictionaries to boto-style key-value lists #28816: Introduced a method to convert dictionaries to boto-style key-value lists.
- Issue Jinja templates should be rendered in dict keys #18938: Discusses limitations in rendering dictionary keys in templated values, which is relevant to this feature.
Are you willing to submit a PR?
- No
Code of Conduct
- I agree to follow this project's Code of Conduct