2024/10/23 - AmazonMWAA - 1 new api methods
Changes Introducing InvokeRestApi which allows users to invoke the Apache Airflow REST API on the webserver with the specified inputs.
Invokes the Apache Airflow REST API on the webserver with the specified inputs. To learn more, see Using the Apache Airflow REST API
See also: AWS API Documentation
Request Syntax
client.invoke_rest_api( Name='string', Path='string', Method='GET'|'PUT'|'POST'|'PATCH'|'DELETE', QueryParameters={...}|[...]|123|123.4|'string'|True|None, Body={...}|[...]|123|123.4|'string'|True|None )
string
[REQUIRED]
The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.
string
[REQUIRED]
The Apache Airflow REST API endpoint path to be called. For example, /dags/123456/clearTaskInstances. For more information, see Apache Airflow API
string
[REQUIRED]
The HTTP method used for making Airflow REST API calls. For example, POST.
:ref:`document<document>`
Query parameters to be included in the Apache Airflow REST API call, provided as a JSON object.
:ref:`document<document>`
The request body for the Apache Airflow REST API call, provided as a JSON object.
dict
Response Syntax
{ 'RestApiStatusCode': 123, 'RestApiResponse': {...}|[...]|123|123.4|'string'|True|None }
Response Structure
(dict) --
RestApiStatusCode (integer) --
The HTTP status code returned by the Apache Airflow REST API call.
RestApiResponse (:ref:`document<document>`) --
The response data from the Apache Airflow REST API call, provided as a JSON object.