diff --git a/docgenerator/AWSSDKDocSamples/MWAA.GeneratedSamples.extra.xml b/docgenerator/AWSSDKDocSamples/MWAA.GeneratedSamples.extra.xml new file mode 100644 index 000000000000..ed87b3789fdf --- /dev/null +++ b/docgenerator/AWSSDKDocSamples/MWAA.GeneratedSamples.extra.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docgenerator/AWSSDKDocSamples/MWAA/MWAA.GeneratedSamples.cs b/docgenerator/AWSSDKDocSamples/MWAA/MWAA.GeneratedSamples.cs new file mode 100644 index 000000000000..34f62db6c8c5 --- /dev/null +++ b/docgenerator/AWSSDKDocSamples/MWAA/MWAA.GeneratedSamples.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using Amazon.MWAA; +using Amazon.MWAA.Model; + +namespace AWSSDKDocSamples.Amazon.MWAA.Generated +{ + class MWAASamples : ISample + { + public void MWAAInvokeRestApi() + { + #region example-1 + + var client = new AmazonMWAAClient(); + var response = client.InvokeRestApi(new InvokeRestApiRequest + { + Method = "GET", + Name = "MyEnvironment", + Path = "/variables" + }); + + RestApiResponse restApiResponse = response.RestApiResponse; + int restApiStatusCode = response.RestApiStatusCode; + + #endregion + } + + + # region ISample Members + public virtual void Run() + { + + } + # endregion + + } +} \ No newline at end of file diff --git a/generator/ServiceModels/mwaa/mwaa-2020-07-01.api.json b/generator/ServiceModels/mwaa/mwaa-2020-07-01.api.json index 95c6d53eea0f..72eeb1cc4ef5 100644 --- a/generator/ServiceModels/mwaa/mwaa-2020-07-01.api.json +++ b/generator/ServiceModels/mwaa/mwaa-2020-07-01.api.json @@ -2,6 +2,7 @@ "version":"2.0", "metadata":{ "apiVersion":"2020-07-01", + "auth":["aws.auth#sigv4"], "endpointPrefix":"airflow", "protocol":"rest-json", "protocols":["rest-json"], @@ -93,6 +94,25 @@ ], "endpoint":{"hostPrefix":"api."} }, + "InvokeRestApi":{ + "name":"InvokeRestApi", + "http":{ + "method":"POST", + "requestUri":"/restapi/{Name}", + "responseCode":200 + }, + "input":{"shape":"InvokeRestApiRequest"}, + "output":{"shape":"InvokeRestApiResponse"}, + "errors":[ + {"shape":"RestApiClientException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"RestApiServerException"} + ], + "endpoint":{"hostPrefix":"env."} + }, "ListEnvironments":{ "name":"ListEnvironments", "http":{ @@ -366,6 +386,12 @@ "deprecated":true, "deprecatedMessage":"This type is for internal use and not meant for public use. Data set for this type will be ignored." }, + "Document":{ + "type":"structure", + "members":{ + }, + "document":true + }, "Double":{ "type":"double", "box":true @@ -504,6 +530,32 @@ "exception":true, "fault":true }, + "InvokeRestApiRequest":{ + "type":"structure", + "required":[ + "Name", + "Path", + "Method" + ], + "members":{ + "Name":{ + "shape":"EnvironmentName", + "location":"uri", + "locationName":"Name" + }, + "Path":{"shape":"RestApiPath"}, + "Method":{"shape":"RestApiMethod"}, + "QueryParameters":{"shape":"Document"}, + "Body":{"shape":"RestApiRequestBody"} + } + }, + "InvokeRestApiResponse":{ + "type":"structure", + "members":{ + "RestApiStatusCode":{"shape":"Integer"}, + "RestApiResponse":{"shape":"RestApiResponse"} + } + }, "KmsKey":{ "type":"string", "max":1224, @@ -714,6 +766,59 @@ }, "exception":true }, + "RestApiClientException":{ + "type":"structure", + "members":{ + "RestApiStatusCode":{"shape":"Integer"}, + "RestApiResponse":{"shape":"RestApiResponse"} + }, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "RestApiMethod":{ + "type":"string", + "enum":[ + "GET", + "PUT", + "POST", + "PATCH", + "DELETE" + ] + }, + "RestApiPath":{ + "type":"string", + "max":64, + "min":1 + }, + "RestApiRequestBody":{ + "type":"structure", + "members":{ + }, + "document":true, + "sensitive":true + }, + "RestApiResponse":{ + "type":"structure", + "members":{ + }, + "document":true, + "sensitive":true + }, + "RestApiServerException":{ + "type":"structure", + "members":{ + "RestApiStatusCode":{"shape":"Integer"}, + "RestApiResponse":{"shape":"RestApiResponse"} + }, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "S3BucketArn":{ "type":"string", "max":1224, diff --git a/generator/ServiceModels/mwaa/mwaa-2020-07-01.docs.json b/generator/ServiceModels/mwaa/mwaa-2020-07-01.docs.json index e3f706bef627..aa067455fb8e 100644 --- a/generator/ServiceModels/mwaa/mwaa-2020-07-01.docs.json +++ b/generator/ServiceModels/mwaa/mwaa-2020-07-01.docs.json @@ -1,12 +1,13 @@ { "version": "2.0", - "service": "

Amazon Managed Workflows for Apache Airflow

This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see What is Amazon MWAA?.

Endpoints

Regions

For a list of supported regions, see Amazon MWAA endpoints and quotas in the Amazon Web Services General Reference.

", + "service": "

Amazon Managed Workflows for Apache Airflow

This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see What is Amazon MWAA?.

Endpoints

Regions

For a list of supported regions, see Amazon MWAA endpoints and quotas in the Amazon Web Services General Reference.

", "operations": { "CreateCliToken": "

Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.

", - "CreateEnvironment": "

Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

", + "CreateEnvironment": "

Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.

", "CreateWebLoginToken": "

Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token.

", - "DeleteEnvironment": "

Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

", + "DeleteEnvironment": "

Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.

", "GetEnvironment": "

Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

", + "InvokeRestApi": "

Invokes the Apache Airflow REST API on the webserver with the specified inputs. To learn more, see Using the Apache Airflow REST API

", "ListEnvironments": "

Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.

", "ListTagsForResource": "

Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, \"Environment\": \"Staging\".

", "PublishMetrics": "

Internal only. Publishes environment health metrics to Amazon CloudWatch.

", @@ -37,9 +38,9 @@ "AirflowVersion": { "base": null, "refs": { - "CreateEnvironmentInput$AirflowVersion": "

The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2 2.8.1

", - "Environment$AirflowVersion": "

The Apache Airflow version on your environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1.

", - "UpdateEnvironmentInput$AirflowVersion": "

The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.

Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1.

" + "CreateEnvironmentInput$AirflowVersion": "

The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (Amazon MWAA).

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1.

", + "Environment$AirflowVersion": "

The Apache Airflow version on your environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1.

", + "UpdateEnvironmentInput$AirflowVersion": "

The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.

Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1.

" } }, "CeleryExecutorQueue": { @@ -77,7 +78,7 @@ } }, "CreateEnvironmentInput": { - "base": "

This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.

", + "base": "

This section contains the Amazon Managed Workflows for Apache Airflow (Amazon MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.

", "refs": { } }, @@ -124,6 +125,12 @@ "MetricDatum$Dimensions": "

Internal only. The dimensions associated with the metric.

" } }, + "Document": { + "base": null, + "refs": { + "InvokeRestApiRequest$QueryParameters": "

Query parameters to be included in the Apache Airflow REST API call, provided as a JSON object.

" + } + }, "Double": { "base": null, "refs": { @@ -181,6 +188,7 @@ "Environment$Name": "

The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.

", "EnvironmentList$member": null, "GetEnvironmentInput$Name": "

The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.

", + "InvokeRestApiRequest$Name": "

The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.

", "PublishMetricsInput$EnvironmentName": "

Internal only. The name of the environment.

", "UpdateEnvironmentInput$Name": "

The name of your Amazon MWAA environment. For example, MyMWAAEnvironment.

" } @@ -238,6 +246,9 @@ "Integer": { "base": null, "refs": { + "InvokeRestApiResponse$RestApiStatusCode": "

The HTTP status code returned by the Apache Airflow REST API call.

", + "RestApiClientException$RestApiStatusCode": "

The HTTP status code returned by the Apache Airflow REST API call.

", + "RestApiServerException$RestApiStatusCode": "

The HTTP status code returned by the Apache Airflow REST API call.

", "StatisticSet$SampleCount": "

Internal only. The number of samples used for the statistic set.

" } }, @@ -246,6 +257,16 @@ "refs": { } }, + "InvokeRestApiRequest": { + "base": null, + "refs": { + } + }, + "InvokeRestApiResponse": { + "base": null, + "refs": { + } + }, "KmsKey": { "base": null, "refs": { @@ -421,6 +442,42 @@ "refs": { } }, + "RestApiClientException": { + "base": "

An exception indicating that a client-side error occurred during the Apache Airflow REST API call.

", + "refs": { + } + }, + "RestApiMethod": { + "base": null, + "refs": { + "InvokeRestApiRequest$Method": "

The HTTP method used for making Airflow REST API calls. For example, POST.

" + } + }, + "RestApiPath": { + "base": null, + "refs": { + "InvokeRestApiRequest$Path": "

The Apache Airflow REST API endpoint path to be called. For example, /dags/123456/clearTaskInstances. For more information, see Apache Airflow API

" + } + }, + "RestApiRequestBody": { + "base": null, + "refs": { + "InvokeRestApiRequest$Body": "

The request body for the Apache Airflow REST API call, provided as a JSON object.

" + } + }, + "RestApiResponse": { + "base": null, + "refs": { + "InvokeRestApiResponse$RestApiResponse": "

The response data from the Apache Airflow REST API call, provided as a JSON object.

", + "RestApiClientException$RestApiResponse": "

The error response data from the Apache Airflow REST API call, provided as a JSON object.

", + "RestApiServerException$RestApiResponse": "

The error response data from the Apache Airflow REST API call, provided as a JSON object.

" + } + }, + "RestApiServerException": { + "base": "

An exception indicating that a server-side error occurred during the Apache Airflow REST API call.

", + "refs": { + } + }, "S3BucketArn": { "base": null, "refs": { diff --git a/generator/ServiceModels/mwaa/mwaa-2020-07-01.examples.json b/generator/ServiceModels/mwaa/mwaa-2020-07-01.examples.json index 0ea7e3b0bbe9..21d2b228764d 100644 --- a/generator/ServiceModels/mwaa/mwaa-2020-07-01.examples.json +++ b/generator/ServiceModels/mwaa/mwaa-2020-07-01.examples.json @@ -1,5 +1,29 @@ { "version": "1.0", "examples": { + "InvokeRestApi": [ + { + "input": { + "Method": "GET", + "Name": "MyEnvironment", + "Path": "/variables" + }, + "output": { + "RestApiResponse": { + "total_entries": 1, + "variables": [ + { + "key": "test-variable", + "value": "123", + "description": "Example variable" + } + ] + }, + "RestApiStatusCode": 200 + }, + "id": "example-1", + "title": "Listing Airflow variables." + } + ] } } diff --git a/generator/ServiceModels/mwaa/mwaa-2020-07-01.normal.json b/generator/ServiceModels/mwaa/mwaa-2020-07-01.normal.json index 939c10979db5..44e6ded25b4a 100644 --- a/generator/ServiceModels/mwaa/mwaa-2020-07-01.normal.json +++ b/generator/ServiceModels/mwaa/mwaa-2020-07-01.normal.json @@ -2,6 +2,7 @@ "version":"2.0", "metadata":{ "apiVersion":"2020-07-01", + "auth":["aws.auth#sigv4"], "endpointPrefix":"airflow", "protocol":"rest-json", "protocols":["rest-json"], @@ -40,7 +41,7 @@ {"shape":"ValidationException"}, {"shape":"InternalServerException"} ], - "documentation":"

Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

", + "documentation":"

Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.

", "endpoint":{"hostPrefix":"api."}, "idempotent":true }, @@ -77,7 +78,7 @@ {"shape":"ValidationException"}, {"shape":"InternalServerException"} ], - "documentation":"

Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

", + "documentation":"

Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.

", "endpoint":{"hostPrefix":"api."}, "idempotent":true }, @@ -98,6 +99,26 @@ "documentation":"

Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

", "endpoint":{"hostPrefix":"api."} }, + "InvokeRestApi":{ + "name":"InvokeRestApi", + "http":{ + "method":"POST", + "requestUri":"/restapi/{Name}", + "responseCode":200 + }, + "input":{"shape":"InvokeRestApiRequest"}, + "output":{"shape":"InvokeRestApiResponse"}, + "errors":[ + {"shape":"RestApiClientException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"RestApiServerException"} + ], + "documentation":"

Invokes the Apache Airflow REST API on the webserver with the specified inputs. To learn more, see Using the Apache Airflow REST API

", + "endpoint":{"hostPrefix":"env."} + }, "ListEnvironments":{ "name":"ListEnvironments", "http":{ @@ -356,7 +377,7 @@ }, "AirflowVersion":{ "shape":"AirflowVersion", - "documentation":"

The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2 2.8.1

" + "documentation":"

The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (Amazon MWAA).

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1.

" }, "LoggingConfiguration":{ "shape":"LoggingConfigurationInput", @@ -395,7 +416,7 @@ "documentation":"

The maximum number of web servers that you want to run in your environment. Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers when you interact with your Apache Airflow environment using Apache Airflow REST API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.

Valid values: Accepts between 2 and 5. Defaults to 2.

" } }, - "documentation":"

This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.

" + "documentation":"

This section contains the Amazon Managed Workflows for Apache Airflow (Amazon MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.

" }, "CreateEnvironmentOutput":{ "type":"structure", @@ -483,6 +504,12 @@ "deprecated":true, "deprecatedMessage":"This type is for internal use and not meant for public use. Data set for this type will be ignored." }, + "Document":{ + "type":"structure", + "members":{ + }, + "document":true + }, "Double":{ "type":"double", "box":true @@ -531,7 +558,7 @@ }, "AirflowVersion":{ "shape":"AirflowVersion", - "documentation":"

The Apache Airflow version on your environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1.

" + "documentation":"

The Apache Airflow version on your environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1.

" }, "SourceBucketArn":{ "shape":"S3BucketArn", @@ -729,6 +756,51 @@ "exception":true, "fault":true }, + "InvokeRestApiRequest":{ + "type":"structure", + "required":[ + "Name", + "Path", + "Method" + ], + "members":{ + "Name":{ + "shape":"EnvironmentName", + "documentation":"

The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.

", + "location":"uri", + "locationName":"Name" + }, + "Path":{ + "shape":"RestApiPath", + "documentation":"

The Apache Airflow REST API endpoint path to be called. For example, /dags/123456/clearTaskInstances. For more information, see Apache Airflow API

" + }, + "Method":{ + "shape":"RestApiMethod", + "documentation":"

The HTTP method used for making Airflow REST API calls. For example, POST.

" + }, + "QueryParameters":{ + "shape":"Document", + "documentation":"

Query parameters to be included in the Apache Airflow REST API call, provided as a JSON object.

" + }, + "Body":{ + "shape":"RestApiRequestBody", + "documentation":"

The request body for the Apache Airflow REST API call, provided as a JSON object.

" + } + } + }, + "InvokeRestApiResponse":{ + "type":"structure", + "members":{ + "RestApiStatusCode":{ + "shape":"Integer", + "documentation":"

The HTTP status code returned by the Apache Airflow REST API call.

" + }, + "RestApiResponse":{ + "shape":"RestApiResponse", + "documentation":"

The response data from the Apache Airflow REST API call, provided as a JSON object.

" + } + } + }, "KmsKey":{ "type":"string", "max":1224, @@ -1044,6 +1116,73 @@ }, "exception":true }, + "RestApiClientException":{ + "type":"structure", + "members":{ + "RestApiStatusCode":{ + "shape":"Integer", + "documentation":"

The HTTP status code returned by the Apache Airflow REST API call.

" + }, + "RestApiResponse":{ + "shape":"RestApiResponse", + "documentation":"

The error response data from the Apache Airflow REST API call, provided as a JSON object.

" + } + }, + "documentation":"

An exception indicating that a client-side error occurred during the Apache Airflow REST API call.

", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "RestApiMethod":{ + "type":"string", + "enum":[ + "GET", + "PUT", + "POST", + "PATCH", + "DELETE" + ] + }, + "RestApiPath":{ + "type":"string", + "max":64, + "min":1 + }, + "RestApiRequestBody":{ + "type":"structure", + "members":{ + }, + "document":true, + "sensitive":true + }, + "RestApiResponse":{ + "type":"structure", + "members":{ + }, + "document":true, + "sensitive":true + }, + "RestApiServerException":{ + "type":"structure", + "members":{ + "RestApiStatusCode":{ + "shape":"Integer", + "documentation":"

The HTTP status code returned by the Apache Airflow REST API call.

" + }, + "RestApiResponse":{ + "shape":"RestApiResponse", + "documentation":"

The error response data from the Apache Airflow REST API call, provided as a JSON object.

" + } + }, + "documentation":"

An exception indicating that a server-side error occurred during the Apache Airflow REST API call.

", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "S3BucketArn":{ "type":"string", "max":1224, @@ -1238,7 +1377,7 @@ }, "AirflowVersion":{ "shape":"AirflowVersion", - "documentation":"

The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.

Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1.

" + "documentation":"

The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.

Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.

Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1.

" }, "SourceBucketArn":{ "shape":"S3BucketArn", @@ -1404,5 +1543,5 @@ "pattern":".*(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\\d|2[0-3]):(00|30).*" } }, - "documentation":"

Amazon Managed Workflows for Apache Airflow

This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see What is Amazon MWAA?.

Endpoints

Regions

For a list of supported regions, see Amazon MWAA endpoints and quotas in the Amazon Web Services General Reference.

" + "documentation":"

Amazon Managed Workflows for Apache Airflow

This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see What is Amazon MWAA?.

Endpoints

Regions

For a list of supported regions, see Amazon MWAA endpoints and quotas in the Amazon Web Services General Reference.

" } diff --git a/sdk/code-analysis/ServiceAnalysis/MWAA/Generated/PropertyValueRules.xml b/sdk/code-analysis/ServiceAnalysis/MWAA/Generated/PropertyValueRules.xml index 6b219ff0f244..7096af247a67 100644 --- a/sdk/code-analysis/ServiceAnalysis/MWAA/Generated/PropertyValueRules.xml +++ b/sdk/code-analysis/ServiceAnalysis/MWAA/Generated/PropertyValueRules.xml @@ -147,6 +147,17 @@ 80 [a-zA-Z][0-9a-zA-Z-_]* + + Amazon.MWAA.Model.InvokeRestApiRequest.Name + 1 + 80 + [a-zA-Z][0-9a-zA-Z-_]* + + + Amazon.MWAA.Model.InvokeRestApiRequest.Path + 1 + 64 + Amazon.MWAA.Model.ListEnvironmentsRequest.MaxResults 1 diff --git a/sdk/src/Services/MWAA/Generated/Model/CreateEnvironmentRequest.cs b/sdk/src/Services/MWAA/Generated/Model/CreateEnvironmentRequest.cs index c3cf15b09d39..d53d1eb20211 100644 --- a/sdk/src/Services/MWAA/Generated/Model/CreateEnvironmentRequest.cs +++ b/sdk/src/Services/MWAA/Generated/Model/CreateEnvironmentRequest.cs @@ -31,7 +31,7 @@ namespace Amazon.MWAA.Model { /// /// Container for the parameters to the CreateEnvironment operation. - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// public partial class CreateEnvironmentRequest : AmazonMWAARequest { @@ -87,12 +87,12 @@ internal bool IsSetAirflowConfigurationOptions() /// /// The Apache Airflow version for your environment. If no value is specified, it defaults /// to the latest version. For more information, see Apache - /// Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA). + /// Airflow versions on Amazon Managed Workflows for Apache Airflow (Amazon MWAA). /// /// /// /// Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, - /// 2.6.3, 2.7.2 2.8.1 + /// 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1. /// /// [AWSProperty(Min=1, Max=32)] diff --git a/sdk/src/Services/MWAA/Generated/Model/DeleteEnvironmentRequest.cs b/sdk/src/Services/MWAA/Generated/Model/DeleteEnvironmentRequest.cs index 2eaf635dd062..c2960bdc0faa 100644 --- a/sdk/src/Services/MWAA/Generated/Model/DeleteEnvironmentRequest.cs +++ b/sdk/src/Services/MWAA/Generated/Model/DeleteEnvironmentRequest.cs @@ -31,7 +31,7 @@ namespace Amazon.MWAA.Model { /// /// Container for the parameters to the DeleteEnvironment operation. - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// public partial class DeleteEnvironmentRequest : AmazonMWAARequest { diff --git a/sdk/src/Services/MWAA/Generated/Model/Environment.cs b/sdk/src/Services/MWAA/Generated/Model/Environment.cs index 14291a8816e5..d2f777adc352 100644 --- a/sdk/src/Services/MWAA/Generated/Model/Environment.cs +++ b/sdk/src/Services/MWAA/Generated/Model/Environment.cs @@ -98,7 +98,7 @@ internal bool IsSetAirflowConfigurationOptions() /// /// /// Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, - /// 2.6.3, 2.7.2, 2.8.1. + /// 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1. /// /// [AWSProperty(Min=1, Max=32)] diff --git a/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/InvokeRestApiRequestMarshaller.cs b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/InvokeRestApiRequestMarshaller.cs new file mode 100644 index 000000000000..4feb3083642e --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/InvokeRestApiRequestMarshaller.cs @@ -0,0 +1,126 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MWAA.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MWAA.Model.Internal.MarshallTransformations +{ + /// + /// InvokeRestApi Request Marshaller + /// + public class InvokeRestApiRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((InvokeRestApiRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(InvokeRestApiRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MWAA"); + request.Headers["Content-Type"] = "application/json"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-01"; + request.HttpMethod = "POST"; + + if (!publicRequest.IsSetName()) + throw new AmazonMWAAException("Request object does not have required field Name set"); + request.AddPathResource("{Name}", StringUtils.FromString(publicRequest.Name)); + request.ResourcePath = "/restapi/{Name}"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetBody()) + { + context.Writer.WritePropertyName("Body"); + Amazon.Runtime.Documents.Internal.Transform.DocumentMarshaller.Instance.Write(context.Writer, publicRequest.Body); + } + + if(publicRequest.IsSetMethod()) + { + context.Writer.WritePropertyName("Method"); + context.Writer.Write(publicRequest.Method); + } + + if(publicRequest.IsSetPath()) + { + context.Writer.WritePropertyName("Path"); + context.Writer.Write(publicRequest.Path); + } + + if(publicRequest.IsSetQueryParameters()) + { + context.Writer.WritePropertyName("QueryParameters"); + Amazon.Runtime.Documents.Internal.Transform.DocumentMarshaller.Instance.Write(context.Writer, publicRequest.QueryParameters); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + request.HostPrefix = $"env."; + + return request; + } + private static InvokeRestApiRequestMarshaller _instance = new InvokeRestApiRequestMarshaller(); + + internal static InvokeRestApiRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static InvokeRestApiRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/InvokeRestApiResponseUnmarshaller.cs b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/InvokeRestApiResponseUnmarshaller.cs new file mode 100644 index 000000000000..c3764b4fb376 --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/InvokeRestApiResponseUnmarshaller.cs @@ -0,0 +1,137 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MWAA.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MWAA.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for InvokeRestApi operation + /// + public class InvokeRestApiResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + InvokeRestApiResponse response = new InvokeRestApiResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("RestApiResponse", targetDepth)) + { + var unmarshaller = Amazon.Runtime.Documents.Internal.Transform.DocumentUnmarshaller.Instance; + response.RestApiResponse = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RestApiStatusCode", targetDepth)) + { + var unmarshaller = IntUnmarshaller.Instance; + response.RestApiStatusCode = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) + { + return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("RestApiClientException")) + { + return RestApiClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("RestApiServerException")) + { + return RestApiServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMWAAException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static InvokeRestApiResponseUnmarshaller _instance = new InvokeRestApiResponseUnmarshaller(); + + internal static InvokeRestApiResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static InvokeRestApiResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/RestApiClientExceptionUnmarshaller.cs b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/RestApiClientExceptionUnmarshaller.cs new file mode 100644 index 000000000000..84e9783d8b31 --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/RestApiClientExceptionUnmarshaller.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MWAA.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MWAA.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RestApiClientException Object + /// + public class RestApiClientExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public RestApiClientException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public RestApiClientException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + RestApiClientException unmarshalledObject = new RestApiClientException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("RestApiResponse", targetDepth)) + { + var unmarshaller = Amazon.Runtime.Documents.Internal.Transform.DocumentUnmarshaller.Instance; + unmarshalledObject.RestApiResponse = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RestApiStatusCode", targetDepth)) + { + var unmarshaller = IntUnmarshaller.Instance; + unmarshalledObject.RestApiStatusCode = unmarshaller.Unmarshall(context); + continue; + } + } + + return unmarshalledObject; + } + + private static RestApiClientExceptionUnmarshaller _instance = new RestApiClientExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RestApiClientExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/RestApiServerExceptionUnmarshaller.cs b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/RestApiServerExceptionUnmarshaller.cs new file mode 100644 index 000000000000..703b4ffd23b8 --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/Internal/MarshallTransformations/RestApiServerExceptionUnmarshaller.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MWAA.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MWAA.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RestApiServerException Object + /// + public class RestApiServerExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public RestApiServerException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public RestApiServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + RestApiServerException unmarshalledObject = new RestApiServerException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("RestApiResponse", targetDepth)) + { + var unmarshaller = Amazon.Runtime.Documents.Internal.Transform.DocumentUnmarshaller.Instance; + unmarshalledObject.RestApiResponse = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RestApiStatusCode", targetDepth)) + { + var unmarshaller = IntUnmarshaller.Instance; + unmarshalledObject.RestApiStatusCode = unmarshaller.Unmarshall(context); + continue; + } + } + + return unmarshalledObject; + } + + private static RestApiServerExceptionUnmarshaller _instance = new RestApiServerExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RestApiServerExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/InvokeRestApiRequest.cs b/sdk/src/Services/MWAA/Generated/Model/InvokeRestApiRequest.cs new file mode 100644 index 000000000000..071a41af1635 --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/InvokeRestApiRequest.cs @@ -0,0 +1,145 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MWAA.Model +{ + /// + /// Container for the parameters to the InvokeRestApi operation. + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + public partial class InvokeRestApiRequest : AmazonMWAARequest + { + private Amazon.Runtime.Documents.Document _body; + private RestApiMethod _method; + private string _name; + private string _path; + private Amazon.Runtime.Documents.Document _queryParameters; + + /// + /// Gets and sets the property Body. + /// + /// The request body for the Apache Airflow REST API call, provided as a JSON object. + /// + /// + [AWSProperty(Sensitive=true)] + public Amazon.Runtime.Documents.Document Body + { + get { return this._body; } + set { this._body = value; } + } + + // Check to see if Body property is set + internal bool IsSetBody() + { + return !this._body.IsNull(); + } + + /// + /// Gets and sets the property Method. + /// + /// The HTTP method used for making Airflow REST API calls. For example, POST. + /// + /// + /// + [AWSProperty(Required=true)] + public RestApiMethod Method + { + get { return this._method; } + set { this._method = value; } + } + + // Check to see if Method property is set + internal bool IsSetMethod() + { + return this._method != null; + } + + /// + /// Gets and sets the property Name. + /// + /// The name of the Amazon MWAA environment. For example, MyMWAAEnvironment. + /// + /// + [AWSProperty(Required=true, Min=1, Max=80)] + public string Name + { + get { return this._name; } + set { this._name = value; } + } + + // Check to see if Name property is set + internal bool IsSetName() + { + return this._name != null; + } + + /// + /// Gets and sets the property Path. + /// + /// The Apache Airflow REST API endpoint path to be called. For example, /dags/123456/clearTaskInstances. + /// For more information, see Apache + /// Airflow API + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string Path + { + get { return this._path; } + set { this._path = value; } + } + + // Check to see if Path property is set + internal bool IsSetPath() + { + return this._path != null; + } + + /// + /// Gets and sets the property QueryParameters. + /// + /// Query parameters to be included in the Apache Airflow REST API call, provided as a + /// JSON object. + /// + /// + public Amazon.Runtime.Documents.Document QueryParameters + { + get { return this._queryParameters; } + set { this._queryParameters = value; } + } + + // Check to see if QueryParameters property is set + internal bool IsSetQueryParameters() + { + return !this._queryParameters.IsNull(); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/InvokeRestApiResponse.cs b/sdk/src/Services/MWAA/Generated/Model/InvokeRestApiResponse.cs new file mode 100644 index 000000000000..90e40c10682a --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/InvokeRestApiResponse.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MWAA.Model +{ + /// + /// This is the response object from the InvokeRestApi operation. + /// + public partial class InvokeRestApiResponse : AmazonWebServiceResponse + { + private Amazon.Runtime.Documents.Document _restApiResponse; + private int? _restApiStatusCode; + + /// + /// Gets and sets the property RestApiResponse. + /// + /// The response data from the Apache Airflow REST API call, provided as a JSON object. + /// + /// + [AWSProperty(Sensitive=true)] + public Amazon.Runtime.Documents.Document RestApiResponse + { + get { return this._restApiResponse; } + set { this._restApiResponse = value; } + } + + // Check to see if RestApiResponse property is set + internal bool IsSetRestApiResponse() + { + return !this._restApiResponse.IsNull(); + } + + /// + /// Gets and sets the property RestApiStatusCode. + /// + /// The HTTP status code returned by the Apache Airflow REST API call. + /// + /// + public int RestApiStatusCode + { + get { return this._restApiStatusCode.GetValueOrDefault(); } + set { this._restApiStatusCode = value; } + } + + // Check to see if RestApiStatusCode property is set + internal bool IsSetRestApiStatusCode() + { + return this._restApiStatusCode.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/RestApiClientException.cs b/sdk/src/Services/MWAA/Generated/Model/RestApiClientException.cs new file mode 100644 index 000000000000..207298f9b898 --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/RestApiClientException.cs @@ -0,0 +1,170 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MWAA.Model +{ + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class RestApiClientException : AmazonMWAAException + { + private Amazon.Runtime.Documents.Document _restApiResponse; + private int? _restApiStatusCode; + + /// + /// Constructs a new RestApiClientException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public RestApiClientException(string message) + : base(message) {} + + /// + /// Construct instance of RestApiClientException + /// + /// + /// + public RestApiClientException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of RestApiClientException + /// + /// + public RestApiClientException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of RestApiClientException + /// + /// + /// + /// + /// + /// + /// + public RestApiClientException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of RestApiClientException + /// + /// + /// + /// + /// + /// + public RestApiClientException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the RestApiClientException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected RestApiClientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + this.RestApiResponse = (Amazon.Runtime.Documents.Document)info.GetValue("RestApiResponse", typeof(Amazon.Runtime.Documents.Document)); + this.RestApiStatusCode = (int)info.GetValue("RestApiStatusCode", typeof(int)); + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + info.AddValue("RestApiResponse", this.RestApiResponse); + info.AddValue("RestApiStatusCode", this.RestApiStatusCode); + } +#endif + + /// + /// Gets and sets the property RestApiResponse. + /// + /// The error response data from the Apache Airflow REST API call, provided as a JSON + /// object. + /// + /// + [AWSProperty(Sensitive=true)] + public Amazon.Runtime.Documents.Document RestApiResponse + { + get { return this._restApiResponse; } + set { this._restApiResponse = value; } + } + + // Check to see if RestApiResponse property is set + internal bool IsSetRestApiResponse() + { + return !this._restApiResponse.IsNull(); + } + + /// + /// Gets and sets the property RestApiStatusCode. + /// + /// The HTTP status code returned by the Apache Airflow REST API call. + /// + /// + public int RestApiStatusCode + { + get { return this._restApiStatusCode.GetValueOrDefault(); } + set { this._restApiStatusCode = value; } + } + + // Check to see if RestApiStatusCode property is set + internal bool IsSetRestApiStatusCode() + { + return this._restApiStatusCode.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/RestApiServerException.cs b/sdk/src/Services/MWAA/Generated/Model/RestApiServerException.cs new file mode 100644 index 000000000000..8c15757fa30d --- /dev/null +++ b/sdk/src/Services/MWAA/Generated/Model/RestApiServerException.cs @@ -0,0 +1,170 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mwaa-2020-07-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MWAA.Model +{ + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class RestApiServerException : AmazonMWAAException + { + private Amazon.Runtime.Documents.Document _restApiResponse; + private int? _restApiStatusCode; + + /// + /// Constructs a new RestApiServerException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public RestApiServerException(string message) + : base(message) {} + + /// + /// Construct instance of RestApiServerException + /// + /// + /// + public RestApiServerException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of RestApiServerException + /// + /// + public RestApiServerException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of RestApiServerException + /// + /// + /// + /// + /// + /// + /// + public RestApiServerException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of RestApiServerException + /// + /// + /// + /// + /// + /// + public RestApiServerException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the RestApiServerException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected RestApiServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + this.RestApiResponse = (Amazon.Runtime.Documents.Document)info.GetValue("RestApiResponse", typeof(Amazon.Runtime.Documents.Document)); + this.RestApiStatusCode = (int)info.GetValue("RestApiStatusCode", typeof(int)); + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + info.AddValue("RestApiResponse", this.RestApiResponse); + info.AddValue("RestApiStatusCode", this.RestApiStatusCode); + } +#endif + + /// + /// Gets and sets the property RestApiResponse. + /// + /// The error response data from the Apache Airflow REST API call, provided as a JSON + /// object. + /// + /// + [AWSProperty(Sensitive=true)] + public Amazon.Runtime.Documents.Document RestApiResponse + { + get { return this._restApiResponse; } + set { this._restApiResponse = value; } + } + + // Check to see if RestApiResponse property is set + internal bool IsSetRestApiResponse() + { + return !this._restApiResponse.IsNull(); + } + + /// + /// Gets and sets the property RestApiStatusCode. + /// + /// The HTTP status code returned by the Apache Airflow REST API call. + /// + /// + public int RestApiStatusCode + { + get { return this._restApiStatusCode.GetValueOrDefault(); } + set { this._restApiStatusCode = value; } + } + + // Check to see if RestApiStatusCode property is set + internal bool IsSetRestApiStatusCode() + { + return this._restApiStatusCode.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MWAA/Generated/Model/UpdateEnvironmentRequest.cs b/sdk/src/Services/MWAA/Generated/Model/UpdateEnvironmentRequest.cs index 1f4a02d193e3..4ab79e81f527 100644 --- a/sdk/src/Services/MWAA/Generated/Model/UpdateEnvironmentRequest.cs +++ b/sdk/src/Services/MWAA/Generated/Model/UpdateEnvironmentRequest.cs @@ -95,7 +95,7 @@ internal bool IsSetAirflowConfigurationOptions() /// /// /// Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, - /// 2.6.3, 2.7.2, 2.8.1. + /// 2.6.3, 2.7.2, 2.8.1, 2.9.2, and 2.10.1. /// /// [AWSProperty(Min=1, Max=32)] diff --git a/sdk/src/Services/MWAA/Generated/ServiceEnumerations.cs b/sdk/src/Services/MWAA/Generated/ServiceEnumerations.cs index 65efdb647930..f9149ea1262f 100644 --- a/sdk/src/Services/MWAA/Generated/ServiceEnumerations.cs +++ b/sdk/src/Services/MWAA/Generated/ServiceEnumerations.cs @@ -226,6 +226,68 @@ public static implicit operator LoggingLevel(string value) } + /// + /// Constants used for properties of type RestApiMethod. + /// + public class RestApiMethod : ConstantClass + { + + /// + /// Constant DELETE for RestApiMethod + /// + public static readonly RestApiMethod DELETE = new RestApiMethod("DELETE"); + /// + /// Constant GET for RestApiMethod + /// + public static readonly RestApiMethod GET = new RestApiMethod("GET"); + /// + /// Constant PATCH for RestApiMethod + /// + public static readonly RestApiMethod PATCH = new RestApiMethod("PATCH"); + /// + /// Constant POST for RestApiMethod + /// + public static readonly RestApiMethod POST = new RestApiMethod("POST"); + /// + /// Constant PUT for RestApiMethod + /// + public static readonly RestApiMethod PUT = new RestApiMethod("PUT"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RestApiMethod(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RestApiMethod FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RestApiMethod(string value) + { + return FindValue(value); + } + } + + /// /// Constants used for properties of type Unit. /// diff --git a/sdk/src/Services/MWAA/Generated/_bcl35/AmazonMWAAClient.cs b/sdk/src/Services/MWAA/Generated/_bcl35/AmazonMWAAClient.cs index fb9b8943dc52..cc2a4256464f 100644 --- a/sdk/src/Services/MWAA/Generated/_bcl35/AmazonMWAAClient.cs +++ b/sdk/src/Services/MWAA/Generated/_bcl35/AmazonMWAAClient.cs @@ -106,6 +106,11 @@ namespace Amazon.MWAA /// CreateWebLoginToken /// /// + ///
  • + /// + /// InvokeRestApi + /// + /// ///
  • /// /// Regions @@ -405,7 +410,7 @@ public virtual CreateCliTokenResponse EndCreateCliToken(IAsyncResult asyncResult #region CreateEnvironment /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -534,7 +539,7 @@ public virtual CreateWebLoginTokenResponse EndCreateWebLoginToken(IAsyncResult a #region DeleteEnvironment /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -657,6 +662,84 @@ public virtual GetEnvironmentResponse EndGetEnvironment(IAsyncResult asyncResult #endregion + #region InvokeRestApi + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + public virtual InvokeRestApiResponse InvokeRestApi(InvokeRestApiRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = InvokeRestApiRequestMarshaller.Instance; + options.ResponseUnmarshaller = InvokeRestApiResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the InvokeRestApi operation. + /// + /// + /// Container for the necessary parameters to execute the InvokeRestApi operation on AmazonMWAAClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInvokeRestApi + /// operation. + /// REST API Reference for InvokeRestApi Operation + public virtual IAsyncResult BeginInvokeRestApi(InvokeRestApiRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = InvokeRestApiRequestMarshaller.Instance; + options.ResponseUnmarshaller = InvokeRestApiResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the InvokeRestApi operation. + /// + /// + /// The IAsyncResult returned by the call to BeginInvokeRestApi. + /// + /// Returns a InvokeRestApiResult from MWAA. + /// REST API Reference for InvokeRestApi Operation + public virtual InvokeRestApiResponse EndInvokeRestApi(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + #region ListEnvironments /// diff --git a/sdk/src/Services/MWAA/Generated/_bcl35/IAmazonMWAA.cs b/sdk/src/Services/MWAA/Generated/_bcl35/IAmazonMWAA.cs index 9d00da723aa0..d9361ed8e336 100644 --- a/sdk/src/Services/MWAA/Generated/_bcl35/IAmazonMWAA.cs +++ b/sdk/src/Services/MWAA/Generated/_bcl35/IAmazonMWAA.cs @@ -100,6 +100,11 @@ namespace Amazon.MWAA /// CreateWebLoginToken /// /// + ///
  • + /// + /// InvokeRestApi + /// + /// ///
  • /// /// Regions @@ -173,7 +178,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -274,7 +279,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -368,6 +373,70 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable #endregion + #region InvokeRestApi + + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + InvokeRestApiResponse InvokeRestApi(InvokeRestApiRequest request); + + /// + /// Initiates the asynchronous execution of the InvokeRestApi operation. + /// + /// + /// Container for the necessary parameters to execute the InvokeRestApi operation on AmazonMWAAClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInvokeRestApi + /// operation. + /// REST API Reference for InvokeRestApi Operation + IAsyncResult BeginInvokeRestApi(InvokeRestApiRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the InvokeRestApi operation. + /// + /// + /// The IAsyncResult returned by the call to BeginInvokeRestApi. + /// + /// Returns a InvokeRestApiResult from MWAA. + /// REST API Reference for InvokeRestApi Operation + InvokeRestApiResponse EndInvokeRestApi(IAsyncResult asyncResult); + + #endregion + #region ListEnvironments diff --git a/sdk/src/Services/MWAA/Generated/_bcl45/AmazonMWAAClient.cs b/sdk/src/Services/MWAA/Generated/_bcl45/AmazonMWAAClient.cs index d26a8b5af83e..5af27aa2732e 100644 --- a/sdk/src/Services/MWAA/Generated/_bcl45/AmazonMWAAClient.cs +++ b/sdk/src/Services/MWAA/Generated/_bcl45/AmazonMWAAClient.cs @@ -109,6 +109,11 @@ namespace Amazon.MWAA /// CreateWebLoginToken /// /// + ///
  • + /// + /// InvokeRestApi + /// + /// ///
  • /// /// Regions @@ -397,7 +402,7 @@ public virtual CreateCliTokenResponse CreateCliToken(CreateCliTokenRequest reque /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -420,7 +425,7 @@ public virtual CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequ /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -521,7 +526,7 @@ public virtual CreateWebLoginTokenResponse CreateWebLoginToken(CreateWebLoginTok /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -547,7 +552,7 @@ public virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRequ /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -635,6 +640,95 @@ public virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest reque #endregion + #region InvokeRestApi + + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + public virtual InvokeRestApiResponse InvokeRestApi(InvokeRestApiRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = InvokeRestApiRequestMarshaller.Instance; + options.ResponseUnmarshaller = InvokeRestApiResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + public virtual Task InvokeRestApiAsync(InvokeRestApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = InvokeRestApiRequestMarshaller.Instance; + options.ResponseUnmarshaller = InvokeRestApiResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + #region ListEnvironments diff --git a/sdk/src/Services/MWAA/Generated/_bcl45/IAmazonMWAA.cs b/sdk/src/Services/MWAA/Generated/_bcl45/IAmazonMWAA.cs index 6b504c610ca5..453abf9ef156 100644 --- a/sdk/src/Services/MWAA/Generated/_bcl45/IAmazonMWAA.cs +++ b/sdk/src/Services/MWAA/Generated/_bcl45/IAmazonMWAA.cs @@ -102,6 +102,11 @@ namespace Amazon.MWAA /// CreateWebLoginToken /// /// + ///
  • + /// + /// InvokeRestApi + /// + /// ///
  • /// /// Regions @@ -163,7 +168,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -180,7 +185,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -261,7 +266,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -281,7 +286,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -349,6 +354,82 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable #endregion + #region InvokeRestApi + + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + InvokeRestApiResponse InvokeRestApi(InvokeRestApiRequest request); + + + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + Task InvokeRestApiAsync(InvokeRestApiRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region ListEnvironments diff --git a/sdk/src/Services/MWAA/Generated/_netstandard/AmazonMWAAClient.cs b/sdk/src/Services/MWAA/Generated/_netstandard/AmazonMWAAClient.cs index bb57d2ed5648..60315882ff02 100644 --- a/sdk/src/Services/MWAA/Generated/_netstandard/AmazonMWAAClient.cs +++ b/sdk/src/Services/MWAA/Generated/_netstandard/AmazonMWAAClient.cs @@ -109,6 +109,11 @@ namespace Amazon.MWAA /// CreateWebLoginToken /// /// + ///
  • + /// + /// InvokeRestApi + /// + /// ///
  • /// /// Regions @@ -400,7 +405,7 @@ internal virtual CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRe /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -489,7 +494,7 @@ internal virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRe /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -561,6 +566,64 @@ internal virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest req #endregion + #region InvokeRestApi + + internal virtual InvokeRestApiResponse InvokeRestApi(InvokeRestApiRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = InvokeRestApiRequestMarshaller.Instance; + options.ResponseUnmarshaller = InvokeRestApiResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + public virtual Task InvokeRestApiAsync(InvokeRestApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = InvokeRestApiRequestMarshaller.Instance; + options.ResponseUnmarshaller = InvokeRestApiResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + #region ListEnvironments internal virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request) diff --git a/sdk/src/Services/MWAA/Generated/_netstandard/IAmazonMWAA.cs b/sdk/src/Services/MWAA/Generated/_netstandard/IAmazonMWAA.cs index bf559324058e..005272ff2010 100644 --- a/sdk/src/Services/MWAA/Generated/_netstandard/IAmazonMWAA.cs +++ b/sdk/src/Services/MWAA/Generated/_netstandard/IAmazonMWAA.cs @@ -102,6 +102,11 @@ namespace Amazon.MWAA /// CreateWebLoginToken /// /// + ///
  • + /// + /// InvokeRestApi + /// + /// ///
  • /// /// Regions @@ -150,7 +155,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// @@ -207,7 +212,7 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable /// - /// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. + /// Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// @@ -256,6 +261,48 @@ public partial interface IAmazonMWAA : IAmazonService, IDisposable #endregion + #region InvokeRestApi + + + + /// + /// Invokes the Apache Airflow REST API on the webserver with the specified inputs. To + /// learn more, see Using + /// the Apache Airflow REST API + /// + /// Container for the necessary parameters to execute the InvokeRestApi service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the InvokeRestApi service method, as returned by MWAA. + /// + /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. + /// To learn more, see Accessing + /// an Amazon MWAA environment. + /// + /// + /// InternalServerException: An internal error has occurred. + /// + /// + /// ResourceNotFoundException: The resource is not available. + /// + /// + /// An exception indicating that a client-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// An exception indicating that a server-side error occurred during the Apache Airflow + /// REST API call. + /// + /// + /// ValidationException: The provided input is not valid. + /// + /// REST API Reference for InvokeRestApi Operation + Task InvokeRestApiAsync(InvokeRestApiRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region ListEnvironments