Class: AWS.DMS

Inherits:
AWS.Service show all
Identifier:
dms
API Version:
2016-01-01
Defined in:
(unknown)

Overview

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

Sending a Request Using DMS

var dms = new AWS.DMS();
dms.addTagsToResource(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 DMS object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var dms = new AWS.DMS({apiVersion: '2016-01-01'});

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

AWS.config.apiVersions = {
  dms: '2016-01-01',
  // other service API versions
};

var dms = new AWS.DMS();

Version:

  • 2016-01-01

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

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

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

Examples:

Constructing a DMS object

var dms = new AWS.DMS({apiVersion: '2016-01-01'});

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)

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

  • 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.DMS.region for more information.

  • maxRetries (Integer)

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

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.DMS.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.

  • 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 returns the amount of time to delay in milliseconds. The base option will be ignored if this option is supplied.
  • 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.

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

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

Adds metadata tags to a DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS.

Service Reference:

Examples:

Calling the addTagsToResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
dms.addTagsToResource(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 AWS DMS resource the tag is to be added to. AWS DMS resources include a replication instance, endpoint, and a replication task.

    • Tags — (Array<map>)

      The tag to be assigned to the DMS resource.

      • Key — (String)

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Value — (String)

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

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.

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

Creates an endpoint using the provided settings.

Service Reference:

Examples:

Calling the createEndpoint operation

var params = {
  EndpointIdentifier: 'STRING_VALUE', /* required */
  EndpointType: source | target, /* required */
  EngineName: 'STRING_VALUE', /* required */
  CertificateArn: 'STRING_VALUE',
  DatabaseName: 'STRING_VALUE',
  ExtraConnectionAttributes: 'STRING_VALUE',
  KmsKeyId: 'STRING_VALUE',
  Password: 'STRING_VALUE',
  Port: 0,
  ServerName: 'STRING_VALUE',
  SslMode: none | require | verify-ca | verify-full,
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ],
  Username: 'STRING_VALUE'
};
dms.createEndpoint(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: {})
    • EndpointIdentifier — (String)

      The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

    • EndpointType — (String)

      The type of endpoint.

      Possible values include:
      • "source"
      • "target"
    • EngineName — (String)

      The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

    • Username — (String)

      The user name to be used to login to the endpoint database.

    • Password — (String)

      The password to be used to login to the endpoint database.

    • ServerName — (String)

      The name of the server where the endpoint database resides.

    • Port — (Integer)

      The port used by the endpoint database.

    • DatabaseName — (String)

      The name of the endpoint database.

    • ExtraConnectionAttributes — (String)

      Additional attributes associated with the connection.

    • KmsKeyId — (String)

      The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    • Tags — (Array<map>)

      Tags to be added to the endpoint.

      • Key — (String)

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Value — (String)

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

    • CertificateArn — (String)

      The Amazon Resource Number (ARN) for the certificate.

    • SslMode — (String)

      The SSL mode to use for the SSL connection.

      SSL mode can be one of four values: none, require, verify-ca, verify-full.

      The default value is none.

      Possible values include:
      • "none"
      • "require"
      • "verify-ca"
      • "verify-full"

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:

      • Endpoint — (map)

        The endpoint that was created.

        • EndpointIdentifier — (String)

          The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

        • EndpointType — (String)

          The type of endpoint.

          Possible values include:
          • "source"
          • "target"
        • EngineName — (String)

          The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

        • Username — (String)

          The user name used to connect to the endpoint.

        • ServerName — (String)

          The name of the server at the endpoint.

        • Port — (Integer)

          The port value used to access the endpoint.

        • DatabaseName — (String)

          The name of the database at the endpoint.

        • ExtraConnectionAttributes — (String)

          Additional connection attributes used to connect to the endpoint.

        • Status — (String)

          The status of the endpoint.

        • KmsKeyId — (String)

          The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) used for SSL connection to the endpoint.

        • SslMode — (String)

          The SSL mode used to connect to the endpoint.

          SSL mode can be one of four values: none, require, verify-ca, verify-full.

          The default value is none.

          Possible values include:
          • "none"
          • "require"
          • "verify-ca"
          • "verify-full"

Returns:

  • (AWS.Request)

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

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

Creates the replication instance using the specified parameters.

Service Reference:

Examples:

Calling the createReplicationInstance operation

var params = {
  ReplicationInstanceClass: 'STRING_VALUE', /* required */
  ReplicationInstanceIdentifier: 'STRING_VALUE', /* required */
  AllocatedStorage: 0,
  AutoMinorVersionUpgrade: true || false,
  AvailabilityZone: 'STRING_VALUE',
  EngineVersion: 'STRING_VALUE',
  KmsKeyId: 'STRING_VALUE',
  MultiAZ: true || false,
  PreferredMaintenanceWindow: 'STRING_VALUE',
  PubliclyAccessible: true || false,
  ReplicationSubnetGroupIdentifier: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ],
  VpcSecurityGroupIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
dms.createReplicationInstance(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: {})
    • ReplicationInstanceIdentifier — (String)

      The replication instance identifier. This parameter is stored as a lowercase string.

      Constraints:

      • Must contain from 1 to 63 alphanumeric characters or hyphens.

      • First character must be a letter.

      • Cannot end with a hyphen or contain two consecutive hyphens.

      Example: myrepinstance

    • AllocatedStorage — (Integer)

      The amount of storage (in gigabytes) to be initially allocated for the replication instance.

    • ReplicationInstanceClass — (String)

      The compute and memory capacity of the replication instance as specified by the replication instance class.

      Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

    • VpcSecurityGroupIds — (Array<String>)

      Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance.

    • AvailabilityZone — (String)

      The EC2 Availability Zone that the replication instance will be created in.

      Default: A random, system-chosen Availability Zone in the endpoint's region.

      Example: us-east-1d

    • ReplicationSubnetGroupIdentifier — (String)

      A subnet group to associate with the replication instance.

    • PreferredMaintenanceWindow — (String)

      The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      Format: ddd:hh24:mi-ddd:hh24:mi

      Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week.

      Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

      Constraints: Minimum 30-minute window.

    • MultiAZ — (Boolean)

      Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

    • EngineVersion — (String)

      The engine version number of the replication instance.

    • AutoMinorVersionUpgrade — (Boolean)

      Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.

      Default: true

    • Tags — (Array<map>)

      Tags to be associated with the replication instance.

      • Key — (String)

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Value — (String)

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

    • KmsKeyId — (String)

      The KMS key identifier that will be used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    • PubliclyAccessible — (Boolean)

      Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

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:

      • ReplicationInstance — (map)

        The replication instance that was created.

        • ReplicationInstanceIdentifier — (String)

          The replication instance identifier. This parameter is stored as a lowercase string.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

          Example: myrepinstance

        • ReplicationInstanceClass — (String)

          The compute and memory capacity of the replication instance.

          Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

        • ReplicationInstanceStatus — (String)

          The status of the replication instance.

        • AllocatedStorage — (Integer)

          The amount of storage (in gigabytes) that is allocated for the replication instance.

        • InstanceCreateTime — (Date)

          The time the replication instance was created.

        • VpcSecurityGroups — (Array<map>)

          The VPC security group for the instance.

          • VpcSecurityGroupId — (String)

            The VPC security group Id.

          • Status — (String)

            The status of the VPC security group.

        • AvailabilityZone — (String)

          The Availability Zone for the instance.

        • ReplicationSubnetGroup — (map)

          The subnet group for the replication instance.

          • ReplicationSubnetGroupIdentifier — (String)

            The identifier of the replication instance subnet group.

          • ReplicationSubnetGroupDescription — (String)

            The description of the replication subnet group.

          • VpcId — (String)

            The ID of the VPC.

          • SubnetGroupStatus — (String)

            The status of the subnet group.

          • Subnets — (Array<map>)

            The subnets that are in the subnet group.

            • SubnetIdentifier — (String)

              The subnet identifier.

            • SubnetAvailabilityZone — (map)

              The Availability Zone of the subnet.

              • Name — (String)

                The name of the availability zone.

            • SubnetStatus — (String)

              The status of the subnet.

        • PreferredMaintenanceWindow — (String)

          The maintenance window times for the replication instance.

        • PendingModifiedValues — (map)

          The pending modification values.

          • ReplicationInstanceClass — (String)

            The compute and memory capacity of the replication instance.

            Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

          • AllocatedStorage — (Integer)

            The amount of storage (in gigabytes) that is allocated for the replication instance.

          • MultiAZ — (Boolean)

            Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

          • EngineVersion — (String)

            The engine version number of the replication instance.

        • MultiAZ — (Boolean)

          Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

        • EngineVersion — (String)

          The engine version number of the replication instance.

        • AutoMinorVersionUpgrade — (Boolean)

          Boolean value indicating if minor version upgrades will be automatically applied to the instance.

        • KmsKeyId — (String)

          The KMS key identifier that is used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • ReplicationInstancePublicIpAddress — (String)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddress — (String)

          The private IP address of the replication instance.

        • ReplicationInstancePublicIpAddresses — (Array<String>)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddresses — (Array<String>)

          The private IP address of the replication instance.

        • PubliclyAccessible — (Boolean)

          Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

        • SecondaryAvailabilityZone — (String)

          The availability zone of the standby replication instance in a Multi-AZ deployment.

Returns:

  • (AWS.Request)

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

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

Creates a replication subnet group given a list of the subnet IDs in a VPC.

Service Reference:

Examples:

Calling the createReplicationSubnetGroup operation

var params = {
  ReplicationSubnetGroupDescription: 'STRING_VALUE', /* required */
  ReplicationSubnetGroupIdentifier: 'STRING_VALUE', /* required */
  SubnetIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
dms.createReplicationSubnetGroup(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: {})
    • ReplicationSubnetGroupIdentifier — (String)

      The name for the replication subnet group. This value is stored as a lowercase string.

      Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be "default".

      Example: mySubnetgroup

    • ReplicationSubnetGroupDescription — (String)

      The description for the subnet group.

    • SubnetIds — (Array<String>)

      The EC2 subnet IDs for the subnet group.

    • Tags — (Array<map>)

      The tag to be assigned to the subnet group.

      • Key — (String)

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Value — (String)

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

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:

      • ReplicationSubnetGroup — (map)

        The replication subnet group that was created.

        • ReplicationSubnetGroupIdentifier — (String)

          The identifier of the replication instance subnet group.

        • ReplicationSubnetGroupDescription — (String)

          The description of the replication subnet group.

        • VpcId — (String)

          The ID of the VPC.

        • SubnetGroupStatus — (String)

          The status of the subnet group.

        • Subnets — (Array<map>)

          The subnets that are in the subnet group.

          • SubnetIdentifier — (String)

            The subnet identifier.

          • SubnetAvailabilityZone — (map)

            The Availability Zone of the subnet.

            • Name — (String)

              The name of the availability zone.

          • SubnetStatus — (String)

            The status of the subnet.

Returns:

  • (AWS.Request)

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

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

Creates a replication task using the specified parameters.

Service Reference:

Examples:

Calling the createReplicationTask operation

var params = {
  MigrationType: full-load | cdc | full-load-and-cdc, /* required */
  ReplicationInstanceArn: 'STRING_VALUE', /* required */
  ReplicationTaskIdentifier: 'STRING_VALUE', /* required */
  SourceEndpointArn: 'STRING_VALUE', /* required */
  TableMappings: 'STRING_VALUE', /* required */
  TargetEndpointArn: 'STRING_VALUE', /* required */
  CdcStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  ReplicationTaskSettings: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
dms.createReplicationTask(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: {})
    • ReplicationTaskIdentifier — (String)

      The replication task identifier.

      Constraints:

      • Must contain from 1 to 63 alphanumeric characters or hyphens.

      • First character must be a letter.

      • Cannot end with a hyphen or contain two consecutive hyphens.

    • SourceEndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    • TargetEndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    • ReplicationInstanceArn — (String)

      The Amazon Resource Name (ARN) of the replication instance.

    • MigrationType — (String)

      The migration type.

      Possible values include:
      • "full-load"
      • "cdc"
      • "full-load-and-cdc"
    • TableMappings — (String)

      The path of the JSON file that contains the table mappings. Preceed the path with "file://".

      For example, --table-mappings file://mappingfile.json

    • ReplicationTaskSettings — (String)

      Settings for the task, such as target metadata settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks.

    • CdcStartTime — (Date)

      The start time for the Change Data Capture (CDC) operation.

    • Tags — (Array<map>)

      Tags to be added to the replication instance.

      • Key — (String)

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Value — (String)

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

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:

      • ReplicationTask — (map)

        The replication task that was created.

        • ReplicationTaskIdentifier — (String)

          The replication task identifier.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

        • SourceEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • TargetEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • MigrationType — (String)

          The type of migration.

          Possible values include:
          • "full-load"
          • "cdc"
          • "full-load-and-cdc"
        • TableMappings — (String)

          Table mappings specified in the task.

        • ReplicationTaskSettings — (String)

          The settings for the replication task.

        • Status — (String)

          The status of the replication task.

        • LastFailureMessage — (String)

          The last error (failure) message generated for the replication instance.

        • StopReason — (String)

          The reason the replication task was stopped.

        • ReplicationTaskCreationDate — (Date)

          The date the replication task was created.

        • ReplicationTaskStartDate — (Date)

          The date the replication task is scheduled to start.

        • ReplicationTaskArn — (String)

          The Amazon Resource Name (ARN) of the replication task.

        • ReplicationTaskStats — (map)

          The statistics for the task, including elapsed time, tables loaded, and table errors.

          • FullLoadProgressPercent — (Integer)

            The percent complete for the full load migration task.

          • ElapsedTimeMillis — (Integer)

            The elapsed time of the task, in milliseconds.

          • TablesLoaded — (Integer)

            The number of tables loaded for this task.

          • TablesLoading — (Integer)

            The number of tables currently loading for this task.

          • TablesQueued — (Integer)

            The number of tables queued for this task.

          • TablesErrored — (Integer)

            The number of errors that have occurred during this task.

Returns:

  • (AWS.Request)

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

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

Deletes the specified certificate.

Service Reference:

Examples:

Calling the deleteCertificate operation

var params = {
  CertificateArn: 'STRING_VALUE' /* required */
};
dms.deleteCertificate(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: {})
    • CertificateArn — (String)

      The Amazon Resource Name (ARN) of the deleted certificate.

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:

      • Certificate — (map)

        The Secure Sockets Layer (SSL) certificate.

        • CertificateIdentifier — (String)

          The customer-assigned name of the certificate. Valid characters are A-z and 0-9.

        • CertificateCreationDate — (Date)

          The date that the certificate was created.

        • CertificatePem — (String)

          The contents of the .pem X.509 certificate file for the certificate.

        • CertificateWallet — (Buffer, Typed Array, Blob, String)

          The location of the imported Oracle Wallet certificate for use with SSL.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) for the certificate.

        • CertificateOwner — (String)

          The owner of the certificate.

        • ValidFromDate — (Date)

          The beginning date that the certificate is valid.

        • ValidToDate — (Date)

          The final date that the certificate is valid.

        • SigningAlgorithm — (String)

          The signing algorithm for the certificate.

        • KeyLength — (Integer)

          The key length of the cryptographic algorithm being used.

Returns:

  • (AWS.Request)

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

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

Deletes the specified endpoint.

Note: All tasks associated with the endpoint must be deleted before you can delete the endpoint.

Service Reference:

Examples:

Calling the deleteEndpoint operation

var params = {
  EndpointArn: 'STRING_VALUE' /* required */
};
dms.deleteEndpoint(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: {})
    • EndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

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:

      • Endpoint — (map)

        The endpoint that was deleted.

        • EndpointIdentifier — (String)

          The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

        • EndpointType — (String)

          The type of endpoint.

          Possible values include:
          • "source"
          • "target"
        • EngineName — (String)

          The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

        • Username — (String)

          The user name used to connect to the endpoint.

        • ServerName — (String)

          The name of the server at the endpoint.

        • Port — (Integer)

          The port value used to access the endpoint.

        • DatabaseName — (String)

          The name of the database at the endpoint.

        • ExtraConnectionAttributes — (String)

          Additional connection attributes used to connect to the endpoint.

        • Status — (String)

          The status of the endpoint.

        • KmsKeyId — (String)

          The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) used for SSL connection to the endpoint.

        • SslMode — (String)

          The SSL mode used to connect to the endpoint.

          SSL mode can be one of four values: none, require, verify-ca, verify-full.

          The default value is none.

          Possible values include:
          • "none"
          • "require"
          • "verify-ca"
          • "verify-full"

Returns:

  • (AWS.Request)

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

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

Deletes the specified replication instance.

Note: You must delete any migration tasks that are associated with the replication instance before you can delete it.

Service Reference:

Examples:

Calling the deleteReplicationInstance operation

var params = {
  ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.deleteReplicationInstance(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: {})
    • ReplicationInstanceArn — (String)

      The Amazon Resource Name (ARN) of the replication instance to be deleted.

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:

      • ReplicationInstance — (map)

        The replication instance that was deleted.

        • ReplicationInstanceIdentifier — (String)

          The replication instance identifier. This parameter is stored as a lowercase string.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

          Example: myrepinstance

        • ReplicationInstanceClass — (String)

          The compute and memory capacity of the replication instance.

          Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

        • ReplicationInstanceStatus — (String)

          The status of the replication instance.

        • AllocatedStorage — (Integer)

          The amount of storage (in gigabytes) that is allocated for the replication instance.

        • InstanceCreateTime — (Date)

          The time the replication instance was created.

        • VpcSecurityGroups — (Array<map>)

          The VPC security group for the instance.

          • VpcSecurityGroupId — (String)

            The VPC security group Id.

          • Status — (String)

            The status of the VPC security group.

        • AvailabilityZone — (String)

          The Availability Zone for the instance.

        • ReplicationSubnetGroup — (map)

          The subnet group for the replication instance.

          • ReplicationSubnetGroupIdentifier — (String)

            The identifier of the replication instance subnet group.

          • ReplicationSubnetGroupDescription — (String)

            The description of the replication subnet group.

          • VpcId — (String)

            The ID of the VPC.

          • SubnetGroupStatus — (String)

            The status of the subnet group.

          • Subnets — (Array<map>)

            The subnets that are in the subnet group.

            • SubnetIdentifier — (String)

              The subnet identifier.

            • SubnetAvailabilityZone — (map)

              The Availability Zone of the subnet.

              • Name — (String)

                The name of the availability zone.

            • SubnetStatus — (String)

              The status of the subnet.

        • PreferredMaintenanceWindow — (String)

          The maintenance window times for the replication instance.

        • PendingModifiedValues — (map)

          The pending modification values.

          • ReplicationInstanceClass — (String)

            The compute and memory capacity of the replication instance.

            Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

          • AllocatedStorage — (Integer)

            The amount of storage (in gigabytes) that is allocated for the replication instance.

          • MultiAZ — (Boolean)

            Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

          • EngineVersion — (String)

            The engine version number of the replication instance.

        • MultiAZ — (Boolean)

          Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

        • EngineVersion — (String)

          The engine version number of the replication instance.

        • AutoMinorVersionUpgrade — (Boolean)

          Boolean value indicating if minor version upgrades will be automatically applied to the instance.

        • KmsKeyId — (String)

          The KMS key identifier that is used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • ReplicationInstancePublicIpAddress — (String)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddress — (String)

          The private IP address of the replication instance.

        • ReplicationInstancePublicIpAddresses — (Array<String>)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddresses — (Array<String>)

          The private IP address of the replication instance.

        • PubliclyAccessible — (Boolean)

          Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

        • SecondaryAvailabilityZone — (String)

          The availability zone of the standby replication instance in a Multi-AZ deployment.

Returns:

  • (AWS.Request)

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

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

Deletes a subnet group.

Service Reference:

Examples:

Calling the deleteReplicationSubnetGroup operation

var params = {
  ReplicationSubnetGroupIdentifier: 'STRING_VALUE' /* required */
};
dms.deleteReplicationSubnetGroup(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: {})
    • ReplicationSubnetGroupIdentifier — (String)

      The subnet group name of the replication instance.

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.

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

Deletes the specified replication task.

Service Reference:

Examples:

Calling the deleteReplicationTask operation

var params = {
  ReplicationTaskArn: 'STRING_VALUE' /* required */
};
dms.deleteReplicationTask(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: {})
    • ReplicationTaskArn — (String)

      The Amazon Resource Name (ARN) of the replication task to be deleted.

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:

      • ReplicationTask — (map)

        The deleted replication task.

        • ReplicationTaskIdentifier — (String)

          The replication task identifier.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

        • SourceEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • TargetEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • MigrationType — (String)

          The type of migration.

          Possible values include:
          • "full-load"
          • "cdc"
          • "full-load-and-cdc"
        • TableMappings — (String)

          Table mappings specified in the task.

        • ReplicationTaskSettings — (String)

          The settings for the replication task.

        • Status — (String)

          The status of the replication task.

        • LastFailureMessage — (String)

          The last error (failure) message generated for the replication instance.

        • StopReason — (String)

          The reason the replication task was stopped.

        • ReplicationTaskCreationDate — (Date)

          The date the replication task was created.

        • ReplicationTaskStartDate — (Date)

          The date the replication task is scheduled to start.

        • ReplicationTaskArn — (String)

          The Amazon Resource Name (ARN) of the replication task.

        • ReplicationTaskStats — (map)

          The statistics for the task, including elapsed time, tables loaded, and table errors.

          • FullLoadProgressPercent — (Integer)

            The percent complete for the full load migration task.

          • ElapsedTimeMillis — (Integer)

            The elapsed time of the task, in milliseconds.

          • TablesLoaded — (Integer)

            The number of tables loaded for this task.

          • TablesLoading — (Integer)

            The number of tables currently loading for this task.

          • TablesQueued — (Integer)

            The number of tables queued for this task.

          • TablesErrored — (Integer)

            The number of errors that have occurred during this task.

Returns:

  • (AWS.Request)

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

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

Lists all of the AWS DMS attributes for a customer account. The attributes include AWS DMS quotas for the account, such as the number of replication instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.

This command does not take any parameters.

Service Reference:

Examples:

Calling the describeAccountAttributes operation

var params = {
};
dms.describeAccountAttributes(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: {})

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:

      • AccountQuotas — (Array<map>)

        Account quota information.

        • AccountQuotaName — (String)

          The name of the AWS DMS quota for this AWS account.

        • Used — (Integer)

          The amount currently used toward the quota maximum.

        • Max — (Integer)

          The maximum allowed value for the quota.

Returns:

  • (AWS.Request)

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

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

Provides a description of the certificate.

Service Reference:

Examples:

Calling the describeCertificates operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE', /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeCertificates(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: {})
    • Filters — (Array<map>)

      Filters applied to the certificate described in the form of key-value pairs.

      • Namerequired — (String)

        The name of the filter.

      • Valuesrequired — (Array<String>)

        The filter value.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 10

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        The pagination token.

      • Certificates — (Array<map>)

        The Secure Sockets Layer (SSL) certificates associated with the replication instance.

        • CertificateIdentifier — (String)

          The customer-assigned name of the certificate. Valid characters are A-z and 0-9.

        • CertificateCreationDate — (Date)

          The date that the certificate was created.

        • CertificatePem — (String)

          The contents of the .pem X.509 certificate file for the certificate.

        • CertificateWallet — (Buffer, Typed Array, Blob, String)

          The location of the imported Oracle Wallet certificate for use with SSL.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) for the certificate.

        • CertificateOwner — (String)

          The owner of the certificate.

        • ValidFromDate — (Date)

          The beginning date that the certificate is valid.

        • ValidToDate — (Date)

          The final date that the certificate is valid.

        • SigningAlgorithm — (String)

          The signing algorithm for the certificate.

        • KeyLength — (Integer)

          The key length of the cryptographic algorithm being used.

Returns:

  • (AWS.Request)

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

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

Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.

Service Reference:

Examples:

Calling the describeConnections operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE', /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeConnections(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: {})
    • Filters — (Array<map>)

      The filters applied to the connection.

      Valid filter names: endpoint-arn | replication-instance-arn

      • Namerequired — (String)

        The name of the filter.

      • Valuesrequired — (Array<String>)

        The filter value.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

      • Connections — (Array<map>)

        A description of the connections.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • Status — (String)

          The connection status.

        • LastFailureMessage — (String)

          The error message when the connection last failed.

        • EndpointIdentifier — (String)

          The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

        • ReplicationInstanceIdentifier — (String)

          The replication instance identifier. This parameter is stored as a lowercase string.

Returns:

  • (AWS.Request)

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

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

Returns information about the endpoints for your account in the current region.

Service Reference:

Examples:

Calling the describeEndpoints operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE', /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeEndpoints(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: {})
    • Filters — (Array<map>)

      Filters applied to the describe action.

      Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name

      • Namerequired — (String)

        The name of the filter.

      • Valuesrequired — (Array<String>)

        The filter value.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

      • Endpoints — (Array<map>)

        Endpoint description.

        • EndpointIdentifier — (String)

          The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

        • EndpointType — (String)

          The type of endpoint.

          Possible values include:
          • "source"
          • "target"
        • EngineName — (String)

          The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

        • Username — (String)

          The user name used to connect to the endpoint.

        • ServerName — (String)

          The name of the server at the endpoint.

        • Port — (Integer)

          The port value used to access the endpoint.

        • DatabaseName — (String)

          The name of the database at the endpoint.

        • ExtraConnectionAttributes — (String)

          Additional connection attributes used to connect to the endpoint.

        • Status — (String)

          The status of the endpoint.

        • KmsKeyId — (String)

          The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) used for SSL connection to the endpoint.

        • SslMode — (String)

          The SSL mode used to connect to the endpoint.

          SSL mode can be one of four values: none, require, verify-ca, verify-full.

          The default value is none.

          Possible values include:
          • "none"
          • "require"
          • "verify-ca"
          • "verify-full"

Returns:

  • (AWS.Request)

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

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

Returns information about the type of endpoints available.

Service Reference:

Examples:

Calling the describeEndpointTypes operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE', /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeEndpointTypes(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: {})
    • Filters — (Array<map>)

      Filters applied to the describe action.

      Valid filter names: engine-name | endpoint-type

      • Namerequired — (String)

        The name of the filter.

      • Valuesrequired — (Array<String>)

        The filter value.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

      • SupportedEndpointTypes — (Array<map>)

        The type of endpoints that are supported.

        • EngineName — (String)

          The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

        • SupportsCDC — (Boolean)

          Indicates if Change Data Capture (CDC) is supported.

        • EndpointType — (String)

          The type of endpoint.

          Possible values include:
          • "source"
          • "target"

Returns:

  • (AWS.Request)

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

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

Returns information about the replication instance types that can be created in the specified region.

Examples:

Calling the describeOrderableReplicationInstances operation

var params = {
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeOrderableReplicationInstances(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: {})
    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • OrderableReplicationInstances — (Array<map>)

        The order-able replication instances available.

        • EngineVersion — (String)

          The version of the replication engine.

        • ReplicationInstanceClass — (String)

          The compute and memory capacity of the replication instance.

          Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

        • StorageType — (String)

          The type of storage used by the replication instance.

        • MinAllocatedStorage — (Integer)

          The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.

        • MaxAllocatedStorage — (Integer)

          The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.

        • DefaultAllocatedStorage — (Integer)

          The default amount of storage (in gigabytes) that is allocated for the replication instance.

        • IncludedAllocatedStorage — (Integer)

          The amount of storage (in gigabytes) that is allocated for the replication instance.

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Returns:

  • (AWS.Request)

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

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

Returns the status of the RefreshSchemas operation.

Service Reference:

Examples:

Calling the describeRefreshSchemasStatus operation

var params = {
  EndpointArn: 'STRING_VALUE' /* required */
};
dms.describeRefreshSchemasStatus(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: {})
    • EndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

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:

      • RefreshSchemasStatus — (map)

        The status of the schema.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • Status — (String)

          The status of the schema.

          Possible values include:
          • "successful"
          • "failed"
          • "refreshing"
        • LastRefreshDate — (Date)

          The date the schema was last refreshed.

        • LastFailureMessage — (String)

          The last failure message for the schema.

Returns:

  • (AWS.Request)

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

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

Returns information about replication instances for your account in the current region.

Service Reference:

Examples:

Calling the describeReplicationInstances operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE', /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeReplicationInstances(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: {})
    • Filters — (Array<map>)

      Filters applied to the describe action.

      Valid filter names: replication-instance-arn | replication-instance-id | replication-instance-class | engine-version

      • Namerequired — (String)

        The name of the filter.

      • Valuesrequired — (Array<String>)

        The filter value.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

      • ReplicationInstances — (Array<map>)

        The replication instances described.

        • ReplicationInstanceIdentifier — (String)

          The replication instance identifier. This parameter is stored as a lowercase string.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

          Example: myrepinstance

        • ReplicationInstanceClass — (String)

          The compute and memory capacity of the replication instance.

          Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

        • ReplicationInstanceStatus — (String)

          The status of the replication instance.

        • AllocatedStorage — (Integer)

          The amount of storage (in gigabytes) that is allocated for the replication instance.

        • InstanceCreateTime — (Date)

          The time the replication instance was created.

        • VpcSecurityGroups — (Array<map>)

          The VPC security group for the instance.

          • VpcSecurityGroupId — (String)

            The VPC security group Id.

          • Status — (String)

            The status of the VPC security group.

        • AvailabilityZone — (String)

          The Availability Zone for the instance.

        • ReplicationSubnetGroup — (map)

          The subnet group for the replication instance.

          • ReplicationSubnetGroupIdentifier — (String)

            The identifier of the replication instance subnet group.

          • ReplicationSubnetGroupDescription — (String)

            The description of the replication subnet group.

          • VpcId — (String)

            The ID of the VPC.

          • SubnetGroupStatus — (String)

            The status of the subnet group.

          • Subnets — (Array<map>)

            The subnets that are in the subnet group.

            • SubnetIdentifier — (String)

              The subnet identifier.

            • SubnetAvailabilityZone — (map)

              The Availability Zone of the subnet.

              • Name — (String)

                The name of the availability zone.

            • SubnetStatus — (String)

              The status of the subnet.

        • PreferredMaintenanceWindow — (String)

          The maintenance window times for the replication instance.

        • PendingModifiedValues — (map)

          The pending modification values.

          • ReplicationInstanceClass — (String)

            The compute and memory capacity of the replication instance.

            Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

          • AllocatedStorage — (Integer)

            The amount of storage (in gigabytes) that is allocated for the replication instance.

          • MultiAZ — (Boolean)

            Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

          • EngineVersion — (String)

            The engine version number of the replication instance.

        • MultiAZ — (Boolean)

          Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

        • EngineVersion — (String)

          The engine version number of the replication instance.

        • AutoMinorVersionUpgrade — (Boolean)

          Boolean value indicating if minor version upgrades will be automatically applied to the instance.

        • KmsKeyId — (String)

          The KMS key identifier that is used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • ReplicationInstancePublicIpAddress — (String)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddress — (String)

          The private IP address of the replication instance.

        • ReplicationInstancePublicIpAddresses — (Array<String>)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddresses — (Array<String>)

          The private IP address of the replication instance.

        • PubliclyAccessible — (Boolean)

          Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

        • SecondaryAvailabilityZone — (String)

          The availability zone of the standby replication instance in a Multi-AZ deployment.

Returns:

  • (AWS.Request)

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

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

Returns information about the replication subnet groups.

Service Reference:

Examples:

Calling the describeReplicationSubnetGroups operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE', /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeReplicationSubnetGroups(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: {})
    • Filters — (Array<map>)

      Filters applied to the describe action.

      • Namerequired — (String)

        The name of the filter.

      • Valuesrequired — (Array<String>)

        The filter value.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

      • ReplicationSubnetGroups — (Array<map>)

        A description of the replication subnet groups.

        • ReplicationSubnetGroupIdentifier — (String)

          The identifier of the replication instance subnet group.

        • ReplicationSubnetGroupDescription — (String)

          The description of the replication subnet group.

        • VpcId — (String)

          The ID of the VPC.

        • SubnetGroupStatus — (String)

          The status of the subnet group.

        • Subnets — (Array<map>)

          The subnets that are in the subnet group.

          • SubnetIdentifier — (String)

            The subnet identifier.

          • SubnetAvailabilityZone — (map)

            The Availability Zone of the subnet.

            • Name — (String)

              The name of the availability zone.

          • SubnetStatus — (String)

            The status of the subnet.

Returns:

  • (AWS.Request)

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

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

Returns information about replication tasks for your account in the current region.

Service Reference:

Examples:

Calling the describeReplicationTasks operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE', /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeReplicationTasks(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: {})
    • Filters — (Array<map>)

      Filters applied to the describe action.

      Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn

      • Namerequired — (String)

        The name of the filter.

      • Valuesrequired — (Array<String>)

        The filter value.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

      • ReplicationTasks — (Array<map>)

        A description of the replication tasks.

        • ReplicationTaskIdentifier — (String)

          The replication task identifier.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

        • SourceEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • TargetEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • MigrationType — (String)

          The type of migration.

          Possible values include:
          • "full-load"
          • "cdc"
          • "full-load-and-cdc"
        • TableMappings — (String)

          Table mappings specified in the task.

        • ReplicationTaskSettings — (String)

          The settings for the replication task.

        • Status — (String)

          The status of the replication task.

        • LastFailureMessage — (String)

          The last error (failure) message generated for the replication instance.

        • StopReason — (String)

          The reason the replication task was stopped.

        • ReplicationTaskCreationDate — (Date)

          The date the replication task was created.

        • ReplicationTaskStartDate — (Date)

          The date the replication task is scheduled to start.

        • ReplicationTaskArn — (String)

          The Amazon Resource Name (ARN) of the replication task.

        • ReplicationTaskStats — (map)

          The statistics for the task, including elapsed time, tables loaded, and table errors.

          • FullLoadProgressPercent — (Integer)

            The percent complete for the full load migration task.

          • ElapsedTimeMillis — (Integer)

            The elapsed time of the task, in milliseconds.

          • TablesLoaded — (Integer)

            The number of tables loaded for this task.

          • TablesLoading — (Integer)

            The number of tables currently loading for this task.

          • TablesQueued — (Integer)

            The number of tables queued for this task.

          • TablesErrored — (Integer)

            The number of errors that have occurred during this task.

Returns:

  • (AWS.Request)

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

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

Returns information about the schema for the specified endpoint.

Service Reference:

Examples:

Calling the describeSchemas operation

var params = {
  EndpointArn: 'STRING_VALUE', /* required */
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeSchemas(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: {})
    • EndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

      • Schemas — (Array<String>)

        The described schema.

Returns:

  • (AWS.Request)

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

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

Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.

Service Reference:

Examples:

Calling the describeTableStatistics operation

var params = {
  ReplicationTaskArn: 'STRING_VALUE', /* required */
  Marker: 'STRING_VALUE',
  MaxRecords: 0
};
dms.describeTableStatistics(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: {})
    • ReplicationTaskArn — (String)

      The Amazon Resource Name (ARN) of the replication task.

    • MaxRecords — (Integer)

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

      Default: 100

      Constraints: Minimum 20, maximum 100.

    • Marker — (String)

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

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:

      • ReplicationTaskArn — (String)

        The Amazon Resource Name (ARN) of the replication task.

      • TableStatistics — (Array<map>)

        The table statistics.

        • SchemaName — (String)

          The schema name.

        • TableName — (String)

          The name of the table.

        • Inserts — (Integer)

          The number of insert actions performed on a table.

        • Deletes — (Integer)

          The number of delete actions performed on a table.

        • Updates — (Integer)

          The number of update actions performed on a table.

        • Ddls — (Integer)

          The Data Definition Language (DDL) used to build and modify the structure of your tables.

        • FullLoadRows — (Integer)

          The number of rows added during the Full Load operation.

        • LastUpdateTime — (Date)

          The last time the table was updated.

        • TableState — (String)

          The state of the table.

      • Marker — (String)

        An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Returns:

  • (AWS.Request)

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

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

Uploads the specified certificate.

Service Reference:

Examples:

Calling the importCertificate operation

var params = {
  CertificateIdentifier: 'STRING_VALUE', /* required */
  CertificatePem: 'STRING_VALUE',
  CertificateWallet: new Buffer('...') || 'STRING_VALUE'
};
dms.importCertificate(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: {})
    • CertificateIdentifier — (String)

      The customer-assigned name of the certificate. Valid characters are A-z and 0-9.

    • CertificatePem — (String)

      The contents of the .pem X.509 certificate file for the certificate.

    • CertificateWallet — (Buffer, Typed Array, Blob, String)

      The location of the imported Oracle Wallet certificate for use with SSL.

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:

      • Certificate — (map)

        The certificate to be uploaded.

        • CertificateIdentifier — (String)

          The customer-assigned name of the certificate. Valid characters are A-z and 0-9.

        • CertificateCreationDate — (Date)

          The date that the certificate was created.

        • CertificatePem — (String)

          The contents of the .pem X.509 certificate file for the certificate.

        • CertificateWallet — (Buffer, Typed Array, Blob, String)

          The location of the imported Oracle Wallet certificate for use with SSL.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) for the certificate.

        • CertificateOwner — (String)

          The owner of the certificate.

        • ValidFromDate — (Date)

          The beginning date that the certificate is valid.

        • ValidToDate — (Date)

          The final date that the certificate is valid.

        • SigningAlgorithm — (String)

          The signing algorithm for the certificate.

        • KeyLength — (Integer)

          The key length of the cryptographic algorithm being used.

Returns:

  • (AWS.Request)

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

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

Lists all tags for an AWS DMS resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
dms.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) string that uniquely identifies the AWS DMS 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:

      • TagList — (Array<map>)

        A list of tags for the resource.

        • Key — (String)

          A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

        • Value — (String)

          A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

Returns:

  • (AWS.Request)

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

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

Modifies the specified endpoint.

Service Reference:

Examples:

Calling the modifyEndpoint operation

var params = {
  EndpointArn: 'STRING_VALUE', /* required */
  CertificateArn: 'STRING_VALUE',
  DatabaseName: 'STRING_VALUE',
  EndpointIdentifier: 'STRING_VALUE',
  EndpointType: source | target,
  EngineName: 'STRING_VALUE',
  ExtraConnectionAttributes: 'STRING_VALUE',
  Password: 'STRING_VALUE',
  Port: 0,
  ServerName: 'STRING_VALUE',
  SslMode: none | require | verify-ca | verify-full,
  Username: 'STRING_VALUE'
};
dms.modifyEndpoint(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: {})
    • EndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    • EndpointIdentifier — (String)

      The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

    • EndpointType — (String)

      The type of endpoint.

      Possible values include:
      • "source"
      • "target"
    • EngineName — (String)

      The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

    • Username — (String)

      The user name to be used to login to the endpoint database.

    • Password — (String)

      The password to be used to login to the endpoint database.

    • ServerName — (String)

      The name of the server where the endpoint database resides.

    • Port — (Integer)

      The port used by the endpoint database.

    • DatabaseName — (String)

      The name of the endpoint database.

    • ExtraConnectionAttributes — (String)

      Additional attributes associated with the connection.

    • CertificateArn — (String)

      The Amazon Resource Name (ARN) of the certificate used for SSL connection.

    • SslMode — (String)

      The SSL mode to be used.

      SSL mode can be one of four values: none, require, verify-ca, verify-full.

      The default value is none.

      Possible values include:
      • "none"
      • "require"
      • "verify-ca"
      • "verify-full"

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:

      • Endpoint — (map)

        The modified endpoint.

        • EndpointIdentifier — (String)

          The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

        • EndpointType — (String)

          The type of endpoint.

          Possible values include:
          • "source"
          • "target"
        • EngineName — (String)

          The database engine name. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, SYBASE, and SQLSERVER.

        • Username — (String)

          The user name used to connect to the endpoint.

        • ServerName — (String)

          The name of the server at the endpoint.

        • Port — (Integer)

          The port value used to access the endpoint.

        • DatabaseName — (String)

          The name of the database at the endpoint.

        • ExtraConnectionAttributes — (String)

          Additional connection attributes used to connect to the endpoint.

        • Status — (String)

          The status of the endpoint.

        • KmsKeyId — (String)

          The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) used for SSL connection to the endpoint.

        • SslMode — (String)

          The SSL mode used to connect to the endpoint.

          SSL mode can be one of four values: none, require, verify-ca, verify-full.

          The default value is none.

          Possible values include:
          • "none"
          • "require"
          • "verify-ca"
          • "verify-full"

Returns:

  • (AWS.Request)

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

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

Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.

Some settings are applied during the maintenance window.

Service Reference:

Examples:

Calling the modifyReplicationInstance operation

var params = {
  ReplicationInstanceArn: 'STRING_VALUE', /* required */
  AllocatedStorage: 0,
  AllowMajorVersionUpgrade: true || false,
  ApplyImmediately: true || false,
  AutoMinorVersionUpgrade: true || false,
  EngineVersion: 'STRING_VALUE',
  MultiAZ: true || false,
  PreferredMaintenanceWindow: 'STRING_VALUE',
  ReplicationInstanceClass: 'STRING_VALUE',
  ReplicationInstanceIdentifier: 'STRING_VALUE',
  VpcSecurityGroupIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
dms.modifyReplicationInstance(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: {})
    • ReplicationInstanceArn — (String)

      The Amazon Resource Name (ARN) of the replication instance.

    • AllocatedStorage — (Integer)

      The amount of storage (in gigabytes) to be allocated for the replication instance.

    • ApplyImmediately — (Boolean)

      Indicates whether the changes should be applied immediately or during the next maintenance window.

    • ReplicationInstanceClass — (String)

      The compute and memory capacity of the replication instance.

      Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

    • VpcSecurityGroupIds — (Array<String>)

      Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance.

    • PreferredMaintenanceWindow — (String)

      The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

      Default: Uses existing setting

      Format: ddd:hh24:mi-ddd:hh24:mi

      Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

      Constraints: Must be at least 30 minutes

    • MultiAZ — (Boolean)

      Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

    • EngineVersion — (String)

      The engine version number of the replication instance.

    • AllowMajorVersionUpgrade — (Boolean)

      Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

      Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the replication instance's current version.

    • AutoMinorVersionUpgrade — (Boolean)

      Indicates that minor version upgrades will be applied automatically to the replication instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and AWS DMS has enabled auto patching for that engine version.

    • ReplicationInstanceIdentifier — (String)

      The replication instance identifier. This parameter is stored as a lowercase string.

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:

      • ReplicationInstance — (map)

        The modified replication instance.

        • ReplicationInstanceIdentifier — (String)

          The replication instance identifier. This parameter is stored as a lowercase string.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

          Example: myrepinstance

        • ReplicationInstanceClass — (String)

          The compute and memory capacity of the replication instance.

          Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

        • ReplicationInstanceStatus — (String)

          The status of the replication instance.

        • AllocatedStorage — (Integer)

          The amount of storage (in gigabytes) that is allocated for the replication instance.

        • InstanceCreateTime — (Date)

          The time the replication instance was created.

        • VpcSecurityGroups — (Array<map>)

          The VPC security group for the instance.

          • VpcSecurityGroupId — (String)

            The VPC security group Id.

          • Status — (String)

            The status of the VPC security group.

        • AvailabilityZone — (String)

          The Availability Zone for the instance.

        • ReplicationSubnetGroup — (map)

          The subnet group for the replication instance.

          • ReplicationSubnetGroupIdentifier — (String)

            The identifier of the replication instance subnet group.

          • ReplicationSubnetGroupDescription — (String)

            The description of the replication subnet group.

          • VpcId — (String)

            The ID of the VPC.

          • SubnetGroupStatus — (String)

            The status of the subnet group.

          • Subnets — (Array<map>)

            The subnets that are in the subnet group.

            • SubnetIdentifier — (String)

              The subnet identifier.

            • SubnetAvailabilityZone — (map)

              The Availability Zone of the subnet.

              • Name — (String)

                The name of the availability zone.

            • SubnetStatus — (String)

              The status of the subnet.

        • PreferredMaintenanceWindow — (String)

          The maintenance window times for the replication instance.

        • PendingModifiedValues — (map)

          The pending modification values.

          • ReplicationInstanceClass — (String)

            The compute and memory capacity of the replication instance.

            Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

          • AllocatedStorage — (Integer)

            The amount of storage (in gigabytes) that is allocated for the replication instance.

          • MultiAZ — (Boolean)

            Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

          • EngineVersion — (String)

            The engine version number of the replication instance.

        • MultiAZ — (Boolean)

          Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

        • EngineVersion — (String)

          The engine version number of the replication instance.

        • AutoMinorVersionUpgrade — (Boolean)

          Boolean value indicating if minor version upgrades will be automatically applied to the instance.

        • KmsKeyId — (String)

          The KMS key identifier that is used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • ReplicationInstancePublicIpAddress — (String)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddress — (String)

          The private IP address of the replication instance.

        • ReplicationInstancePublicIpAddresses — (Array<String>)

          The public IP address of the replication instance.

        • ReplicationInstancePrivateIpAddresses — (Array<String>)

          The private IP address of the replication instance.

        • PubliclyAccessible — (Boolean)

          Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

        • SecondaryAvailabilityZone — (String)

          The availability zone of the standby replication instance in a Multi-AZ deployment.

Returns:

  • (AWS.Request)

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

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

Modifies the settings for the specified replication subnet group.

Service Reference:

Examples:

Calling the modifyReplicationSubnetGroup operation

var params = {
  ReplicationSubnetGroupIdentifier: 'STRING_VALUE', /* required */
  SubnetIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  ReplicationSubnetGroupDescription: 'STRING_VALUE'
};
dms.modifyReplicationSubnetGroup(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: {})
    • ReplicationSubnetGroupIdentifier — (String)

      The name of the replication instance subnet group.

    • ReplicationSubnetGroupDescription — (String)

      The description of the replication instance subnet group.

    • SubnetIds — (Array<String>)

      A list of subnet IDs.

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:

      • ReplicationSubnetGroup — (map)

        The modified replication subnet group.

        • ReplicationSubnetGroupIdentifier — (String)

          The identifier of the replication instance subnet group.

        • ReplicationSubnetGroupDescription — (String)

          The description of the replication subnet group.

        • VpcId — (String)

          The ID of the VPC.

        • SubnetGroupStatus — (String)

          The status of the subnet group.

        • Subnets — (Array<map>)

          The subnets that are in the subnet group.

          • SubnetIdentifier — (String)

            The subnet identifier.

          • SubnetAvailabilityZone — (map)

            The Availability Zone of the subnet.

            • Name — (String)

              The name of the availability zone.

          • SubnetStatus — (String)

            The status of the subnet.

Returns:

  • (AWS.Request)

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

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

Modifies the specified replication task.

You can't modify the task endpoints. The task must be stopped before you can modify it.

Service Reference:

Examples:

Calling the modifyReplicationTask operation

var params = {
  ReplicationTaskArn: 'STRING_VALUE', /* required */
  CdcStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  MigrationType: full-load | cdc | full-load-and-cdc,
  ReplicationTaskIdentifier: 'STRING_VALUE',
  ReplicationTaskSettings: 'STRING_VALUE',
  TableMappings: 'STRING_VALUE'
};
dms.modifyReplicationTask(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: {})
    • ReplicationTaskArn — (String)

      The Amazon Resource Name (ARN) of the replication task.

    • ReplicationTaskIdentifier — (String)

      The replication task identifier.

      Constraints:

      • Must contain from 1 to 63 alphanumeric characters or hyphens.

      • First character must be a letter.

      • Cannot end with a hyphen or contain two consecutive hyphens.

    • MigrationType — (String)

      The migration type.

      Valid values: full-load | cdc | full-load-and-cdc

      Possible values include:
      • "full-load"
      • "cdc"
      • "full-load-and-cdc"
    • TableMappings — (String)

      The path of the JSON file that contains the table mappings. Preceed the path with "file://".

      For example, --table-mappings file://mappingfile.json

    • ReplicationTaskSettings — (String)

      JSON file that contains settings for the task, such as target metadata settings.

    • CdcStartTime — (Date)

      The start time for the Change Data Capture (CDC) operation.

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:

      • ReplicationTask — (map)

        The replication task that was modified.

        • ReplicationTaskIdentifier — (String)

          The replication task identifier.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

        • SourceEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • TargetEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • MigrationType — (String)

          The type of migration.

          Possible values include:
          • "full-load"
          • "cdc"
          • "full-load-and-cdc"
        • TableMappings — (String)

          Table mappings specified in the task.

        • ReplicationTaskSettings — (String)

          The settings for the replication task.

        • Status — (String)

          The status of the replication task.

        • LastFailureMessage — (String)

          The last error (failure) message generated for the replication instance.

        • StopReason — (String)

          The reason the replication task was stopped.

        • ReplicationTaskCreationDate — (Date)

          The date the replication task was created.

        • ReplicationTaskStartDate — (Date)

          The date the replication task is scheduled to start.

        • ReplicationTaskArn — (String)

          The Amazon Resource Name (ARN) of the replication task.

        • ReplicationTaskStats — (map)

          The statistics for the task, including elapsed time, tables loaded, and table errors.

          • FullLoadProgressPercent — (Integer)

            The percent complete for the full load migration task.

          • ElapsedTimeMillis — (Integer)

            The elapsed time of the task, in milliseconds.

          • TablesLoaded — (Integer)

            The number of tables loaded for this task.

          • TablesLoading — (Integer)

            The number of tables currently loading for this task.

          • TablesQueued — (Integer)

            The number of tables queued for this task.

          • TablesErrored — (Integer)

            The number of errors that have occurred during this task.

Returns:

  • (AWS.Request)

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

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

Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.

Service Reference:

Examples:

Calling the refreshSchemas operation

var params = {
  EndpointArn: 'STRING_VALUE', /* required */
  ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.refreshSchemas(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: {})
    • EndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    • ReplicationInstanceArn — (String)

      The Amazon Resource Name (ARN) of the replication instance.

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:

      • RefreshSchemasStatus — (map)

        The status of the refreshed schema.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • Status — (String)

          The status of the schema.

          Possible values include:
          • "successful"
          • "failed"
          • "refreshing"
        • LastRefreshDate — (Date)

          The date the schema was last refreshed.

        • LastFailureMessage — (String)

          The last failure message for the schema.

Returns:

  • (AWS.Request)

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

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

Removes metadata tags from a DMS resource.

Service Reference:

Examples:

Calling the removeTagsFromResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
dms.removeTagsFromResource(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 AWS DMS resource the tag is to be removed from.

    • TagKeys — (Array<String>)

      The tag key (name) of the tag to be removed.

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.

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

Starts the replication task.

Service Reference:

Examples:

Calling the startReplicationTask operation

var params = {
  ReplicationTaskArn: 'STRING_VALUE', /* required */
  StartReplicationTaskType: start-replication | resume-processing | reload-target, /* required */
  CdcStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
dms.startReplicationTask(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: {})
    • ReplicationTaskArn — (String)

      The Amazon Resource Number (ARN) of the replication task to be started.

    • StartReplicationTaskType — (String)

      The type of replication task.

      Possible values include:
      • "start-replication"
      • "resume-processing"
      • "reload-target"
    • CdcStartTime — (Date)

      The start time for the Change Data Capture (CDC) operation.

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:

      • ReplicationTask — (map)

        The replication task started.

        • ReplicationTaskIdentifier — (String)

          The replication task identifier.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

        • SourceEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • TargetEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • MigrationType — (String)

          The type of migration.

          Possible values include:
          • "full-load"
          • "cdc"
          • "full-load-and-cdc"
        • TableMappings — (String)

          Table mappings specified in the task.

        • ReplicationTaskSettings — (String)

          The settings for the replication task.

        • Status — (String)

          The status of the replication task.

        • LastFailureMessage — (String)

          The last error (failure) message generated for the replication instance.

        • StopReason — (String)

          The reason the replication task was stopped.

        • ReplicationTaskCreationDate — (Date)

          The date the replication task was created.

        • ReplicationTaskStartDate — (Date)

          The date the replication task is scheduled to start.

        • ReplicationTaskArn — (String)

          The Amazon Resource Name (ARN) of the replication task.

        • ReplicationTaskStats — (map)

          The statistics for the task, including elapsed time, tables loaded, and table errors.

          • FullLoadProgressPercent — (Integer)

            The percent complete for the full load migration task.

          • ElapsedTimeMillis — (Integer)

            The elapsed time of the task, in milliseconds.

          • TablesLoaded — (Integer)

            The number of tables loaded for this task.

          • TablesLoading — (Integer)

            The number of tables currently loading for this task.

          • TablesQueued — (Integer)

            The number of tables queued for this task.

          • TablesErrored — (Integer)

            The number of errors that have occurred during this task.

Returns:

  • (AWS.Request)

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

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

Stops the replication task.

Service Reference:

Examples:

Calling the stopReplicationTask operation

var params = {
  ReplicationTaskArn: 'STRING_VALUE' /* required */
};
dms.stopReplicationTask(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: {})
    • ReplicationTaskArn — (String)

      The Amazon Resource Number(ARN) of the replication task to be stopped.

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:

      • ReplicationTask — (map)

        The replication task stopped.

        • ReplicationTaskIdentifier — (String)

          The replication task identifier.

          Constraints:

          • Must contain from 1 to 63 alphanumeric characters or hyphens.

          • First character must be a letter.

          • Cannot end with a hyphen or contain two consecutive hyphens.

        • SourceEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • TargetEndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • MigrationType — (String)

          The type of migration.

          Possible values include:
          • "full-load"
          • "cdc"
          • "full-load-and-cdc"
        • TableMappings — (String)

          Table mappings specified in the task.

        • ReplicationTaskSettings — (String)

          The settings for the replication task.

        • Status — (String)

          The status of the replication task.

        • LastFailureMessage — (String)

          The last error (failure) message generated for the replication instance.

        • StopReason — (String)

          The reason the replication task was stopped.

        • ReplicationTaskCreationDate — (Date)

          The date the replication task was created.

        • ReplicationTaskStartDate — (Date)

          The date the replication task is scheduled to start.

        • ReplicationTaskArn — (String)

          The Amazon Resource Name (ARN) of the replication task.

        • ReplicationTaskStats — (map)

          The statistics for the task, including elapsed time, tables loaded, and table errors.

          • FullLoadProgressPercent — (Integer)

            The percent complete for the full load migration task.

          • ElapsedTimeMillis — (Integer)

            The elapsed time of the task, in milliseconds.

          • TablesLoaded — (Integer)

            The number of tables loaded for this task.

          • TablesLoading — (Integer)

            The number of tables currently loading for this task.

          • TablesQueued — (Integer)

            The number of tables queued for this task.

          • TablesErrored — (Integer)

            The number of errors that have occurred during this task.

Returns:

  • (AWS.Request)

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

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

Tests the connection between the replication instance and the endpoint.

Service Reference:

Examples:

Calling the testConnection operation

var params = {
  EndpointArn: 'STRING_VALUE', /* required */
  ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.testConnection(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: {})
    • ReplicationInstanceArn — (String)

      The Amazon Resource Name (ARN) of the replication instance.

    • EndpointArn — (String)

      The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

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:

      • Connection — (map)

        The connection tested.

        • ReplicationInstanceArn — (String)

          The Amazon Resource Name (ARN) of the replication instance.

        • EndpointArn — (String)

          The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

        • Status — (String)

          The connection status.

        • LastFailureMessage — (String)

          The error message when the connection last failed.

        • EndpointIdentifier — (String)

          The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

        • ReplicationInstanceIdentifier — (String)

          The replication instance identifier. This parameter is stored as a lowercase string.

Returns:

  • (AWS.Request)

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