/* * 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 sms-2016-10-24.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.ServerMigrationService.Model; using Amazon.ServerMigrationService.Model.Internal.MarshallTransformations; using Amazon.ServerMigrationService.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ServerMigrationService { /// /// Implementation for accessing ServerMigrationService /// /// /// /// Product update /// /// /// /// We recommend Amazon /// Web Services Application Migration Service (Amazon Web Services MGN) as the primary /// migration service for lift-and-shift migrations. If Amazon Web Services MGN is unavailable /// in a specific Amazon Web Services Region, you can use the Server Migration Service /// APIs through March 2023. /// /// /// /// Server Migration Service (Server Migration Service) makes it easier and faster for /// you to migrate your on-premises workloads to Amazon Web Services. To learn more about /// Server Migration Service, see the following resources: /// /// /// public partial class AmazonServerMigrationServiceClient : AmazonServiceClient, IAmazonServerMigrationService { private static IServiceMetadata serviceMetadata = new AmazonServerMigrationServiceMetadata(); #region Constructors /// /// Constructs AmazonServerMigrationServiceClient 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 AmazonServerMigrationServiceClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonServerMigrationServiceConfig()) { } /// /// Constructs AmazonServerMigrationServiceClient 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 AmazonServerMigrationServiceClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonServerMigrationServiceConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonServerMigrationServiceClient 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 AmazonServerMigrationServiceClient Configuration Object public AmazonServerMigrationServiceClient(AmazonServerMigrationServiceConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonServerMigrationServiceClient with AWS Credentials /// /// AWS Credentials public AmazonServerMigrationServiceClient(AWSCredentials credentials) : this(credentials, new AmazonServerMigrationServiceConfig()) { } /// /// Constructs AmazonServerMigrationServiceClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonServerMigrationServiceClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonServerMigrationServiceConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonServerMigrationServiceClient with AWS Credentials and an /// AmazonServerMigrationServiceClient Configuration object. /// /// AWS Credentials /// The AmazonServerMigrationServiceClient Configuration Object public AmazonServerMigrationServiceClient(AWSCredentials credentials, AmazonServerMigrationServiceConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonServerMigrationServiceClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonServerMigrationServiceClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonServerMigrationServiceConfig()) { } /// /// Constructs AmazonServerMigrationServiceClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonServerMigrationServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonServerMigrationServiceConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonServerMigrationServiceClient with AWS Access Key ID, AWS Secret Key and an /// AmazonServerMigrationServiceClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonServerMigrationServiceClient Configuration Object public AmazonServerMigrationServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonServerMigrationServiceConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonServerMigrationServiceClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonServerMigrationServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonServerMigrationServiceConfig()) { } /// /// Constructs AmazonServerMigrationServiceClient 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 AmazonServerMigrationServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonServerMigrationServiceConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonServerMigrationServiceClient with AWS Access Key ID, AWS Secret Key and an /// AmazonServerMigrationServiceClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonServerMigrationServiceClient Configuration Object public AmazonServerMigrationServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonServerMigrationServiceConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IServerMigrationServicePaginatorFactory _paginators; /// /// Paginators for the service /// public IServerMigrationServicePaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ServerMigrationServicePaginatorFactory(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 AmazonServerMigrationServiceEndpointResolver()); } /// /// 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 CreateApp internal virtual CreateAppResponse CreateApp(CreateAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an application. An application consists of one or more server groups. Each /// server group contain one or more servers. /// /// Container for the necessary parameters to execute the CreateApp service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateApp service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for CreateApp Operation public virtual Task CreateAppAsync(CreateAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateReplicationJob internal virtual CreateReplicationJobResponse CreateReplicationJob(CreateReplicationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateReplicationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a replication job. The replication job schedules periodic replication runs /// to replicate your server to Amazon Web Services. Each replication run creates an Amazon /// Machine Image (AMI). /// /// Container for the necessary parameters to execute the CreateReplicationJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateReplicationJob service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// There are no connectors available. /// /// /// This operation is not allowed. /// /// /// The specified replication job already exists. /// /// /// The specified server cannot be replicated. /// /// /// The service is temporarily unavailable. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for CreateReplicationJob Operation public virtual Task CreateReplicationJobAsync(CreateReplicationJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateReplicationJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApp internal virtual DeleteAppResponse DeleteApp(DeleteAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified application. Optionally deletes the launched stack associated /// with the application and all Server Migration Service replication jobs for servers /// in the application. /// /// Container for the necessary parameters to execute the DeleteApp service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApp service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for DeleteApp Operation public virtual Task DeleteAppAsync(DeleteAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAppLaunchConfiguration internal virtual DeleteAppLaunchConfigurationResponse DeleteAppLaunchConfiguration(DeleteAppLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppLaunchConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the launch configuration for the specified application. /// /// Container for the necessary parameters to execute the DeleteAppLaunchConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAppLaunchConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for DeleteAppLaunchConfiguration Operation public virtual Task DeleteAppLaunchConfigurationAsync(DeleteAppLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppLaunchConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAppReplicationConfiguration internal virtual DeleteAppReplicationConfigurationResponse DeleteAppReplicationConfiguration(DeleteAppReplicationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppReplicationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the replication configuration for the specified application. /// /// Container for the necessary parameters to execute the DeleteAppReplicationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAppReplicationConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for DeleteAppReplicationConfiguration Operation public virtual Task DeleteAppReplicationConfigurationAsync(DeleteAppReplicationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppReplicationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAppValidationConfiguration internal virtual DeleteAppValidationConfigurationResponse DeleteAppValidationConfiguration(DeleteAppValidationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppValidationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the validation configuration for the specified application. /// /// Container for the necessary parameters to execute the DeleteAppValidationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAppValidationConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for DeleteAppValidationConfiguration Operation public virtual Task DeleteAppValidationConfigurationAsync(DeleteAppValidationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppValidationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteReplicationJob internal virtual DeleteReplicationJobResponse DeleteReplicationJob(DeleteReplicationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReplicationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified replication job. /// /// /// /// After you delete a replication job, there are no further replication runs. Amazon /// Web Services deletes the contents of the Amazon S3 bucket used to store Server Migration /// Service artifacts. The AMIs created by the replication runs are not deleted. /// /// /// Container for the necessary parameters to execute the DeleteReplicationJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteReplicationJob service method, as returned by ServerMigrationService. /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// The specified replication job does not exist. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for DeleteReplicationJob Operation public virtual Task DeleteReplicationJobAsync(DeleteReplicationJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReplicationJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteServerCatalog internal virtual DeleteServerCatalogResponse DeleteServerCatalog(DeleteServerCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServerCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes all servers from your server catalog. /// /// Container for the necessary parameters to execute the DeleteServerCatalog service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteServerCatalog service method, as returned by ServerMigrationService. /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for DeleteServerCatalog Operation public virtual Task DeleteServerCatalogAsync(DeleteServerCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServerCatalogResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateConnector internal virtual DisassociateConnectorResponse DisassociateConnector(DisassociateConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateConnectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates the specified connector from Server Migration Service. /// /// /// /// After you disassociate a connector, it is no longer available to support replication /// jobs. /// /// /// Container for the necessary parameters to execute the DisassociateConnector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateConnector service method, as returned by ServerMigrationService. /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for DisassociateConnector Operation public virtual Task DisassociateConnectorAsync(DisassociateConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateConnectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GenerateChangeSet internal virtual GenerateChangeSetResponse GenerateChangeSet(GenerateChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateChangeSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Generates a target change set for a currently launched stack and writes it to an Amazon /// S3 object in the customer’s Amazon S3 bucket. /// /// Container for the necessary parameters to execute the GenerateChangeSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GenerateChangeSet service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GenerateChangeSet Operation public virtual Task GenerateChangeSetAsync(GenerateChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateChangeSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GenerateTemplate internal virtual GenerateTemplateResponse GenerateTemplate(GenerateTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Generates an CloudFormation template based on the current launch configuration and /// writes it to an Amazon S3 object in the customer’s Amazon S3 bucket. /// /// Container for the necessary parameters to execute the GenerateTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GenerateTemplate service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GenerateTemplate Operation public virtual Task GenerateTemplateAsync(GenerateTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApp internal virtual GetAppResponse GetApp(GetAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieve information about the specified application. /// /// Container for the necessary parameters to execute the GetApp service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApp service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetApp Operation public virtual Task GetAppAsync(GetAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAppLaunchConfiguration internal virtual GetAppLaunchConfigurationResponse GetAppLaunchConfiguration(GetAppLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppLaunchConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the application launch configuration associated with the specified application. /// /// Container for the necessary parameters to execute the GetAppLaunchConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAppLaunchConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetAppLaunchConfiguration Operation public virtual Task GetAppLaunchConfigurationAsync(GetAppLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppLaunchConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAppReplicationConfiguration internal virtual GetAppReplicationConfigurationResponse GetAppReplicationConfiguration(GetAppReplicationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppReplicationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the application replication configuration associated with the specified /// application. /// /// Container for the necessary parameters to execute the GetAppReplicationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAppReplicationConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetAppReplicationConfiguration Operation public virtual Task GetAppReplicationConfigurationAsync(GetAppReplicationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppReplicationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAppValidationConfiguration internal virtual GetAppValidationConfigurationResponse GetAppValidationConfiguration(GetAppValidationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about a configuration for validating an application. /// /// Container for the necessary parameters to execute the GetAppValidationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAppValidationConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetAppValidationConfiguration Operation public virtual Task GetAppValidationConfigurationAsync(GetAppValidationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAppValidationOutput internal virtual GetAppValidationOutputResponse GetAppValidationOutput(GetAppValidationOutputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationOutputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves output from validating an application. /// /// Container for the necessary parameters to execute the GetAppValidationOutput service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAppValidationOutput service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetAppValidationOutput Operation public virtual Task GetAppValidationOutputAsync(GetAppValidationOutputRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationOutputResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetConnectors internal virtual GetConnectorsResponse GetConnectors(GetConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConnectorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the connectors registered with the Server Migration Service. /// /// Container for the necessary parameters to execute the GetConnectors service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetConnectors service method, as returned by ServerMigrationService. /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetConnectors Operation public virtual Task GetConnectorsAsync(GetConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConnectorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetReplicationJobs internal virtual GetReplicationJobsResponse GetReplicationJobs(GetReplicationJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the specified replication job or all of your replication jobs. /// /// Container for the necessary parameters to execute the GetReplicationJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetReplicationJobs service method, as returned by ServerMigrationService. /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetReplicationJobs Operation public virtual Task GetReplicationJobsAsync(GetReplicationJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetReplicationRuns internal virtual GetReplicationRunsResponse GetReplicationRuns(GetReplicationRunsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationRunsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the replication runs for the specified replication job. /// /// Container for the necessary parameters to execute the GetReplicationRuns service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetReplicationRuns service method, as returned by ServerMigrationService. /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetReplicationRuns Operation public virtual Task GetReplicationRunsAsync(GetReplicationRunsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationRunsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetServers internal virtual GetServersResponse GetServers(GetServersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetServersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the servers in your server catalog. /// /// /// /// Before you can describe your servers, you must import them using ImportServerCatalog. /// /// /// Container for the necessary parameters to execute the GetServers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetServers service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for GetServers Operation public virtual Task GetServersAsync(GetServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetServersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ImportAppCatalog internal virtual ImportAppCatalogResponse ImportAppCatalog(ImportAppCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportAppCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportAppCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Allows application import from Migration Hub. /// /// Container for the necessary parameters to execute the ImportAppCatalog service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ImportAppCatalog service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for ImportAppCatalog Operation public virtual Task ImportAppCatalogAsync(ImportAppCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportAppCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportAppCatalogResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ImportServerCatalog internal virtual ImportServerCatalogResponse ImportServerCatalog(ImportServerCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportServerCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gathers a complete list of on-premises servers. Connectors must be installed and monitoring /// all servers to import. /// /// /// /// This call returns immediately, but might take additional time to retrieve all the /// servers. /// /// /// Container for the necessary parameters to execute the ImportServerCatalog service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ImportServerCatalog service method, as returned by ServerMigrationService. /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// There are no connectors available. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for ImportServerCatalog Operation public virtual Task ImportServerCatalogAsync(ImportServerCatalogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportServerCatalogResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region LaunchApp internal virtual LaunchAppResponse LaunchApp(LaunchAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = LaunchAppRequestMarshaller.Instance; options.ResponseUnmarshaller = LaunchAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Launches the specified application as a stack in CloudFormation. /// /// Container for the necessary parameters to execute the LaunchApp service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the LaunchApp service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for LaunchApp Operation public virtual Task LaunchAppAsync(LaunchAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = LaunchAppRequestMarshaller.Instance; options.ResponseUnmarshaller = LaunchAppResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApps internal virtual ListAppsResponse ListApps(ListAppsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves summaries for all applications. /// /// Container for the necessary parameters to execute the ListApps service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApps service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for ListApps Operation public virtual Task ListAppsAsync(ListAppsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region NotifyAppValidationOutput internal virtual NotifyAppValidationOutputResponse NotifyAppValidationOutput(NotifyAppValidationOutputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyAppValidationOutputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides information to Server Migration Service about whether application validation /// is successful. /// /// Container for the necessary parameters to execute the NotifyAppValidationOutput service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the NotifyAppValidationOutput service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for NotifyAppValidationOutput Operation public virtual Task NotifyAppValidationOutputAsync(NotifyAppValidationOutputRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyAppValidationOutputResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutAppLaunchConfiguration internal virtual PutAppLaunchConfigurationResponse PutAppLaunchConfiguration(PutAppLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppLaunchConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates or updates the launch configuration for the specified application. /// /// Container for the necessary parameters to execute the PutAppLaunchConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutAppLaunchConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for PutAppLaunchConfiguration Operation public virtual Task PutAppLaunchConfigurationAsync(PutAppLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppLaunchConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutAppReplicationConfiguration internal virtual PutAppReplicationConfigurationResponse PutAppReplicationConfiguration(PutAppReplicationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppReplicationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates or updates the replication configuration for the specified application. /// /// Container for the necessary parameters to execute the PutAppReplicationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutAppReplicationConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for PutAppReplicationConfiguration Operation public virtual Task PutAppReplicationConfigurationAsync(PutAppReplicationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppReplicationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutAppValidationConfiguration internal virtual PutAppValidationConfigurationResponse PutAppValidationConfiguration(PutAppValidationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppValidationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates or updates a validation configuration for the specified application. /// /// Container for the necessary parameters to execute the PutAppValidationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutAppValidationConfiguration service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for PutAppValidationConfiguration Operation public virtual Task PutAppValidationConfigurationAsync(PutAppValidationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppValidationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartAppReplication internal virtual StartAppReplicationResponse StartAppReplication(StartAppReplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAppReplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts replicating the specified application by creating replication jobs for each /// server in the application. /// /// Container for the necessary parameters to execute the StartAppReplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartAppReplication service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for StartAppReplication Operation public virtual Task StartAppReplicationAsync(StartAppReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAppReplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartOnDemandAppReplication internal virtual StartOnDemandAppReplicationResponse StartOnDemandAppReplication(StartOnDemandAppReplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandAppReplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts an on-demand replication run for the specified application. /// /// Container for the necessary parameters to execute the StartOnDemandAppReplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartOnDemandAppReplication service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for StartOnDemandAppReplication Operation public virtual Task StartOnDemandAppReplicationAsync(StartOnDemandAppReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandAppReplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartOnDemandReplicationRun internal virtual StartOnDemandReplicationRunResponse StartOnDemandReplicationRun(StartOnDemandReplicationRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandReplicationRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandReplicationRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts an on-demand replication run for the specified replication job. This replication /// run starts immediately. This replication run is in addition to the ones already scheduled. /// /// /// /// There is a limit on the number of on-demand replications runs that you can request /// in a 24-hour period. /// /// /// Container for the necessary parameters to execute the StartOnDemandReplicationRun service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartOnDemandReplicationRun service method, as returned by ServerMigrationService. /// /// The user has the required permissions, so the request would have succeeded, but a /// dry run was performed. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You have exceeded the number of on-demand replication runs you can request in a 24-hour /// period. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for StartOnDemandReplicationRun Operation public virtual Task StartOnDemandReplicationRunAsync(StartOnDemandReplicationRunRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandReplicationRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandReplicationRunResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopAppReplication internal virtual StopAppReplicationResponse StopAppReplication(StopAppReplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAppReplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops replicating the specified application by deleting the replication job for each /// server in the application. /// /// Container for the necessary parameters to execute the StopAppReplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopAppReplication service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for StopAppReplication Operation public virtual Task StopAppReplicationAsync(StopAppReplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAppReplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TerminateApp internal virtual TerminateAppResponse TerminateApp(TerminateAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Terminates the stack for the specified application. /// /// Container for the necessary parameters to execute the TerminateApp service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TerminateApp service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for TerminateApp Operation public virtual Task TerminateAppAsync(TerminateAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateAppResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateApp internal virtual UpdateAppResponse UpdateApp(UpdateAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the specified application. /// /// Container for the necessary parameters to execute the UpdateApp service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApp service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for UpdateApp Operation public virtual Task UpdateAppAsync(UpdateAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAppResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateReplicationJob internal virtual UpdateReplicationJobResponse UpdateReplicationJob(UpdateReplicationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateReplicationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the specified settings for the specified replication job. /// /// Container for the necessary parameters to execute the UpdateReplicationJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateReplicationJob service method, as returned by ServerMigrationService. /// /// An internal error occurred. /// /// /// A specified parameter is not valid. /// /// /// A required parameter is missing. /// /// /// This operation is not allowed. /// /// /// The specified replication job does not exist. /// /// /// The specified server cannot be replicated. /// /// /// The service is temporarily unavailable. /// /// /// You lack permissions needed to perform this operation. Check your IAM policies, and /// ensure that you are using the correct access keys. /// /// REST API Reference for UpdateReplicationJob Operation public virtual Task UpdateReplicationJobAsync(UpdateReplicationJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateReplicationJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }