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

Class: AWS.Drs

Inherits:
AWS.Service show all
Identifier:
drs
API Version:
2020-02-26
Defined in:
(unknown)

Overview

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

Service Description

AWS Elastic Disaster Recovery Service.

Sending a Request Using Drs

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

var drs = new AWS.Drs({apiVersion: '2020-02-26'});

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

AWS.config.apiVersions = {
  drs: '2020-02-26',
  // other service API versions
};

var drs = new AWS.Drs();

Version:

  • 2020-02-26

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse