The Application Migration Service service.

Installation

NPM
npm install @aws-sdk/client-mgn
Yarn
yarn add @aws-sdk/client-mgn
pnpm
pnpm add @aws-sdk/client-mgn

MgnClient Operations

Command
Summary
ArchiveApplicationCommand

Archive application.

ArchiveWaveCommand

Archive wave.

AssociateApplicationsCommand

Associate applications to wave.

AssociateSourceServersCommand

Associate source servers to application.

ChangeServerLifeCycleStateCommand

Allows the user to set the SourceServer.LifeCycle.state property for specific Source Server IDs to one of the following: READY_FOR_TEST or READY_FOR_CUTOVER. This command only works if the Source Server is already launchable (dataReplicationInfo.lagDuration is not null.)

CreateApplicationCommand

Create application.

CreateConnectorCommand

Create Connector.

CreateLaunchConfigurationTemplateCommand

Creates a new Launch Configuration Template.

CreateReplicationConfigurationTemplateCommand

Creates a new ReplicationConfigurationTemplate.

CreateWaveCommand

Create wave.

DeleteApplicationCommand

Delete application.

DeleteConnectorCommand

Delete Connector.

DeleteJobCommand

Deletes a single Job by ID.

DeleteLaunchConfigurationTemplateCommand

Deletes a single Launch Configuration Template by ID.

DeleteReplicationConfigurationTemplateCommand

Deletes a single Replication Configuration Template by ID

DeleteSourceServerCommand

Deletes a single source server by ID.

DeleteVcenterClientCommand

Deletes a given vCenter client by ID.

DeleteWaveCommand

Delete wave.

DescribeJobLogItemsCommand

Retrieves detailed job log items with paging.

DescribeJobsCommand

Returns a list of Jobs. Use the JobsID and fromDate and toData filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are normally created by the StartTest, StartCutover, and TerminateTargetInstances APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.

DescribeLaunchConfigurationTemplatesCommand

Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs

DescribeReplicationConfigurationTemplatesCommand

Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.

DescribeSourceServersCommand

Retrieves all SourceServers or multiple SourceServers by ID.

DescribeVcenterClientsCommand

Returns a list of the installed vCenter clients.

DisassociateApplicationsCommand

Disassociate applications from wave.

DisassociateSourceServersCommand

Disassociate source servers from application.

DisconnectFromServiceCommand

Disconnects specific Source Servers from Application Migration Service. Data replication is stopped immediately. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. If the agent on the source server has not been prevented from communicating with the Application Migration Service service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.

FinalizeCutoverCommand

Finalizes the cutover immediately for specific Source Servers. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. The AWS Replication Agent will receive a command to uninstall itself (within 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be changed to DISCONNECTED; The SourceServer.lifeCycle.state will be changed to CUTOVER; The totalStorageBytes property fo each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.

GetLaunchConfigurationCommand

Lists all LaunchConfigurations available, filtered by Source Server IDs.

GetReplicationConfigurationCommand

Lists all ReplicationConfigurations, filtered by Source Server ID.

InitializeServiceCommand

Initialize Application Migration Service.

ListApplicationsCommand

Retrieves all applications or multiple applications by ID.

ListConnectorsCommand

List Connectors.

ListExportErrorsCommand

List export errors.

ListExportsCommand

List exports.

ListImportErrorsCommand

List import errors.

ListImportsCommand

List imports.

ListManagedAccountsCommand

List Managed Accounts.

ListSourceServerActionsCommand

List source server post migration custom actions.

ListTagsForResourceCommand

List all tags for your Application Migration Service resources.

ListTemplateActionsCommand

List template post migration custom actions.

ListWavesCommand

Retrieves all waves or multiple waves by ID.

MarkAsArchivedCommand

Archives specific Source Servers by setting the SourceServer.isArchived property to true for specified SourceServers by ID. This command only works for SourceServers with a lifecycle. state which equals DISCONNECTED or CUTOVER.

PauseReplicationCommand

Pause Replication.

PutSourceServerActionCommand

Put source server post migration custom action.

PutTemplateActionCommand

Put template post migration custom action.

RemoveSourceServerActionCommand

Remove source server post migration custom action.

RemoveTemplateActionCommand

Remove template post migration custom action.

ResumeReplicationCommand

Resume Replication.

RetryDataReplicationCommand

Causes the data replication initiation sequence to begin immediately upon next Handshake for specified SourceServer IDs, regardless of when the previous initiation started. This command will not work if the SourceServer is not stalled or is in a DISCONNECTED or STOPPED state.

StartCutoverCommand

Launches a Cutover Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartCutover and changes the SourceServer.lifeCycle.state property to CUTTING_OVER.

StartExportCommand

Start export.

StartImportCommand

Start import.

StartReplicationCommand

Starts replication for SNAPSHOT_SHIPPING agents.

StartTestCommand

Launches a Test Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartTest and changes the SourceServer.lifeCycle.state property to TESTING.

StopReplicationCommand

Stop Replication.

TagResourceCommand

Adds or overwrites only the specified tags for the specified Application Migration Service resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.

TerminateTargetInstancesCommand

Starts a job that terminates specific launched EC2 Test and Cutover instances. This command will not work for any Source Server with a lifecycle.state of TESTING, CUTTING_OVER, or CUTOVER.

UnarchiveApplicationCommand

Unarchive application.

UnarchiveWaveCommand

Unarchive wave.

UntagResourceCommand

Deletes the specified set of tags from the specified set of Application Migration Service resources.

UpdateApplicationCommand

Update application.

UpdateConnectorCommand

Update Connector.

UpdateLaunchConfigurationCommand

Updates multiple LaunchConfigurations by Source Server ID.

bootMode valid values are LEGACY_BIOS | UEFI

UpdateLaunchConfigurationTemplateCommand

Updates an existing Launch Configuration Template by ID.

UpdateReplicationConfigurationCommand

Allows you to update multiple ReplicationConfigurations by Source Server ID.

UpdateReplicationConfigurationTemplateCommand

Updates multiple ReplicationConfigurationTemplates by ID.

UpdateSourceServerCommand

Update Source Server.

UpdateSourceServerReplicationTypeCommand

Allows you to change between the AGENT_BASED replication type and the SNAPSHOT_SHIPPING replication type.

UpdateWaveCommand

Update wave.

MgnClient Configuration

Parameter
Type
Description
defaultsMode
Optional
DefaultsMode | Provider<DefaultsMode>
The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK.
disableHostPrefix
Optional
boolean
Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation.
extensions
Optional
RuntimeExtension[]
Optional extensions
logger
Optional
Logger
Optional logger for logging debug/info/warn/error.
maxAttempts
Optional
number | Provider<number>
Value for how many times a request will be made at most in case of retry.
profile
Optional
string
Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options.
region
Optional
string | Provider<string>
The AWS region to which this client will send requests
requestHandler
Optional
__HttpHandlerUserInput
The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
retryMode
Optional
string | Provider<string>
Specifies which retry algorithm to use.
useDualstackEndpoint
Optional
boolean | Provider<boolean>
Enables IPv6/IPv4 dualstack endpoint.
useFipsEndpoint
Optional
boolean | Provider<boolean>
Enables FIPS compatible endpoints.
Additional config fields are described in the full configuration type: MgnClientConfig