@aws-sdk/client-drs 3.95.0 → 3.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Drs.js +45 -0
  4. package/dist-cjs/commands/CreateExtendedSourceServerCommand.js +36 -0
  5. package/dist-cjs/commands/ListExtensibleSourceServersCommand.js +36 -0
  6. package/dist-cjs/commands/ListStagingAccountsCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +3 -0
  8. package/dist-cjs/models/models_0.js +273 -201
  9. package/dist-cjs/pagination/ListExtensibleSourceServersPaginator.js +36 -0
  10. package/dist-cjs/pagination/ListStagingAccountsPaginator.js +36 -0
  11. package/dist-cjs/pagination/index.js +2 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +353 -2
  13. package/dist-cjs/runtimeConfig.js +2 -0
  14. package/dist-es/Drs.js +45 -0
  15. package/dist-es/commands/CreateExtendedSourceServerCommand.js +39 -0
  16. package/dist-es/commands/ListExtensibleSourceServersCommand.js +39 -0
  17. package/dist-es/commands/ListStagingAccountsCommand.js +39 -0
  18. package/dist-es/commands/index.js +3 -0
  19. package/dist-es/models/models_0.js +217 -169
  20. package/dist-es/pagination/ListExtensibleSourceServersPaginator.js +75 -0
  21. package/dist-es/pagination/ListStagingAccountsPaginator.js +75 -0
  22. package/dist-es/pagination/index.js +2 -0
  23. package/dist-es/protocols/Aws_restJson1.js +439 -15
  24. package/dist-es/runtimeConfig.js +2 -0
  25. package/dist-types/Drs.d.ts +24 -0
  26. package/dist-types/DrsClient.d.ts +5 -2
  27. package/dist-types/commands/CreateExtendedSourceServerCommand.d.ts +35 -0
  28. package/dist-types/commands/ListExtensibleSourceServersCommand.d.ts +38 -0
  29. package/dist-types/commands/ListStagingAccountsCommand.d.ts +35 -0
  30. package/dist-types/commands/index.d.ts +3 -0
  31. package/dist-types/models/models_0.d.ts +731 -507
  32. package/dist-types/pagination/ListExtensibleSourceServersPaginator.d.ts +4 -0
  33. package/dist-types/pagination/ListStagingAccountsPaginator.d.ts +4 -0
  34. package/dist-types/pagination/index.d.ts +2 -0
  35. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  36. package/dist-types/ts3.4/Drs.d.ts +15 -0
  37. package/dist-types/ts3.4/DrsClient.d.ts +5 -2
  38. package/dist-types/ts3.4/commands/CreateExtendedSourceServerCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListExtensibleSourceServersCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/ListStagingAccountsCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +442 -305
  43. package/dist-types/ts3.4/pagination/ListExtensibleSourceServersPaginator.d.ts +4 -0
  44. package/dist-types/ts3.4/pagination/ListStagingAccountsPaginator.d.ts +4 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  47. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.102.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.101.0...v3.102.0) (2022-05-31)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-drs:** Changed existing APIs and added new APIs to accommodate using multiple AWS accounts with AWS Elastic Disaster Recovery. ([9e66058](https://github.com/aws/aws-sdk-js-v3/commit/9e66058a6bb3ed9b5c2b1a5e10a619099e8a8674))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-drs
20
+
21
+
22
+
23
+
24
+
25
+ # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-drs
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-drs
package/README.md CHANGED
@@ -26,16 +26,16 @@ using your favorite package manager:
26
26
 
27
27
  The AWS SDK is modulized by clients and commands.
28
28
  To send a request, you only need to import the `DrsClient` and
29
- the commands you need, for example `CreateReplicationConfigurationTemplateCommand`:
29
+ the commands you need, for example `CreateExtendedSourceServerCommand`:
30
30
 
31
31
  ```js
32
32
  // ES5 example
33
- const { DrsClient, CreateReplicationConfigurationTemplateCommand } = require("@aws-sdk/client-drs");
33
+ const { DrsClient, CreateExtendedSourceServerCommand } = require("@aws-sdk/client-drs");
34
34
  ```
35
35
 
36
36
  ```ts
37
37
  // ES6+ example
38
- import { DrsClient, CreateReplicationConfigurationTemplateCommand } from "@aws-sdk/client-drs";
38
+ import { DrsClient, CreateExtendedSourceServerCommand } from "@aws-sdk/client-drs";
39
39
  ```
40
40
 
41
41
  ### Usage
@@ -54,7 +54,7 @@ const client = new DrsClient({ region: "REGION" });
54
54
  const params = {
55
55
  /** input parameters */
56
56
  };
57
- const command = new CreateReplicationConfigurationTemplateCommand(params);
57
+ const command = new CreateExtendedSourceServerCommand(params);
58
58
  ```
59
59
 
60
60
  #### Async/await
@@ -133,7 +133,7 @@ const client = new AWS.Drs({ region: "REGION" });
133
133
 
134
134
  // async/await.
135
135
  try {
136
- const data = await client.createReplicationConfigurationTemplate(params);
136
+ const data = await client.createExtendedSourceServer(params);
137
137
  // process data.
138
138
  } catch (error) {
139
139
  // error handling.
@@ -141,7 +141,7 @@ try {
141
141
 
142
142
  // Promises.
143
143
  client
144
- .createReplicationConfigurationTemplate(params)
144
+ .createExtendedSourceServer(params)
145
145
  .then((data) => {
146
146
  // process data.
147
147
  })
@@ -150,7 +150,7 @@ client
150
150
  });
151
151
 
152
152
  // callbacks.
153
- client.createReplicationConfigurationTemplate(params, (err, data) => {
153
+ client.createExtendedSourceServer(params, (err, data) => {
154
154
  // process err and data.
155
155
  });
156
156
  ```
package/dist-cjs/Drs.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Drs = void 0;
4
+ const CreateExtendedSourceServerCommand_1 = require("./commands/CreateExtendedSourceServerCommand");
4
5
  const CreateReplicationConfigurationTemplateCommand_1 = require("./commands/CreateReplicationConfigurationTemplateCommand");
5
6
  const DeleteJobCommand_1 = require("./commands/DeleteJobCommand");
6
7
  const DeleteRecoveryInstanceCommand_1 = require("./commands/DeleteRecoveryInstanceCommand");
@@ -18,6 +19,8 @@ const GetFailbackReplicationConfigurationCommand_1 = require("./commands/GetFail
18
19
  const GetLaunchConfigurationCommand_1 = require("./commands/GetLaunchConfigurationCommand");
19
20
  const GetReplicationConfigurationCommand_1 = require("./commands/GetReplicationConfigurationCommand");
20
21
  const InitializeServiceCommand_1 = require("./commands/InitializeServiceCommand");
22
+ const ListExtensibleSourceServersCommand_1 = require("./commands/ListExtensibleSourceServersCommand");
23
+ const ListStagingAccountsCommand_1 = require("./commands/ListStagingAccountsCommand");
21
24
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
22
25
  const RetryDataReplicationCommand_1 = require("./commands/RetryDataReplicationCommand");
23
26
  const StartFailbackLaunchCommand_1 = require("./commands/StartFailbackLaunchCommand");
@@ -32,6 +35,20 @@ const UpdateReplicationConfigurationCommand_1 = require("./commands/UpdateReplic
32
35
  const UpdateReplicationConfigurationTemplateCommand_1 = require("./commands/UpdateReplicationConfigurationTemplateCommand");
33
36
  const DrsClient_1 = require("./DrsClient");
34
37
  class Drs extends DrsClient_1.DrsClient {
38
+ createExtendedSourceServer(args, optionsOrCb, cb) {
39
+ const command = new CreateExtendedSourceServerCommand_1.CreateExtendedSourceServerCommand(args);
40
+ if (typeof optionsOrCb === "function") {
41
+ this.send(command, optionsOrCb);
42
+ }
43
+ else if (typeof cb === "function") {
44
+ if (typeof optionsOrCb !== "object")
45
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
+ this.send(command, optionsOrCb || {}, cb);
47
+ }
48
+ else {
49
+ return this.send(command, optionsOrCb);
50
+ }
51
+ }
35
52
  createReplicationConfigurationTemplate(args, optionsOrCb, cb) {
36
53
  const command = new CreateReplicationConfigurationTemplateCommand_1.CreateReplicationConfigurationTemplateCommand(args);
37
54
  if (typeof optionsOrCb === "function") {
@@ -270,6 +287,34 @@ class Drs extends DrsClient_1.DrsClient {
270
287
  return this.send(command, optionsOrCb);
271
288
  }
272
289
  }
290
+ listExtensibleSourceServers(args, optionsOrCb, cb) {
291
+ const command = new ListExtensibleSourceServersCommand_1.ListExtensibleSourceServersCommand(args);
292
+ if (typeof optionsOrCb === "function") {
293
+ this.send(command, optionsOrCb);
294
+ }
295
+ else if (typeof cb === "function") {
296
+ if (typeof optionsOrCb !== "object")
297
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
+ this.send(command, optionsOrCb || {}, cb);
299
+ }
300
+ else {
301
+ return this.send(command, optionsOrCb);
302
+ }
303
+ }
304
+ listStagingAccounts(args, optionsOrCb, cb) {
305
+ const command = new ListStagingAccountsCommand_1.ListStagingAccountsCommand(args);
306
+ if (typeof optionsOrCb === "function") {
307
+ this.send(command, optionsOrCb);
308
+ }
309
+ else if (typeof cb === "function") {
310
+ if (typeof optionsOrCb !== "object")
311
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
+ this.send(command, optionsOrCb || {}, cb);
313
+ }
314
+ else {
315
+ return this.send(command, optionsOrCb);
316
+ }
317
+ }
273
318
  listTagsForResource(args, optionsOrCb, cb) {
274
319
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
275
320
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateExtendedSourceServerCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateExtendedSourceServerCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "DrsClient";
18
+ const commandName = "CreateExtendedSourceServerCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateExtendedSourceServerRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateExtendedSourceServerResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateExtendedSourceServerCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateExtendedSourceServerCommand)(output, context);
34
+ }
35
+ }
36
+ exports.CreateExtendedSourceServerCommand = CreateExtendedSourceServerCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListExtensibleSourceServersCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListExtensibleSourceServersCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "DrsClient";
18
+ const commandName = "ListExtensibleSourceServersCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListExtensibleSourceServersRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListExtensibleSourceServersResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListExtensibleSourceServersCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListExtensibleSourceServersCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListExtensibleSourceServersCommand = ListExtensibleSourceServersCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListStagingAccountsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListStagingAccountsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "DrsClient";
18
+ const commandName = "ListStagingAccountsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListStagingAccountsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListStagingAccountsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListStagingAccountsCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListStagingAccountsCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListStagingAccountsCommand = ListStagingAccountsCommand;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateExtendedSourceServerCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateReplicationConfigurationTemplateCommand"), exports);
5
6
  tslib_1.__exportStar(require("./DeleteJobCommand"), exports);
6
7
  tslib_1.__exportStar(require("./DeleteRecoveryInstanceCommand"), exports);
@@ -18,6 +19,8 @@ tslib_1.__exportStar(require("./GetFailbackReplicationConfigurationCommand"), ex
18
19
  tslib_1.__exportStar(require("./GetLaunchConfigurationCommand"), exports);
19
20
  tslib_1.__exportStar(require("./GetReplicationConfigurationCommand"), exports);
20
21
  tslib_1.__exportStar(require("./InitializeServiceCommand"), exports);
22
+ tslib_1.__exportStar(require("./ListExtensibleSourceServersCommand"), exports);
23
+ tslib_1.__exportStar(require("./ListStagingAccountsCommand"), exports);
21
24
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
22
25
  tslib_1.__exportStar(require("./RetryDataReplicationCommand"), exports);
23
26
  tslib_1.__exportStar(require("./StartFailbackLaunchCommand"), exports);