/* * 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 AWSMigrationHub-2017-05-31.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.MigrationHub.Model; using Amazon.MigrationHub.Model.Internal.MarshallTransformations; using Amazon.MigrationHub.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.MigrationHub { /// /// Implementation for accessing MigrationHub /// /// The AWS Migration Hub API methods help to obtain server and application migration /// status and integrate your resource-specific migration tool by providing a programmatic /// interface to Migration Hub. /// /// /// /// Remember that you must set your AWS Migration Hub home region before you call any /// of these APIs, or a HomeRegionNotSetException error will be returned. /// Also, you must make the API calls while in your home region. /// /// public partial class AmazonMigrationHubClient : AmazonServiceClient, IAmazonMigrationHub { private static IServiceMetadata serviceMetadata = new AmazonMigrationHubMetadata(); #region Constructors /// /// Constructs AmazonMigrationHubClient 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 AmazonMigrationHubClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubConfig()) { } /// /// Constructs AmazonMigrationHubClient 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 AmazonMigrationHubClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMigrationHubClient 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 AmazonMigrationHubClient Configuration Object public AmazonMigrationHubClient(AmazonMigrationHubConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonMigrationHubClient with AWS Credentials /// /// AWS Credentials public AmazonMigrationHubClient(AWSCredentials credentials) : this(credentials, new AmazonMigrationHubConfig()) { } /// /// Constructs AmazonMigrationHubClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonMigrationHubClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMigrationHubConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMigrationHubClient with AWS Credentials and an /// AmazonMigrationHubClient Configuration object. /// /// AWS Credentials /// The AmazonMigrationHubClient Configuration Object public AmazonMigrationHubClient(AWSCredentials credentials, AmazonMigrationHubConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonMigrationHubClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonMigrationHubClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubConfig()) { } /// /// Constructs AmazonMigrationHubClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonMigrationHubClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonMigrationHubClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMigrationHubClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonMigrationHubClient Configuration Object public AmazonMigrationHubClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMigrationHubConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonMigrationHubClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonMigrationHubClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubConfig()) { } /// /// Constructs AmazonMigrationHubClient 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 AmazonMigrationHubClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMigrationHubClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMigrationHubClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonMigrationHubClient Configuration Object public AmazonMigrationHubClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMigrationHubConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IMigrationHubPaginatorFactory _paginators; /// /// Paginators for the service /// public IMigrationHubPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MigrationHubPaginatorFactory(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 AmazonMigrationHubEndpointResolver()); } /// /// 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 AssociateCreatedArtifact internal virtual AssociateCreatedArtifactResponse AssociateCreatedArtifact(AssociateCreatedArtifactRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateCreatedArtifactRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateCreatedArtifactResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Associates a created artifact of an AWS cloud resource, the target receiving the migration, /// with the migration task performed by a migration tool. This API has the following /// traits: /// ///
  • /// /// Migration tools can call the AssociateCreatedArtifact operation to indicate /// which AWS artifact is associated with a migration task. /// ///
  • /// /// The created artifact name must be provided in ARN (Amazon Resource Name) format which /// will contain information about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b. /// ///
  • /// /// Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, /// or DMS endpoint, etc. /// ///
///
/// Container for the necessary parameters to execute the AssociateCreatedArtifact service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateCreatedArtifact service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for AssociateCreatedArtifact Operation public virtual Task AssociateCreatedArtifactAsync(AssociateCreatedArtifactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateCreatedArtifactRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateCreatedArtifactResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AssociateDiscoveredResource internal virtual AssociateDiscoveredResourceResponse AssociateDiscoveredResource(AssociateDiscoveredResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateDiscoveredResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateDiscoveredResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Associates a discovered resource ID from Application Discovery Service with a migration /// task. /// /// Container for the necessary parameters to execute the AssociateDiscoveredResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateDiscoveredResource service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when there are problems accessing Application Discovery Service (Application /// Discovery Service); most likely due to a misconfigured policy or the migrationhub-discovery /// role is missing or not configured correctly. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for AssociateDiscoveredResource Operation public virtual Task AssociateDiscoveredResourceAsync(AssociateDiscoveredResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateDiscoveredResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateDiscoveredResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateProgressUpdateStream internal virtual CreateProgressUpdateStreamResponse CreateProgressUpdateStream(CreateProgressUpdateStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProgressUpdateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProgressUpdateStreamResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a progress update stream which is an AWS resource used for access control /// as well as a namespace for migration task names that is implicitly linked to your /// AWS account. It must uniquely identify the migration tool as it is used for all updates /// made by the tool; however, it does not need to be unique for each AWS account because /// it is scoped to the AWS account. /// /// Container for the necessary parameters to execute the CreateProgressUpdateStream service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateProgressUpdateStream service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for CreateProgressUpdateStream Operation public virtual Task CreateProgressUpdateStreamAsync(CreateProgressUpdateStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProgressUpdateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProgressUpdateStreamResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteProgressUpdateStream internal virtual DeleteProgressUpdateStreamResponse DeleteProgressUpdateStream(DeleteProgressUpdateStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProgressUpdateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProgressUpdateStreamResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a progress update stream, including all of its tasks, which was previously /// created as an AWS resource used for access control. This API has the following traits: /// ///
  • /// /// The only parameter needed for DeleteProgressUpdateStream is the stream /// name (same as a CreateProgressUpdateStream call). /// ///
  • /// /// The call will return, and a background process will asynchronously delete the stream /// and all of its resources (tasks, associated resources, resource attributes, created /// artifacts). /// ///
  • /// /// If the stream takes time to be deleted, it might still show up on a ListProgressUpdateStreams /// call. /// ///
  • /// /// CreateProgressUpdateStream, ImportMigrationTask, NotifyMigrationTaskState, /// and all Associate[*] APIs related to the tasks belonging to the stream will throw /// "InvalidInputException" if the stream of the same name is in the process of being /// deleted. /// ///
  • /// /// Once the stream and all of its resources are deleted, CreateProgressUpdateStream /// for a stream of the same name will succeed, and that stream will be an entirely new /// logical resource (without any resources associated with the old stream). /// ///
///
/// Container for the necessary parameters to execute the DeleteProgressUpdateStream service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteProgressUpdateStream service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for DeleteProgressUpdateStream Operation public virtual Task DeleteProgressUpdateStreamAsync(DeleteProgressUpdateStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProgressUpdateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProgressUpdateStreamResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeApplicationState internal virtual DescribeApplicationStateResponse DescribeApplicationState(DescribeApplicationStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeApplicationStateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeApplicationStateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the migration status of an application. /// /// Container for the necessary parameters to execute the DescribeApplicationState service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeApplicationState service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when there are problems accessing Application Discovery Service (Application /// Discovery Service); most likely due to a misconfigured policy or the migrationhub-discovery /// role is missing or not configured correctly. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for DescribeApplicationState Operation public virtual Task DescribeApplicationStateAsync(DescribeApplicationStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeApplicationStateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeApplicationStateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeMigrationTask internal virtual DescribeMigrationTaskResponse DescribeMigrationTask(DescribeMigrationTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMigrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMigrationTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a list of all attributes associated with a specific migration task. /// /// Container for the necessary parameters to execute the DescribeMigrationTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeMigrationTask service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for DescribeMigrationTask Operation public virtual Task DescribeMigrationTaskAsync(DescribeMigrationTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMigrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMigrationTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateCreatedArtifact internal virtual DisassociateCreatedArtifactResponse DisassociateCreatedArtifact(DisassociateCreatedArtifactRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateCreatedArtifactRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateCreatedArtifactResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates a created artifact of an AWS resource with a migration task performed /// by a migration tool that was previously associated. This API has the following traits: /// ///
  • /// /// A migration user can call the DisassociateCreatedArtifacts operation /// to disassociate a created AWS Artifact from a migration task. /// ///
  • /// /// The created artifact name must be provided in ARN (Amazon Resource Name) format which /// will contain information about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b. /// ///
  • /// /// Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, /// or RDS instance, etc. /// ///
///
/// Container for the necessary parameters to execute the DisassociateCreatedArtifact service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateCreatedArtifact service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for DisassociateCreatedArtifact Operation public virtual Task DisassociateCreatedArtifactAsync(DisassociateCreatedArtifactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateCreatedArtifactRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateCreatedArtifactResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateDiscoveredResource internal virtual DisassociateDiscoveredResourceResponse DisassociateDiscoveredResource(DisassociateDiscoveredResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateDiscoveredResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateDiscoveredResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociate an Application Discovery Service discovered resource from a migration /// task. /// /// Container for the necessary parameters to execute the DisassociateDiscoveredResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateDiscoveredResource service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for DisassociateDiscoveredResource Operation public virtual Task DisassociateDiscoveredResourceAsync(DisassociateDiscoveredResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateDiscoveredResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateDiscoveredResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ImportMigrationTask internal virtual ImportMigrationTaskResponse ImportMigrationTask(ImportMigrationTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportMigrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportMigrationTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Registers a new migration task which represents a server, database, etc., being migrated /// to AWS by a migration tool. /// /// /// /// This API is a prerequisite to calling the NotifyMigrationTaskState API /// as the migration tool must first register the migration task with Migration Hub. /// /// /// Container for the necessary parameters to execute the ImportMigrationTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ImportMigrationTask service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for ImportMigrationTask Operation public virtual Task ImportMigrationTaskAsync(ImportMigrationTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportMigrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportMigrationTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplicationStates internal virtual ListApplicationStatesResponse ListApplicationStates(ListApplicationStatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationStatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationStatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the migration statuses for your applications. If you use the optional ApplicationIds /// parameter, only the migration statuses for those applications will be returned. /// /// Container for the necessary parameters to execute the ListApplicationStates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplicationStates service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for ListApplicationStates Operation public virtual Task ListApplicationStatesAsync(ListApplicationStatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationStatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationStatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCreatedArtifacts internal virtual ListCreatedArtifactsResponse ListCreatedArtifacts(ListCreatedArtifactsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCreatedArtifactsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCreatedArtifactsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the created artifacts attached to a given migration task in an update stream. /// This API has the following traits: /// ///
  • /// /// Gets the list of the created artifacts while migration is taking place. /// ///
  • /// /// Shows the artifacts created by the migration tool that was associated by the AssociateCreatedArtifact /// API. /// ///
  • /// /// Lists created artifacts in a paginated interface. /// ///
///
/// Container for the necessary parameters to execute the ListCreatedArtifacts service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCreatedArtifacts service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for ListCreatedArtifacts Operation public virtual Task ListCreatedArtifactsAsync(ListCreatedArtifactsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCreatedArtifactsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCreatedArtifactsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDiscoveredResources internal virtual ListDiscoveredResourcesResponse ListDiscoveredResources(ListDiscoveredResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDiscoveredResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDiscoveredResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists discovered resources associated with the given MigrationTask. /// /// Container for the necessary parameters to execute the ListDiscoveredResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDiscoveredResources service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for ListDiscoveredResources Operation public virtual Task ListDiscoveredResourcesAsync(ListDiscoveredResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDiscoveredResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDiscoveredResourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListMigrationTasks internal virtual ListMigrationTasksResponse ListMigrationTasks(ListMigrationTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMigrationTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMigrationTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all, or filtered by resource name, migration tasks associated with the user /// account making this call. This API has the following traits: /// ///
  • /// /// Can show a summary list of the most recent migration tasks. /// ///
  • /// /// Can show a summary list of migration tasks associated with a given discovered resource. /// ///
  • /// /// Lists migration tasks in a paginated interface. /// ///
///
/// Container for the necessary parameters to execute the ListMigrationTasks service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListMigrationTasks service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when there are problems accessing Application Discovery Service (Application /// Discovery Service); most likely due to a misconfigured policy or the migrationhub-discovery /// role is missing or not configured correctly. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for ListMigrationTasks Operation public virtual Task ListMigrationTasksAsync(ListMigrationTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMigrationTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMigrationTasksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListProgressUpdateStreams internal virtual ListProgressUpdateStreamsResponse ListProgressUpdateStreams(ListProgressUpdateStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProgressUpdateStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProgressUpdateStreamsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists progress update streams associated with the user account making this call. /// /// Container for the necessary parameters to execute the ListProgressUpdateStreams service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListProgressUpdateStreams service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for ListProgressUpdateStreams Operation public virtual Task ListProgressUpdateStreamsAsync(ListProgressUpdateStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListProgressUpdateStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProgressUpdateStreamsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region NotifyApplicationState internal virtual NotifyApplicationStateResponse NotifyApplicationState(NotifyApplicationStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyApplicationStateRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyApplicationStateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the migration state of an application. For a given application identified by /// the value passed to ApplicationId, its status is set or updated by passing /// one of three values to Status: NOT_STARTED | IN_PROGRESS | COMPLETED. /// /// Container for the necessary parameters to execute the NotifyApplicationState service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the NotifyApplicationState service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when there are problems accessing Application Discovery Service (Application /// Discovery Service); most likely due to a misconfigured policy or the migrationhub-discovery /// role is missing or not configured correctly. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for NotifyApplicationState Operation public virtual Task NotifyApplicationStateAsync(NotifyApplicationStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyApplicationStateRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyApplicationStateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region NotifyMigrationTaskState internal virtual NotifyMigrationTaskStateResponse NotifyMigrationTaskState(NotifyMigrationTaskStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyMigrationTaskStateRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyMigrationTaskStateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Notifies Migration Hub of the current status, progress, or other detail regarding /// a migration task. This API has the following traits: /// ///
  • /// /// Migration tools will call the NotifyMigrationTaskState API to share the /// latest progress and status. /// ///
  • /// /// MigrationTaskName is used for addressing updates to the correct target. /// ///
  • /// /// ProgressUpdateStream is used for access control and to provide a namespace /// for each migration tool. /// ///
///
/// Container for the necessary parameters to execute the NotifyMigrationTaskState service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the NotifyMigrationTaskState service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for NotifyMigrationTaskState Operation public virtual Task NotifyMigrationTaskStateAsync(NotifyMigrationTaskStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyMigrationTaskStateRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyMigrationTaskStateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutResourceAttributes internal virtual PutResourceAttributesResponse PutResourceAttributes(PutResourceAttributesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourceAttributesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourceAttributesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides identifying details of the resource being migrated so that it can be associated /// in the Application Discovery Service repository. This association occurs asynchronously /// after PutResourceAttributes returns. /// ///
  • /// /// Keep in mind that subsequent calls to PutResourceAttributes will override previously /// stored attributes. For example, if it is first called with a MAC address, but later, /// it is desired to add an IP address, it will then be required to call it with /// both the IP and MAC addresses to prevent overriding the MAC address. /// ///
  • /// /// Note the instructions regarding the special use case of the /// ResourceAttributeList parameter when specifying any "VM" related /// value. /// ///
/// /// Because this is an asynchronous call, it will always return 200, whether an association /// occurs or not. To confirm if an association was found based on the provided details, /// call ListDiscoveredResources. /// /// ///
/// Container for the necessary parameters to execute the PutResourceAttributes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutResourceAttributes service method, as returned by MigrationHub. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate a successfully authorized action when the DryRun /// flag is set to "true". /// /// /// The home region is not set. Set the home region to continue. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when the request references a resource (Application Discovery Service /// configuration, update stream, migration task, etc.) that does not exist in Application /// Discovery Service (Application Discovery Service) or in Migration Hub's repository. /// /// /// Exception raised when there is an internal, configuration, or dependency error encountered. /// /// /// The request was denied due to request throttling. /// /// /// Exception raised to indicate a request was not authorized when the DryRun /// flag is set to "true". /// /// REST API Reference for PutResourceAttributes Operation public virtual Task PutResourceAttributesAsync(PutResourceAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourceAttributesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourceAttributesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }