Skip to content

Add support for converting dictionaries to boto-style key-value lists for AWS API parameters #45996

@Mohammed-Karim226

Description

@Mohammed-Karim226

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

Are you willing to submit a PR?

  • No

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions