/*
* 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 mgn-2020-02-26.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.Mgn.Model;
using Amazon.Mgn.Model.Internal.MarshallTransformations;
using Amazon.Mgn.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Mgn
{
///
/// Implementation for accessing Mgn
///
/// The Application Migration Service service.
///
public partial class AmazonMgnClient : AmazonServiceClient, IAmazonMgn
{
private static IServiceMetadata serviceMetadata = new AmazonMgnMetadata();
#region Constructors
///
/// Constructs AmazonMgnClient 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 AmazonMgnClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMgnConfig()) { }
///
/// Constructs AmazonMgnClient 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 AmazonMgnClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMgnConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonMgnClient 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 AmazonMgnClient Configuration Object
public AmazonMgnClient(AmazonMgnConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonMgnClient with AWS Credentials
///
/// AWS Credentials
public AmazonMgnClient(AWSCredentials credentials)
: this(credentials, new AmazonMgnConfig())
{
}
///
/// Constructs AmazonMgnClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonMgnClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonMgnConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMgnClient with AWS Credentials and an
/// AmazonMgnClient Configuration object.
///
/// AWS Credentials
/// The AmazonMgnClient Configuration Object
public AmazonMgnClient(AWSCredentials credentials, AmazonMgnConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonMgnClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonMgnClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMgnConfig())
{
}
///
/// Constructs AmazonMgnClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonMgnClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMgnConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonMgnClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMgnClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonMgnClient Configuration Object
public AmazonMgnClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMgnConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonMgnClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonMgnClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMgnConfig())
{
}
///
/// Constructs AmazonMgnClient 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 AmazonMgnClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMgnConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMgnClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMgnClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonMgnClient Configuration Object
public AmazonMgnClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMgnConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IMgnPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IMgnPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new MgnPaginatorFactory(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 AmazonMgnEndpointResolver());
}
///
/// 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 ArchiveApplication
internal virtual ArchiveApplicationResponse ArchiveApplication(ArchiveApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ArchiveApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = ArchiveApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Archive application.
///
/// Container for the necessary parameters to execute the ArchiveApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ArchiveApplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for ArchiveApplication Operation
public virtual Task ArchiveApplicationAsync(ArchiveApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ArchiveApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = ArchiveApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ArchiveWave
internal virtual ArchiveWaveResponse ArchiveWave(ArchiveWaveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ArchiveWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = ArchiveWaveResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Archive wave.
///
/// Container for the necessary parameters to execute the ArchiveWave service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ArchiveWave service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for ArchiveWave Operation
public virtual Task ArchiveWaveAsync(ArchiveWaveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ArchiveWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = ArchiveWaveResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AssociateApplications
internal virtual AssociateApplicationsResponse AssociateApplications(AssociateApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateApplicationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Associate applications to wave.
///
/// Container for the necessary parameters to execute the AssociateApplications service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateApplications service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for AssociateApplications Operation
public virtual Task AssociateApplicationsAsync(AssociateApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateApplicationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AssociateSourceServers
internal virtual AssociateSourceServersResponse AssociateSourceServers(AssociateSourceServersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateSourceServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateSourceServersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Associate source servers to application.
///
/// Container for the necessary parameters to execute the AssociateSourceServers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateSourceServers service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for AssociateSourceServers Operation
public virtual Task AssociateSourceServersAsync(AssociateSourceServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateSourceServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateSourceServersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ChangeServerLifeCycleState
internal virtual ChangeServerLifeCycleStateResponse ChangeServerLifeCycleState(ChangeServerLifeCycleStateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ChangeServerLifeCycleStateRequestMarshaller.Instance;
options.ResponseUnmarshaller = ChangeServerLifeCycleStateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Allows the user to set the SourceServer.LifeCycle.state property for specific Source
/// Server IDs to one of the following: READY_FOR_TEST or READY_FOR_CUTOVER. This command
/// only works if the Source Server is already launchable (dataReplicationInfo.lagDuration
/// is not null.)
///
/// Container for the necessary parameters to execute the ChangeServerLifeCycleState service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ChangeServerLifeCycleState service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for ChangeServerLifeCycleState Operation
public virtual Task ChangeServerLifeCycleStateAsync(ChangeServerLifeCycleStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ChangeServerLifeCycleStateRequestMarshaller.Instance;
options.ResponseUnmarshaller = ChangeServerLifeCycleStateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateApplication
internal virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Create application.
///
/// Container for the necessary parameters to execute the CreateApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateApplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for CreateApplication Operation
public virtual Task CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateLaunchConfigurationTemplate
internal virtual CreateLaunchConfigurationTemplateResponse CreateLaunchConfigurationTemplate(CreateLaunchConfigurationTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLaunchConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLaunchConfigurationTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new Launch Configuration Template.
///
/// Container for the necessary parameters to execute the CreateLaunchConfigurationTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateLaunchConfigurationTemplate service method, as returned by Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for CreateLaunchConfigurationTemplate Operation
public virtual Task CreateLaunchConfigurationTemplateAsync(CreateLaunchConfigurationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLaunchConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLaunchConfigurationTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateReplicationConfigurationTemplate
internal virtual CreateReplicationConfigurationTemplateResponse CreateReplicationConfigurationTemplate(CreateReplicationConfigurationTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateReplicationConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateReplicationConfigurationTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new ReplicationConfigurationTemplate.
///
/// Container for the necessary parameters to execute the CreateReplicationConfigurationTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateReplicationConfigurationTemplate service method, as returned by Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for CreateReplicationConfigurationTemplate Operation
public virtual Task CreateReplicationConfigurationTemplateAsync(CreateReplicationConfigurationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateReplicationConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateReplicationConfigurationTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateWave
internal virtual CreateWaveResponse CreateWave(CreateWaveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWaveResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Create wave.
///
/// Container for the necessary parameters to execute the CreateWave service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateWave service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for CreateWave Operation
public virtual Task CreateWaveAsync(CreateWaveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWaveResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteApplication
internal virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete application.
///
/// Container for the necessary parameters to execute the DeleteApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteApplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DeleteApplication Operation
public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteJob
internal virtual DeleteJobResponse DeleteJob(DeleteJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a single Job by ID.
///
/// Container for the necessary parameters to execute the DeleteJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteJob service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DeleteJob Operation
public virtual Task DeleteJobAsync(DeleteJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteLaunchConfigurationTemplate
internal virtual DeleteLaunchConfigurationTemplateResponse DeleteLaunchConfigurationTemplate(DeleteLaunchConfigurationTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLaunchConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLaunchConfigurationTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a single Launch Configuration Template by ID.
///
/// Container for the necessary parameters to execute the DeleteLaunchConfigurationTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteLaunchConfigurationTemplate service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DeleteLaunchConfigurationTemplate Operation
public virtual Task DeleteLaunchConfigurationTemplateAsync(DeleteLaunchConfigurationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLaunchConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLaunchConfigurationTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteReplicationConfigurationTemplate
internal virtual DeleteReplicationConfigurationTemplateResponse DeleteReplicationConfigurationTemplate(DeleteReplicationConfigurationTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteReplicationConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteReplicationConfigurationTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a single Replication Configuration Template by ID
///
/// Container for the necessary parameters to execute the DeleteReplicationConfigurationTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteReplicationConfigurationTemplate service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DeleteReplicationConfigurationTemplate Operation
public virtual Task DeleteReplicationConfigurationTemplateAsync(DeleteReplicationConfigurationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteReplicationConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteReplicationConfigurationTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteSourceServer
internal virtual DeleteSourceServerResponse DeleteSourceServer(DeleteSourceServerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSourceServerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSourceServerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a single source server by ID.
///
/// Container for the necessary parameters to execute the DeleteSourceServer service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteSourceServer service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DeleteSourceServer Operation
public virtual Task DeleteSourceServerAsync(DeleteSourceServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSourceServerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSourceServerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteVcenterClient
internal virtual DeleteVcenterClientResponse DeleteVcenterClient(DeleteVcenterClientRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVcenterClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVcenterClientResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a given vCenter client by ID.
///
/// Container for the necessary parameters to execute the DeleteVcenterClient service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteVcenterClient service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for DeleteVcenterClient Operation
public virtual Task DeleteVcenterClientAsync(DeleteVcenterClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVcenterClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVcenterClientResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteWave
internal virtual DeleteWaveResponse DeleteWave(DeleteWaveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWaveResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete wave.
///
/// Container for the necessary parameters to execute the DeleteWave service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteWave service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DeleteWave Operation
public virtual Task DeleteWaveAsync(DeleteWaveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWaveResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeJobLogItems
internal virtual DescribeJobLogItemsResponse DescribeJobLogItems(DescribeJobLogItemsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeJobLogItemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeJobLogItemsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves detailed job log items with paging.
///
/// Container for the necessary parameters to execute the DescribeJobLogItems service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeJobLogItems service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for DescribeJobLogItems Operation
public virtual Task DescribeJobLogItemsAsync(DescribeJobLogItemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeJobLogItemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeJobLogItemsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeJobs
internal virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of Jobs. Use the JobsID and fromDate and toData filters to limit which
/// jobs are returned. The response is sorted by creationDataTime - latest date first.
/// Jobs are normally created by the StartTest, StartCutover, and TerminateTargetInstances
/// APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances,
/// which are APIs available only to *Support* and only used in response to relevant support
/// tickets.
///
/// Container for the necessary parameters to execute the DescribeJobs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeJobs service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for DescribeJobs Operation
public virtual Task DescribeJobsAsync(DescribeJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeLaunchConfigurationTemplates
internal virtual DescribeLaunchConfigurationTemplatesResponse DescribeLaunchConfigurationTemplates(DescribeLaunchConfigurationTemplatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLaunchConfigurationTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLaunchConfigurationTemplatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all Launch Configuration Templates, filtered by Launch Configuration Template
/// IDs
///
/// Container for the necessary parameters to execute the DescribeLaunchConfigurationTemplates service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeLaunchConfigurationTemplates service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for DescribeLaunchConfigurationTemplates Operation
public virtual Task DescribeLaunchConfigurationTemplatesAsync(DescribeLaunchConfigurationTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLaunchConfigurationTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLaunchConfigurationTemplatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeReplicationConfigurationTemplates
internal virtual DescribeReplicationConfigurationTemplatesResponse DescribeReplicationConfigurationTemplates(DescribeReplicationConfigurationTemplatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplicationConfigurationTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplicationConfigurationTemplatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.
///
/// Container for the necessary parameters to execute the DescribeReplicationConfigurationTemplates service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeReplicationConfigurationTemplates service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for DescribeReplicationConfigurationTemplates Operation
public virtual Task DescribeReplicationConfigurationTemplatesAsync(DescribeReplicationConfigurationTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplicationConfigurationTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplicationConfigurationTemplatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeSourceServers
internal virtual DescribeSourceServersResponse DescribeSourceServers(DescribeSourceServersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSourceServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSourceServersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves all SourceServers or multiple SourceServers by ID.
///
/// Container for the necessary parameters to execute the DescribeSourceServers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSourceServers service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for DescribeSourceServers Operation
public virtual Task DescribeSourceServersAsync(DescribeSourceServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSourceServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSourceServersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeVcenterClients
internal virtual DescribeVcenterClientsResponse DescribeVcenterClients(DescribeVcenterClientsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVcenterClientsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVcenterClientsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of the installed vCenter clients.
///
/// Container for the necessary parameters to execute the DescribeVcenterClients service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeVcenterClients service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for DescribeVcenterClients Operation
public virtual Task DescribeVcenterClientsAsync(DescribeVcenterClientsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVcenterClientsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVcenterClientsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateApplications
internal virtual DisassociateApplicationsResponse DisassociateApplications(DisassociateApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateApplicationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disassociate applications from wave.
///
/// Container for the necessary parameters to execute the DisassociateApplications service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateApplications service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DisassociateApplications Operation
public virtual Task DisassociateApplicationsAsync(DisassociateApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateApplicationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateSourceServers
internal virtual DisassociateSourceServersResponse DisassociateSourceServers(DisassociateSourceServersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateSourceServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateSourceServersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disassociate source servers from application.
///
/// Container for the necessary parameters to execute the DisassociateSourceServers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateSourceServers service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DisassociateSourceServers Operation
public virtual Task DisassociateSourceServersAsync(DisassociateSourceServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateSourceServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateSourceServersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisconnectFromService
internal virtual DisconnectFromServiceResponse DisconnectFromService(DisconnectFromServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisconnectFromServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisconnectFromServiceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disconnects specific Source Servers from Application Migration Service. Data replication
/// is stopped immediately. All AWS resources created by Application Migration Service
/// for enabling the replication of these source servers will be terminated / deleted
/// within 90 minutes. Launched Test or Cutover instances will NOT be terminated. If the
/// agent on the source server has not been prevented from communicating with the Application
/// Migration Service service, then it will receive a command to uninstall itself (within
/// approximately 10 minutes). The following properties of the SourceServer will be changed
/// immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED;
/// The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will
/// be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration
/// will be nullified.
///
/// Container for the necessary parameters to execute the DisconnectFromService service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisconnectFromService service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for DisconnectFromService Operation
public virtual Task DisconnectFromServiceAsync(DisconnectFromServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisconnectFromServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisconnectFromServiceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region FinalizeCutover
internal virtual FinalizeCutoverResponse FinalizeCutover(FinalizeCutoverRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = FinalizeCutoverRequestMarshaller.Instance;
options.ResponseUnmarshaller = FinalizeCutoverResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Finalizes the cutover immediately for specific Source Servers. All AWS resources created
/// by Application Migration Service for enabling the replication of these source servers
/// will be terminated / deleted within 90 minutes. Launched Test or Cutover instances
/// will NOT be terminated. The AWS Replication Agent will receive a command to uninstall
/// itself (within 10 minutes). The following properties of the SourceServer will be changed
/// immediately: dataReplicationInfo.dataReplicationState will be changed to DISCONNECTED;
/// The SourceServer.lifeCycle.state will be changed to CUTOVER; The totalStorageBytes
/// property fo each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration
/// and dataReplicationInfo.lagDuration will be nullified.
///
/// Container for the necessary parameters to execute the FinalizeCutover service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the FinalizeCutover service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for FinalizeCutover Operation
public virtual Task FinalizeCutoverAsync(FinalizeCutoverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = FinalizeCutoverRequestMarshaller.Instance;
options.ResponseUnmarshaller = FinalizeCutoverResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetLaunchConfiguration
internal virtual GetLaunchConfigurationResponse GetLaunchConfiguration(GetLaunchConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLaunchConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLaunchConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all LaunchConfigurations available, filtered by Source Server IDs.
///
/// Container for the necessary parameters to execute the GetLaunchConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetLaunchConfiguration service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for GetLaunchConfiguration Operation
public virtual Task GetLaunchConfigurationAsync(GetLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLaunchConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLaunchConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetReplicationConfiguration
internal virtual GetReplicationConfigurationResponse GetReplicationConfiguration(GetReplicationConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetReplicationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetReplicationConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all ReplicationConfigurations, filtered by Source Server ID.
///
/// Container for the necessary parameters to execute the GetReplicationConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetReplicationConfiguration service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for GetReplicationConfiguration Operation
public virtual Task GetReplicationConfigurationAsync(GetReplicationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetReplicationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetReplicationConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region InitializeService
internal virtual InitializeServiceResponse InitializeService(InitializeServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = InitializeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = InitializeServiceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initialize Application Migration Service.
///
/// Container for the necessary parameters to execute the InitializeService service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the InitializeService service method, as returned by Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// Validate exception.
///
/// REST API Reference for InitializeService Operation
public virtual Task InitializeServiceAsync(InitializeServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = InitializeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = InitializeServiceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListApplications
internal virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves all applications or multiple applications by ID.
///
/// Container for the necessary parameters to execute the ListApplications service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListApplications service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
/// REST API Reference for ListApplications Operation
public virtual Task ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListExportErrors
internal virtual ListExportErrorsResponse ListExportErrors(ListExportErrorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExportErrorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExportErrorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List export errors.
///
/// Container for the necessary parameters to execute the ListExportErrors service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListExportErrors service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for ListExportErrors Operation
public virtual Task ListExportErrorsAsync(ListExportErrorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExportErrorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExportErrorsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListExports
internal virtual ListExportsResponse ListExports(ListExportsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List exports.
///
/// Container for the necessary parameters to execute the ListExports service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListExports service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
/// REST API Reference for ListExports Operation
public virtual Task ListExportsAsync(ListExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListImportErrors
internal virtual ListImportErrorsResponse ListImportErrors(ListImportErrorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImportErrorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImportErrorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List import errors.
///
/// Container for the necessary parameters to execute the ListImportErrors service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListImportErrors service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for ListImportErrors Operation
public virtual Task ListImportErrorsAsync(ListImportErrorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImportErrorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImportErrorsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListImports
internal virtual ListImportsResponse ListImports(ListImportsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List imports.
///
/// Container for the necessary parameters to execute the ListImports service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListImports service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for ListImports Operation
public virtual Task ListImportsAsync(ListImportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListManagedAccounts
internal virtual ListManagedAccountsResponse ListManagedAccounts(ListManagedAccountsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListManagedAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListManagedAccountsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List Managed Accounts.
///
/// Container for the necessary parameters to execute the ListManagedAccounts service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListManagedAccounts service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for ListManagedAccounts Operation
public virtual Task ListManagedAccountsAsync(ListManagedAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListManagedAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListManagedAccountsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListSourceServerActions
internal virtual ListSourceServerActionsResponse ListSourceServerActions(ListSourceServerActionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSourceServerActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSourceServerActionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List source server post migration custom actions.
///
/// Container for the necessary parameters to execute the ListSourceServerActions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListSourceServerActions service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for ListSourceServerActions Operation
public virtual Task ListSourceServerActionsAsync(ListSourceServerActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSourceServerActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSourceServerActionsResponseUnmarshaller.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 all tags for your Application Migration Service resources.
///
/// 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 Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// The server encountered an unexpected condition that prevented it from fulfilling the
/// request.
///
///
/// Resource not found exception.
///
///
/// Reached throttling quota exception.
///
///
/// Validate exception.
///
/// 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 ListTemplateActions
internal virtual ListTemplateActionsResponse ListTemplateActions(ListTemplateActionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplateActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplateActionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List template post migration custom actions.
///
/// Container for the necessary parameters to execute the ListTemplateActions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTemplateActions service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for ListTemplateActions Operation
public virtual Task ListTemplateActionsAsync(ListTemplateActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTemplateActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTemplateActionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListWaves
internal virtual ListWavesResponse ListWaves(ListWavesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWavesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWavesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves all waves or multiple waves by ID.
///
/// Container for the necessary parameters to execute the ListWaves service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListWaves service method, as returned by Mgn.
///
/// Uninitialized account exception.
///
/// REST API Reference for ListWaves Operation
public virtual Task ListWavesAsync(ListWavesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWavesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWavesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region MarkAsArchived
internal virtual MarkAsArchivedResponse MarkAsArchived(MarkAsArchivedRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = MarkAsArchivedRequestMarshaller.Instance;
options.ResponseUnmarshaller = MarkAsArchivedResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Archives specific Source Servers by setting the SourceServer.isArchived property to
/// true for specified SourceServers by ID. This command only works for SourceServers
/// with a lifecycle. state which equals DISCONNECTED or CUTOVER.
///
/// Container for the necessary parameters to execute the MarkAsArchived service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the MarkAsArchived service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for MarkAsArchived Operation
public virtual Task MarkAsArchivedAsync(MarkAsArchivedRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = MarkAsArchivedRequestMarshaller.Instance;
options.ResponseUnmarshaller = MarkAsArchivedResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PauseReplication
internal virtual PauseReplicationResponse PauseReplication(PauseReplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseReplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Pause Replication.
///
/// Container for the necessary parameters to execute the PauseReplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PauseReplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for PauseReplication Operation
public virtual Task PauseReplicationAsync(PauseReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseReplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutSourceServerAction
internal virtual PutSourceServerActionResponse PutSourceServerAction(PutSourceServerActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutSourceServerActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutSourceServerActionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Put source server post migration custom action.
///
/// Container for the necessary parameters to execute the PutSourceServerAction service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutSourceServerAction service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for PutSourceServerAction Operation
public virtual Task PutSourceServerActionAsync(PutSourceServerActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutSourceServerActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutSourceServerActionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutTemplateAction
internal virtual PutTemplateActionResponse PutTemplateAction(PutTemplateActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTemplateActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTemplateActionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Put template post migration custom action.
///
/// Container for the necessary parameters to execute the PutTemplateAction service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutTemplateAction service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for PutTemplateAction Operation
public virtual Task PutTemplateActionAsync(PutTemplateActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTemplateActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTemplateActionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RemoveSourceServerAction
internal virtual RemoveSourceServerActionResponse RemoveSourceServerAction(RemoveSourceServerActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveSourceServerActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveSourceServerActionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Remove source server post migration custom action.
///
/// Container for the necessary parameters to execute the RemoveSourceServerAction service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RemoveSourceServerAction service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for RemoveSourceServerAction Operation
public virtual Task RemoveSourceServerActionAsync(RemoveSourceServerActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveSourceServerActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveSourceServerActionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RemoveTemplateAction
internal virtual RemoveTemplateActionResponse RemoveTemplateAction(RemoveTemplateActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTemplateActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTemplateActionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Remove template post migration custom action.
///
/// Container for the necessary parameters to execute the RemoveTemplateAction service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RemoveTemplateAction service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for RemoveTemplateAction Operation
public virtual Task RemoveTemplateActionAsync(RemoveTemplateActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTemplateActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTemplateActionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ResumeReplication
internal virtual ResumeReplicationResponse ResumeReplication(ResumeReplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeReplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Resume Replication.
///
/// Container for the necessary parameters to execute the ResumeReplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ResumeReplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for ResumeReplication Operation
public virtual Task ResumeReplicationAsync(ResumeReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeReplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RetryDataReplication
internal virtual RetryDataReplicationResponse RetryDataReplication(RetryDataReplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RetryDataReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = RetryDataReplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Causes the data replication initiation sequence to begin immediately upon next Handshake
/// for specified SourceServer IDs, regardless of when the previous initiation started.
/// This command will not work if the SourceServer is not stalled or is in a DISCONNECTED
/// or STOPPED state.
///
/// Container for the necessary parameters to execute the RetryDataReplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RetryDataReplication service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for RetryDataReplication Operation
public virtual Task RetryDataReplicationAsync(RetryDataReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RetryDataReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = RetryDataReplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartCutover
internal virtual StartCutoverResponse StartCutover(StartCutoverRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCutoverRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCutoverResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Launches a Cutover Instance for specific Source Servers. This command starts a LAUNCH
/// job whose initiatedBy property is StartCutover and changes the SourceServer.lifeCycle.state
/// property to CUTTING_OVER.
///
/// Container for the necessary parameters to execute the StartCutover service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartCutover service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for StartCutover Operation
public virtual Task StartCutoverAsync(StartCutoverRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCutoverRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCutoverResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartExport
internal virtual StartExportResponse StartExport(StartExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Start export.
///
/// Container for the necessary parameters to execute the StartExport service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartExport service method, as returned by Mgn.
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for StartExport Operation
public virtual Task StartExportAsync(StartExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartImport
internal virtual StartImportResponse StartImport(StartImportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Start import.
///
/// Container for the necessary parameters to execute the StartImport service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartImport service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for StartImport Operation
public virtual Task StartImportAsync(StartImportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartReplication
internal virtual StartReplicationResponse StartReplication(StartReplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts replication for SNAPSHOT_SHIPPING agents.
///
/// Container for the necessary parameters to execute the StartReplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartReplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for StartReplication Operation
public virtual Task StartReplicationAsync(StartReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartTest
internal virtual StartTestResponse StartTest(StartTestRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartTestRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartTestResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Launches a Test Instance for specific Source Servers. This command starts a LAUNCH
/// job whose initiatedBy property is StartTest and changes the SourceServer.lifeCycle.state
/// property to TESTING.
///
/// Container for the necessary parameters to execute the StartTest service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartTest service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for StartTest Operation
public virtual Task StartTestAsync(StartTestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartTestRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartTestResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopReplication
internal virtual StopReplicationResponse StopReplication(StopReplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopReplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Stop Replication.
///
/// Container for the necessary parameters to execute the StopReplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StopReplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for StopReplication Operation
public virtual Task StopReplicationAsync(StopReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopReplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopReplicationResponseUnmarshaller.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);
}
///
/// Adds or overwrites only the specified tags for the specified Application Migration
/// Service resource or resources. When you specify an existing tag key, the value is
/// overwritten with the new value. Each resource can have a maximum of 50 tags. Each
/// tag consists of a key and optional value.
///
/// 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 Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// The server encountered an unexpected condition that prevented it from fulfilling the
/// request.
///
///
/// Resource not found exception.
///
///
/// Reached throttling quota exception.
///
///
/// Validate exception.
///
/// 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 TerminateTargetInstances
internal virtual TerminateTargetInstancesResponse TerminateTargetInstances(TerminateTargetInstancesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TerminateTargetInstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = TerminateTargetInstancesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts a job that terminates specific launched EC2 Test and Cutover instances. This
/// command will not work for any Source Server with a lifecycle.state of TESTING, CUTTING_OVER,
/// or CUTOVER.
///
/// Container for the necessary parameters to execute the TerminateTargetInstances service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TerminateTargetInstances service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for TerminateTargetInstances Operation
public virtual Task TerminateTargetInstancesAsync(TerminateTargetInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TerminateTargetInstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = TerminateTargetInstancesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UnarchiveApplication
internal virtual UnarchiveApplicationResponse UnarchiveApplication(UnarchiveApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UnarchiveApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UnarchiveApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Unarchive application.
///
/// Container for the necessary parameters to execute the UnarchiveApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UnarchiveApplication service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for UnarchiveApplication Operation
public virtual Task UnarchiveApplicationAsync(UnarchiveApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UnarchiveApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UnarchiveApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UnarchiveWave
internal virtual UnarchiveWaveResponse UnarchiveWave(UnarchiveWaveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UnarchiveWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UnarchiveWaveResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Unarchive wave.
///
/// Container for the necessary parameters to execute the UnarchiveWave service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UnarchiveWave service method, as returned by Mgn.
///
/// Resource not found exception.
///
///
/// The request could not be completed because its exceeded the service quota.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for UnarchiveWave Operation
public virtual Task UnarchiveWaveAsync(UnarchiveWaveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UnarchiveWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UnarchiveWaveResponseUnmarshaller.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 specified set of tags from the specified set of Application Migration
/// Service resources.
///
/// 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 Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// The server encountered an unexpected condition that prevented it from fulfilling the
/// request.
///
///
/// Resource not found exception.
///
///
/// Reached throttling quota exception.
///
///
/// Validate exception.
///
/// 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 UpdateApplication
internal virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Update application.
///
/// Container for the necessary parameters to execute the UpdateApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateApplication service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for UpdateApplication Operation
public virtual Task UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateLaunchConfiguration
internal virtual UpdateLaunchConfigurationResponse UpdateLaunchConfiguration(UpdateLaunchConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLaunchConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLaunchConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates multiple LaunchConfigurations by Source Server ID.
///
/// Container for the necessary parameters to execute the UpdateLaunchConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateLaunchConfiguration service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for UpdateLaunchConfiguration Operation
public virtual Task UpdateLaunchConfigurationAsync(UpdateLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLaunchConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLaunchConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateLaunchConfigurationTemplate
internal virtual UpdateLaunchConfigurationTemplateResponse UpdateLaunchConfigurationTemplate(UpdateLaunchConfigurationTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLaunchConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLaunchConfigurationTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates an existing Launch Configuration Template by ID.
///
/// Container for the necessary parameters to execute the UpdateLaunchConfigurationTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateLaunchConfigurationTemplate service method, as returned by Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for UpdateLaunchConfigurationTemplate Operation
public virtual Task UpdateLaunchConfigurationTemplateAsync(UpdateLaunchConfigurationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLaunchConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLaunchConfigurationTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateReplicationConfiguration
internal virtual UpdateReplicationConfigurationResponse UpdateReplicationConfiguration(UpdateReplicationConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReplicationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReplicationConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Allows you to update multiple ReplicationConfigurations by Source Server ID.
///
/// Container for the necessary parameters to execute the UpdateReplicationConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateReplicationConfiguration service method, as returned by Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for UpdateReplicationConfiguration Operation
public virtual Task UpdateReplicationConfigurationAsync(UpdateReplicationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReplicationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReplicationConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateReplicationConfigurationTemplate
internal virtual UpdateReplicationConfigurationTemplateResponse UpdateReplicationConfigurationTemplate(UpdateReplicationConfigurationTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReplicationConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReplicationConfigurationTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates multiple ReplicationConfigurationTemplates by ID.
///
/// Container for the necessary parameters to execute the UpdateReplicationConfigurationTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateReplicationConfigurationTemplate service method, as returned by Mgn.
///
/// Operating denied due to a file permission or access check error.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for UpdateReplicationConfigurationTemplate Operation
public virtual Task UpdateReplicationConfigurationTemplateAsync(UpdateReplicationConfigurationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateReplicationConfigurationTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateReplicationConfigurationTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateSourceServerReplicationType
internal virtual UpdateSourceServerReplicationTypeResponse UpdateSourceServerReplicationType(UpdateSourceServerReplicationTypeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSourceServerReplicationTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSourceServerReplicationTypeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Allows you to change between the AGENT_BASED replication type and the SNAPSHOT_SHIPPING
/// replication type.
///
/// Container for the necessary parameters to execute the UpdateSourceServerReplicationType service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateSourceServerReplicationType service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
///
/// Validate exception.
///
/// REST API Reference for UpdateSourceServerReplicationType Operation
public virtual Task UpdateSourceServerReplicationTypeAsync(UpdateSourceServerReplicationTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSourceServerReplicationTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSourceServerReplicationTypeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateWave
internal virtual UpdateWaveResponse UpdateWave(UpdateWaveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWaveResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Update wave.
///
/// Container for the necessary parameters to execute the UpdateWave service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateWave service method, as returned by Mgn.
///
/// The request could not be completed due to a conflict with the current state of the
/// target resource.
///
///
/// Resource not found exception.
///
///
/// Uninitialized account exception.
///
/// REST API Reference for UpdateWave Operation
public virtual Task UpdateWaveAsync(UpdateWaveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWaveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWaveResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}