@aws-sdk/client-drs 3.350.0 → 3.352.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.
- package/README.md +71 -7
- package/dist-cjs/Drs.js +16 -0
- package/dist-cjs/commands/AssociateSourceNetworkStackCommand.js +47 -0
- package/dist-cjs/commands/CreateSourceNetworkCommand.js +47 -0
- package/dist-cjs/commands/DeleteSourceNetworkCommand.js +46 -0
- package/dist-cjs/commands/DescribeSourceNetworksCommand.js +47 -0
- package/dist-cjs/commands/ExportSourceNetworkCfnTemplateCommand.js +46 -0
- package/dist-cjs/commands/StartSourceNetworkRecoveryCommand.js +47 -0
- package/dist-cjs/commands/StartSourceNetworkReplicationCommand.js +47 -0
- package/dist-cjs/commands/StopSourceNetworkReplicationCommand.js +47 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +197 -96
- package/dist-cjs/pagination/DescribeSourceNetworksPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +595 -2
- package/dist-es/Drs.js +16 -0
- package/dist-es/commands/AssociateSourceNetworkStackCommand.js +43 -0
- package/dist-es/commands/CreateSourceNetworkCommand.js +43 -0
- package/dist-es/commands/DeleteSourceNetworkCommand.js +42 -0
- package/dist-es/commands/DescribeSourceNetworksCommand.js +43 -0
- package/dist-es/commands/ExportSourceNetworkCfnTemplateCommand.js +42 -0
- package/dist-es/commands/StartSourceNetworkRecoveryCommand.js +43 -0
- package/dist-es/commands/StartSourceNetworkReplicationCommand.js +43 -0
- package/dist-es/commands/StopSourceNetworkReplicationCommand.js +43 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +184 -93
- package/dist-es/pagination/DescribeSourceNetworksPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +578 -1
- package/dist-types/Drs.d.ts +56 -0
- package/dist-types/DrsClient.d.ts +10 -2
- package/dist-types/commands/AssociateSourceNetworkStackCommand.d.ts +121 -0
- package/dist-types/commands/CreateExtendedSourceServerCommand.d.ts +1 -0
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +2 -0
- package/dist-types/commands/CreateSourceNetworkCommand.d.ts +99 -0
- package/dist-types/commands/DeleteSourceNetworkCommand.d.ts +86 -0
- package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +8 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +8 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSourceNetworksCommand.d.ts +114 -0
- package/dist-types/commands/DescribeSourceServersCommand.d.ts +1 -0
- package/dist-types/commands/DisconnectSourceServerCommand.d.ts +1 -0
- package/dist-types/commands/ExportSourceNetworkCfnTemplateCommand.d.ts +91 -0
- package/dist-types/commands/RetryDataReplicationCommand.d.ts +1 -0
- package/dist-types/commands/StartFailbackLaunchCommand.d.ts +8 -0
- package/dist-types/commands/StartRecoveryCommand.d.ts +8 -0
- package/dist-types/commands/StartReplicationCommand.d.ts +1 -0
- package/dist-types/commands/StartSourceNetworkRecoveryCommand.d.ts +126 -0
- package/dist-types/commands/StartSourceNetworkReplicationCommand.d.ts +106 -0
- package/dist-types/commands/StopReplicationCommand.d.ts +1 -0
- package/dist-types/commands/StopSourceNetworkReplicationCommand.d.ts +109 -0
- package/dist-types/commands/TerminateRecoveryInstancesCommand.d.ts +8 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +802 -325
- package/dist-types/pagination/DescribeSourceNetworksPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/Drs.d.ts +136 -0
- package/dist-types/ts3.4/DrsClient.d.ts +48 -0
- package/dist-types/ts3.4/commands/AssociateSourceNetworkStackCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateSourceNetworkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteSourceNetworkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeSourceNetworksCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ExportSourceNetworkCfnTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartSourceNetworkRecoveryCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartSourceNetworkReplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopSourceNetworkReplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +313 -116
- package/dist-types/ts3.4/pagination/DescribeSourceNetworksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -23,16 +23,16 @@ using your favorite package manager:
|
|
|
23
23
|
|
|
24
24
|
The AWS SDK is modulized by clients and commands.
|
|
25
25
|
To send a request, you only need to import the `DrsClient` and
|
|
26
|
-
the commands you need, for example `
|
|
26
|
+
the commands you need, for example `AssociateSourceNetworkStackCommand`:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
// ES5 example
|
|
30
|
-
const { DrsClient,
|
|
30
|
+
const { DrsClient, AssociateSourceNetworkStackCommand } = require("@aws-sdk/client-drs");
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
34
|
// ES6+ example
|
|
35
|
-
import { DrsClient,
|
|
35
|
+
import { DrsClient, AssociateSourceNetworkStackCommand } from "@aws-sdk/client-drs";
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Usage
|
|
@@ -51,7 +51,7 @@ const client = new DrsClient({ region: "REGION" });
|
|
|
51
51
|
const params = {
|
|
52
52
|
/** input parameters */
|
|
53
53
|
};
|
|
54
|
-
const command = new
|
|
54
|
+
const command = new AssociateSourceNetworkStackCommand(params);
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
#### Async/await
|
|
@@ -130,7 +130,7 @@ const client = new AWS.Drs({ region: "REGION" });
|
|
|
130
130
|
|
|
131
131
|
// async/await.
|
|
132
132
|
try {
|
|
133
|
-
const data = await client.
|
|
133
|
+
const data = await client.associateSourceNetworkStack(params);
|
|
134
134
|
// process data.
|
|
135
135
|
} catch (error) {
|
|
136
136
|
// error handling.
|
|
@@ -138,7 +138,7 @@ try {
|
|
|
138
138
|
|
|
139
139
|
// Promises.
|
|
140
140
|
client
|
|
141
|
-
.
|
|
141
|
+
.associateSourceNetworkStack(params)
|
|
142
142
|
.then((data) => {
|
|
143
143
|
// process data.
|
|
144
144
|
})
|
|
@@ -147,7 +147,7 @@ client
|
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
// callbacks.
|
|
150
|
-
client.
|
|
150
|
+
client.associateSourceNetworkStack(params, (err, data) => {
|
|
151
151
|
// process err and data.
|
|
152
152
|
});
|
|
153
153
|
```
|
|
@@ -203,6 +203,14 @@ see LICENSE for more information.
|
|
|
203
203
|
|
|
204
204
|
## Client Commands (Operations List)
|
|
205
205
|
|
|
206
|
+
<details>
|
|
207
|
+
<summary>
|
|
208
|
+
AssociateSourceNetworkStack
|
|
209
|
+
</summary>
|
|
210
|
+
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/associatesourcenetworkstackcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/associatesourcenetworkstackcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/associatesourcenetworkstackcommandoutput.html)
|
|
212
|
+
|
|
213
|
+
</details>
|
|
206
214
|
<details>
|
|
207
215
|
<summary>
|
|
208
216
|
CreateExtendedSourceServer
|
|
@@ -226,6 +234,14 @@ CreateReplicationConfigurationTemplate
|
|
|
226
234
|
|
|
227
235
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/createreplicationconfigurationtemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createreplicationconfigurationtemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createreplicationconfigurationtemplatecommandoutput.html)
|
|
228
236
|
|
|
237
|
+
</details>
|
|
238
|
+
<details>
|
|
239
|
+
<summary>
|
|
240
|
+
CreateSourceNetwork
|
|
241
|
+
</summary>
|
|
242
|
+
|
|
243
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/createsourcenetworkcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createsourcenetworkcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/createsourcenetworkcommandoutput.html)
|
|
244
|
+
|
|
229
245
|
</details>
|
|
230
246
|
<details>
|
|
231
247
|
<summary>
|
|
@@ -258,6 +274,14 @@ DeleteReplicationConfigurationTemplate
|
|
|
258
274
|
|
|
259
275
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/deletereplicationconfigurationtemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletereplicationconfigurationtemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletereplicationconfigurationtemplatecommandoutput.html)
|
|
260
276
|
|
|
277
|
+
</details>
|
|
278
|
+
<details>
|
|
279
|
+
<summary>
|
|
280
|
+
DeleteSourceNetwork
|
|
281
|
+
</summary>
|
|
282
|
+
|
|
283
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/deletesourcenetworkcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletesourcenetworkcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/deletesourcenetworkcommandoutput.html)
|
|
284
|
+
|
|
261
285
|
</details>
|
|
262
286
|
<details>
|
|
263
287
|
<summary>
|
|
@@ -314,6 +338,14 @@ DescribeReplicationConfigurationTemplates
|
|
|
314
338
|
|
|
315
339
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/describereplicationconfigurationtemplatescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describereplicationconfigurationtemplatescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describereplicationconfigurationtemplatescommandoutput.html)
|
|
316
340
|
|
|
341
|
+
</details>
|
|
342
|
+
<details>
|
|
343
|
+
<summary>
|
|
344
|
+
DescribeSourceNetworks
|
|
345
|
+
</summary>
|
|
346
|
+
|
|
347
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/describesourcenetworkscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describesourcenetworkscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/describesourcenetworkscommandoutput.html)
|
|
348
|
+
|
|
317
349
|
</details>
|
|
318
350
|
<details>
|
|
319
351
|
<summary>
|
|
@@ -338,6 +370,14 @@ DisconnectSourceServer
|
|
|
338
370
|
|
|
339
371
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/disconnectsourceservercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/disconnectsourceservercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/disconnectsourceservercommandoutput.html)
|
|
340
372
|
|
|
373
|
+
</details>
|
|
374
|
+
<details>
|
|
375
|
+
<summary>
|
|
376
|
+
ExportSourceNetworkCfnTemplate
|
|
377
|
+
</summary>
|
|
378
|
+
|
|
379
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/exportsourcenetworkcfntemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/exportsourcenetworkcfntemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/exportsourcenetworkcfntemplatecommandoutput.html)
|
|
380
|
+
|
|
341
381
|
</details>
|
|
342
382
|
<details>
|
|
343
383
|
<summary>
|
|
@@ -434,6 +474,22 @@ StartReplication
|
|
|
434
474
|
|
|
435
475
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/startreplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/startreplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/startreplicationcommandoutput.html)
|
|
436
476
|
|
|
477
|
+
</details>
|
|
478
|
+
<details>
|
|
479
|
+
<summary>
|
|
480
|
+
StartSourceNetworkRecovery
|
|
481
|
+
</summary>
|
|
482
|
+
|
|
483
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/startsourcenetworkrecoverycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/startsourcenetworkrecoverycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/startsourcenetworkrecoverycommandoutput.html)
|
|
484
|
+
|
|
485
|
+
</details>
|
|
486
|
+
<details>
|
|
487
|
+
<summary>
|
|
488
|
+
StartSourceNetworkReplication
|
|
489
|
+
</summary>
|
|
490
|
+
|
|
491
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/startsourcenetworkreplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/startsourcenetworkreplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/startsourcenetworkreplicationcommandoutput.html)
|
|
492
|
+
|
|
437
493
|
</details>
|
|
438
494
|
<details>
|
|
439
495
|
<summary>
|
|
@@ -450,6 +506,14 @@ StopReplication
|
|
|
450
506
|
|
|
451
507
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/stopreplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/stopreplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/stopreplicationcommandoutput.html)
|
|
452
508
|
|
|
509
|
+
</details>
|
|
510
|
+
<details>
|
|
511
|
+
<summary>
|
|
512
|
+
StopSourceNetworkReplication
|
|
513
|
+
</summary>
|
|
514
|
+
|
|
515
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/classes/stopsourcenetworkreplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/stopsourcenetworkreplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-drs/interfaces/stopsourcenetworkreplicationcommandoutput.html)
|
|
516
|
+
|
|
453
517
|
</details>
|
|
454
518
|
<details>
|
|
455
519
|
<summary>
|
package/dist-cjs/Drs.js
CHANGED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Drs = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const AssociateSourceNetworkStackCommand_1 = require("./commands/AssociateSourceNetworkStackCommand");
|
|
5
6
|
const CreateExtendedSourceServerCommand_1 = require("./commands/CreateExtendedSourceServerCommand");
|
|
6
7
|
const CreateLaunchConfigurationTemplateCommand_1 = require("./commands/CreateLaunchConfigurationTemplateCommand");
|
|
7
8
|
const CreateReplicationConfigurationTemplateCommand_1 = require("./commands/CreateReplicationConfigurationTemplateCommand");
|
|
9
|
+
const CreateSourceNetworkCommand_1 = require("./commands/CreateSourceNetworkCommand");
|
|
8
10
|
const DeleteJobCommand_1 = require("./commands/DeleteJobCommand");
|
|
9
11
|
const DeleteLaunchConfigurationTemplateCommand_1 = require("./commands/DeleteLaunchConfigurationTemplateCommand");
|
|
10
12
|
const DeleteRecoveryInstanceCommand_1 = require("./commands/DeleteRecoveryInstanceCommand");
|
|
11
13
|
const DeleteReplicationConfigurationTemplateCommand_1 = require("./commands/DeleteReplicationConfigurationTemplateCommand");
|
|
14
|
+
const DeleteSourceNetworkCommand_1 = require("./commands/DeleteSourceNetworkCommand");
|
|
12
15
|
const DeleteSourceServerCommand_1 = require("./commands/DeleteSourceServerCommand");
|
|
13
16
|
const DescribeJobLogItemsCommand_1 = require("./commands/DescribeJobLogItemsCommand");
|
|
14
17
|
const DescribeJobsCommand_1 = require("./commands/DescribeJobsCommand");
|
|
@@ -16,9 +19,11 @@ const DescribeLaunchConfigurationTemplatesCommand_1 = require("./commands/Descri
|
|
|
16
19
|
const DescribeRecoveryInstancesCommand_1 = require("./commands/DescribeRecoveryInstancesCommand");
|
|
17
20
|
const DescribeRecoverySnapshotsCommand_1 = require("./commands/DescribeRecoverySnapshotsCommand");
|
|
18
21
|
const DescribeReplicationConfigurationTemplatesCommand_1 = require("./commands/DescribeReplicationConfigurationTemplatesCommand");
|
|
22
|
+
const DescribeSourceNetworksCommand_1 = require("./commands/DescribeSourceNetworksCommand");
|
|
19
23
|
const DescribeSourceServersCommand_1 = require("./commands/DescribeSourceServersCommand");
|
|
20
24
|
const DisconnectRecoveryInstanceCommand_1 = require("./commands/DisconnectRecoveryInstanceCommand");
|
|
21
25
|
const DisconnectSourceServerCommand_1 = require("./commands/DisconnectSourceServerCommand");
|
|
26
|
+
const ExportSourceNetworkCfnTemplateCommand_1 = require("./commands/ExportSourceNetworkCfnTemplateCommand");
|
|
22
27
|
const GetFailbackReplicationConfigurationCommand_1 = require("./commands/GetFailbackReplicationConfigurationCommand");
|
|
23
28
|
const GetLaunchConfigurationCommand_1 = require("./commands/GetLaunchConfigurationCommand");
|
|
24
29
|
const GetReplicationConfigurationCommand_1 = require("./commands/GetReplicationConfigurationCommand");
|
|
@@ -31,8 +36,11 @@ const ReverseReplicationCommand_1 = require("./commands/ReverseReplicationComman
|
|
|
31
36
|
const StartFailbackLaunchCommand_1 = require("./commands/StartFailbackLaunchCommand");
|
|
32
37
|
const StartRecoveryCommand_1 = require("./commands/StartRecoveryCommand");
|
|
33
38
|
const StartReplicationCommand_1 = require("./commands/StartReplicationCommand");
|
|
39
|
+
const StartSourceNetworkRecoveryCommand_1 = require("./commands/StartSourceNetworkRecoveryCommand");
|
|
40
|
+
const StartSourceNetworkReplicationCommand_1 = require("./commands/StartSourceNetworkReplicationCommand");
|
|
34
41
|
const StopFailbackCommand_1 = require("./commands/StopFailbackCommand");
|
|
35
42
|
const StopReplicationCommand_1 = require("./commands/StopReplicationCommand");
|
|
43
|
+
const StopSourceNetworkReplicationCommand_1 = require("./commands/StopSourceNetworkReplicationCommand");
|
|
36
44
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
37
45
|
const TerminateRecoveryInstancesCommand_1 = require("./commands/TerminateRecoveryInstancesCommand");
|
|
38
46
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
@@ -43,13 +51,16 @@ const UpdateReplicationConfigurationCommand_1 = require("./commands/UpdateReplic
|
|
|
43
51
|
const UpdateReplicationConfigurationTemplateCommand_1 = require("./commands/UpdateReplicationConfigurationTemplateCommand");
|
|
44
52
|
const DrsClient_1 = require("./DrsClient");
|
|
45
53
|
const commands = {
|
|
54
|
+
AssociateSourceNetworkStackCommand: AssociateSourceNetworkStackCommand_1.AssociateSourceNetworkStackCommand,
|
|
46
55
|
CreateExtendedSourceServerCommand: CreateExtendedSourceServerCommand_1.CreateExtendedSourceServerCommand,
|
|
47
56
|
CreateLaunchConfigurationTemplateCommand: CreateLaunchConfigurationTemplateCommand_1.CreateLaunchConfigurationTemplateCommand,
|
|
48
57
|
CreateReplicationConfigurationTemplateCommand: CreateReplicationConfigurationTemplateCommand_1.CreateReplicationConfigurationTemplateCommand,
|
|
58
|
+
CreateSourceNetworkCommand: CreateSourceNetworkCommand_1.CreateSourceNetworkCommand,
|
|
49
59
|
DeleteJobCommand: DeleteJobCommand_1.DeleteJobCommand,
|
|
50
60
|
DeleteLaunchConfigurationTemplateCommand: DeleteLaunchConfigurationTemplateCommand_1.DeleteLaunchConfigurationTemplateCommand,
|
|
51
61
|
DeleteRecoveryInstanceCommand: DeleteRecoveryInstanceCommand_1.DeleteRecoveryInstanceCommand,
|
|
52
62
|
DeleteReplicationConfigurationTemplateCommand: DeleteReplicationConfigurationTemplateCommand_1.DeleteReplicationConfigurationTemplateCommand,
|
|
63
|
+
DeleteSourceNetworkCommand: DeleteSourceNetworkCommand_1.DeleteSourceNetworkCommand,
|
|
53
64
|
DeleteSourceServerCommand: DeleteSourceServerCommand_1.DeleteSourceServerCommand,
|
|
54
65
|
DescribeJobLogItemsCommand: DescribeJobLogItemsCommand_1.DescribeJobLogItemsCommand,
|
|
55
66
|
DescribeJobsCommand: DescribeJobsCommand_1.DescribeJobsCommand,
|
|
@@ -57,9 +68,11 @@ const commands = {
|
|
|
57
68
|
DescribeRecoveryInstancesCommand: DescribeRecoveryInstancesCommand_1.DescribeRecoveryInstancesCommand,
|
|
58
69
|
DescribeRecoverySnapshotsCommand: DescribeRecoverySnapshotsCommand_1.DescribeRecoverySnapshotsCommand,
|
|
59
70
|
DescribeReplicationConfigurationTemplatesCommand: DescribeReplicationConfigurationTemplatesCommand_1.DescribeReplicationConfigurationTemplatesCommand,
|
|
71
|
+
DescribeSourceNetworksCommand: DescribeSourceNetworksCommand_1.DescribeSourceNetworksCommand,
|
|
60
72
|
DescribeSourceServersCommand: DescribeSourceServersCommand_1.DescribeSourceServersCommand,
|
|
61
73
|
DisconnectRecoveryInstanceCommand: DisconnectRecoveryInstanceCommand_1.DisconnectRecoveryInstanceCommand,
|
|
62
74
|
DisconnectSourceServerCommand: DisconnectSourceServerCommand_1.DisconnectSourceServerCommand,
|
|
75
|
+
ExportSourceNetworkCfnTemplateCommand: ExportSourceNetworkCfnTemplateCommand_1.ExportSourceNetworkCfnTemplateCommand,
|
|
63
76
|
GetFailbackReplicationConfigurationCommand: GetFailbackReplicationConfigurationCommand_1.GetFailbackReplicationConfigurationCommand,
|
|
64
77
|
GetLaunchConfigurationCommand: GetLaunchConfigurationCommand_1.GetLaunchConfigurationCommand,
|
|
65
78
|
GetReplicationConfigurationCommand: GetReplicationConfigurationCommand_1.GetReplicationConfigurationCommand,
|
|
@@ -72,8 +85,11 @@ const commands = {
|
|
|
72
85
|
StartFailbackLaunchCommand: StartFailbackLaunchCommand_1.StartFailbackLaunchCommand,
|
|
73
86
|
StartRecoveryCommand: StartRecoveryCommand_1.StartRecoveryCommand,
|
|
74
87
|
StartReplicationCommand: StartReplicationCommand_1.StartReplicationCommand,
|
|
88
|
+
StartSourceNetworkRecoveryCommand: StartSourceNetworkRecoveryCommand_1.StartSourceNetworkRecoveryCommand,
|
|
89
|
+
StartSourceNetworkReplicationCommand: StartSourceNetworkReplicationCommand_1.StartSourceNetworkReplicationCommand,
|
|
75
90
|
StopFailbackCommand: StopFailbackCommand_1.StopFailbackCommand,
|
|
76
91
|
StopReplicationCommand: StopReplicationCommand_1.StopReplicationCommand,
|
|
92
|
+
StopSourceNetworkReplicationCommand: StopSourceNetworkReplicationCommand_1.StopSourceNetworkReplicationCommand,
|
|
77
93
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
78
94
|
TerminateRecoveryInstancesCommand: TerminateRecoveryInstancesCommand_1.TerminateRecoveryInstancesCommand,
|
|
79
95
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociateSourceNetworkStackCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class AssociateSourceNetworkStackCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssociateSourceNetworkStackCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DrsClient";
|
|
29
|
+
const commandName = "AssociateSourceNetworkStackCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_0_1.AssociateSourceNetworkStackRequestFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.AssociateSourceNetworkStackResponseFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_AssociateSourceNetworkStackCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_AssociateSourceNetworkStackCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.AssociateSourceNetworkStackCommand = AssociateSourceNetworkStackCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSourceNetworkCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class CreateSourceNetworkCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateSourceNetworkCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DrsClient";
|
|
29
|
+
const commandName = "CreateSourceNetworkCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_0_1.CreateSourceNetworkRequestFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_CreateSourceNetworkCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_CreateSourceNetworkCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.CreateSourceNetworkCommand = CreateSourceNetworkCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSourceNetworkCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteSourceNetworkCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteSourceNetworkCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "DrsClient";
|
|
28
|
+
const commandName = "DeleteSourceNetworkCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_DeleteSourceNetworkCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_DeleteSourceNetworkCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteSourceNetworkCommand = DeleteSourceNetworkCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeSourceNetworksCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class DescribeSourceNetworksCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeSourceNetworksCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DrsClient";
|
|
29
|
+
const commandName = "DescribeSourceNetworksCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.DescribeSourceNetworksResponseFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_DescribeSourceNetworksCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_DescribeSourceNetworksCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.DescribeSourceNetworksCommand = DescribeSourceNetworksCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExportSourceNetworkCfnTemplateCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ExportSourceNetworkCfnTemplateCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ExportSourceNetworkCfnTemplateCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "DrsClient";
|
|
28
|
+
const commandName = "ExportSourceNetworkCfnTemplateCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_ExportSourceNetworkCfnTemplateCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_ExportSourceNetworkCfnTemplateCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ExportSourceNetworkCfnTemplateCommand = ExportSourceNetworkCfnTemplateCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartSourceNetworkRecoveryCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class StartSourceNetworkRecoveryCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartSourceNetworkRecoveryCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DrsClient";
|
|
29
|
+
const commandName = "StartSourceNetworkRecoveryCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_0_1.StartSourceNetworkRecoveryRequestFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.StartSourceNetworkRecoveryResponseFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_StartSourceNetworkRecoveryCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_StartSourceNetworkRecoveryCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.StartSourceNetworkRecoveryCommand = StartSourceNetworkRecoveryCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartSourceNetworkReplicationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class StartSourceNetworkReplicationCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartSourceNetworkReplicationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DrsClient";
|
|
29
|
+
const commandName = "StartSourceNetworkReplicationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.StartSourceNetworkReplicationResponseFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_StartSourceNetworkReplicationCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_StartSourceNetworkReplicationCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.StartSourceNetworkReplicationCommand = StartSourceNetworkReplicationCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopSourceNetworkReplicationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class StopSourceNetworkReplicationCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopSourceNetworkReplicationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DrsClient";
|
|
29
|
+
const commandName = "StopSourceNetworkReplicationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.StopSourceNetworkReplicationResponseFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_StopSourceNetworkReplicationCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_StopSourceNetworkReplicationCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.StopSourceNetworkReplicationCommand = StopSourceNetworkReplicationCommand;
|