/* * 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.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(); #if BCL45 || 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 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 #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new 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 /// /// 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. /// /// 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 CreateAppResponse CreateApp(CreateAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateApp operation. /// /// /// Container for the necessary parameters to execute the CreateApp operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateApp /// operation. /// REST API Reference for CreateApp Operation public virtual IAsyncResult BeginCreateApp(CreateAppRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateApp operation. /// /// /// The IAsyncResult returned by the call to BeginCreateApp. /// /// Returns a CreateAppResult from ServerMigrationService. /// REST API Reference for CreateApp Operation public virtual CreateAppResponse EndCreateApp(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateReplicationJob /// /// 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. /// /// 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 CreateReplicationJobResponse CreateReplicationJob(CreateReplicationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateReplicationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateReplicationJob operation. /// /// /// Container for the necessary parameters to execute the CreateReplicationJob operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateReplicationJob /// operation. /// REST API Reference for CreateReplicationJob Operation public virtual IAsyncResult BeginCreateReplicationJob(CreateReplicationJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateReplicationJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateReplicationJob operation. /// /// /// The IAsyncResult returned by the call to BeginCreateReplicationJob. /// /// Returns a CreateReplicationJobResult from ServerMigrationService. /// REST API Reference for CreateReplicationJob Operation public virtual CreateReplicationJobResponse EndCreateReplicationJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteApp /// /// 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. /// /// 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 DeleteAppResponse DeleteApp(DeleteAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteApp operation. /// /// /// Container for the necessary parameters to execute the DeleteApp operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApp /// operation. /// REST API Reference for DeleteApp Operation public virtual IAsyncResult BeginDeleteApp(DeleteAppRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteApp operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteApp. /// /// Returns a DeleteAppResult from ServerMigrationService. /// REST API Reference for DeleteApp Operation public virtual DeleteAppResponse EndDeleteApp(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAppLaunchConfiguration /// /// Deletes the launch configuration for the specified application. /// /// Container for the necessary parameters to execute the DeleteAppLaunchConfiguration service method. /// /// 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 DeleteAppLaunchConfigurationResponse DeleteAppLaunchConfiguration(DeleteAppLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppLaunchConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAppLaunchConfiguration operation. /// /// /// Container for the necessary parameters to execute the DeleteAppLaunchConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAppLaunchConfiguration /// operation. /// REST API Reference for DeleteAppLaunchConfiguration Operation public virtual IAsyncResult BeginDeleteAppLaunchConfiguration(DeleteAppLaunchConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppLaunchConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAppLaunchConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAppLaunchConfiguration. /// /// Returns a DeleteAppLaunchConfigurationResult from ServerMigrationService. /// REST API Reference for DeleteAppLaunchConfiguration Operation public virtual DeleteAppLaunchConfigurationResponse EndDeleteAppLaunchConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAppReplicationConfiguration /// /// Deletes the replication configuration for the specified application. /// /// Container for the necessary parameters to execute the DeleteAppReplicationConfiguration service method. /// /// 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 DeleteAppReplicationConfigurationResponse DeleteAppReplicationConfiguration(DeleteAppReplicationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppReplicationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAppReplicationConfiguration operation. /// /// /// Container for the necessary parameters to execute the DeleteAppReplicationConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAppReplicationConfiguration /// operation. /// REST API Reference for DeleteAppReplicationConfiguration Operation public virtual IAsyncResult BeginDeleteAppReplicationConfiguration(DeleteAppReplicationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppReplicationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAppReplicationConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAppReplicationConfiguration. /// /// Returns a DeleteAppReplicationConfigurationResult from ServerMigrationService. /// REST API Reference for DeleteAppReplicationConfiguration Operation public virtual DeleteAppReplicationConfigurationResponse EndDeleteAppReplicationConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAppValidationConfiguration /// /// Deletes the validation configuration for the specified application. /// /// Container for the necessary parameters to execute the DeleteAppValidationConfiguration service method. /// /// 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 DeleteAppValidationConfigurationResponse DeleteAppValidationConfiguration(DeleteAppValidationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppValidationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAppValidationConfiguration operation. /// /// /// Container for the necessary parameters to execute the DeleteAppValidationConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAppValidationConfiguration /// operation. /// REST API Reference for DeleteAppValidationConfiguration Operation public virtual IAsyncResult BeginDeleteAppValidationConfiguration(DeleteAppValidationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppValidationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAppValidationConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAppValidationConfiguration. /// /// Returns a DeleteAppValidationConfigurationResult from ServerMigrationService. /// REST API Reference for DeleteAppValidationConfiguration Operation public virtual DeleteAppValidationConfigurationResponse EndDeleteAppValidationConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteReplicationJob /// /// 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. /// /// 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 DeleteReplicationJobResponse DeleteReplicationJob(DeleteReplicationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReplicationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteReplicationJob operation. /// /// /// Container for the necessary parameters to execute the DeleteReplicationJob operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteReplicationJob /// operation. /// REST API Reference for DeleteReplicationJob Operation public virtual IAsyncResult BeginDeleteReplicationJob(DeleteReplicationJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReplicationJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteReplicationJob operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteReplicationJob. /// /// Returns a DeleteReplicationJobResult from ServerMigrationService. /// REST API Reference for DeleteReplicationJob Operation public virtual DeleteReplicationJobResponse EndDeleteReplicationJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteServerCatalog /// /// Deletes all servers from your server catalog. /// /// Container for the necessary parameters to execute the DeleteServerCatalog service method. /// /// 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 DeleteServerCatalogResponse DeleteServerCatalog(DeleteServerCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServerCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteServerCatalog operation. /// /// /// Container for the necessary parameters to execute the DeleteServerCatalog operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteServerCatalog /// operation. /// REST API Reference for DeleteServerCatalog Operation public virtual IAsyncResult BeginDeleteServerCatalog(DeleteServerCatalogRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServerCatalogResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteServerCatalog operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteServerCatalog. /// /// Returns a DeleteServerCatalogResult from ServerMigrationService. /// REST API Reference for DeleteServerCatalog Operation public virtual DeleteServerCatalogResponse EndDeleteServerCatalog(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DisassociateConnector /// /// 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. /// /// 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 DisassociateConnectorResponse DisassociateConnector(DisassociateConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateConnectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DisassociateConnector operation. /// /// /// Container for the necessary parameters to execute the DisassociateConnector operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateConnector /// operation. /// REST API Reference for DisassociateConnector Operation public virtual IAsyncResult BeginDisassociateConnector(DisassociateConnectorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateConnectorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DisassociateConnector operation. /// /// /// The IAsyncResult returned by the call to BeginDisassociateConnector. /// /// Returns a DisassociateConnectorResult from ServerMigrationService. /// REST API Reference for DisassociateConnector Operation public virtual DisassociateConnectorResponse EndDisassociateConnector(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GenerateChangeSet /// /// 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. /// /// 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 GenerateChangeSetResponse GenerateChangeSet(GenerateChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateChangeSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GenerateChangeSet operation. /// /// /// Container for the necessary parameters to execute the GenerateChangeSet operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGenerateChangeSet /// operation. /// REST API Reference for GenerateChangeSet Operation public virtual IAsyncResult BeginGenerateChangeSet(GenerateChangeSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateChangeSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GenerateChangeSet operation. /// /// /// The IAsyncResult returned by the call to BeginGenerateChangeSet. /// /// Returns a GenerateChangeSetResult from ServerMigrationService. /// REST API Reference for GenerateChangeSet Operation public virtual GenerateChangeSetResponse EndGenerateChangeSet(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GenerateTemplate /// /// 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. /// /// 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 GenerateTemplateResponse GenerateTemplate(GenerateTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GenerateTemplate operation. /// /// /// Container for the necessary parameters to execute the GenerateTemplate operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGenerateTemplate /// operation. /// REST API Reference for GenerateTemplate Operation public virtual IAsyncResult BeginGenerateTemplate(GenerateTemplateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateTemplateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GenerateTemplate operation. /// /// /// The IAsyncResult returned by the call to BeginGenerateTemplate. /// /// Returns a GenerateTemplateResult from ServerMigrationService. /// REST API Reference for GenerateTemplate Operation public virtual GenerateTemplateResponse EndGenerateTemplate(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetApp /// /// Retrieve information about the specified application. /// /// Container for the necessary parameters to execute the GetApp service method. /// /// 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 GetAppResponse GetApp(GetAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetApp operation. /// /// /// Container for the necessary parameters to execute the GetApp operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetApp /// operation. /// REST API Reference for GetApp Operation public virtual IAsyncResult BeginGetApp(GetAppRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetApp operation. /// /// /// The IAsyncResult returned by the call to BeginGetApp. /// /// Returns a GetAppResult from ServerMigrationService. /// REST API Reference for GetApp Operation public virtual GetAppResponse EndGetApp(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAppLaunchConfiguration /// /// Retrieves the application launch configuration associated with the specified application. /// /// Container for the necessary parameters to execute the GetAppLaunchConfiguration service method. /// /// 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 GetAppLaunchConfigurationResponse GetAppLaunchConfiguration(GetAppLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppLaunchConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAppLaunchConfiguration operation. /// /// /// Container for the necessary parameters to execute the GetAppLaunchConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAppLaunchConfiguration /// operation. /// REST API Reference for GetAppLaunchConfiguration Operation public virtual IAsyncResult BeginGetAppLaunchConfiguration(GetAppLaunchConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppLaunchConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAppLaunchConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginGetAppLaunchConfiguration. /// /// Returns a GetAppLaunchConfigurationResult from ServerMigrationService. /// REST API Reference for GetAppLaunchConfiguration Operation public virtual GetAppLaunchConfigurationResponse EndGetAppLaunchConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAppReplicationConfiguration /// /// Retrieves the application replication configuration associated with the specified /// application. /// /// Container for the necessary parameters to execute the GetAppReplicationConfiguration service method. /// /// 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 GetAppReplicationConfigurationResponse GetAppReplicationConfiguration(GetAppReplicationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppReplicationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAppReplicationConfiguration operation. /// /// /// Container for the necessary parameters to execute the GetAppReplicationConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAppReplicationConfiguration /// operation. /// REST API Reference for GetAppReplicationConfiguration Operation public virtual IAsyncResult BeginGetAppReplicationConfiguration(GetAppReplicationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppReplicationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAppReplicationConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginGetAppReplicationConfiguration. /// /// Returns a GetAppReplicationConfigurationResult from ServerMigrationService. /// REST API Reference for GetAppReplicationConfiguration Operation public virtual GetAppReplicationConfigurationResponse EndGetAppReplicationConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAppValidationConfiguration /// /// Retrieves information about a configuration for validating an application. /// /// Container for the necessary parameters to execute the GetAppValidationConfiguration service method. /// /// 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 GetAppValidationConfigurationResponse GetAppValidationConfiguration(GetAppValidationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAppValidationConfiguration operation. /// /// /// Container for the necessary parameters to execute the GetAppValidationConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAppValidationConfiguration /// operation. /// REST API Reference for GetAppValidationConfiguration Operation public virtual IAsyncResult BeginGetAppValidationConfiguration(GetAppValidationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAppValidationConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginGetAppValidationConfiguration. /// /// Returns a GetAppValidationConfigurationResult from ServerMigrationService. /// REST API Reference for GetAppValidationConfiguration Operation public virtual GetAppValidationConfigurationResponse EndGetAppValidationConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAppValidationOutput /// /// Retrieves output from validating an application. /// /// Container for the necessary parameters to execute the GetAppValidationOutput service method. /// /// 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 GetAppValidationOutputResponse GetAppValidationOutput(GetAppValidationOutputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationOutputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAppValidationOutput operation. /// /// /// Container for the necessary parameters to execute the GetAppValidationOutput operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAppValidationOutput /// operation. /// REST API Reference for GetAppValidationOutput Operation public virtual IAsyncResult BeginGetAppValidationOutput(GetAppValidationOutputRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppValidationOutputResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAppValidationOutput operation. /// /// /// The IAsyncResult returned by the call to BeginGetAppValidationOutput. /// /// Returns a GetAppValidationOutputResult from ServerMigrationService. /// REST API Reference for GetAppValidationOutput Operation public virtual GetAppValidationOutputResponse EndGetAppValidationOutput(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetConnectors /// /// Describes the connectors registered with the Server Migration Service. /// /// Container for the necessary parameters to execute the GetConnectors service method. /// /// 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 GetConnectorsResponse GetConnectors(GetConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConnectorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetConnectors operation. /// /// /// Container for the necessary parameters to execute the GetConnectors operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetConnectors /// operation. /// REST API Reference for GetConnectors Operation public virtual IAsyncResult BeginGetConnectors(GetConnectorsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConnectorsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetConnectors operation. /// /// /// The IAsyncResult returned by the call to BeginGetConnectors. /// /// Returns a GetConnectorsResult from ServerMigrationService. /// REST API Reference for GetConnectors Operation public virtual GetConnectorsResponse EndGetConnectors(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetReplicationJobs /// /// Describes the specified replication job or all of your replication jobs. /// /// Container for the necessary parameters to execute the GetReplicationJobs service method. /// /// 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 GetReplicationJobsResponse GetReplicationJobs(GetReplicationJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetReplicationJobs operation. /// /// /// Container for the necessary parameters to execute the GetReplicationJobs operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetReplicationJobs /// operation. /// REST API Reference for GetReplicationJobs Operation public virtual IAsyncResult BeginGetReplicationJobs(GetReplicationJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetReplicationJobs operation. /// /// /// The IAsyncResult returned by the call to BeginGetReplicationJobs. /// /// Returns a GetReplicationJobsResult from ServerMigrationService. /// REST API Reference for GetReplicationJobs Operation public virtual GetReplicationJobsResponse EndGetReplicationJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetReplicationRuns /// /// Describes the replication runs for the specified replication job. /// /// Container for the necessary parameters to execute the GetReplicationRuns service method. /// /// 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 GetReplicationRunsResponse GetReplicationRuns(GetReplicationRunsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationRunsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetReplicationRuns operation. /// /// /// Container for the necessary parameters to execute the GetReplicationRuns operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetReplicationRuns /// operation. /// REST API Reference for GetReplicationRuns Operation public virtual IAsyncResult BeginGetReplicationRuns(GetReplicationRunsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetReplicationRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReplicationRunsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetReplicationRuns operation. /// /// /// The IAsyncResult returned by the call to BeginGetReplicationRuns. /// /// Returns a GetReplicationRunsResult from ServerMigrationService. /// REST API Reference for GetReplicationRuns Operation public virtual GetReplicationRunsResponse EndGetReplicationRuns(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetServers /// /// 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. /// /// 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 GetServersResponse GetServers(GetServersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetServersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetServers operation. /// /// /// Container for the necessary parameters to execute the GetServers operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetServers /// operation. /// REST API Reference for GetServers Operation public virtual IAsyncResult BeginGetServers(GetServersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetServersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetServers operation. /// /// /// The IAsyncResult returned by the call to BeginGetServers. /// /// Returns a GetServersResult from ServerMigrationService. /// REST API Reference for GetServers Operation public virtual GetServersResponse EndGetServers(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ImportAppCatalog /// /// Allows application import from Migration Hub. /// /// Container for the necessary parameters to execute the ImportAppCatalog service method. /// /// 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 ImportAppCatalogResponse ImportAppCatalog(ImportAppCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportAppCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportAppCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ImportAppCatalog operation. /// /// /// Container for the necessary parameters to execute the ImportAppCatalog operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportAppCatalog /// operation. /// REST API Reference for ImportAppCatalog Operation public virtual IAsyncResult BeginImportAppCatalog(ImportAppCatalogRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ImportAppCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportAppCatalogResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ImportAppCatalog operation. /// /// /// The IAsyncResult returned by the call to BeginImportAppCatalog. /// /// Returns a ImportAppCatalogResult from ServerMigrationService. /// REST API Reference for ImportAppCatalog Operation public virtual ImportAppCatalogResponse EndImportAppCatalog(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ImportServerCatalog /// /// 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. /// /// 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 ImportServerCatalogResponse ImportServerCatalog(ImportServerCatalogRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportServerCatalogResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ImportServerCatalog operation. /// /// /// Container for the necessary parameters to execute the ImportServerCatalog operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportServerCatalog /// operation. /// REST API Reference for ImportServerCatalog Operation public virtual IAsyncResult BeginImportServerCatalog(ImportServerCatalogRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ImportServerCatalogRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportServerCatalogResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ImportServerCatalog operation. /// /// /// The IAsyncResult returned by the call to BeginImportServerCatalog. /// /// Returns a ImportServerCatalogResult from ServerMigrationService. /// REST API Reference for ImportServerCatalog Operation public virtual ImportServerCatalogResponse EndImportServerCatalog(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region LaunchApp /// /// Launches the specified application as a stack in CloudFormation. /// /// Container for the necessary parameters to execute the LaunchApp service method. /// /// 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 LaunchAppResponse LaunchApp(LaunchAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = LaunchAppRequestMarshaller.Instance; options.ResponseUnmarshaller = LaunchAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the LaunchApp operation. /// /// /// Container for the necessary parameters to execute the LaunchApp operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndLaunchApp /// operation. /// REST API Reference for LaunchApp Operation public virtual IAsyncResult BeginLaunchApp(LaunchAppRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = LaunchAppRequestMarshaller.Instance; options.ResponseUnmarshaller = LaunchAppResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the LaunchApp operation. /// /// /// The IAsyncResult returned by the call to BeginLaunchApp. /// /// Returns a LaunchAppResult from ServerMigrationService. /// REST API Reference for LaunchApp Operation public virtual LaunchAppResponse EndLaunchApp(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListApps /// /// Retrieves summaries for all applications. /// /// Container for the necessary parameters to execute the ListApps service method. /// /// 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 ListAppsResponse ListApps(ListAppsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListApps operation. /// /// /// Container for the necessary parameters to execute the ListApps operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApps /// operation. /// REST API Reference for ListApps Operation public virtual IAsyncResult BeginListApps(ListAppsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListApps operation. /// /// /// The IAsyncResult returned by the call to BeginListApps. /// /// Returns a ListAppsResult from ServerMigrationService. /// REST API Reference for ListApps Operation public virtual ListAppsResponse EndListApps(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region NotifyAppValidationOutput /// /// Provides information to Server Migration Service about whether application validation /// is successful. /// /// Container for the necessary parameters to execute the NotifyAppValidationOutput service method. /// /// 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 NotifyAppValidationOutputResponse NotifyAppValidationOutput(NotifyAppValidationOutputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyAppValidationOutputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the NotifyAppValidationOutput operation. /// /// /// Container for the necessary parameters to execute the NotifyAppValidationOutput operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndNotifyAppValidationOutput /// operation. /// REST API Reference for NotifyAppValidationOutput Operation public virtual IAsyncResult BeginNotifyAppValidationOutput(NotifyAppValidationOutputRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = NotifyAppValidationOutputRequestMarshaller.Instance; options.ResponseUnmarshaller = NotifyAppValidationOutputResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the NotifyAppValidationOutput operation. /// /// /// The IAsyncResult returned by the call to BeginNotifyAppValidationOutput. /// /// Returns a NotifyAppValidationOutputResult from ServerMigrationService. /// REST API Reference for NotifyAppValidationOutput Operation public virtual NotifyAppValidationOutputResponse EndNotifyAppValidationOutput(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutAppLaunchConfiguration /// /// Creates or updates the launch configuration for the specified application. /// /// Container for the necessary parameters to execute the PutAppLaunchConfiguration service method. /// /// 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 PutAppLaunchConfigurationResponse PutAppLaunchConfiguration(PutAppLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppLaunchConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutAppLaunchConfiguration operation. /// /// /// Container for the necessary parameters to execute the PutAppLaunchConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutAppLaunchConfiguration /// operation. /// REST API Reference for PutAppLaunchConfiguration Operation public virtual IAsyncResult BeginPutAppLaunchConfiguration(PutAppLaunchConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppLaunchConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutAppLaunchConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginPutAppLaunchConfiguration. /// /// Returns a PutAppLaunchConfigurationResult from ServerMigrationService. /// REST API Reference for PutAppLaunchConfiguration Operation public virtual PutAppLaunchConfigurationResponse EndPutAppLaunchConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutAppReplicationConfiguration /// /// Creates or updates the replication configuration for the specified application. /// /// Container for the necessary parameters to execute the PutAppReplicationConfiguration service method. /// /// 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 PutAppReplicationConfigurationResponse PutAppReplicationConfiguration(PutAppReplicationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppReplicationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutAppReplicationConfiguration operation. /// /// /// Container for the necessary parameters to execute the PutAppReplicationConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutAppReplicationConfiguration /// operation. /// REST API Reference for PutAppReplicationConfiguration Operation public virtual IAsyncResult BeginPutAppReplicationConfiguration(PutAppReplicationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppReplicationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutAppReplicationConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginPutAppReplicationConfiguration. /// /// Returns a PutAppReplicationConfigurationResult from ServerMigrationService. /// REST API Reference for PutAppReplicationConfiguration Operation public virtual PutAppReplicationConfigurationResponse EndPutAppReplicationConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutAppValidationConfiguration /// /// Creates or updates a validation configuration for the specified application. /// /// Container for the necessary parameters to execute the PutAppValidationConfiguration service method. /// /// 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 PutAppValidationConfigurationResponse PutAppValidationConfiguration(PutAppValidationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppValidationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutAppValidationConfiguration operation. /// /// /// Container for the necessary parameters to execute the PutAppValidationConfiguration operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutAppValidationConfiguration /// operation. /// REST API Reference for PutAppValidationConfiguration Operation public virtual IAsyncResult BeginPutAppValidationConfiguration(PutAppValidationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutAppValidationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAppValidationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutAppValidationConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginPutAppValidationConfiguration. /// /// Returns a PutAppValidationConfigurationResult from ServerMigrationService. /// REST API Reference for PutAppValidationConfiguration Operation public virtual PutAppValidationConfigurationResponse EndPutAppValidationConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartAppReplication /// /// 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. /// /// 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 StartAppReplicationResponse StartAppReplication(StartAppReplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAppReplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartAppReplication operation. /// /// /// Container for the necessary parameters to execute the StartAppReplication operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartAppReplication /// operation. /// REST API Reference for StartAppReplication Operation public virtual IAsyncResult BeginStartAppReplication(StartAppReplicationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAppReplicationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartAppReplication operation. /// /// /// The IAsyncResult returned by the call to BeginStartAppReplication. /// /// Returns a StartAppReplicationResult from ServerMigrationService. /// REST API Reference for StartAppReplication Operation public virtual StartAppReplicationResponse EndStartAppReplication(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartOnDemandAppReplication /// /// Starts an on-demand replication run for the specified application. /// /// Container for the necessary parameters to execute the StartOnDemandAppReplication service method. /// /// 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 StartOnDemandAppReplicationResponse StartOnDemandAppReplication(StartOnDemandAppReplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandAppReplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartOnDemandAppReplication operation. /// /// /// Container for the necessary parameters to execute the StartOnDemandAppReplication operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartOnDemandAppReplication /// operation. /// REST API Reference for StartOnDemandAppReplication Operation public virtual IAsyncResult BeginStartOnDemandAppReplication(StartOnDemandAppReplicationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandAppReplicationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartOnDemandAppReplication operation. /// /// /// The IAsyncResult returned by the call to BeginStartOnDemandAppReplication. /// /// Returns a StartOnDemandAppReplicationResult from ServerMigrationService. /// REST API Reference for StartOnDemandAppReplication Operation public virtual StartOnDemandAppReplicationResponse EndStartOnDemandAppReplication(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartOnDemandReplicationRun /// /// 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. /// /// 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 StartOnDemandReplicationRunResponse StartOnDemandReplicationRun(StartOnDemandReplicationRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandReplicationRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandReplicationRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartOnDemandReplicationRun operation. /// /// /// Container for the necessary parameters to execute the StartOnDemandReplicationRun operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartOnDemandReplicationRun /// operation. /// REST API Reference for StartOnDemandReplicationRun Operation public virtual IAsyncResult BeginStartOnDemandReplicationRun(StartOnDemandReplicationRunRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandReplicationRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandReplicationRunResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartOnDemandReplicationRun operation. /// /// /// The IAsyncResult returned by the call to BeginStartOnDemandReplicationRun. /// /// Returns a StartOnDemandReplicationRunResult from ServerMigrationService. /// REST API Reference for StartOnDemandReplicationRun Operation public virtual StartOnDemandReplicationRunResponse EndStartOnDemandReplicationRun(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopAppReplication /// /// 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. /// /// 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 StopAppReplicationResponse StopAppReplication(StopAppReplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAppReplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopAppReplication operation. /// /// /// Container for the necessary parameters to execute the StopAppReplication operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopAppReplication /// operation. /// REST API Reference for StopAppReplication Operation public virtual IAsyncResult BeginStopAppReplication(StopAppReplicationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopAppReplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAppReplicationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopAppReplication operation. /// /// /// The IAsyncResult returned by the call to BeginStopAppReplication. /// /// Returns a StopAppReplicationResult from ServerMigrationService. /// REST API Reference for StopAppReplication Operation public virtual StopAppReplicationResponse EndStopAppReplication(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TerminateApp /// /// Terminates the stack for the specified application. /// /// Container for the necessary parameters to execute the TerminateApp service method. /// /// 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 TerminateAppResponse TerminateApp(TerminateAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TerminateApp operation. /// /// /// Container for the necessary parameters to execute the TerminateApp operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTerminateApp /// operation. /// REST API Reference for TerminateApp Operation public virtual IAsyncResult BeginTerminateApp(TerminateAppRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateAppResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TerminateApp operation. /// /// /// The IAsyncResult returned by the call to BeginTerminateApp. /// /// Returns a TerminateAppResult from ServerMigrationService. /// REST API Reference for TerminateApp Operation public virtual TerminateAppResponse EndTerminateApp(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateApp /// /// Updates the specified application. /// /// Container for the necessary parameters to execute the UpdateApp service method. /// /// 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 UpdateAppResponse UpdateApp(UpdateAppRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAppResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateApp operation. /// /// /// Container for the necessary parameters to execute the UpdateApp operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateApp /// operation. /// REST API Reference for UpdateApp Operation public virtual IAsyncResult BeginUpdateApp(UpdateAppRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAppRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAppResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateApp operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateApp. /// /// Returns a UpdateAppResult from ServerMigrationService. /// REST API Reference for UpdateApp Operation public virtual UpdateAppResponse EndUpdateApp(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateReplicationJob /// /// Updates the specified settings for the specified replication job. /// /// Container for the necessary parameters to execute the UpdateReplicationJob service method. /// /// 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 UpdateReplicationJobResponse UpdateReplicationJob(UpdateReplicationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateReplicationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateReplicationJob operation. /// /// /// Container for the necessary parameters to execute the UpdateReplicationJob operation on AmazonServerMigrationServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateReplicationJob /// operation. /// REST API Reference for UpdateReplicationJob Operation public virtual IAsyncResult BeginUpdateReplicationJob(UpdateReplicationJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateReplicationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateReplicationJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateReplicationJob operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateReplicationJob. /// /// Returns a UpdateReplicationJobResult from ServerMigrationService. /// REST API Reference for UpdateReplicationJob Operation public virtual UpdateReplicationJobResponse EndUpdateReplicationJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }