invokeRestApi
inline suspend fun MwaaClient.invokeRestApi(crossinline block: InvokeRestApiRequest.Builder.() -> Unit): InvokeRestApiResponse
Invokes the Apache Airflow REST API on the webserver with the specified inputs. To learn more, see Using the Apache Airflow REST API
Samples
import aws.sdk.kotlin.services.mwaa.model.RestApiMethod
fun main() {
//sampleStart
// Listing Airflow variables.
val resp = mwaaClient.invokeRestApi {
name = "MyEnvironment"
path = "/variables"
method = RestApiMethod.fromValue("GET")
}
//sampleEnd
}