AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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:

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.ServerMigrationService.AmazonServerMigrationServiceClient

Namespace: Amazon.ServerMigrationService
Assembly: AWSSDK.ServerMigrationService.dll
Version: 3.x.y.z

Syntax

C#
public class AmazonServerMigrationServiceClient : AmazonServiceClient
         IAmazonServerMigrationService, IAmazonService, IDisposable

The AmazonServerMigrationServiceClient type exposes the following members

Constructors

NameDescription
Public Method AmazonServerMigrationServiceClient()

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 Method AmazonServerMigrationServiceClient(RegionEndpoint)

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 Method AmazonServerMigrationServiceClient(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>
             

Public Method AmazonServerMigrationServiceClient(AWSCredentials)

Constructs AmazonServerMigrationServiceClient with AWS Credentials

Public Method AmazonServerMigrationServiceClient(AWSCredentials, RegionEndpoint)

Constructs AmazonServerMigrationServiceClient with AWS Credentials

Public Method AmazonServerMigrationServiceClient(AWSCredentials, AmazonServerMigrationServiceConfig)

Constructs AmazonServerMigrationServiceClient with AWS Credentials and an AmazonServerMigrationServiceClient Configuration object.

Public Method AmazonServerMigrationServiceClient(string, string)

Constructs AmazonServerMigrationServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonServerMigrationServiceClient(string, string, RegionEndpoint)

Constructs AmazonServerMigrationServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonServerMigrationServiceClient(string, string, AmazonServerMigrationServiceConfig)

Constructs AmazonServerMigrationServiceClient with AWS Access Key ID, AWS Secret Key and an AmazonServerMigrationServiceClient Configuration object.

Public Method AmazonServerMigrationServiceClient(string, string, string)

Constructs AmazonServerMigrationServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonServerMigrationServiceClient(string, string, string, RegionEndpoint)

Constructs AmazonServerMigrationServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonServerMigrationServiceClient(string, string, string, AmazonServerMigrationServiceConfig)

Constructs AmazonServerMigrationServiceClient with AWS Access Key ID, AWS Secret Key and an AmazonServerMigrationServiceClient Configuration object.

Properties

NameTypeDescription
Public Property Config Amazon.Runtime.IClientConfig Inherited from Amazon.Runtime.AmazonServiceClient.
Public Property Paginators Amazon.ServerMigrationService.Model.IServerMigrationServicePaginatorFactory

Paginators for the service

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method CreateApp(CreateAppRequest)

Creates an application. An application consists of one or more server groups. Each server group contain one or more servers.

Public Method CreateAppAsync(CreateAppRequest, CancellationToken)

Creates an application. An application consists of one or more server groups. Each server group contain one or more servers.

Public Method CreateReplicationJob(CreateReplicationJobRequest)

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).

Public Method CreateReplicationJobAsync(CreateReplicationJobRequest, CancellationToken)

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).

Public Method DeleteApp(DeleteAppRequest)

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.

Public Method DeleteAppAsync(DeleteAppRequest, CancellationToken)

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.

Public Method DeleteAppLaunchConfiguration(DeleteAppLaunchConfigurationRequest)

Deletes the launch configuration for the specified application.

Public Method DeleteAppLaunchConfigurationAsync(DeleteAppLaunchConfigurationRequest, CancellationToken)

Deletes the launch configuration for the specified application.

Public Method DeleteAppReplicationConfiguration(DeleteAppReplicationConfigurationRequest)

Deletes the replication configuration for the specified application.

Public Method DeleteAppReplicationConfigurationAsync(DeleteAppReplicationConfigurationRequest, CancellationToken)

Deletes the replication configuration for the specified application.

Public Method DeleteAppValidationConfiguration(DeleteAppValidationConfigurationRequest)

Deletes the validation configuration for the specified application.

Public Method DeleteAppValidationConfigurationAsync(DeleteAppValidationConfigurationRequest, CancellationToken)

Deletes the validation configuration for the specified application.

Public Method DeleteReplicationJob(DeleteReplicationJobRequest)

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.

Public Method DeleteReplicationJobAsync(DeleteReplicationJobRequest, CancellationToken)

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.

Public Method DeleteServerCatalog(DeleteServerCatalogRequest)

Deletes all servers from your server catalog.

Public Method DeleteServerCatalogAsync(DeleteServerCatalogRequest, CancellationToken)

Deletes all servers from your server catalog.

Public Method DetermineServiceOperationEndpoint(AmazonWebServiceRequest)

Returns the endpoint that will be used for a particular request.

Public Method DisassociateConnector(DisassociateConnectorRequest)

Disassociates the specified connector from Server Migration Service.

After you disassociate a connector, it is no longer available to support replication jobs.

Public Method DisassociateConnectorAsync(DisassociateConnectorRequest, CancellationToken)

Disassociates the specified connector from Server Migration Service.

After you disassociate a connector, it is no longer available to support replication jobs.

Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method GenerateChangeSet(GenerateChangeSetRequest)

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.

Public Method GenerateChangeSetAsync(GenerateChangeSetRequest, CancellationToken)

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.

Public Method GenerateTemplate(GenerateTemplateRequest)

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.

Public Method GenerateTemplateAsync(GenerateTemplateRequest, CancellationToken)

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.

Public Method GetApp(GetAppRequest)

Retrieve information about the specified application.

Public Method GetAppAsync(GetAppRequest, CancellationToken)

Retrieve information about the specified application.

Public Method GetAppLaunchConfiguration(GetAppLaunchConfigurationRequest)

Retrieves the application launch configuration associated with the specified application.

Public Method GetAppLaunchConfigurationAsync(GetAppLaunchConfigurationRequest, CancellationToken)

Retrieves the application launch configuration associated with the specified application.

Public Method GetAppReplicationConfiguration(GetAppReplicationConfigurationRequest)

Retrieves the application replication configuration associated with the specified application.

Public Method GetAppReplicationConfigurationAsync(GetAppReplicationConfigurationRequest, CancellationToken)

Retrieves the application replication configuration associated with the specified application.

Public Method GetAppValidationConfiguration(GetAppValidationConfigurationRequest)

Retrieves information about a configuration for validating an application.

Public Method GetAppValidationConfigurationAsync(GetAppValidationConfigurationRequest, CancellationToken)

Retrieves information about a configuration for validating an application.

Public Method GetAppValidationOutput(GetAppValidationOutputRequest)

Retrieves output from validating an application.

Public Method GetAppValidationOutputAsync(GetAppValidationOutputRequest, CancellationToken)

Retrieves output from validating an application.

Public Method GetConnectors(GetConnectorsRequest)

Describes the connectors registered with the Server Migration Service.

Public Method GetConnectorsAsync(GetConnectorsRequest, CancellationToken)

Describes the connectors registered with the Server Migration Service.

Public Method GetReplicationJobs(GetReplicationJobsRequest)

Describes the specified replication job or all of your replication jobs.

Public Method GetReplicationJobsAsync(GetReplicationJobsRequest, CancellationToken)

Describes the specified replication job or all of your replication jobs.

Public Method GetReplicationRuns(GetReplicationRunsRequest)

Describes the replication runs for the specified replication job.

Public Method GetReplicationRunsAsync(GetReplicationRunsRequest, CancellationToken)

Describes the replication runs for the specified replication job.

Public Method GetServers(GetServersRequest)

Describes the servers in your server catalog.

Before you can describe your servers, you must import them using ImportServerCatalog.

Public Method GetServersAsync(GetServersRequest, CancellationToken)

Describes the servers in your server catalog.

Before you can describe your servers, you must import them using ImportServerCatalog.

Public Method ImportAppCatalog(ImportAppCatalogRequest)

Allows application import from Migration Hub.

Public Method ImportAppCatalogAsync(ImportAppCatalogRequest, CancellationToken)

Allows application import from Migration Hub.

Public Method ImportServerCatalog(ImportServerCatalogRequest)

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.

Public Method ImportServerCatalogAsync(ImportServerCatalogRequest, CancellationToken)

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.

Public Method LaunchApp(LaunchAppRequest)

Launches the specified application as a stack in CloudFormation.

Public Method LaunchAppAsync(LaunchAppRequest, CancellationToken)

Launches the specified application as a stack in CloudFormation.

Public Method ListApps(ListAppsRequest)

Retrieves summaries for all applications.

Public Method ListAppsAsync(ListAppsRequest, CancellationToken)

Retrieves summaries for all applications.

Public Method NotifyAppValidationOutput(NotifyAppValidationOutputRequest)

Provides information to Server Migration Service about whether application validation is successful.

Public Method NotifyAppValidationOutputAsync(NotifyAppValidationOutputRequest, CancellationToken)

Provides information to Server Migration Service about whether application validation is successful.

Public Method PutAppLaunchConfiguration(PutAppLaunchConfigurationRequest)

Creates or updates the launch configuration for the specified application.

Public Method PutAppLaunchConfigurationAsync(PutAppLaunchConfigurationRequest, CancellationToken)

Creates or updates the launch configuration for the specified application.

Public Method PutAppReplicationConfiguration(PutAppReplicationConfigurationRequest)

Creates or updates the replication configuration for the specified application.

Public Method PutAppReplicationConfigurationAsync(PutAppReplicationConfigurationRequest, CancellationToken)

Creates or updates the replication configuration for the specified application.

Public Method PutAppValidationConfiguration(PutAppValidationConfigurationRequest)

Creates or updates a validation configuration for the specified application.

Public Method PutAppValidationConfigurationAsync(PutAppValidationConfigurationRequest, CancellationToken)

Creates or updates a validation configuration for the specified application.

Public Method StartAppReplication(StartAppReplicationRequest)

Starts replicating the specified application by creating replication jobs for each server in the application.

Public Method StartAppReplicationAsync(StartAppReplicationRequest, CancellationToken)

Starts replicating the specified application by creating replication jobs for each server in the application.

Public Method StartOnDemandAppReplication(StartOnDemandAppReplicationRequest)

Starts an on-demand replication run for the specified application.

Public Method StartOnDemandAppReplicationAsync(StartOnDemandAppReplicationRequest, CancellationToken)

Starts an on-demand replication run for the specified application.

Public Method StartOnDemandReplicationRun(StartOnDemandReplicationRunRequest)

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.

Public Method StartOnDemandReplicationRunAsync(StartOnDemandReplicationRunRequest, CancellationToken)

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.

Public Method StopAppReplication(StopAppReplicationRequest)

Stops replicating the specified application by deleting the replication job for each server in the application.

Public Method StopAppReplicationAsync(StopAppReplicationRequest, CancellationToken)

Stops replicating the specified application by deleting the replication job for each server in the application.

Public Method TerminateApp(TerminateAppRequest)

Terminates the stack for the specified application.

Public Method TerminateAppAsync(TerminateAppRequest, CancellationToken)

Terminates the stack for the specified application.

Public Method UpdateApp(UpdateAppRequest)

Updates the specified application.

Public Method UpdateAppAsync(UpdateAppRequest, CancellationToken)

Updates the specified application.

Public Method UpdateReplicationJob(UpdateReplicationJobRequest)

Updates the specified settings for the specified replication job.

Public Method UpdateReplicationJobAsync(UpdateReplicationJobRequest, CancellationToken)

Updates the specified settings for the specified replication job.

Events

NameDescription
Event AfterResponseEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event BeforeRequestEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event ExceptionEvent Inherited from Amazon.Runtime.AmazonServiceClient.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5