/*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.MWAA.Model;
using Amazon.MWAA.Model.Internal.MarshallTransformations;
using Amazon.MWAA.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.MWAA
{
///
/// Implementation for accessing MWAA
///
/// 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
///
/// -
///
///
api.airflow.{region}.amazonaws.com
- This endpoint is used for environment
/// management.
///
/// -
///
///
env.airflow.{region}.amazonaws.com
- This endpoint is used to operate
/// the Airflow environment.
///
/// -
///
///
ops.airflow.{region}.amazonaws.com
- This endpoint is used to push environment
/// metrics that track environment health.
///
///
///
/// Regions
///
///
///
/// For a list of regions that Amazon MWAA supports, see Region
/// availability in the Amazon MWAA User Guide.
///
///
///
///
public partial class AmazonMWAAClient : AmazonServiceClient, IAmazonMWAA
{
private static IServiceMetadata serviceMetadata = new AmazonMWAAMetadata();
private IMWAAPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IMWAAPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new MWAAPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonMWAAClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonMWAAClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMWAAConfig()) { }
///
/// Constructs AmazonMWAAClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonMWAAClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMWAAConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonMWAAClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonMWAAClient Configuration Object
public AmazonMWAAClient(AmazonMWAAConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonMWAAClient with AWS Credentials
///
/// AWS Credentials
public AmazonMWAAClient(AWSCredentials credentials)
: this(credentials, new AmazonMWAAConfig())
{
}
///
/// Constructs AmazonMWAAClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonMWAAClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonMWAAConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMWAAClient with AWS Credentials and an
/// AmazonMWAAClient Configuration object.
///
/// AWS Credentials
/// The AmazonMWAAClient Configuration Object
public AmazonMWAAClient(AWSCredentials credentials, AmazonMWAAConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonMWAAClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonMWAAClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMWAAConfig())
{
}
///
/// Constructs AmazonMWAAClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonMWAAClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMWAAConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonMWAAClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMWAAClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonMWAAClient Configuration Object
public AmazonMWAAClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMWAAConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonMWAAClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonMWAAClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMWAAConfig())
{
}
///
/// Constructs AmazonMWAAClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonMWAAClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMWAAConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMWAAClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMWAAClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonMWAAClient Configuration Object
public AmazonMWAAClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMWAAConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonMWAAEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateCliToken
///
/// Creates a CLI token for the Airflow CLI. To learn more, see Creating
/// an Apache Airflow CLI token.
///
/// Container for the necessary parameters to execute the CreateCliToken service method.
///
/// The response from the CreateCliToken service method, as returned by MWAA.
///
/// ResourceNotFoundException: The resource is not available.
///
/// REST API Reference for CreateCliToken Operation
public virtual CreateCliTokenResponse CreateCliToken(CreateCliTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCliTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCliTokenResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a CLI token for the Airflow CLI. To learn more, see Creating
/// an Apache Airflow CLI token.
///
/// Container for the necessary parameters to execute the CreateCliToken service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateCliToken service method, as returned by MWAA.
///
/// ResourceNotFoundException: The resource is not available.
///
/// REST API Reference for CreateCliToken Operation
public virtual Task CreateCliTokenAsync(CreateCliTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCliTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCliTokenResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateEnvironment
///
/// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the CreateEnvironment service method.
///
/// The response from the CreateEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for CreateEnvironment Operation
public virtual CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the CreateEnvironment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for CreateEnvironment Operation
public virtual Task CreateEnvironmentAsync(CreateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateWebLoginToken
///
/// Creates a web login token for the Airflow Web UI. To learn more, see Creating
/// an Apache Airflow web login token.
///
/// Container for the necessary parameters to execute the CreateWebLoginToken service method.
///
/// The response from the CreateWebLoginToken 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.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for CreateWebLoginToken Operation
public virtual CreateWebLoginTokenResponse CreateWebLoginToken(CreateWebLoginTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWebLoginTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWebLoginTokenResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a web login token for the Airflow Web UI. To learn more, see Creating
/// an Apache Airflow web login token.
///
/// Container for the necessary parameters to execute the CreateWebLoginToken service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateWebLoginToken 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.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for CreateWebLoginToken Operation
public virtual Task CreateWebLoginTokenAsync(CreateWebLoginTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWebLoginTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWebLoginTokenResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteEnvironment
///
/// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the DeleteEnvironment service method.
///
/// The response from the DeleteEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for DeleteEnvironment Operation
public virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the DeleteEnvironment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for DeleteEnvironment Operation
public virtual Task DeleteEnvironmentAsync(DeleteEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetEnvironment
///
/// Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the GetEnvironment service method.
///
/// The response from the GetEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for GetEnvironment Operation
public virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the GetEnvironment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for GetEnvironment Operation
public virtual Task GetEnvironmentAsync(GetEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListEnvironments
///
/// Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
///
/// Container for the necessary parameters to execute the ListEnvironments service method.
///
/// The response from the ListEnvironments service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for ListEnvironments Operation
public virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
///
/// Container for the necessary parameters to execute the ListEnvironments service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListEnvironments service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for ListEnvironments Operation
public virtual Task ListEnvironmentsAsync(ListEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache
/// Airflow (MWAA) environment. For example, "Environment": "Staging"
.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache
/// Airflow (MWAA) environment. For example, "Environment": "Staging"
.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PublishMetrics
///
/// Internal only. Publishes environment health metrics to Amazon CloudWatch.
///
/// Container for the necessary parameters to execute the PublishMetrics service method.
///
/// The response from the PublishMetrics service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for PublishMetrics Operation
public virtual PublishMetricsResponse PublishMetrics(PublishMetricsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PublishMetricsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PublishMetricsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Internal only. Publishes environment health metrics to Amazon CloudWatch.
///
/// Container for the necessary parameters to execute the PublishMetrics service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PublishMetrics service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for PublishMetrics Operation
public virtual Task PublishMetricsAsync(PublishMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PublishMetricsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PublishMetricsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow
/// (MWAA) environment.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow
/// (MWAA) environment.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache
/// Airflow (MWAA) environment. For example, "Environment": "Staging"
.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache
/// Airflow (MWAA) environment. For example, "Environment": "Staging"
.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateEnvironment
///
/// Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the UpdateEnvironment service method.
///
/// The response from the UpdateEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for UpdateEnvironment Operation
public virtual UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
///
/// Container for the necessary parameters to execute the UpdateEnvironment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateEnvironment service method, as returned by MWAA.
///
/// InternalServerException: An internal error has occurred.
///
///
/// ResourceNotFoundException: The resource is not available.
///
///
/// ValidationException: The provided input is not valid.
///
/// REST API Reference for UpdateEnvironment Operation
public virtual Task UpdateEnvironmentAsync(UpdateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}