/*
* 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 migrationhuborchestrator-2021-08-28.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.MigrationHubOrchestrator.Model;
using Amazon.MigrationHubOrchestrator.Model.Internal.MarshallTransformations;
using Amazon.MigrationHubOrchestrator.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.MigrationHubOrchestrator
{
///
/// Implementation for accessing MigrationHubOrchestrator
///
/// This API reference provides descriptions, syntax, and other details about each of
/// the actions and data types for AWS Migration Hub Orchestrator. he topic for each action
/// shows the API request parameters and the response. Alternatively, you can use one
/// of the AWS SDKs to access an API that is tailored to the programming language or platform
/// that you're using.
///
public partial class AmazonMigrationHubOrchestratorClient : AmazonServiceClient, IAmazonMigrationHubOrchestrator
{
private static IServiceMetadata serviceMetadata = new AmazonMigrationHubOrchestratorMetadata();
#region Constructors
///
/// Constructs AmazonMigrationHubOrchestratorClient 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 AmazonMigrationHubOrchestratorClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubOrchestratorConfig()) { }
///
/// Constructs AmazonMigrationHubOrchestratorClient 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 AmazonMigrationHubOrchestratorClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubOrchestratorConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonMigrationHubOrchestratorClient 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 AmazonMigrationHubOrchestratorClient Configuration Object
public AmazonMigrationHubOrchestratorClient(AmazonMigrationHubOrchestratorConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Credentials
///
/// AWS Credentials
public AmazonMigrationHubOrchestratorClient(AWSCredentials credentials)
: this(credentials, new AmazonMigrationHubOrchestratorConfig())
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonMigrationHubOrchestratorClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonMigrationHubOrchestratorConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Credentials and an
/// AmazonMigrationHubOrchestratorClient Configuration object.
///
/// AWS Credentials
/// The AmazonMigrationHubOrchestratorClient Configuration Object
public AmazonMigrationHubOrchestratorClient(AWSCredentials credentials, AmazonMigrationHubOrchestratorConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonMigrationHubOrchestratorClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubOrchestratorConfig())
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonMigrationHubOrchestratorClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubOrchestratorConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMigrationHubOrchestratorClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonMigrationHubOrchestratorClient Configuration Object
public AmazonMigrationHubOrchestratorClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMigrationHubOrchestratorConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonMigrationHubOrchestratorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubOrchestratorConfig())
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient 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 AmazonMigrationHubOrchestratorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubOrchestratorConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMigrationHubOrchestratorClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMigrationHubOrchestratorClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonMigrationHubOrchestratorClient Configuration Object
public AmazonMigrationHubOrchestratorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMigrationHubOrchestratorConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IMigrationHubOrchestratorPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IMigrationHubOrchestratorPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new MigrationHubOrchestratorPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonMigrationHubOrchestratorEndpointResolver());
}
///
/// 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 CreateWorkflow
internal virtual CreateWorkflowResponse CreateWorkflow(CreateWorkflowRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkflowResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Create a workflow to orchestrate your migrations.
///
/// Container for the necessary parameters to execute the CreateWorkflow service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateWorkflow service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateWorkflow Operation
public virtual Task CreateWorkflowAsync(CreateWorkflowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkflowResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateWorkflowStep
internal virtual CreateWorkflowStepResponse CreateWorkflowStep(CreateWorkflowStepRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkflowStepResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Create a step in the migration workflow.
///
/// Container for the necessary parameters to execute the CreateWorkflowStep service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateWorkflowStep service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateWorkflowStep Operation
public virtual Task CreateWorkflowStepAsync(CreateWorkflowStepRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkflowStepResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateWorkflowStepGroup
internal virtual CreateWorkflowStepGroupResponse CreateWorkflowStepGroup(CreateWorkflowStepGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkflowStepGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Create a step group in a migration workflow.
///
/// Container for the necessary parameters to execute the CreateWorkflowStepGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateWorkflowStepGroup service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateWorkflowStepGroup Operation
public virtual Task CreateWorkflowStepGroupAsync(CreateWorkflowStepGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkflowStepGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteWorkflow
internal virtual DeleteWorkflowResponse DeleteWorkflow(DeleteWorkflowRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkflowResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete a migration workflow. You must pause a running workflow in Migration Hub Orchestrator
/// console to delete it.
///
/// Container for the necessary parameters to execute the DeleteWorkflow service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteWorkflow service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteWorkflow Operation
public virtual Task DeleteWorkflowAsync(DeleteWorkflowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkflowResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteWorkflowStep
internal virtual DeleteWorkflowStepResponse DeleteWorkflowStep(DeleteWorkflowStepRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkflowStepResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete a step in a migration workflow. Pause the workflow to delete a running step.
///
/// Container for the necessary parameters to execute the DeleteWorkflowStep service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteWorkflowStep service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteWorkflowStep Operation
public virtual Task DeleteWorkflowStepAsync(DeleteWorkflowStepRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkflowStepResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteWorkflowStepGroup
internal virtual DeleteWorkflowStepGroupResponse DeleteWorkflowStepGroup(DeleteWorkflowStepGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkflowStepGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete a step group in a migration workflow.
///
/// Container for the necessary parameters to execute the DeleteWorkflowStepGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteWorkflowStepGroup service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteWorkflowStepGroup Operation
public virtual Task DeleteWorkflowStepGroupAsync(DeleteWorkflowStepGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkflowStepGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetTemplate
internal virtual GetTemplateResponse GetTemplate(GetTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get the template you want to use for creating a migration workflow.
///
/// Container for the necessary parameters to execute the GetTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetTemplate service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for GetTemplate Operation
public virtual Task GetTemplateAsync(GetTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetTemplateStep
internal virtual GetTemplateStepResponse GetTemplateStep(GetTemplateStepRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTemplateStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTemplateStepResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get a specific step in a template.
///
/// Container for the necessary parameters to execute the GetTemplateStep service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetTemplateStep service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetTemplateStep Operation
public virtual Task GetTemplateStepAsync(GetTemplateStepRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTemplateStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTemplateStepResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetTemplateStepGroup
internal virtual GetTemplateStepGroupResponse GetTemplateStepGroup(GetTemplateStepGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTemplateStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTemplateStepGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get a step group in a template.
///
/// Container for the necessary parameters to execute the GetTemplateStepGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetTemplateStepGroup service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetTemplateStepGroup Operation
public virtual Task GetTemplateStepGroupAsync(GetTemplateStepGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTemplateStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTemplateStepGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetWorkflow
internal virtual GetWorkflowResponse GetWorkflow(GetWorkflowRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkflowResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get migration workflow.
///
/// Container for the necessary parameters to execute the GetWorkflow service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetWorkflow service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetWorkflow Operation
public virtual Task GetWorkflowAsync(GetWorkflowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkflowResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetWorkflowStep
internal virtual GetWorkflowStepResponse GetWorkflowStep(GetWorkflowStepRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkflowStepResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get a step in the migration workflow.
///
/// Container for the necessary parameters to execute the GetWorkflowStep service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetWorkflowStep service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for GetWorkflowStep Operation
public virtual Task GetWorkflowStepAsync(GetWorkflowStepRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkflowStepResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetWorkflowStepGroup
internal virtual GetWorkflowStepGroupResponse GetWorkflowStepGroup(GetWorkflowStepGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkflowStepGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get the step group of a migration workflow.
///
/// Container for the necessary parameters to execute the GetWorkflowStepGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetWorkflowStepGroup service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetWorkflowStepGroup Operation
public virtual Task GetWorkflowStepGroupAsync(GetWorkflowStepGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkflowStepGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListPlugins
internal virtual ListPluginsResponse ListPlugins(ListPluginsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPluginsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPluginsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List AWS Migration Hub Orchestrator plugins.
///
/// Container for the necessary parameters to execute the ListPlugins service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListPlugins service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListPlugins Operation
public virtual Task ListPluginsAsync(ListPluginsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPluginsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPluginsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List the tags added to a resource.
///
/// 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 MigrationHubOrchestrator.
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 ListTemplates
internal virtual ListTemplatesResponse ListTemplates(ListTemplatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List the templates available in Migration Hub Orchestrator to create a migration workflow.
///
/// Container for the necessary parameters to execute the ListTemplates service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTemplates service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for ListTemplates Operation
public virtual Task ListTemplatesAsync(ListTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTemplateStepGroups
internal virtual ListTemplateStepGroupsResponse ListTemplateStepGroups(ListTemplateStepGroupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplateStepGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplateStepGroupsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List the step groups in a template.
///
/// Container for the necessary parameters to execute the ListTemplateStepGroups service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTemplateStepGroups service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for ListTemplateStepGroups Operation
public virtual Task ListTemplateStepGroupsAsync(ListTemplateStepGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplateStepGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplateStepGroupsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTemplateSteps
internal virtual ListTemplateStepsResponse ListTemplateSteps(ListTemplateStepsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplateStepsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplateStepsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List the steps in a template.
///
/// Container for the necessary parameters to execute the ListTemplateSteps service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTemplateSteps service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListTemplateSteps Operation
public virtual Task ListTemplateStepsAsync(ListTemplateStepsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplateStepsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplateStepsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListWorkflows
internal virtual ListWorkflowsResponse ListWorkflows(ListWorkflowsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkflowsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkflowsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List the migration workflows.
///
/// Container for the necessary parameters to execute the ListWorkflows service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListWorkflows service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListWorkflows Operation
public virtual Task ListWorkflowsAsync(ListWorkflowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkflowsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkflowsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListWorkflowStepGroups
internal virtual ListWorkflowStepGroupsResponse ListWorkflowStepGroups(ListWorkflowStepGroupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkflowStepGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkflowStepGroupsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List the step groups in a migration workflow.
///
/// Container for the necessary parameters to execute the ListWorkflowStepGroups service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListWorkflowStepGroups service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListWorkflowStepGroups Operation
public virtual Task ListWorkflowStepGroupsAsync(ListWorkflowStepGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkflowStepGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkflowStepGroupsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListWorkflowSteps
internal virtual ListWorkflowStepsResponse ListWorkflowSteps(ListWorkflowStepsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkflowStepsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkflowStepsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List the steps in a workflow.
///
/// Container for the necessary parameters to execute the ListWorkflowSteps service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListWorkflowSteps service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListWorkflowSteps Operation
public virtual Task ListWorkflowStepsAsync(ListWorkflowStepsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkflowStepsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkflowStepsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RetryWorkflowStep
internal virtual RetryWorkflowStepResponse RetryWorkflowStep(RetryWorkflowStepRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RetryWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = RetryWorkflowStepResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retry a failed step in a migration workflow.
///
/// Container for the necessary parameters to execute the RetryWorkflowStep service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RetryWorkflowStep service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for RetryWorkflowStep Operation
public virtual Task RetryWorkflowStepAsync(RetryWorkflowStepRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RetryWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = RetryWorkflowStepResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartWorkflow
internal virtual StartWorkflowResponse StartWorkflow(StartWorkflowRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartWorkflowResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Start a migration workflow.
///
/// Container for the necessary parameters to execute the StartWorkflow service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartWorkflow service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for StartWorkflow Operation
public virtual Task StartWorkflowAsync(StartWorkflowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartWorkflowResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopWorkflow
internal virtual StopWorkflowResponse StopWorkflow(StopWorkflowRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopWorkflowResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Stop an ongoing migration workflow.
///
/// Container for the necessary parameters to execute the StopWorkflow service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StopWorkflow service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for StopWorkflow Operation
public virtual Task StopWorkflowAsync(StopWorkflowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopWorkflowResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Tag a resource by specifying its Amazon Resource Name (ARN).
///
/// 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 MigrationHubOrchestrator.
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the tags for a resource.
///
/// 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 MigrationHubOrchestrator.
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 UpdateWorkflow
internal virtual UpdateWorkflowResponse UpdateWorkflow(UpdateWorkflowRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkflowResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Update a migration workflow.
///
/// Container for the necessary parameters to execute the UpdateWorkflow service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateWorkflow service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateWorkflow Operation
public virtual Task UpdateWorkflowAsync(UpdateWorkflowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkflowRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkflowResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateWorkflowStep
internal virtual UpdateWorkflowStepResponse UpdateWorkflowStep(UpdateWorkflowStepRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkflowStepResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Update a step in a migration workflow.
///
/// Container for the necessary parameters to execute the UpdateWorkflowStep service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateWorkflowStep service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateWorkflowStep Operation
public virtual Task UpdateWorkflowStepAsync(UpdateWorkflowStepRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkflowStepRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkflowStepResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateWorkflowStepGroup
internal virtual UpdateWorkflowStepGroupResponse UpdateWorkflowStepGroup(UpdateWorkflowStepGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkflowStepGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Update the step group in a migration workflow.
///
/// Container for the necessary parameters to execute the UpdateWorkflowStepGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateWorkflowStepGroup service method, as returned by MigrationHubOrchestrator.
///
/// You do not have sufficient access to perform this action.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateWorkflowStepGroup Operation
public virtual Task UpdateWorkflowStepGroupAsync(UpdateWorkflowStepGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkflowStepGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkflowStepGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}