We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.MigrationHubOrchestrator

Inherits:
AWS.Service show all
Identifier:
migrationhuborchestrator
API Version:
2021-08-28
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

This API reference provides descriptions, syntax, and other details about each of the actions and data types for AWS Migration Hub Orchestrator. The topic for each action shows the API request parameters and responses. Alternatively, you can use one of the AWS SDKs to access an API that is tailored to the programming language or platform that you're using.

Sending a Request Using MigrationHubOrchestrator

var migrationhuborchestrator = new AWS.MigrationHubOrchestrator();
migrationhuborchestrator.createTemplate(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the MigrationHubOrchestrator object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var migrationhuborchestrator = new AWS.MigrationHubOrchestrator({apiVersion: '2021-08-28'});

You can also set the API version globally in AWS.config.apiVersions using the migrationhuborchestrator service identifier:

AWS.config.apiVersions = {
  migrationhuborchestrator: '2021-08-28',
  // other service API versions
};

var migrationhuborchestrator = new AWS.MigrationHubOrchestrator();

Version:

  • 2021-08-28

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService

Constructor Details

new AWS.MigrationHubOrchestrator(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a MigrationHubOrchestrator object

var migrationhuborchestrator = new AWS.MigrationHubOrchestrator({apiVersion: '2021-08-28'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.MigrationHubOrchestrator.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.MigrationHubOrchestrator.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.MigrationHubOrchestrator.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

createTemplate(params = {}, callback) ⇒ AWS.Request

Creates a migration workflow template.

Service Reference:

Examples:

Calling the createTemplate operation

var params = {
  templateName: 'STRING_VALUE', /* required */
  templateSource: { /* required */
    workflowId: 'STRING_VALUE'
  },
  clientToken: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  templateDescription: 'STRING_VALUE'
};
migrationhuborchestrator.createTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • templateName — (String)

      The name of the migration workflow template.

    • templateDescription — (String)

      A description of the migration workflow template.

    • templateSource — (map)

      The source of the migration workflow template.

      • workflowId — (String)

        The ID of the workflow from the source migration workflow template.

    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Idempotency in the Smithy documentation.

      If a token is not provided, the SDK will use a version 4 UUID.
    • tags — (map<String>)

      The tags to add to the migration workflow template.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • templateId — (String)

        The ID of the migration workflow template.

      • templateArn — (String)

        The Amazon Resource Name (ARN) of the migration workflow template. The format for an Migration Hub Orchestrator template ARN is arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

      • tags — (map<String>)

        The tags added to the migration workflow template.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createWorkflow(params = {}, callback) ⇒ AWS.Request

Create a workflow to orchestrate your migrations.

Service Reference:

Examples:

Calling the createWorkflow operation

var params = {
  inputParameters: { /* required */
    '<StepInputParametersKey>': {
      integerValue: 'NUMBER_VALUE',
      listOfStringsValue: [
        'STRING_VALUE',
        /* more items */
      ],
      mapOfStringValue: {
        '<StringMapKey>': 'STRING_VALUE',
        /* '<StringMapKey>': ... */
      },
      stringValue: 'STRING_VALUE'
    },
    /* '<StepInputParametersKey>': ... */
  },
  name: 'STRING_VALUE', /* required */
  templateId: 'STRING_VALUE', /* required */
  applicationConfigurationId: 'STRING_VALUE',
  description: 'STRING_VALUE',
  stepTargets: [
    'STRING_VALUE',
    /* more items */
  ],
  tags: {
    '<StringMapKey>': 'STRING_VALUE',
    /* '<StringMapKey>': ... */
  }
};
migrationhuborchestrator.createWorkflow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the migration workflow.

    • description — (String)

      The description of the migration workflow.

    • templateId — (String)

      The ID of the template.

    • applicationConfigurationId — (String)

      The configuration ID of the application configured in Application Discovery Service.

    • inputParameters — (map<map>)

      The input parameters required to create a migration workflow.

      • integerValue — (Integer)

        The value of the integer.

      • stringValue — (String)

        String value.

      • listOfStringsValue — (Array<String>)

        List of string values.

      • mapOfStringValue — (map<String>)

        Map of string values.

    • stepTargets — (Array<String>)

      The servers on which a step will be run.

    • tags — (map<String>)

      The tags to add on a migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the migration workflow.

      • arn — (String)

        The Amazon Resource Name (ARN) of the migration workflow.

      • name — (String)

        The name of the migration workflow.

      • description — (String)

        The description of the migration workflow.

      • templateId — (String)

        The ID of the template.

      • adsApplicationConfigurationId — (String)

        The configuration ID of the application configured in Application Discovery Service.

      • workflowInputs — (map<map>)

        The inputs for creating a migration workflow.

        • integerValue — (Integer)

          The value of the integer.

        • stringValue — (String)

          String value.

        • listOfStringsValue — (Array<String>)

          List of string values.

        • mapOfStringValue — (map<String>)

          Map of string values.

      • stepTargets — (Array<String>)

        The servers on which a step will be run.

      • status — (String)

        The status of the migration workflow.

        Possible values include:
        • "CREATING"
        • "NOT_STARTED"
        • "CREATION_FAILED"
        • "STARTING"
        • "IN_PROGRESS"
        • "WORKFLOW_FAILED"
        • "PAUSED"
        • "PAUSING"
        • "PAUSING_FAILED"
        • "USER_ATTENTION_REQUIRED"
        • "DELETING"
        • "DELETION_FAILED"
        • "DELETED"
        • "COMPLETED"
      • creationTime — (Date)

        The time at which the migration workflow was created.

      • tags — (map<String>)

        The tags to add on a migration workflow.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createWorkflowStep(params = {}, callback) ⇒ AWS.Request

Create a step in the migration workflow.

Service Reference:

Examples:

Calling the createWorkflowStep operation

var params = {
  name: 'STRING_VALUE', /* required */
  stepActionType: MANUAL | AUTOMATED, /* required */
  stepGroupId: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  next: [
    'STRING_VALUE',
    /* more items */
  ],
  outputs: [
    {
      dataType: STRING | INTEGER | STRINGLIST | STRINGMAP,
      name: 'STRING_VALUE',
      required: true || false,
      value: {
        integerValue: 'NUMBER_VALUE',
        listOfStringValue: [
          'STRING_VALUE',
          /* more items */
        ],
        stringValue: 'STRING_VALUE'
      }
    },
    /* more items */
  ],
  previous: [
    'STRING_VALUE',
    /* more items */
  ],
  stepTarget: [
    'STRING_VALUE',
    /* more items */
  ],
  workflowStepAutomationConfiguration: {
    command: {
      linux: 'STRING_VALUE',
      windows: 'STRING_VALUE'
    },
    runEnvironment: AWS | ONPREMISE,
    scriptLocationS3Bucket: 'STRING_VALUE',
    scriptLocationS3Key: {
      linux: 'STRING_VALUE',
      windows: 'STRING_VALUE'
    },
    targetType: SINGLE | ALL | NONE
  }
};
migrationhuborchestrator.createWorkflowStep(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the step.

    • stepGroupId — (String)

      The ID of the step group.

    • workflowId — (String)

      The ID of the migration workflow.

    • stepActionType — (String)

      The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.

      Possible values include:
      • "MANUAL"
      • "AUTOMATED"
    • description — (String)

      The description of the step.

    • workflowStepAutomationConfiguration — (map)

      The custom script to run tests on source or target environments.

      • scriptLocationS3Bucket — (String)

        The Amazon S3 bucket where the script is located.

      • scriptLocationS3Key — (map)

        The Amazon S3 key for the script location.

        • linux — (String)

          The script location for Linux.

        • windows — (String)

          The script location for Windows.

      • command — (map)

        The command required to run the script.

        • linux — (String)

          Command for Linux.

        • windows — (String)

          Command for Windows.

      • runEnvironment — (String)

        The source or target environment.

        Possible values include:
        • "AWS"
        • "ONPREMISE"
      • targetType — (String)

        The servers on which to run the script.

        Possible values include:
        • "SINGLE"
        • "ALL"
        • "NONE"
    • stepTarget — (Array<String>)

      The servers on which a step will be run.

    • outputs — (Array<map>)

      The key value pairs added for the expected output.

      • name — (String)

        The name of the step.

      • dataType — (String)

        The data type of the output.

        Possible values include:
        • "STRING"
        • "INTEGER"
        • "STRINGLIST"
        • "STRINGMAP"
      • required — (Boolean)

        Determine if an output is required from a step.

      • value — (map)

        The value of the output.

        • integerValue — (Integer)

          The integer value.

        • stringValue — (String)

          The string value.

        • listOfStringValue — (Array<String>)

          The list of string value.

    • previous — (Array<String>)

      The previous step.

    • next — (Array<String>)

      The next step.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the step.

      • stepGroupId — (String)

        The ID of the step group.

      • workflowId — (String)

        The ID of the migration workflow.

      • name — (String)

        The name of the step.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createWorkflowStepGroup(params = {}, callback) ⇒ AWS.Request

Create a step group in a migration workflow.

Service Reference:

Examples:

Calling the createWorkflowStepGroup operation

var params = {
  name: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  next: [
    'STRING_VALUE',
    /* more items */
  ],
  previous: [
    'STRING_VALUE',
    /* more items */
  ]
};
migrationhuborchestrator.createWorkflowStepGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • workflowId — (String)

      The ID of the migration workflow that will contain the step group.

    • name — (String)

      The name of the step group.

    • description — (String)

      The description of the step group.

    • next — (Array<String>)

      The next step group.

    • previous — (Array<String>)

      The previous step group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • workflowId — (String)

        The ID of the migration workflow that contains the step group.

      • name — (String)

        The name of the step group.

      • id — (String)

        The ID of the step group.

      • description — (String)

        The description of the step group.

      • tools — (Array<map>)

        List of AWS services utilized in a migration workflow.

        • name — (String)

          The name of an AWS service.

        • url — (String)

          The URL of an AWS service.

      • next — (Array<String>)

        The next step group.

      • previous — (Array<String>)

        The previous step group.

      • creationTime — (Date)

        The time at which the step group is created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteTemplate(params = {}, callback) ⇒ AWS.Request

Deletes a migration workflow template.

Service Reference:

Examples:

Calling the deleteTemplate operation

var params = {
  id: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.deleteTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the request to delete a migration workflow template.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteWorkflow(params = {}, callback) ⇒ AWS.Request

Delete a migration workflow. You must pause a running workflow in Migration Hub Orchestrator console to delete it.

Service Reference:

Examples:

Calling the deleteWorkflow operation

var params = {
  id: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.deleteWorkflow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the migration workflow you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the migration workflow.

      • arn — (String)

        The Amazon Resource Name (ARN) of the migration workflow.

      • status — (String)

        The status of the migration workflow.

        Possible values include:
        • "CREATING"
        • "NOT_STARTED"
        • "CREATION_FAILED"
        • "STARTING"
        • "IN_PROGRESS"
        • "WORKFLOW_FAILED"
        • "PAUSED"
        • "PAUSING"
        • "PAUSING_FAILED"
        • "USER_ATTENTION_REQUIRED"
        • "DELETING"
        • "DELETION_FAILED"
        • "DELETED"
        • "COMPLETED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteWorkflowStep(params = {}, callback) ⇒ AWS.Request

Delete a step in a migration workflow. Pause the workflow to delete a running step.

Service Reference:

Examples:

Calling the deleteWorkflowStep operation

var params = {
  id: 'STRING_VALUE', /* required */
  stepGroupId: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.deleteWorkflowStep(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the step you want to delete.

    • stepGroupId — (String)

      The ID of the step group that contains the step you want to delete.

    • workflowId — (String)

      The ID of the migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteWorkflowStepGroup(params = {}, callback) ⇒ AWS.Request

Delete a step group in a migration workflow.

Service Reference:

Examples:

Calling the deleteWorkflowStepGroup operation

var params = {
  id: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.deleteWorkflowStepGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • workflowId — (String)

      The ID of the migration workflow.

    • id — (String)

      The ID of the step group you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTemplate(params = {}, callback) ⇒ AWS.Request

Get the template you want to use for creating a migration workflow.

Service Reference:

Examples:

Calling the getTemplate operation

var params = {
  id: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.getTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the template.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the template.

      • templateArn — (String)

        >The Amazon Resource Name (ARN) of the migration workflow template. The format for an Migration Hub Orchestrator template ARN is arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

      • name — (String)

        The name of the template.

      • description — (String)

        The time at which the template was last created.

      • inputs — (Array<map>)

        The inputs provided for the creation of the migration workflow.

        • inputName — (String)

          The name of the template.

        • dataType — (String)

          The data type of the template input.

          Possible values include:
          • "STRING"
          • "INTEGER"
          • "STRINGLIST"
          • "STRINGMAP"
        • required — (Boolean)

          Determine if an input is required from the template.

      • tools — (Array<map>)

        List of AWS services utilized in a migration workflow.

        • name — (String)

          The name of an AWS service.

        • url — (String)

          The URL of an AWS service.

      • creationTime — (Date)

        The time at which the template was last created.

      • owner — (String)

        The owner of the migration workflow template.

      • status — (String)

        The status of the template.

        Possible values include:
        • "CREATED"
        • "READY"
        • "PENDING_CREATION"
        • "CREATING"
        • "CREATION_FAILED"
      • statusMessage — (String)

        The status message of retrieving migration workflow templates.

      • templateClass — (String)

        The class of the migration workflow template. The available template classes are:

        • A2C

        • MGN

        • SAP_MULTI

        • SQL_EC2

        • SQL_RDS

        • VMIE

      • tags — (map<String>)

        The tags added to the migration workflow template.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTemplateStep(params = {}, callback) ⇒ AWS.Request

Get a specific step in a template.

Service Reference:

Examples:

Calling the getTemplateStep operation

var params = {
  id: 'STRING_VALUE', /* required */
  stepGroupId: 'STRING_VALUE', /* required */
  templateId: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.getTemplateStep(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the step.

    • templateId — (String)

      The ID of the template.

    • stepGroupId — (String)

      The ID of the step group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the step.

      • stepGroupId — (String)

        The ID of the step group.

      • templateId — (String)

        The ID of the template.

      • name — (String)

        The name of the step.

      • description — (String)

        The description of the step.

      • stepActionType — (String)

        The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.

        Possible values include:
        • "MANUAL"
        • "AUTOMATED"
      • creationTime — (String)

        The time at which the step was created.

      • previous — (Array<String>)

        The previous step.

      • next — (Array<String>)

        The next step.

      • outputs — (Array<map>)

        The outputs of the step.

        • name — (String)

          The name of the step.

        • dataType — (String)

          The data type of the step output.

          Possible values include:
          • "STRING"
          • "INTEGER"
          • "STRINGLIST"
          • "STRINGMAP"
        • required — (Boolean)

          Determine if an output is required from a step.

      • stepAutomationConfiguration — (map)

        The custom script to run tests on source or target environments.

        • scriptLocationS3Bucket — (String)

          The Amazon S3 bucket where the script is located.

        • scriptLocationS3Key — (map)

          The Amazon S3 key for the script location.

          • linux — (String)

            The script location for Linux.

          • windows — (String)

            The script location for Windows.

        • command — (map)

          The command to run the script.

          • linux — (String)

            Command for Linux.

          • windows — (String)

            Command for Windows.

        • runEnvironment — (String)

          The source or target environment.

          Possible values include:
          • "AWS"
          • "ONPREMISE"
        • targetType — (String)

          The servers on which to run the script.

          Possible values include:
          • "SINGLE"
          • "ALL"
          • "NONE"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTemplateStepGroup(params = {}, callback) ⇒ AWS.Request

Get a step group in a template.

Service Reference:

Examples:

Calling the getTemplateStepGroup operation

var params = {
  id: 'STRING_VALUE', /* required */
  templateId: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.getTemplateStepGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • templateId — (String)

      The ID of the template.

    • id — (String)

      The ID of the step group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • templateId — (String)

        The ID of the template.

      • id — (String)

        The ID of the step group.

      • name — (String)

        The name of the step group.

      • description — (String)

        The description of the step group.

      • status — (String)

        The status of the step group.

        Possible values include:
        • "AWAITING_DEPENDENCIES"
        • "READY"
        • "IN_PROGRESS"
        • "COMPLETED"
        • "FAILED"
        • "PAUSED"
        • "PAUSING"
        • "USER_ATTENTION_REQUIRED"
      • creationTime — (Date)

        The time at which the step group was created.

      • lastModifiedTime — (Date)

        The time at which the step group was last modified.

      • tools — (Array<map>)

        List of AWS services utilized in a migration workflow.

        • name — (String)

          The name of an AWS service.

        • url — (String)

          The URL of an AWS service.

      • previous — (Array<String>)

        The previous step group.

      • next — (Array<String>)

        The next step group.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getWorkflow(params = {}, callback) ⇒ AWS.Request

Get migration workflow.

Service Reference:

Examples:

Calling the getWorkflow operation

var params = {
  id: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.getWorkflow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the migration workflow.

      • arn — (String)

        The Amazon Resource Name (ARN) of the migration workflow.

      • name — (String)

        The name of the migration workflow.

      • description — (String)

        The description of the migration workflow.

      • templateId — (String)

        The ID of the template.

      • adsApplicationConfigurationId — (String)

        The configuration ID of the application configured in Application Discovery Service.

      • adsApplicationName — (String)

        The name of the application configured in Application Discovery Service.

      • status — (String)

        The status of the migration workflow.

        Possible values include:
        • "CREATING"
        • "NOT_STARTED"
        • "CREATION_FAILED"
        • "STARTING"
        • "IN_PROGRESS"
        • "WORKFLOW_FAILED"
        • "PAUSED"
        • "PAUSING"
        • "PAUSING_FAILED"
        • "USER_ATTENTION_REQUIRED"
        • "DELETING"
        • "DELETION_FAILED"
        • "DELETED"
        • "COMPLETED"
      • statusMessage — (String)

        The status message of the migration workflow.

      • creationTime — (Date)

        The time at which the migration workflow was created.

      • lastStartTime — (Date)

        The time at which the migration workflow was last started.

      • lastStopTime — (Date)

        The time at which the migration workflow was last stopped.

      • lastModifiedTime — (Date)

        The time at which the migration workflow was last modified.

      • endTime — (Date)

        The time at which the migration workflow ended.

      • tools — (Array<map>)

        List of AWS services utilized in a migration workflow.

        • name — (String)

          The name of an AWS service.

        • url — (String)

          The URL of an AWS service.

      • totalSteps — (Integer)

        The total number of steps in the migration workflow.

      • completedSteps — (Integer)

        Get a list of completed steps in the migration workflow.

      • workflowInputs — (map<map>)

        The inputs required for creating the migration workflow.

        • integerValue — (Integer)

          The value of the integer.

        • stringValue — (String)

          String value.

        • listOfStringsValue — (Array<String>)

          List of string values.

        • mapOfStringValue — (map<String>)

          Map of string values.

      • tags — (map<String>)

        The tags added to the migration workflow.

      • workflowBucket — (String)

        The Amazon S3 bucket where the migration logs are stored.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getWorkflowStep(params = {}, callback) ⇒ AWS.Request

Get a step in the migration workflow.

Service Reference:

Examples:

Calling the getWorkflowStep operation

var params = {
  id: 'STRING_VALUE', /* required */
  stepGroupId: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.getWorkflowStep(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • workflowId — (String)

      The ID of the migration workflow.

    • stepGroupId — (String)

      The ID of the step group.

    • id — (String)

      The ID of the step.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • name — (String)

        The name of the step.

      • stepGroupId — (String)

        The ID of the step group.

      • workflowId — (String)

        The ID of the migration workflow.

      • stepId — (String)

        The ID of the step.

      • description — (String)

        The description of the step.

      • stepActionType — (String)

        The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.

        Possible values include:
        • "MANUAL"
        • "AUTOMATED"
      • owner — (String)

        The owner of the step.

        Possible values include:
        • "AWS_MANAGED"
        • "CUSTOM"
      • workflowStepAutomationConfiguration — (map)

        The custom script to run tests on source or target environments.

        • scriptLocationS3Bucket — (String)

          The Amazon S3 bucket where the script is located.

        • scriptLocationS3Key — (map)

          The Amazon S3 key for the script location.

          • linux — (String)

            The script location for Linux.

          • windows — (String)

            The script location for Windows.

        • command — (map)

          The command required to run the script.

          • linux — (String)

            Command for Linux.

          • windows — (String)

            Command for Windows.

        • runEnvironment — (String)

          The source or target environment.

          Possible values include:
          • "AWS"
          • "ONPREMISE"
        • targetType — (String)

          The servers on which to run the script.

          Possible values include:
          • "SINGLE"
          • "ALL"
          • "NONE"
      • stepTarget — (Array<String>)

        The servers on which a step will be run.

      • outputs — (Array<map>)

        The outputs of the step.

        • name — (String)

          The name of the step.

        • dataType — (String)

          The data type of the output.

          Possible values include:
          • "STRING"
          • "INTEGER"
          • "STRINGLIST"
          • "STRINGMAP"
        • required — (Boolean)

          Determine if an output is required from a step.

        • value — (map)

          The value of the output.

          • integerValue — (Integer)

            The integer value.

          • stringValue — (String)

            The string value.

          • listOfStringValue — (Array<String>)

            The list of string value.

      • previous — (Array<String>)

        The previous step.

      • next — (Array<String>)

        The next step.

      • status — (String)

        The status of the step.

        Possible values include:
        • "AWAITING_DEPENDENCIES"
        • "SKIPPED"
        • "READY"
        • "IN_PROGRESS"
        • "COMPLETED"
        • "FAILED"
        • "PAUSED"
        • "USER_ATTENTION_REQUIRED"
      • statusMessage — (String)

        The status message of the migration workflow.

      • scriptOutputLocation — (String)

        The output location of the script.

      • creationTime — (Date)

        The time at which the step was created.

      • lastStartTime — (Date)

        The time at which the workflow was last started.

      • endTime — (Date)

        The time at which the step ended.

      • noOfSrvCompleted — (Integer)

        The number of servers that have been migrated.

      • noOfSrvFailed — (Integer)

        The number of servers that have failed to migrate.

      • totalNoOfSrv — (Integer)

        The total number of servers that have been migrated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getWorkflowStepGroup(params = {}, callback) ⇒ AWS.Request

Get the step group of a migration workflow.

Service Reference:

Examples:

Calling the getWorkflowStepGroup operation

var params = {
  id: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.getWorkflowStepGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the step group.

    • workflowId — (String)

      The ID of the migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the step group.

      • workflowId — (String)

        The ID of the migration workflow.

      • name — (String)

        The name of the step group.

      • description — (String)

        The description of the step group.

      • status — (String)

        The status of the step group.

        Possible values include:
        • "AWAITING_DEPENDENCIES"
        • "READY"
        • "IN_PROGRESS"
        • "COMPLETED"
        • "FAILED"
        • "PAUSED"
        • "PAUSING"
        • "USER_ATTENTION_REQUIRED"
      • owner — (String)

        The owner of the step group.

        Possible values include:
        • "AWS_MANAGED"
        • "CUSTOM"
      • creationTime — (Date)

        The time at which the step group was created.

      • lastModifiedTime — (Date)

        The time at which the step group was last modified.

      • endTime — (Date)

        The time at which the step group ended.

      • tools — (Array<map>)

        List of AWS services utilized in a migration workflow.

        • name — (String)

          The name of an AWS service.

        • url — (String)

          The URL of an AWS service.

      • previous — (Array<String>)

        The previous step group.

      • next — (Array<String>)

        The next step group.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listPlugins(params = {}, callback) ⇒ AWS.Request

List AWS Migration Hub Orchestrator plugins.

Service Reference:

Examples:

Calling the listPlugins operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
migrationhuborchestrator.listPlugins(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • maxResults — (Integer)

      The maximum number of plugins that can be returned.

    • nextToken — (String)

      The pagination token.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • nextToken — (String)

        The pagination token.

      • plugins — (Array<map>)

        Migration Hub Orchestrator plugins.

        • pluginId — (String)

          The ID of the plugin.

        • hostname — (String)

          The name of the host.

        • status — (String)

          The status of the plugin.

          Possible values include:
          • "HEALTHY"
          • "UNHEALTHY"
        • ipAddress — (String)

          The IP address at which the plugin is located.

        • version — (String)

          The version of the plugin.

        • registeredTime — (String)

          The time at which the plugin was registered.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

List the tags added to a resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  resourceArn: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • tags — (map<String>)

        The tags added to a resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTemplates(params = {}, callback) ⇒ AWS.Request

List the templates available in Migration Hub Orchestrator to create a migration workflow.

Service Reference:

Examples:

Calling the listTemplates operation

var params = {
  maxResults: 'NUMBER_VALUE',
  name: 'STRING_VALUE',
  nextToken: 'STRING_VALUE'
};
migrationhuborchestrator.listTemplates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • maxResults — (Integer)

      The maximum number of results that can be returned.

    • nextToken — (String)

      The pagination token.

    • name — (String)

      The name of the template.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • nextToken — (String)

        The pagination token.

      • templateSummary — (Array<map>)

        The summary of the template.

        • id — (String)

          The ID of the template.

        • name — (String)

          The name of the template.

        • arn — (String)

          The Amazon Resource Name (ARN) of the template.

        • description — (String)

          The description of the template.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTemplateStepGroups(params = {}, callback) ⇒ AWS.Request

List the step groups in a template.

Service Reference:

Examples:

Calling the listTemplateStepGroups operation

var params = {
  templateId: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
migrationhuborchestrator.listTemplateStepGroups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • maxResults — (Integer)

      The maximum number of results that can be returned.

    • nextToken — (String)

      The pagination token.

    • templateId — (String)

      The ID of the template.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • nextToken — (String)

        The pagination token.

      • templateStepGroupSummary — (Array<map>)

        The summary of the step group in the template.

        • id — (String)

          The ID of the step group.

        • name — (String)

          The name of the step group.

        • previous — (Array<String>)

          The previous step group.

        • next — (Array<String>)

          The next step group.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTemplateSteps(params = {}, callback) ⇒ AWS.Request

List the steps in a template.

Service Reference:

Examples:

Calling the listTemplateSteps operation

var params = {
  stepGroupId: 'STRING_VALUE', /* required */
  templateId: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
migrationhuborchestrator.listTemplateSteps(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • maxResults — (Integer)

      The maximum number of results that can be returned.

    • nextToken — (String)

      The pagination token.

    • templateId — (String)

      The ID of the template.

    • stepGroupId — (String)

      The ID of the step group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • nextToken — (String)

        The pagination token.

      • templateStepSummaryList — (Array<map>)

        The list of summaries of steps in a template.

        • id — (String)

          The ID of the step.

        • stepGroupId — (String)

          The ID of the step group.

        • templateId — (String)

          The ID of the template.

        • name — (String)

          The name of the step.

        • stepActionType — (String)

          The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.

          Possible values include:
          • "MANUAL"
          • "AUTOMATED"
        • targetType — (String)

          The servers on which to run the script.

          Possible values include:
          • "SINGLE"
          • "ALL"
          • "NONE"
        • owner — (String)

          The owner of the step.

          Possible values include:
          • "AWS_MANAGED"
          • "CUSTOM"
        • previous — (Array<String>)

          The previous step.

        • next — (Array<String>)

          The next step.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listWorkflows(params = {}, callback) ⇒ AWS.Request

List the migration workflows.

Service Reference:

Examples:

Calling the listWorkflows operation

var params = {
  adsApplicationConfigurationName: 'STRING_VALUE',
  maxResults: 'NUMBER_VALUE',
  name: 'STRING_VALUE',
  nextToken: 'STRING_VALUE',
  status: CREATING | NOT_STARTED | CREATION_FAILED | STARTING | IN_PROGRESS | WORKFLOW_FAILED | PAUSED | PAUSING | PAUSING_FAILED | USER_ATTENTION_REQUIRED | DELETING | DELETION_FAILED | DELETED | COMPLETED,
  templateId: 'STRING_VALUE'
};
migrationhuborchestrator.listWorkflows(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • maxResults — (Integer)

      The maximum number of results that can be returned.

    • nextToken — (String)

      The pagination token.

    • templateId — (String)

      The ID of the template.

    • adsApplicationConfigurationName — (String)

      The name of the application configured in Application Discovery Service.

    • status — (String)

      The status of the migration workflow.

      Possible values include:
      • "CREATING"
      • "NOT_STARTED"
      • "CREATION_FAILED"
      • "STARTING"
      • "IN_PROGRESS"
      • "WORKFLOW_FAILED"
      • "PAUSED"
      • "PAUSING"
      • "PAUSING_FAILED"
      • "USER_ATTENTION_REQUIRED"
      • "DELETING"
      • "DELETION_FAILED"
      • "DELETED"
      • "COMPLETED"
    • name — (String)

      The name of the migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • nextToken — (String)

        The pagination token.

      • migrationWorkflowSummary — (Array<map>)

        The summary of the migration workflow.

        • id — (String)

          The ID of the migration workflow.

        • name — (String)

          The name of the migration workflow.

        • templateId — (String)

          The ID of the template.

        • adsApplicationConfigurationName — (String)

          The name of the application configured in Application Discovery Service.

        • status — (String)

          The status of the migration workflow.

          Possible values include:
          • "CREATING"
          • "NOT_STARTED"
          • "CREATION_FAILED"
          • "STARTING"
          • "IN_PROGRESS"
          • "WORKFLOW_FAILED"
          • "PAUSED"
          • "PAUSING"
          • "PAUSING_FAILED"
          • "USER_ATTENTION_REQUIRED"
          • "DELETING"
          • "DELETION_FAILED"
          • "DELETED"
          • "COMPLETED"
        • creationTime — (Date)

          The time at which the migration workflow was created.

        • endTime — (Date)

          The time at which the migration workflow ended.

        • statusMessage — (String)

          The status message of the migration workflow.

        • completedSteps — (Integer)

          The steps completed in the migration workflow.

        • totalSteps — (Integer)

          All the steps in a migration workflow.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listWorkflowStepGroups(params = {}, callback) ⇒ AWS.Request

List the step groups in a migration workflow.

Service Reference:

Examples:

Calling the listWorkflowStepGroups operation

var params = {
  workflowId: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
migrationhuborchestrator.listWorkflowStepGroups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • nextToken — (String)

      The pagination token.

    • maxResults — (Integer)

      The maximum number of results that can be returned.

    • workflowId — (String)

      The ID of the migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • nextToken — (String)

        The pagination token.

      • workflowStepGroupsSummary — (Array<map>)

        The summary of step groups in a migration workflow.

        • id — (String)

          The ID of the step group.

        • name — (String)

          The name of the step group.

        • owner — (String)

          The owner of the step group.

          Possible values include:
          • "AWS_MANAGED"
          • "CUSTOM"
        • status — (String)

          The status of the step group.

          Possible values include:
          • "AWAITING_DEPENDENCIES"
          • "READY"
          • "IN_PROGRESS"
          • "COMPLETED"
          • "FAILED"
          • "PAUSED"
          • "PAUSING"
          • "USER_ATTENTION_REQUIRED"
        • previous — (Array<String>)

          The previous step group.

        • next — (Array<String>)

          The next step group.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listWorkflowSteps(params = {}, callback) ⇒ AWS.Request

List the steps in a workflow.

Service Reference:

Examples:

Calling the listWorkflowSteps operation

var params = {
  stepGroupId: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
migrationhuborchestrator.listWorkflowSteps(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • nextToken — (String)

      The pagination token.

    • maxResults — (Integer)

      The maximum number of results that can be returned.

    • workflowId — (String)

      The ID of the migration workflow.

    • stepGroupId — (String)

      The ID of the step group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • nextToken — (String)

        The pagination token.

      • workflowStepsSummary — (Array<map>)

        The summary of steps in a migration workflow.

        • stepId — (String)

          The ID of the step.

        • name — (String)

          The name of the step.

        • stepActionType — (String)

          The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.

          Possible values include:
          • "MANUAL"
          • "AUTOMATED"
        • owner — (String)

          The owner of the step.

          Possible values include:
          • "AWS_MANAGED"
          • "CUSTOM"
        • previous — (Array<String>)

          The previous step.

        • next — (Array<String>)

          The next step.

        • status — (String)

          The status of the step.

          Possible values include:
          • "AWAITING_DEPENDENCIES"
          • "SKIPPED"
          • "READY"
          • "IN_PROGRESS"
          • "COMPLETED"
          • "FAILED"
          • "PAUSED"
          • "USER_ATTENTION_REQUIRED"
        • statusMessage — (String)

          The status message of the migration workflow.

        • noOfSrvCompleted — (Integer)

          The number of servers that have been migrated.

        • noOfSrvFailed — (Integer)

          The number of servers that have failed to migrate.

        • totalNoOfSrv — (Integer)

          The total number of servers that have been migrated.

        • description — (String)

          The description of the step.

        • scriptLocation — (String)

          The location of the script.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

retryWorkflowStep(params = {}, callback) ⇒ AWS.Request

Retry a failed step in a migration workflow.

Service Reference:

Examples:

Calling the retryWorkflowStep operation

var params = {
  id: 'STRING_VALUE', /* required */
  stepGroupId: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.retryWorkflowStep(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • workflowId — (String)

      The ID of the migration workflow.

    • stepGroupId — (String)

      The ID of the step group.

    • id — (String)

      The ID of the step.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • stepGroupId — (String)

        The ID of the step group.

      • workflowId — (String)

        The ID of the migration workflow.

      • id — (String)

        The ID of the step.

      • status — (String)

        The status of the step.

        Possible values include:
        • "AWAITING_DEPENDENCIES"
        • "SKIPPED"
        • "READY"
        • "IN_PROGRESS"
        • "COMPLETED"
        • "FAILED"
        • "PAUSED"
        • "USER_ATTENTION_REQUIRED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startWorkflow(params = {}, callback) ⇒ AWS.Request

Start a migration workflow.

Service Reference:

Examples:

Calling the startWorkflow operation

var params = {
  id: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.startWorkflow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the migration workflow.

      • arn — (String)

        The Amazon Resource Name (ARN) of the migration workflow.

      • status — (String)

        The status of the migration workflow.

        Possible values include:
        • "CREATING"
        • "NOT_STARTED"
        • "CREATION_FAILED"
        • "STARTING"
        • "IN_PROGRESS"
        • "WORKFLOW_FAILED"
        • "PAUSED"
        • "PAUSING"
        • "PAUSING_FAILED"
        • "USER_ATTENTION_REQUIRED"
        • "DELETING"
        • "DELETION_FAILED"
        • "DELETED"
        • "COMPLETED"
      • statusMessage — (String)

        The status message of the migration workflow.

      • lastStartTime — (Date)

        The time at which the migration workflow was last started.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopWorkflow(params = {}, callback) ⇒ AWS.Request

Stop an ongoing migration workflow.

Service Reference:

Examples:

Calling the stopWorkflow operation

var params = {
  id: 'STRING_VALUE' /* required */
};
migrationhuborchestrator.stopWorkflow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the migration workflow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the migration workflow.

      • arn — (String)

        The Amazon Resource Name (ARN) of the migration workflow.

      • status — (String)

        The status of the migration workflow.

        Possible values include:
        • "CREATING"
        • "NOT_STARTED"
        • "CREATION_FAILED"
        • "STARTING"
        • "IN_PROGRESS"
        • "WORKFLOW_FAILED"
        • "PAUSED"
        • "PAUSING"
        • "PAUSING_FAILED"
        • "USER_ATTENTION_REQUIRED"
        • "DELETING"
        • "DELETION_FAILED"
        • "DELETED"
        • "COMPLETED"
      • statusMessage — (String)

        The status message of the migration workflow.

      • lastStopTime — (Date)

        The time at which the migration workflow was stopped.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Tag a resource by specifying its Amazon Resource Name (ARN).

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tags: { /* required */
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
migrationhuborchestrator.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource to which you want to add tags.

    • tags — (map<String>)

      A collection of labels, in the form of key:value pairs, that apply to this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Deletes the tags for a resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
migrationhuborchestrator.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource from which you want to remove tags.

    • tagKeys — (Array<String>)

      One or more tag keys. Specify only the tag keys, not the tag values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateTemplate(params = {}, callback) ⇒ AWS.Request

Updates a migration workflow template.

Service Reference:

Examples:

Calling the updateTemplate operation

var params = {
  id: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE',
  templateDescription: 'STRING_VALUE',
  templateName: 'STRING_VALUE'
};
migrationhuborchestrator.updateTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the request to update a migration workflow template.

    • templateName — (String)

      The name of the migration workflow template to update.

    • templateDescription — (String)

      The description of the migration workflow template to update.

    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • templateId — (String)

        The ID of the migration workflow template being updated.

      • templateArn — (String)

        The ARN of the migration workflow template being updated. The format for an Migration Hub Orchestrator template ARN is arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

      • tags — (map<String>)

        The tags added to the migration workflow template.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateWorkflow(params = {}, callback) ⇒ AWS.Request

Update a migration workflow.

Service Reference:

Examples:

Calling the updateWorkflow operation

var params = {
  id: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  inputParameters: {
    '<StepInputParametersKey>': {
      integerValue: 'NUMBER_VALUE',
      listOfStringsValue: [
        'STRING_VALUE',
        /* more items */
      ],
      mapOfStringValue: {
        '<StringMapKey>': 'STRING_VALUE',
        /* '<StringMapKey>': ... */
      },
      stringValue: 'STRING_VALUE'
    },
    /* '<StepInputParametersKey>': ... */
  },
  name: 'STRING_VALUE',
  stepTargets: [
    'STRING_VALUE',
    /* more items */
  ]
};
migrationhuborchestrator.updateWorkflow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the migration workflow.

    • name — (String)

      The name of the migration workflow.

    • description — (String)

      The description of the migration workflow.

    • inputParameters — (map<map>)

      The input parameters required to update a migration workflow.

      • integerValue — (Integer)

        The value of the integer.

      • stringValue — (String)

        String value.

      • listOfStringsValue — (Array<String>)

        List of string values.

      • mapOfStringValue — (map<String>)

        Map of string values.

    • stepTargets — (Array<String>)

      The servers on which a step will be run.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the migration workflow.

      • arn — (String)

        The Amazon Resource Name (ARN) of the migration workflow.

      • name — (String)

        The name of the migration workflow.

      • description — (String)

        The description of the migration workflow.

      • templateId — (String)

        The ID of the template.

      • adsApplicationConfigurationId — (String)

        The ID of the application configured in Application Discovery Service.

      • workflowInputs — (map<map>)

        The inputs required to update a migration workflow.

        • integerValue — (Integer)

          The value of the integer.

        • stringValue — (String)

          String value.

        • listOfStringsValue — (Array<String>)

          List of string values.

        • mapOfStringValue — (map<String>)

          Map of string values.

      • stepTargets — (Array<String>)

        The servers on which a step will be run.

      • status — (String)

        The status of the migration workflow.

        Possible values include:
        • "CREATING"
        • "NOT_STARTED"
        • "CREATION_FAILED"
        • "STARTING"
        • "IN_PROGRESS"
        • "WORKFLOW_FAILED"
        • "PAUSED"
        • "PAUSING"
        • "PAUSING_FAILED"
        • "USER_ATTENTION_REQUIRED"
        • "DELETING"
        • "DELETION_FAILED"
        • "DELETED"
        • "COMPLETED"
      • creationTime — (Date)

        The time at which the migration workflow was created.

      • lastModifiedTime — (Date)

        The time at which the migration workflow was last modified.

      • tags — (map<String>)

        The tags added to the migration workflow.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateWorkflowStep(params = {}, callback) ⇒ AWS.Request

Update a step in a migration workflow.

Service Reference:

Examples:

Calling the updateWorkflowStep operation

var params = {
  id: 'STRING_VALUE', /* required */
  stepGroupId: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  name: 'STRING_VALUE',
  next: [
    'STRING_VALUE',
    /* more items */
  ],
  outputs: [
    {
      dataType: STRING | INTEGER | STRINGLIST | STRINGMAP,
      name: 'STRING_VALUE',
      required: true || false,
      value: {
        integerValue: 'NUMBER_VALUE',
        listOfStringValue: [
          'STRING_VALUE',
          /* more items */
        ],
        stringValue: 'STRING_VALUE'
      }
    },
    /* more items */
  ],
  previous: [
    'STRING_VALUE',
    /* more items */
  ],
  status: AWAITING_DEPENDENCIES | SKIPPED | READY | IN_PROGRESS | COMPLETED | FAILED | PAUSED | USER_ATTENTION_REQUIRED,
  stepActionType: MANUAL | AUTOMATED,
  stepTarget: [
    'STRING_VALUE',
    /* more items */
  ],
  workflowStepAutomationConfiguration: {
    command: {
      linux: 'STRING_VALUE',
      windows: 'STRING_VALUE'
    },
    runEnvironment: AWS | ONPREMISE,
    scriptLocationS3Bucket: 'STRING_VALUE',
    scriptLocationS3Key: {
      linux: 'STRING_VALUE',
      windows: 'STRING_VALUE'
    },
    targetType: SINGLE | ALL | NONE
  }
};
migrationhuborchestrator.updateWorkflowStep(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the step.

    • stepGroupId — (String)

      The ID of the step group.

    • workflowId — (String)

      The ID of the migration workflow.

    • name — (String)

      The name of the step.

    • description — (String)

      The description of the step.

    • stepActionType — (String)

      The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.

      Possible values include:
      • "MANUAL"
      • "AUTOMATED"
    • workflowStepAutomationConfiguration — (map)

      The custom script to run tests on the source and target environments.

      • scriptLocationS3Bucket — (String)

        The Amazon S3 bucket where the script is located.

      • scriptLocationS3Key — (map)

        The Amazon S3 key for the script location.

        • linux — (String)

          The script location for Linux.

        • windows — (String)

          The script location for Windows.

      • command — (map)

        The command required to run the script.

        • linux — (String)

          Command for Linux.

        • windows — (String)

          Command for Windows.

      • runEnvironment — (String)

        The source or target environment.

        Possible values include:
        • "AWS"
        • "ONPREMISE"
      • targetType — (String)

        The servers on which to run the script.

        Possible values include:
        • "SINGLE"
        • "ALL"
        • "NONE"
    • stepTarget — (Array<String>)

      The servers on which a step will be run.

    • outputs — (Array<map>)

      The outputs of a step.

      • name — (String)

        The name of the step.

      • dataType — (String)

        The data type of the output.

        Possible values include:
        • "STRING"
        • "INTEGER"
        • "STRINGLIST"
        • "STRINGMAP"
      • required — (Boolean)

        Determine if an output is required from a step.

      • value — (map)

        The value of the output.

        • integerValue — (Integer)

          The integer value.

        • stringValue — (String)

          The string value.

        • listOfStringValue — (Array<String>)

          The list of string value.

    • previous — (Array<String>)

      The previous step.

    • next — (Array<String>)

      The next step.

    • status — (String)

      The status of the step.

      Possible values include:
      • "AWAITING_DEPENDENCIES"
      • "SKIPPED"
      • "READY"
      • "IN_PROGRESS"
      • "COMPLETED"
      • "FAILED"
      • "PAUSED"
      • "USER_ATTENTION_REQUIRED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • id — (String)

        The ID of the step.

      • stepGroupId — (String)

        The ID of the step group.

      • workflowId — (String)

        The ID of the migration workflow.

      • name — (String)

        The name of the step.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateWorkflowStepGroup(params = {}, callback) ⇒ AWS.Request

Update the step group in a migration workflow.

Service Reference:

Examples:

Calling the updateWorkflowStepGroup operation

var params = {
  id: 'STRING_VALUE', /* required */
  workflowId: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  name: 'STRING_VALUE',
  next: [
    'STRING_VALUE',
    /* more items */
  ],
  previous: [
    'STRING_VALUE',
    /* more items */
  ]
};
migrationhuborchestrator.updateWorkflowStepGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • workflowId — (String)

      The ID of the migration workflow.

    • id — (String)

      The ID of the step group.

    • name — (String)

      The name of the step group.

    • description — (String)

      The description of the step group.

    • next — (Array<String>)

      The next step group.

    • previous — (Array<String>)

      The previous step group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • workflowId — (String)

        The ID of the migration workflow.

      • name — (String)

        The name of the step group.

      • id — (String)

        The ID of the step group.

      • description — (String)

        The description of the step group.

      • tools — (Array<map>)

        List of AWS services utilized in a migration workflow.

        • name — (String)

          The name of an AWS service.

        • url — (String)

          The URL of an AWS service.

      • next — (Array<String>)

        The next step group.

      • previous — (Array<String>)

        The previous step group.

      • lastModifiedTime — (Date)

        The time at which the step group was last modified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

waitFor(state, params = {}, callback) ⇒ AWS.Request

Waits for a given MigrationHubOrchestrator resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.

Parameters:

  • state (String)

    the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.

  • params (map) (defaults to: {})

    a list of parameters for the given state. See each waiter resource state for required parameters.

Callback (callback):

  • function(err, data) { ... }

    Callback containing error and data information. See the respective resource state for the expected error or data information.

    If the waiter times out its requests, it will return a ResourceNotReady error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.