@aws-sdk/client-mgn 3.363.0 → 3.369.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 +32 -0
- package/dist-cjs/Mgn.js +8 -0
- package/dist-cjs/commands/ListManagedAccountsCommand.js +46 -0
- package/dist-cjs/commands/PauseReplicationCommand.js +47 -0
- package/dist-cjs/commands/ResumeReplicationCommand.js +47 -0
- package/dist-cjs/commands/StopReplicationCommand.js +47 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/pagination/ListManagedAccountsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +348 -3
- package/dist-es/Mgn.js +8 -0
- package/dist-es/commands/ListManagedAccountsCommand.js +42 -0
- package/dist-es/commands/PauseReplicationCommand.js +43 -0
- package/dist-es/commands/ResumeReplicationCommand.js +43 -0
- package/dist-es/commands/StopReplicationCommand.js +43 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/pagination/ListManagedAccountsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +337 -0
- package/dist-types/Mgn.d.ts +28 -0
- package/dist-types/MgnClient.d.ts +6 -2
- package/dist-types/commands/ArchiveApplicationCommand.d.ts +1 -0
- package/dist-types/commands/ArchiveWaveCommand.d.ts +1 -0
- package/dist-types/commands/AssociateApplicationsCommand.d.ts +1 -0
- package/dist-types/commands/AssociateSourceServersCommand.d.ts +1 -0
- package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +1 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +1 -0
- package/dist-types/commands/CreateReplicationConfigurationTemplateCommand.d.ts +2 -0
- package/dist-types/commands/CreateWaveCommand.d.ts +1 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteJobCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSourceServerCommand.d.ts +1 -0
- package/dist-types/commands/DeleteWaveCommand.d.ts +1 -0
- package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSourceServersCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateApplicationsCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateSourceServersCommand.d.ts +1 -0
- package/dist-types/commands/DisconnectFromServiceCommand.d.ts +1 -0
- package/dist-types/commands/FinalizeCutoverCommand.d.ts +1 -0
- package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetReplicationConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +1 -0
- package/dist-types/commands/ListImportErrorsCommand.d.ts +1 -0
- package/dist-types/commands/ListManagedAccountsCommand.d.ts +85 -0
- package/dist-types/commands/ListSourceServerActionsCommand.d.ts +1 -0
- package/dist-types/commands/ListWavesCommand.d.ts +1 -0
- package/dist-types/commands/MarkAsArchivedCommand.d.ts +1 -0
- package/dist-types/commands/PauseReplicationCommand.d.ts +200 -0
- package/dist-types/commands/PutSourceServerActionCommand.d.ts +1 -0
- package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +1 -0
- package/dist-types/commands/ResumeReplicationCommand.d.ts +200 -0
- package/dist-types/commands/RetryDataReplicationCommand.d.ts +1 -0
- package/dist-types/commands/StartCutoverCommand.d.ts +1 -0
- package/dist-types/commands/StartReplicationCommand.d.ts +1 -0
- package/dist-types/commands/StartTestCommand.d.ts +1 -0
- package/dist-types/commands/StopReplicationCommand.d.ts +200 -0
- package/dist-types/commands/TerminateTargetInstancesCommand.d.ts +1 -0
- package/dist-types/commands/UnarchiveApplicationCommand.d.ts +1 -0
- package/dist-types/commands/UnarchiveWaveCommand.d.ts +1 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateReplicationConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +2 -0
- package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +1 -0
- package/dist-types/commands/UpdateWaveCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +253 -0
- package/dist-types/pagination/ListManagedAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/Mgn.d.ts +68 -0
- package/dist-types/ts3.4/MgnClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/ListManagedAccountsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PauseReplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ResumeReplicationCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StopReplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -0
- package/dist-types/ts3.4/pagination/ListManagedAccountsPaginator.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 +48 -0
- package/package.json +13 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateWaveCommand = exports.de_UpdateSourceServerReplicationTypeCommand = exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_UnarchiveWaveCommand = exports.de_UnarchiveApplicationCommand = exports.de_TerminateTargetInstancesCommand = exports.de_TagResourceCommand = exports.de_StartTestCommand = exports.de_StartReplicationCommand = exports.de_StartImportCommand = exports.de_StartExportCommand = exports.de_StartCutoverCommand = exports.de_RetryDataReplicationCommand = exports.de_RemoveTemplateActionCommand = exports.de_RemoveSourceServerActionCommand = exports.de_PutTemplateActionCommand = exports.de_PutSourceServerActionCommand = void 0;
|
|
3
|
+
exports.se_StartImportCommand = exports.se_StartExportCommand = exports.se_StartCutoverCommand = exports.se_RetryDataReplicationCommand = exports.se_ResumeReplicationCommand = exports.se_RemoveTemplateActionCommand = exports.se_RemoveSourceServerActionCommand = exports.se_PutTemplateActionCommand = exports.se_PutSourceServerActionCommand = exports.se_PauseReplicationCommand = exports.se_MarkAsArchivedCommand = exports.se_ListWavesCommand = exports.se_ListTemplateActionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSourceServerActionsCommand = exports.se_ListManagedAccountsCommand = exports.se_ListImportsCommand = exports.se_ListImportErrorsCommand = exports.se_ListExportsCommand = exports.se_ListExportErrorsCommand = exports.se_ListApplicationsCommand = exports.se_InitializeServiceCommand = exports.se_GetReplicationConfigurationCommand = exports.se_GetLaunchConfigurationCommand = exports.se_FinalizeCutoverCommand = exports.se_DisconnectFromServiceCommand = exports.se_DisassociateSourceServersCommand = exports.se_DisassociateApplicationsCommand = exports.se_DescribeVcenterClientsCommand = exports.se_DescribeSourceServersCommand = exports.se_DescribeReplicationConfigurationTemplatesCommand = exports.se_DescribeLaunchConfigurationTemplatesCommand = exports.se_DescribeJobsCommand = exports.se_DescribeJobLogItemsCommand = exports.se_DeleteWaveCommand = exports.se_DeleteVcenterClientCommand = exports.se_DeleteSourceServerCommand = exports.se_DeleteReplicationConfigurationTemplateCommand = exports.se_DeleteLaunchConfigurationTemplateCommand = exports.se_DeleteJobCommand = exports.se_DeleteApplicationCommand = exports.se_CreateWaveCommand = exports.se_CreateReplicationConfigurationTemplateCommand = exports.se_CreateLaunchConfigurationTemplateCommand = exports.se_CreateApplicationCommand = exports.se_ChangeServerLifeCycleStateCommand = exports.se_AssociateSourceServersCommand = exports.se_AssociateApplicationsCommand = exports.se_ArchiveWaveCommand = exports.se_ArchiveApplicationCommand = void 0;
|
|
4
|
+
exports.de_ListManagedAccountsCommand = exports.de_ListImportsCommand = exports.de_ListImportErrorsCommand = exports.de_ListExportsCommand = exports.de_ListExportErrorsCommand = exports.de_ListApplicationsCommand = exports.de_InitializeServiceCommand = exports.de_GetReplicationConfigurationCommand = exports.de_GetLaunchConfigurationCommand = exports.de_FinalizeCutoverCommand = exports.de_DisconnectFromServiceCommand = exports.de_DisassociateSourceServersCommand = exports.de_DisassociateApplicationsCommand = exports.de_DescribeVcenterClientsCommand = exports.de_DescribeSourceServersCommand = exports.de_DescribeReplicationConfigurationTemplatesCommand = exports.de_DescribeLaunchConfigurationTemplatesCommand = exports.de_DescribeJobsCommand = exports.de_DescribeJobLogItemsCommand = exports.de_DeleteWaveCommand = exports.de_DeleteVcenterClientCommand = exports.de_DeleteSourceServerCommand = exports.de_DeleteReplicationConfigurationTemplateCommand = exports.de_DeleteLaunchConfigurationTemplateCommand = exports.de_DeleteJobCommand = exports.de_DeleteApplicationCommand = exports.de_CreateWaveCommand = exports.de_CreateReplicationConfigurationTemplateCommand = exports.de_CreateLaunchConfigurationTemplateCommand = exports.de_CreateApplicationCommand = exports.de_ChangeServerLifeCycleStateCommand = exports.de_AssociateSourceServersCommand = exports.de_AssociateApplicationsCommand = exports.de_ArchiveWaveCommand = exports.de_ArchiveApplicationCommand = exports.se_UpdateWaveCommand = exports.se_UpdateSourceServerReplicationTypeCommand = exports.se_UpdateReplicationConfigurationTemplateCommand = exports.se_UpdateReplicationConfigurationCommand = exports.se_UpdateLaunchConfigurationTemplateCommand = exports.se_UpdateLaunchConfigurationCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_UnarchiveWaveCommand = exports.se_UnarchiveApplicationCommand = exports.se_TerminateTargetInstancesCommand = exports.se_TagResourceCommand = exports.se_StopReplicationCommand = exports.se_StartTestCommand = exports.se_StartReplicationCommand = void 0;
|
|
5
|
+
exports.de_UpdateWaveCommand = exports.de_UpdateSourceServerReplicationTypeCommand = exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_UnarchiveWaveCommand = exports.de_UnarchiveApplicationCommand = exports.de_TerminateTargetInstancesCommand = exports.de_TagResourceCommand = exports.de_StopReplicationCommand = exports.de_StartTestCommand = exports.de_StartReplicationCommand = exports.de_StartImportCommand = exports.de_StartExportCommand = exports.de_StartCutoverCommand = exports.de_RetryDataReplicationCommand = exports.de_ResumeReplicationCommand = exports.de_RemoveTemplateActionCommand = exports.de_RemoveSourceServerActionCommand = exports.de_PutTemplateActionCommand = exports.de_PutSourceServerActionCommand = exports.de_PauseReplicationCommand = exports.de_MarkAsArchivedCommand = exports.de_ListWavesCommand = exports.de_ListTemplateActionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceServerActionsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -16,6 +16,7 @@ const se_ArchiveApplicationCommand = async (input, context) => {
|
|
|
16
16
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveApplication";
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
+
accountID: [],
|
|
19
20
|
applicationID: [],
|
|
20
21
|
}));
|
|
21
22
|
return new protocol_http_1.HttpRequest({
|
|
@@ -37,6 +38,7 @@ const se_ArchiveWaveCommand = async (input, context) => {
|
|
|
37
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveWave";
|
|
38
39
|
let body;
|
|
39
40
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
accountID: [],
|
|
40
42
|
waveID: [],
|
|
41
43
|
}));
|
|
42
44
|
return new protocol_http_1.HttpRequest({
|
|
@@ -58,6 +60,7 @@ const se_AssociateApplicationsCommand = async (input, context) => {
|
|
|
58
60
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateApplications";
|
|
59
61
|
let body;
|
|
60
62
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
63
|
+
accountID: [],
|
|
61
64
|
applicationIDs: (_) => (0, smithy_client_1._json)(_),
|
|
62
65
|
waveID: [],
|
|
63
66
|
}));
|
|
@@ -80,6 +83,7 @@ const se_AssociateSourceServersCommand = async (input, context) => {
|
|
|
80
83
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateSourceServers";
|
|
81
84
|
let body;
|
|
82
85
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
|
+
accountID: [],
|
|
83
87
|
applicationID: [],
|
|
84
88
|
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
85
89
|
}));
|
|
@@ -102,6 +106,7 @@ const se_ChangeServerLifeCycleStateCommand = async (input, context) => {
|
|
|
102
106
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ChangeServerLifeCycleState";
|
|
103
107
|
let body;
|
|
104
108
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
109
|
+
accountID: [],
|
|
105
110
|
lifeCycle: (_) => (0, smithy_client_1._json)(_),
|
|
106
111
|
sourceServerID: [],
|
|
107
112
|
}));
|
|
@@ -124,6 +129,7 @@ const se_CreateApplicationCommand = async (input, context) => {
|
|
|
124
129
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateApplication";
|
|
125
130
|
let body;
|
|
126
131
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
132
|
+
accountID: [],
|
|
127
133
|
description: [],
|
|
128
134
|
name: [],
|
|
129
135
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -194,6 +200,7 @@ const se_CreateReplicationConfigurationTemplateCommand = async (input, context)
|
|
|
194
200
|
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
195
201
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
196
202
|
useDedicatedReplicationServer: [],
|
|
203
|
+
useFipsEndpoint: [],
|
|
197
204
|
}));
|
|
198
205
|
return new protocol_http_1.HttpRequest({
|
|
199
206
|
protocol,
|
|
@@ -214,6 +221,7 @@ const se_CreateWaveCommand = async (input, context) => {
|
|
|
214
221
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateWave";
|
|
215
222
|
let body;
|
|
216
223
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
224
|
+
accountID: [],
|
|
217
225
|
description: [],
|
|
218
226
|
name: [],
|
|
219
227
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -237,6 +245,7 @@ const se_DeleteApplicationCommand = async (input, context) => {
|
|
|
237
245
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteApplication";
|
|
238
246
|
let body;
|
|
239
247
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
248
|
+
accountID: [],
|
|
240
249
|
applicationID: [],
|
|
241
250
|
}));
|
|
242
251
|
return new protocol_http_1.HttpRequest({
|
|
@@ -258,6 +267,7 @@ const se_DeleteJobCommand = async (input, context) => {
|
|
|
258
267
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob";
|
|
259
268
|
let body;
|
|
260
269
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
270
|
+
accountID: [],
|
|
261
271
|
jobID: [],
|
|
262
272
|
}));
|
|
263
273
|
return new protocol_http_1.HttpRequest({
|
|
@@ -321,6 +331,7 @@ const se_DeleteSourceServerCommand = async (input, context) => {
|
|
|
321
331
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer";
|
|
322
332
|
let body;
|
|
323
333
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
|
+
accountID: [],
|
|
324
335
|
sourceServerID: [],
|
|
325
336
|
}));
|
|
326
337
|
return new protocol_http_1.HttpRequest({
|
|
@@ -363,6 +374,7 @@ const se_DeleteWaveCommand = async (input, context) => {
|
|
|
363
374
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteWave";
|
|
364
375
|
let body;
|
|
365
376
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
377
|
+
accountID: [],
|
|
366
378
|
waveID: [],
|
|
367
379
|
}));
|
|
368
380
|
return new protocol_http_1.HttpRequest({
|
|
@@ -384,6 +396,7 @@ const se_DescribeJobLogItemsCommand = async (input, context) => {
|
|
|
384
396
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems";
|
|
385
397
|
let body;
|
|
386
398
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
399
|
+
accountID: [],
|
|
387
400
|
jobID: [],
|
|
388
401
|
maxResults: [],
|
|
389
402
|
nextToken: [],
|
|
@@ -407,6 +420,7 @@ const se_DescribeJobsCommand = async (input, context) => {
|
|
|
407
420
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs";
|
|
408
421
|
let body;
|
|
409
422
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
423
|
+
accountID: [],
|
|
410
424
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
411
425
|
maxResults: [],
|
|
412
426
|
nextToken: [],
|
|
@@ -477,6 +491,7 @@ const se_DescribeSourceServersCommand = async (input, context) => {
|
|
|
477
491
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers";
|
|
478
492
|
let body;
|
|
479
493
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
494
|
+
accountID: [],
|
|
480
495
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
481
496
|
maxResults: [],
|
|
482
497
|
nextToken: [],
|
|
@@ -521,6 +536,7 @@ const se_DisassociateApplicationsCommand = async (input, context) => {
|
|
|
521
536
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateApplications";
|
|
522
537
|
let body;
|
|
523
538
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
539
|
+
accountID: [],
|
|
524
540
|
applicationIDs: (_) => (0, smithy_client_1._json)(_),
|
|
525
541
|
waveID: [],
|
|
526
542
|
}));
|
|
@@ -543,6 +559,7 @@ const se_DisassociateSourceServersCommand = async (input, context) => {
|
|
|
543
559
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateSourceServers";
|
|
544
560
|
let body;
|
|
545
561
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
562
|
+
accountID: [],
|
|
546
563
|
applicationID: [],
|
|
547
564
|
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
548
565
|
}));
|
|
@@ -565,6 +582,7 @@ const se_DisconnectFromServiceCommand = async (input, context) => {
|
|
|
565
582
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectFromService";
|
|
566
583
|
let body;
|
|
567
584
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
585
|
+
accountID: [],
|
|
568
586
|
sourceServerID: [],
|
|
569
587
|
}));
|
|
570
588
|
return new protocol_http_1.HttpRequest({
|
|
@@ -586,6 +604,7 @@ const se_FinalizeCutoverCommand = async (input, context) => {
|
|
|
586
604
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FinalizeCutover";
|
|
587
605
|
let body;
|
|
588
606
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
607
|
+
accountID: [],
|
|
589
608
|
sourceServerID: [],
|
|
590
609
|
}));
|
|
591
610
|
return new protocol_http_1.HttpRequest({
|
|
@@ -607,6 +626,7 @@ const se_GetLaunchConfigurationCommand = async (input, context) => {
|
|
|
607
626
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration";
|
|
608
627
|
let body;
|
|
609
628
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
629
|
+
accountID: [],
|
|
610
630
|
sourceServerID: [],
|
|
611
631
|
}));
|
|
612
632
|
return new protocol_http_1.HttpRequest({
|
|
@@ -628,6 +648,7 @@ const se_GetReplicationConfigurationCommand = async (input, context) => {
|
|
|
628
648
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration";
|
|
629
649
|
let body;
|
|
630
650
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
651
|
+
accountID: [],
|
|
631
652
|
sourceServerID: [],
|
|
632
653
|
}));
|
|
633
654
|
return new protocol_http_1.HttpRequest({
|
|
@@ -668,6 +689,7 @@ const se_ListApplicationsCommand = async (input, context) => {
|
|
|
668
689
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListApplications";
|
|
669
690
|
let body;
|
|
670
691
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
692
|
+
accountID: [],
|
|
671
693
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
672
694
|
maxResults: [],
|
|
673
695
|
nextToken: [],
|
|
@@ -775,6 +797,28 @@ const se_ListImportsCommand = async (input, context) => {
|
|
|
775
797
|
});
|
|
776
798
|
};
|
|
777
799
|
exports.se_ListImportsCommand = se_ListImportsCommand;
|
|
800
|
+
const se_ListManagedAccountsCommand = async (input, context) => {
|
|
801
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
802
|
+
const headers = {
|
|
803
|
+
"content-type": "application/json",
|
|
804
|
+
};
|
|
805
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListManagedAccounts";
|
|
806
|
+
let body;
|
|
807
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
808
|
+
maxResults: [],
|
|
809
|
+
nextToken: [],
|
|
810
|
+
}));
|
|
811
|
+
return new protocol_http_1.HttpRequest({
|
|
812
|
+
protocol,
|
|
813
|
+
hostname,
|
|
814
|
+
port,
|
|
815
|
+
method: "POST",
|
|
816
|
+
headers,
|
|
817
|
+
path: resolvedPath,
|
|
818
|
+
body,
|
|
819
|
+
});
|
|
820
|
+
};
|
|
821
|
+
exports.se_ListManagedAccountsCommand = se_ListManagedAccountsCommand;
|
|
778
822
|
const se_ListSourceServerActionsCommand = async (input, context) => {
|
|
779
823
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
780
824
|
const headers = {
|
|
@@ -783,6 +827,7 @@ const se_ListSourceServerActionsCommand = async (input, context) => {
|
|
|
783
827
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSourceServerActions";
|
|
784
828
|
let body;
|
|
785
829
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
830
|
+
accountID: [],
|
|
786
831
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
787
832
|
maxResults: [],
|
|
788
833
|
nextToken: [],
|
|
@@ -848,6 +893,7 @@ const se_ListWavesCommand = async (input, context) => {
|
|
|
848
893
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWaves";
|
|
849
894
|
let body;
|
|
850
895
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
896
|
+
accountID: [],
|
|
851
897
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
852
898
|
maxResults: [],
|
|
853
899
|
nextToken: [],
|
|
@@ -871,6 +917,7 @@ const se_MarkAsArchivedCommand = async (input, context) => {
|
|
|
871
917
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MarkAsArchived";
|
|
872
918
|
let body;
|
|
873
919
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
920
|
+
accountID: [],
|
|
874
921
|
sourceServerID: [],
|
|
875
922
|
}));
|
|
876
923
|
return new protocol_http_1.HttpRequest({
|
|
@@ -884,6 +931,28 @@ const se_MarkAsArchivedCommand = async (input, context) => {
|
|
|
884
931
|
});
|
|
885
932
|
};
|
|
886
933
|
exports.se_MarkAsArchivedCommand = se_MarkAsArchivedCommand;
|
|
934
|
+
const se_PauseReplicationCommand = async (input, context) => {
|
|
935
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
936
|
+
const headers = {
|
|
937
|
+
"content-type": "application/json",
|
|
938
|
+
};
|
|
939
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PauseReplication";
|
|
940
|
+
let body;
|
|
941
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
942
|
+
accountID: [],
|
|
943
|
+
sourceServerID: [],
|
|
944
|
+
}));
|
|
945
|
+
return new protocol_http_1.HttpRequest({
|
|
946
|
+
protocol,
|
|
947
|
+
hostname,
|
|
948
|
+
port,
|
|
949
|
+
method: "POST",
|
|
950
|
+
headers,
|
|
951
|
+
path: resolvedPath,
|
|
952
|
+
body,
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
exports.se_PauseReplicationCommand = se_PauseReplicationCommand;
|
|
887
956
|
const se_PutSourceServerActionCommand = async (input, context) => {
|
|
888
957
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
889
958
|
const headers = {
|
|
@@ -892,6 +961,7 @@ const se_PutSourceServerActionCommand = async (input, context) => {
|
|
|
892
961
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutSourceServerAction";
|
|
893
962
|
let body;
|
|
894
963
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
964
|
+
accountID: [],
|
|
895
965
|
actionID: [],
|
|
896
966
|
actionName: [],
|
|
897
967
|
active: [],
|
|
@@ -959,6 +1029,7 @@ const se_RemoveSourceServerActionCommand = async (input, context) => {
|
|
|
959
1029
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveSourceServerAction";
|
|
960
1030
|
let body;
|
|
961
1031
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1032
|
+
accountID: [],
|
|
962
1033
|
actionID: [],
|
|
963
1034
|
sourceServerID: [],
|
|
964
1035
|
}));
|
|
@@ -995,6 +1066,28 @@ const se_RemoveTemplateActionCommand = async (input, context) => {
|
|
|
995
1066
|
});
|
|
996
1067
|
};
|
|
997
1068
|
exports.se_RemoveTemplateActionCommand = se_RemoveTemplateActionCommand;
|
|
1069
|
+
const se_ResumeReplicationCommand = async (input, context) => {
|
|
1070
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1071
|
+
const headers = {
|
|
1072
|
+
"content-type": "application/json",
|
|
1073
|
+
};
|
|
1074
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ResumeReplication";
|
|
1075
|
+
let body;
|
|
1076
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1077
|
+
accountID: [],
|
|
1078
|
+
sourceServerID: [],
|
|
1079
|
+
}));
|
|
1080
|
+
return new protocol_http_1.HttpRequest({
|
|
1081
|
+
protocol,
|
|
1082
|
+
hostname,
|
|
1083
|
+
port,
|
|
1084
|
+
method: "POST",
|
|
1085
|
+
headers,
|
|
1086
|
+
path: resolvedPath,
|
|
1087
|
+
body,
|
|
1088
|
+
});
|
|
1089
|
+
};
|
|
1090
|
+
exports.se_ResumeReplicationCommand = se_ResumeReplicationCommand;
|
|
998
1091
|
const se_RetryDataReplicationCommand = async (input, context) => {
|
|
999
1092
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1000
1093
|
const headers = {
|
|
@@ -1003,6 +1096,7 @@ const se_RetryDataReplicationCommand = async (input, context) => {
|
|
|
1003
1096
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
|
|
1004
1097
|
let body;
|
|
1005
1098
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1099
|
+
accountID: [],
|
|
1006
1100
|
sourceServerID: [],
|
|
1007
1101
|
}));
|
|
1008
1102
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1024,6 +1118,7 @@ const se_StartCutoverCommand = async (input, context) => {
|
|
|
1024
1118
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartCutover";
|
|
1025
1119
|
let body;
|
|
1026
1120
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1121
|
+
accountID: [],
|
|
1027
1122
|
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
1028
1123
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
1029
1124
|
}));
|
|
@@ -1091,6 +1186,7 @@ const se_StartReplicationCommand = async (input, context) => {
|
|
|
1091
1186
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication";
|
|
1092
1187
|
let body;
|
|
1093
1188
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1189
|
+
accountID: [],
|
|
1094
1190
|
sourceServerID: [],
|
|
1095
1191
|
}));
|
|
1096
1192
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1112,6 +1208,7 @@ const se_StartTestCommand = async (input, context) => {
|
|
|
1112
1208
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartTest";
|
|
1113
1209
|
let body;
|
|
1114
1210
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1211
|
+
accountID: [],
|
|
1115
1212
|
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
1116
1213
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
1117
1214
|
}));
|
|
@@ -1126,6 +1223,28 @@ const se_StartTestCommand = async (input, context) => {
|
|
|
1126
1223
|
});
|
|
1127
1224
|
};
|
|
1128
1225
|
exports.se_StartTestCommand = se_StartTestCommand;
|
|
1226
|
+
const se_StopReplicationCommand = async (input, context) => {
|
|
1227
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1228
|
+
const headers = {
|
|
1229
|
+
"content-type": "application/json",
|
|
1230
|
+
};
|
|
1231
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopReplication";
|
|
1232
|
+
let body;
|
|
1233
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1234
|
+
accountID: [],
|
|
1235
|
+
sourceServerID: [],
|
|
1236
|
+
}));
|
|
1237
|
+
return new protocol_http_1.HttpRequest({
|
|
1238
|
+
protocol,
|
|
1239
|
+
hostname,
|
|
1240
|
+
port,
|
|
1241
|
+
method: "POST",
|
|
1242
|
+
headers,
|
|
1243
|
+
path: resolvedPath,
|
|
1244
|
+
body,
|
|
1245
|
+
});
|
|
1246
|
+
};
|
|
1247
|
+
exports.se_StopReplicationCommand = se_StopReplicationCommand;
|
|
1129
1248
|
const se_TagResourceCommand = async (input, context) => {
|
|
1130
1249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1131
1250
|
const headers = {
|
|
@@ -1156,6 +1275,7 @@ const se_TerminateTargetInstancesCommand = async (input, context) => {
|
|
|
1156
1275
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateTargetInstances";
|
|
1157
1276
|
let body;
|
|
1158
1277
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1278
|
+
accountID: [],
|
|
1159
1279
|
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
1160
1280
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
1161
1281
|
}));
|
|
@@ -1178,6 +1298,7 @@ const se_UnarchiveApplicationCommand = async (input, context) => {
|
|
|
1178
1298
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveApplication";
|
|
1179
1299
|
let body;
|
|
1180
1300
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1301
|
+
accountID: [],
|
|
1181
1302
|
applicationID: [],
|
|
1182
1303
|
}));
|
|
1183
1304
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1199,6 +1320,7 @@ const se_UnarchiveWaveCommand = async (input, context) => {
|
|
|
1199
1320
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveWave";
|
|
1200
1321
|
let body;
|
|
1201
1322
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1323
|
+
accountID: [],
|
|
1202
1324
|
waveID: [],
|
|
1203
1325
|
}));
|
|
1204
1326
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1244,6 +1366,7 @@ const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
1244
1366
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateApplication";
|
|
1245
1367
|
let body;
|
|
1246
1368
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1369
|
+
accountID: [],
|
|
1247
1370
|
applicationID: [],
|
|
1248
1371
|
description: [],
|
|
1249
1372
|
name: [],
|
|
@@ -1267,6 +1390,7 @@ const se_UpdateLaunchConfigurationCommand = async (input, context) => {
|
|
|
1267
1390
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration";
|
|
1268
1391
|
let body;
|
|
1269
1392
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1393
|
+
accountID: [],
|
|
1270
1394
|
bootMode: [],
|
|
1271
1395
|
copyPrivateIp: [],
|
|
1272
1396
|
copyTags: [],
|
|
@@ -1332,6 +1456,7 @@ const se_UpdateReplicationConfigurationCommand = async (input, context) => {
|
|
|
1332
1456
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration";
|
|
1333
1457
|
let body;
|
|
1334
1458
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1459
|
+
accountID: [],
|
|
1335
1460
|
associateDefaultSecurityGroup: [],
|
|
1336
1461
|
bandwidthThrottling: [],
|
|
1337
1462
|
createPublicIP: [],
|
|
@@ -1347,6 +1472,7 @@ const se_UpdateReplicationConfigurationCommand = async (input, context) => {
|
|
|
1347
1472
|
stagingAreaSubnetId: [],
|
|
1348
1473
|
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
1349
1474
|
useDedicatedReplicationServer: [],
|
|
1475
|
+
useFipsEndpoint: [],
|
|
1350
1476
|
}));
|
|
1351
1477
|
return new protocol_http_1.HttpRequest({
|
|
1352
1478
|
protocol,
|
|
@@ -1381,6 +1507,7 @@ const se_UpdateReplicationConfigurationTemplateCommand = async (input, context)
|
|
|
1381
1507
|
stagingAreaSubnetId: [],
|
|
1382
1508
|
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
1383
1509
|
useDedicatedReplicationServer: [],
|
|
1510
|
+
useFipsEndpoint: [],
|
|
1384
1511
|
}));
|
|
1385
1512
|
return new protocol_http_1.HttpRequest({
|
|
1386
1513
|
protocol,
|
|
@@ -1401,6 +1528,7 @@ const se_UpdateSourceServerReplicationTypeCommand = async (input, context) => {
|
|
|
1401
1528
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServerReplicationType";
|
|
1402
1529
|
let body;
|
|
1403
1530
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1531
|
+
accountID: [],
|
|
1404
1532
|
replicationType: [],
|
|
1405
1533
|
sourceServerID: [],
|
|
1406
1534
|
}));
|
|
@@ -1423,6 +1551,7 @@ const se_UpdateWaveCommand = async (input, context) => {
|
|
|
1423
1551
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateWave";
|
|
1424
1552
|
let body;
|
|
1425
1553
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1554
|
+
accountID: [],
|
|
1426
1555
|
description: [],
|
|
1427
1556
|
name: [],
|
|
1428
1557
|
waveID: [],
|
|
@@ -1803,6 +1932,7 @@ const de_CreateReplicationConfigurationTemplateCommand = async (output, context)
|
|
|
1803
1932
|
stagingAreaTags: smithy_client_1._json,
|
|
1804
1933
|
tags: smithy_client_1._json,
|
|
1805
1934
|
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
1935
|
+
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
1806
1936
|
});
|
|
1807
1937
|
Object.assign(contents, doc);
|
|
1808
1938
|
return contents;
|
|
@@ -2621,6 +2751,7 @@ const de_GetReplicationConfigurationCommand = async (output, context) => {
|
|
|
2621
2751
|
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
2622
2752
|
stagingAreaTags: smithy_client_1._json,
|
|
2623
2753
|
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
2754
|
+
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
2624
2755
|
});
|
|
2625
2756
|
Object.assign(contents, doc);
|
|
2626
2757
|
return contents;
|
|
@@ -2865,6 +2996,44 @@ const de_ListImportsCommandError = async (output, context) => {
|
|
|
2865
2996
|
});
|
|
2866
2997
|
}
|
|
2867
2998
|
};
|
|
2999
|
+
const de_ListManagedAccountsCommand = async (output, context) => {
|
|
3000
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3001
|
+
return de_ListManagedAccountsCommandError(output, context);
|
|
3002
|
+
}
|
|
3003
|
+
const contents = (0, smithy_client_1.map)({
|
|
3004
|
+
$metadata: deserializeMetadata(output),
|
|
3005
|
+
});
|
|
3006
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3007
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3008
|
+
items: smithy_client_1._json,
|
|
3009
|
+
nextToken: smithy_client_1.expectString,
|
|
3010
|
+
});
|
|
3011
|
+
Object.assign(contents, doc);
|
|
3012
|
+
return contents;
|
|
3013
|
+
};
|
|
3014
|
+
exports.de_ListManagedAccountsCommand = de_ListManagedAccountsCommand;
|
|
3015
|
+
const de_ListManagedAccountsCommandError = async (output, context) => {
|
|
3016
|
+
const parsedOutput = {
|
|
3017
|
+
...output,
|
|
3018
|
+
body: await parseErrorBody(output.body, context),
|
|
3019
|
+
};
|
|
3020
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3021
|
+
switch (errorCode) {
|
|
3022
|
+
case "UninitializedAccountException":
|
|
3023
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3024
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3025
|
+
case "ValidationException":
|
|
3026
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
3027
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3028
|
+
default:
|
|
3029
|
+
const parsedBody = parsedOutput.body;
|
|
3030
|
+
return throwDefaultError({
|
|
3031
|
+
output,
|
|
3032
|
+
parsedBody,
|
|
3033
|
+
errorCode,
|
|
3034
|
+
});
|
|
3035
|
+
}
|
|
3036
|
+
};
|
|
2868
3037
|
const de_ListSourceServerActionsCommand = async (output, context) => {
|
|
2869
3038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2870
3039
|
return de_ListSourceServerActionsCommandError(output, context);
|
|
@@ -3074,6 +3243,64 @@ const de_MarkAsArchivedCommandError = async (output, context) => {
|
|
|
3074
3243
|
});
|
|
3075
3244
|
}
|
|
3076
3245
|
};
|
|
3246
|
+
const de_PauseReplicationCommand = async (output, context) => {
|
|
3247
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3248
|
+
return de_PauseReplicationCommandError(output, context);
|
|
3249
|
+
}
|
|
3250
|
+
const contents = (0, smithy_client_1.map)({
|
|
3251
|
+
$metadata: deserializeMetadata(output),
|
|
3252
|
+
});
|
|
3253
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3254
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3255
|
+
applicationID: smithy_client_1.expectString,
|
|
3256
|
+
arn: smithy_client_1.expectString,
|
|
3257
|
+
dataReplicationInfo: smithy_client_1._json,
|
|
3258
|
+
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3259
|
+
isArchived: smithy_client_1.expectBoolean,
|
|
3260
|
+
launchedInstance: smithy_client_1._json,
|
|
3261
|
+
lifeCycle: smithy_client_1._json,
|
|
3262
|
+
replicationType: smithy_client_1.expectString,
|
|
3263
|
+
sourceProperties: smithy_client_1._json,
|
|
3264
|
+
sourceServerID: smithy_client_1.expectString,
|
|
3265
|
+
tags: smithy_client_1._json,
|
|
3266
|
+
userProvidedID: smithy_client_1.expectString,
|
|
3267
|
+
vcenterClientID: smithy_client_1.expectString,
|
|
3268
|
+
});
|
|
3269
|
+
Object.assign(contents, doc);
|
|
3270
|
+
return contents;
|
|
3271
|
+
};
|
|
3272
|
+
exports.de_PauseReplicationCommand = de_PauseReplicationCommand;
|
|
3273
|
+
const de_PauseReplicationCommandError = async (output, context) => {
|
|
3274
|
+
const parsedOutput = {
|
|
3275
|
+
...output,
|
|
3276
|
+
body: await parseErrorBody(output.body, context),
|
|
3277
|
+
};
|
|
3278
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3279
|
+
switch (errorCode) {
|
|
3280
|
+
case "ConflictException":
|
|
3281
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
3282
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3283
|
+
case "ResourceNotFoundException":
|
|
3284
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3285
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3286
|
+
case "ServiceQuotaExceededException":
|
|
3287
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3288
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3289
|
+
case "UninitializedAccountException":
|
|
3290
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3291
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3292
|
+
case "ValidationException":
|
|
3293
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
3294
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3295
|
+
default:
|
|
3296
|
+
const parsedBody = parsedOutput.body;
|
|
3297
|
+
return throwDefaultError({
|
|
3298
|
+
output,
|
|
3299
|
+
parsedBody,
|
|
3300
|
+
errorCode,
|
|
3301
|
+
});
|
|
3302
|
+
}
|
|
3303
|
+
};
|
|
3077
3304
|
const de_PutSourceServerActionCommand = async (output, context) => {
|
|
3078
3305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3079
3306
|
return de_PutSourceServerActionCommandError(output, context);
|
|
@@ -3255,6 +3482,64 @@ const de_RemoveTemplateActionCommandError = async (output, context) => {
|
|
|
3255
3482
|
});
|
|
3256
3483
|
}
|
|
3257
3484
|
};
|
|
3485
|
+
const de_ResumeReplicationCommand = async (output, context) => {
|
|
3486
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3487
|
+
return de_ResumeReplicationCommandError(output, context);
|
|
3488
|
+
}
|
|
3489
|
+
const contents = (0, smithy_client_1.map)({
|
|
3490
|
+
$metadata: deserializeMetadata(output),
|
|
3491
|
+
});
|
|
3492
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3493
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3494
|
+
applicationID: smithy_client_1.expectString,
|
|
3495
|
+
arn: smithy_client_1.expectString,
|
|
3496
|
+
dataReplicationInfo: smithy_client_1._json,
|
|
3497
|
+
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3498
|
+
isArchived: smithy_client_1.expectBoolean,
|
|
3499
|
+
launchedInstance: smithy_client_1._json,
|
|
3500
|
+
lifeCycle: smithy_client_1._json,
|
|
3501
|
+
replicationType: smithy_client_1.expectString,
|
|
3502
|
+
sourceProperties: smithy_client_1._json,
|
|
3503
|
+
sourceServerID: smithy_client_1.expectString,
|
|
3504
|
+
tags: smithy_client_1._json,
|
|
3505
|
+
userProvidedID: smithy_client_1.expectString,
|
|
3506
|
+
vcenterClientID: smithy_client_1.expectString,
|
|
3507
|
+
});
|
|
3508
|
+
Object.assign(contents, doc);
|
|
3509
|
+
return contents;
|
|
3510
|
+
};
|
|
3511
|
+
exports.de_ResumeReplicationCommand = de_ResumeReplicationCommand;
|
|
3512
|
+
const de_ResumeReplicationCommandError = async (output, context) => {
|
|
3513
|
+
const parsedOutput = {
|
|
3514
|
+
...output,
|
|
3515
|
+
body: await parseErrorBody(output.body, context),
|
|
3516
|
+
};
|
|
3517
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3518
|
+
switch (errorCode) {
|
|
3519
|
+
case "ConflictException":
|
|
3520
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
3521
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3522
|
+
case "ResourceNotFoundException":
|
|
3523
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3524
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3525
|
+
case "ServiceQuotaExceededException":
|
|
3526
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3527
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3528
|
+
case "UninitializedAccountException":
|
|
3529
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3530
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3531
|
+
case "ValidationException":
|
|
3532
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
3533
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3534
|
+
default:
|
|
3535
|
+
const parsedBody = parsedOutput.body;
|
|
3536
|
+
return throwDefaultError({
|
|
3537
|
+
output,
|
|
3538
|
+
parsedBody,
|
|
3539
|
+
errorCode,
|
|
3540
|
+
});
|
|
3541
|
+
}
|
|
3542
|
+
};
|
|
3258
3543
|
const de_RetryDataReplicationCommand = async (output, context) => {
|
|
3259
3544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3260
3545
|
return de_RetryDataReplicationCommandError(output, context);
|
|
@@ -3531,6 +3816,64 @@ const de_StartTestCommandError = async (output, context) => {
|
|
|
3531
3816
|
});
|
|
3532
3817
|
}
|
|
3533
3818
|
};
|
|
3819
|
+
const de_StopReplicationCommand = async (output, context) => {
|
|
3820
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3821
|
+
return de_StopReplicationCommandError(output, context);
|
|
3822
|
+
}
|
|
3823
|
+
const contents = (0, smithy_client_1.map)({
|
|
3824
|
+
$metadata: deserializeMetadata(output),
|
|
3825
|
+
});
|
|
3826
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3827
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3828
|
+
applicationID: smithy_client_1.expectString,
|
|
3829
|
+
arn: smithy_client_1.expectString,
|
|
3830
|
+
dataReplicationInfo: smithy_client_1._json,
|
|
3831
|
+
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3832
|
+
isArchived: smithy_client_1.expectBoolean,
|
|
3833
|
+
launchedInstance: smithy_client_1._json,
|
|
3834
|
+
lifeCycle: smithy_client_1._json,
|
|
3835
|
+
replicationType: smithy_client_1.expectString,
|
|
3836
|
+
sourceProperties: smithy_client_1._json,
|
|
3837
|
+
sourceServerID: smithy_client_1.expectString,
|
|
3838
|
+
tags: smithy_client_1._json,
|
|
3839
|
+
userProvidedID: smithy_client_1.expectString,
|
|
3840
|
+
vcenterClientID: smithy_client_1.expectString,
|
|
3841
|
+
});
|
|
3842
|
+
Object.assign(contents, doc);
|
|
3843
|
+
return contents;
|
|
3844
|
+
};
|
|
3845
|
+
exports.de_StopReplicationCommand = de_StopReplicationCommand;
|
|
3846
|
+
const de_StopReplicationCommandError = async (output, context) => {
|
|
3847
|
+
const parsedOutput = {
|
|
3848
|
+
...output,
|
|
3849
|
+
body: await parseErrorBody(output.body, context),
|
|
3850
|
+
};
|
|
3851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
|
+
switch (errorCode) {
|
|
3853
|
+
case "ConflictException":
|
|
3854
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
3855
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3856
|
+
case "ResourceNotFoundException":
|
|
3857
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3858
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3859
|
+
case "ServiceQuotaExceededException":
|
|
3860
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3861
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3862
|
+
case "UninitializedAccountException":
|
|
3863
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3864
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3865
|
+
case "ValidationException":
|
|
3866
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
3867
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3868
|
+
default:
|
|
3869
|
+
const parsedBody = parsedOutput.body;
|
|
3870
|
+
return throwDefaultError({
|
|
3871
|
+
output,
|
|
3872
|
+
parsedBody,
|
|
3873
|
+
errorCode,
|
|
3874
|
+
});
|
|
3875
|
+
}
|
|
3876
|
+
};
|
|
3534
3877
|
const de_TagResourceCommand = async (output, context) => {
|
|
3535
3878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3536
3879
|
return de_TagResourceCommandError(output, context);
|
|
@@ -3938,6 +4281,7 @@ const de_UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
|
3938
4281
|
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
3939
4282
|
stagingAreaTags: smithy_client_1._json,
|
|
3940
4283
|
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
4284
|
+
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
3941
4285
|
});
|
|
3942
4286
|
Object.assign(contents, doc);
|
|
3943
4287
|
return contents;
|
|
@@ -3998,6 +4342,7 @@ const de_UpdateReplicationConfigurationTemplateCommand = async (output, context)
|
|
|
3998
4342
|
stagingAreaTags: smithy_client_1._json,
|
|
3999
4343
|
tags: smithy_client_1._json,
|
|
4000
4344
|
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
4345
|
+
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
4001
4346
|
});
|
|
4002
4347
|
Object.assign(contents, doc);
|
|
4003
4348
|
return contents;
|