@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
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateFailbackReplicationConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TerminateRecoveryInstancesCommand = exports.de_TagResourceCommand = exports.de_StopReplicationCommand = exports.de_StopFailbackCommand = exports.de_StartReplicationCommand = exports.de_StartRecoveryCommand = exports.de_StartFailbackLaunchCommand = exports.de_ReverseReplicationCommand = exports.de_RetryDataReplicationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStagingAccountsCommand = exports.de_ListExtensibleSourceServersCommand = exports.de_InitializeServiceCommand = exports.de_GetReplicationConfigurationCommand = exports.de_GetLaunchConfigurationCommand = exports.de_GetFailbackReplicationConfigurationCommand = exports.de_DisconnectSourceServerCommand = exports.de_DisconnectRecoveryInstanceCommand = exports.de_DescribeSourceServersCommand = exports.de_DescribeReplicationConfigurationTemplatesCommand = exports.de_DescribeRecoverySnapshotsCommand = exports.de_DescribeRecoveryInstancesCommand = void 0;
|
|
3
|
+
exports.de_CreateLaunchConfigurationTemplateCommand = exports.de_CreateExtendedSourceServerCommand = exports.de_AssociateSourceNetworkStackCommand = exports.se_UpdateReplicationConfigurationTemplateCommand = exports.se_UpdateReplicationConfigurationCommand = exports.se_UpdateLaunchConfigurationTemplateCommand = exports.se_UpdateLaunchConfigurationCommand = exports.se_UpdateFailbackReplicationConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TerminateRecoveryInstancesCommand = exports.se_TagResourceCommand = exports.se_StopSourceNetworkReplicationCommand = exports.se_StopReplicationCommand = exports.se_StopFailbackCommand = exports.se_StartSourceNetworkReplicationCommand = exports.se_StartSourceNetworkRecoveryCommand = exports.se_StartReplicationCommand = exports.se_StartRecoveryCommand = exports.se_StartFailbackLaunchCommand = exports.se_ReverseReplicationCommand = exports.se_RetryDataReplicationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStagingAccountsCommand = exports.se_ListExtensibleSourceServersCommand = exports.se_InitializeServiceCommand = exports.se_GetReplicationConfigurationCommand = exports.se_GetLaunchConfigurationCommand = exports.se_GetFailbackReplicationConfigurationCommand = exports.se_ExportSourceNetworkCfnTemplateCommand = exports.se_DisconnectSourceServerCommand = exports.se_DisconnectRecoveryInstanceCommand = exports.se_DescribeSourceServersCommand = exports.se_DescribeSourceNetworksCommand = exports.se_DescribeReplicationConfigurationTemplatesCommand = exports.se_DescribeRecoverySnapshotsCommand = exports.se_DescribeRecoveryInstancesCommand = exports.se_DescribeLaunchConfigurationTemplatesCommand = exports.se_DescribeJobsCommand = exports.se_DescribeJobLogItemsCommand = exports.se_DeleteSourceServerCommand = exports.se_DeleteSourceNetworkCommand = exports.se_DeleteReplicationConfigurationTemplateCommand = exports.se_DeleteRecoveryInstanceCommand = exports.se_DeleteLaunchConfigurationTemplateCommand = exports.se_DeleteJobCommand = exports.se_CreateSourceNetworkCommand = exports.se_CreateReplicationConfigurationTemplateCommand = exports.se_CreateLaunchConfigurationTemplateCommand = exports.se_CreateExtendedSourceServerCommand = exports.se_AssociateSourceNetworkStackCommand = void 0;
|
|
4
|
+
exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateFailbackReplicationConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TerminateRecoveryInstancesCommand = exports.de_TagResourceCommand = exports.de_StopSourceNetworkReplicationCommand = exports.de_StopReplicationCommand = exports.de_StopFailbackCommand = exports.de_StartSourceNetworkReplicationCommand = exports.de_StartSourceNetworkRecoveryCommand = exports.de_StartReplicationCommand = exports.de_StartRecoveryCommand = exports.de_StartFailbackLaunchCommand = exports.de_ReverseReplicationCommand = exports.de_RetryDataReplicationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStagingAccountsCommand = exports.de_ListExtensibleSourceServersCommand = exports.de_InitializeServiceCommand = exports.de_GetReplicationConfigurationCommand = exports.de_GetLaunchConfigurationCommand = exports.de_GetFailbackReplicationConfigurationCommand = exports.de_ExportSourceNetworkCfnTemplateCommand = exports.de_DisconnectSourceServerCommand = exports.de_DisconnectRecoveryInstanceCommand = exports.de_DescribeSourceServersCommand = exports.de_DescribeSourceNetworksCommand = exports.de_DescribeReplicationConfigurationTemplatesCommand = exports.de_DescribeRecoverySnapshotsCommand = exports.de_DescribeRecoveryInstancesCommand = exports.de_DescribeLaunchConfigurationTemplatesCommand = exports.de_DescribeJobsCommand = exports.de_DescribeJobLogItemsCommand = exports.de_DeleteSourceServerCommand = exports.de_DeleteSourceNetworkCommand = exports.de_DeleteReplicationConfigurationTemplateCommand = exports.de_DeleteRecoveryInstanceCommand = exports.de_DeleteLaunchConfigurationTemplateCommand = exports.de_DeleteJobCommand = exports.de_CreateSourceNetworkCommand = exports.de_CreateReplicationConfigurationTemplateCommand = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const DrsServiceException_1 = require("../models/DrsServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const se_AssociateSourceNetworkStackCommand = async (input, context) => {
|
|
10
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
|
+
const headers = {
|
|
12
|
+
"content-type": "application/json",
|
|
13
|
+
};
|
|
14
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateSourceNetworkStack";
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
cfnStackName: [],
|
|
18
|
+
sourceNetworkID: [],
|
|
19
|
+
}));
|
|
20
|
+
return new protocol_http_1.HttpRequest({
|
|
21
|
+
protocol,
|
|
22
|
+
hostname,
|
|
23
|
+
port,
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.se_AssociateSourceNetworkStackCommand = se_AssociateSourceNetworkStackCommand;
|
|
9
31
|
const se_CreateExtendedSourceServerCommand = async (input, context) => {
|
|
10
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
33
|
const headers = {
|
|
@@ -38,6 +60,7 @@ const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
|
38
60
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
61
|
copyPrivateIp: [],
|
|
40
62
|
copyTags: [],
|
|
63
|
+
exportBucketArn: [],
|
|
41
64
|
launchDisposition: [],
|
|
42
65
|
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
43
66
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -89,6 +112,30 @@ const se_CreateReplicationConfigurationTemplateCommand = async (input, context)
|
|
|
89
112
|
});
|
|
90
113
|
};
|
|
91
114
|
exports.se_CreateReplicationConfigurationTemplateCommand = se_CreateReplicationConfigurationTemplateCommand;
|
|
115
|
+
const se_CreateSourceNetworkCommand = async (input, context) => {
|
|
116
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
117
|
+
const headers = {
|
|
118
|
+
"content-type": "application/json",
|
|
119
|
+
};
|
|
120
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSourceNetwork";
|
|
121
|
+
let body;
|
|
122
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
123
|
+
originAccountID: [],
|
|
124
|
+
originRegion: [],
|
|
125
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
126
|
+
vpcID: [],
|
|
127
|
+
}));
|
|
128
|
+
return new protocol_http_1.HttpRequest({
|
|
129
|
+
protocol,
|
|
130
|
+
hostname,
|
|
131
|
+
port,
|
|
132
|
+
method: "POST",
|
|
133
|
+
headers,
|
|
134
|
+
path: resolvedPath,
|
|
135
|
+
body,
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
exports.se_CreateSourceNetworkCommand = se_CreateSourceNetworkCommand;
|
|
92
139
|
const se_DeleteJobCommand = async (input, context) => {
|
|
93
140
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
94
141
|
const headers = {
|
|
@@ -173,6 +220,27 @@ const se_DeleteReplicationConfigurationTemplateCommand = async (input, context)
|
|
|
173
220
|
});
|
|
174
221
|
};
|
|
175
222
|
exports.se_DeleteReplicationConfigurationTemplateCommand = se_DeleteReplicationConfigurationTemplateCommand;
|
|
223
|
+
const se_DeleteSourceNetworkCommand = async (input, context) => {
|
|
224
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
225
|
+
const headers = {
|
|
226
|
+
"content-type": "application/json",
|
|
227
|
+
};
|
|
228
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceNetwork";
|
|
229
|
+
let body;
|
|
230
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
231
|
+
sourceNetworkID: [],
|
|
232
|
+
}));
|
|
233
|
+
return new protocol_http_1.HttpRequest({
|
|
234
|
+
protocol,
|
|
235
|
+
hostname,
|
|
236
|
+
port,
|
|
237
|
+
method: "POST",
|
|
238
|
+
headers,
|
|
239
|
+
path: resolvedPath,
|
|
240
|
+
body,
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
exports.se_DeleteSourceNetworkCommand = se_DeleteSourceNetworkCommand;
|
|
176
244
|
const se_DeleteSourceServerCommand = async (input, context) => {
|
|
177
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
178
246
|
const headers = {
|
|
@@ -335,6 +403,29 @@ const se_DescribeReplicationConfigurationTemplatesCommand = async (input, contex
|
|
|
335
403
|
});
|
|
336
404
|
};
|
|
337
405
|
exports.se_DescribeReplicationConfigurationTemplatesCommand = se_DescribeReplicationConfigurationTemplatesCommand;
|
|
406
|
+
const se_DescribeSourceNetworksCommand = async (input, context) => {
|
|
407
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
408
|
+
const headers = {
|
|
409
|
+
"content-type": "application/json",
|
|
410
|
+
};
|
|
411
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceNetworks";
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
414
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
415
|
+
maxResults: [],
|
|
416
|
+
nextToken: [],
|
|
417
|
+
}));
|
|
418
|
+
return new protocol_http_1.HttpRequest({
|
|
419
|
+
protocol,
|
|
420
|
+
hostname,
|
|
421
|
+
port,
|
|
422
|
+
method: "POST",
|
|
423
|
+
headers,
|
|
424
|
+
path: resolvedPath,
|
|
425
|
+
body,
|
|
426
|
+
});
|
|
427
|
+
};
|
|
428
|
+
exports.se_DescribeSourceNetworksCommand = se_DescribeSourceNetworksCommand;
|
|
338
429
|
const se_DescribeSourceServersCommand = async (input, context) => {
|
|
339
430
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
431
|
const headers = {
|
|
@@ -400,6 +491,27 @@ const se_DisconnectSourceServerCommand = async (input, context) => {
|
|
|
400
491
|
});
|
|
401
492
|
};
|
|
402
493
|
exports.se_DisconnectSourceServerCommand = se_DisconnectSourceServerCommand;
|
|
494
|
+
const se_ExportSourceNetworkCfnTemplateCommand = async (input, context) => {
|
|
495
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
496
|
+
const headers = {
|
|
497
|
+
"content-type": "application/json",
|
|
498
|
+
};
|
|
499
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ExportSourceNetworkCfnTemplate";
|
|
500
|
+
let body;
|
|
501
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
502
|
+
sourceNetworkID: [],
|
|
503
|
+
}));
|
|
504
|
+
return new protocol_http_1.HttpRequest({
|
|
505
|
+
protocol,
|
|
506
|
+
hostname,
|
|
507
|
+
port,
|
|
508
|
+
method: "POST",
|
|
509
|
+
headers,
|
|
510
|
+
path: resolvedPath,
|
|
511
|
+
body,
|
|
512
|
+
});
|
|
513
|
+
};
|
|
514
|
+
exports.se_ExportSourceNetworkCfnTemplateCommand = se_ExportSourceNetworkCfnTemplateCommand;
|
|
403
515
|
const se_GetFailbackReplicationConfigurationCommand = async (input, context) => {
|
|
404
516
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
405
517
|
const headers = {
|
|
@@ -651,6 +763,50 @@ const se_StartReplicationCommand = async (input, context) => {
|
|
|
651
763
|
});
|
|
652
764
|
};
|
|
653
765
|
exports.se_StartReplicationCommand = se_StartReplicationCommand;
|
|
766
|
+
const se_StartSourceNetworkRecoveryCommand = async (input, context) => {
|
|
767
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
768
|
+
const headers = {
|
|
769
|
+
"content-type": "application/json",
|
|
770
|
+
};
|
|
771
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartSourceNetworkRecovery";
|
|
772
|
+
let body;
|
|
773
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
774
|
+
deployAsNew: [],
|
|
775
|
+
sourceNetworks: (_) => (0, smithy_client_1._json)(_),
|
|
776
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
777
|
+
}));
|
|
778
|
+
return new protocol_http_1.HttpRequest({
|
|
779
|
+
protocol,
|
|
780
|
+
hostname,
|
|
781
|
+
port,
|
|
782
|
+
method: "POST",
|
|
783
|
+
headers,
|
|
784
|
+
path: resolvedPath,
|
|
785
|
+
body,
|
|
786
|
+
});
|
|
787
|
+
};
|
|
788
|
+
exports.se_StartSourceNetworkRecoveryCommand = se_StartSourceNetworkRecoveryCommand;
|
|
789
|
+
const se_StartSourceNetworkReplicationCommand = async (input, context) => {
|
|
790
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
791
|
+
const headers = {
|
|
792
|
+
"content-type": "application/json",
|
|
793
|
+
};
|
|
794
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartSourceNetworkReplication";
|
|
795
|
+
let body;
|
|
796
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
797
|
+
sourceNetworkID: [],
|
|
798
|
+
}));
|
|
799
|
+
return new protocol_http_1.HttpRequest({
|
|
800
|
+
protocol,
|
|
801
|
+
hostname,
|
|
802
|
+
port,
|
|
803
|
+
method: "POST",
|
|
804
|
+
headers,
|
|
805
|
+
path: resolvedPath,
|
|
806
|
+
body,
|
|
807
|
+
});
|
|
808
|
+
};
|
|
809
|
+
exports.se_StartSourceNetworkReplicationCommand = se_StartSourceNetworkReplicationCommand;
|
|
654
810
|
const se_StopFailbackCommand = async (input, context) => {
|
|
655
811
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
656
812
|
const headers = {
|
|
@@ -693,6 +849,27 @@ const se_StopReplicationCommand = async (input, context) => {
|
|
|
693
849
|
});
|
|
694
850
|
};
|
|
695
851
|
exports.se_StopReplicationCommand = se_StopReplicationCommand;
|
|
852
|
+
const se_StopSourceNetworkReplicationCommand = async (input, context) => {
|
|
853
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
854
|
+
const headers = {
|
|
855
|
+
"content-type": "application/json",
|
|
856
|
+
};
|
|
857
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopSourceNetworkReplication";
|
|
858
|
+
let body;
|
|
859
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
860
|
+
sourceNetworkID: [],
|
|
861
|
+
}));
|
|
862
|
+
return new protocol_http_1.HttpRequest({
|
|
863
|
+
protocol,
|
|
864
|
+
hostname,
|
|
865
|
+
port,
|
|
866
|
+
method: "POST",
|
|
867
|
+
headers,
|
|
868
|
+
path: resolvedPath,
|
|
869
|
+
body,
|
|
870
|
+
});
|
|
871
|
+
};
|
|
872
|
+
exports.se_StopSourceNetworkReplicationCommand = se_StopSourceNetworkReplicationCommand;
|
|
696
873
|
const se_TagResourceCommand = async (input, context) => {
|
|
697
874
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
698
875
|
const headers = {
|
|
@@ -821,6 +998,7 @@ const se_UpdateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
|
821
998
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
822
999
|
copyPrivateIp: [],
|
|
823
1000
|
copyTags: [],
|
|
1001
|
+
exportBucketArn: [],
|
|
824
1002
|
launchConfigurationTemplateID: [],
|
|
825
1003
|
launchDisposition: [],
|
|
826
1004
|
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -910,6 +1088,58 @@ const se_UpdateReplicationConfigurationTemplateCommand = async (input, context)
|
|
|
910
1088
|
});
|
|
911
1089
|
};
|
|
912
1090
|
exports.se_UpdateReplicationConfigurationTemplateCommand = se_UpdateReplicationConfigurationTemplateCommand;
|
|
1091
|
+
const de_AssociateSourceNetworkStackCommand = async (output, context) => {
|
|
1092
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1093
|
+
return de_AssociateSourceNetworkStackCommandError(output, context);
|
|
1094
|
+
}
|
|
1095
|
+
const contents = (0, smithy_client_1.map)({
|
|
1096
|
+
$metadata: deserializeMetadata(output),
|
|
1097
|
+
});
|
|
1098
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1099
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1100
|
+
job: smithy_client_1._json,
|
|
1101
|
+
});
|
|
1102
|
+
Object.assign(contents, doc);
|
|
1103
|
+
return contents;
|
|
1104
|
+
};
|
|
1105
|
+
exports.de_AssociateSourceNetworkStackCommand = de_AssociateSourceNetworkStackCommand;
|
|
1106
|
+
const de_AssociateSourceNetworkStackCommandError = async (output, context) => {
|
|
1107
|
+
const parsedOutput = {
|
|
1108
|
+
...output,
|
|
1109
|
+
body: await parseErrorBody(output.body, context),
|
|
1110
|
+
};
|
|
1111
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1112
|
+
switch (errorCode) {
|
|
1113
|
+
case "ConflictException":
|
|
1114
|
+
case "com.amazonaws.drs#ConflictException":
|
|
1115
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1116
|
+
case "InternalServerException":
|
|
1117
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
1118
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1119
|
+
case "ResourceNotFoundException":
|
|
1120
|
+
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1121
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1122
|
+
case "ServiceQuotaExceededException":
|
|
1123
|
+
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1124
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1125
|
+
case "ThrottlingException":
|
|
1126
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
1127
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1128
|
+
case "UninitializedAccountException":
|
|
1129
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1130
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1131
|
+
case "ValidationException":
|
|
1132
|
+
case "com.amazonaws.drs#ValidationException":
|
|
1133
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1134
|
+
default:
|
|
1135
|
+
const parsedBody = parsedOutput.body;
|
|
1136
|
+
return throwDefaultError({
|
|
1137
|
+
output,
|
|
1138
|
+
parsedBody,
|
|
1139
|
+
errorCode,
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
};
|
|
913
1143
|
const de_CreateExtendedSourceServerCommand = async (output, context) => {
|
|
914
1144
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
915
1145
|
return de_CreateExtendedSourceServerCommandError(output, context);
|
|
@@ -1076,6 +1306,58 @@ const de_CreateReplicationConfigurationTemplateCommandError = async (output, con
|
|
|
1076
1306
|
});
|
|
1077
1307
|
}
|
|
1078
1308
|
};
|
|
1309
|
+
const de_CreateSourceNetworkCommand = async (output, context) => {
|
|
1310
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1311
|
+
return de_CreateSourceNetworkCommandError(output, context);
|
|
1312
|
+
}
|
|
1313
|
+
const contents = (0, smithy_client_1.map)({
|
|
1314
|
+
$metadata: deserializeMetadata(output),
|
|
1315
|
+
});
|
|
1316
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1317
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1318
|
+
sourceNetworkID: smithy_client_1.expectString,
|
|
1319
|
+
});
|
|
1320
|
+
Object.assign(contents, doc);
|
|
1321
|
+
return contents;
|
|
1322
|
+
};
|
|
1323
|
+
exports.de_CreateSourceNetworkCommand = de_CreateSourceNetworkCommand;
|
|
1324
|
+
const de_CreateSourceNetworkCommandError = async (output, context) => {
|
|
1325
|
+
const parsedOutput = {
|
|
1326
|
+
...output,
|
|
1327
|
+
body: await parseErrorBody(output.body, context),
|
|
1328
|
+
};
|
|
1329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
|
+
switch (errorCode) {
|
|
1331
|
+
case "ConflictException":
|
|
1332
|
+
case "com.amazonaws.drs#ConflictException":
|
|
1333
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1334
|
+
case "InternalServerException":
|
|
1335
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
1336
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1337
|
+
case "ResourceNotFoundException":
|
|
1338
|
+
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1339
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1340
|
+
case "ServiceQuotaExceededException":
|
|
1341
|
+
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1342
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1343
|
+
case "ThrottlingException":
|
|
1344
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
1345
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1346
|
+
case "UninitializedAccountException":
|
|
1347
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1348
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1349
|
+
case "ValidationException":
|
|
1350
|
+
case "com.amazonaws.drs#ValidationException":
|
|
1351
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1352
|
+
default:
|
|
1353
|
+
const parsedBody = parsedOutput.body;
|
|
1354
|
+
return throwDefaultError({
|
|
1355
|
+
output,
|
|
1356
|
+
parsedBody,
|
|
1357
|
+
errorCode,
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
};
|
|
1079
1361
|
const de_DeleteJobCommand = async (output, context) => {
|
|
1080
1362
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1081
1363
|
return de_DeleteJobCommandError(output, context);
|
|
@@ -1244,6 +1526,48 @@ const de_DeleteReplicationConfigurationTemplateCommandError = async (output, con
|
|
|
1244
1526
|
});
|
|
1245
1527
|
}
|
|
1246
1528
|
};
|
|
1529
|
+
const de_DeleteSourceNetworkCommand = async (output, context) => {
|
|
1530
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1531
|
+
return de_DeleteSourceNetworkCommandError(output, context);
|
|
1532
|
+
}
|
|
1533
|
+
const contents = (0, smithy_client_1.map)({
|
|
1534
|
+
$metadata: deserializeMetadata(output),
|
|
1535
|
+
});
|
|
1536
|
+
await collectBody(output.body, context);
|
|
1537
|
+
return contents;
|
|
1538
|
+
};
|
|
1539
|
+
exports.de_DeleteSourceNetworkCommand = de_DeleteSourceNetworkCommand;
|
|
1540
|
+
const de_DeleteSourceNetworkCommandError = async (output, context) => {
|
|
1541
|
+
const parsedOutput = {
|
|
1542
|
+
...output,
|
|
1543
|
+
body: await parseErrorBody(output.body, context),
|
|
1544
|
+
};
|
|
1545
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
+
switch (errorCode) {
|
|
1547
|
+
case "ConflictException":
|
|
1548
|
+
case "com.amazonaws.drs#ConflictException":
|
|
1549
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1550
|
+
case "InternalServerException":
|
|
1551
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
1552
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1553
|
+
case "ResourceNotFoundException":
|
|
1554
|
+
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1555
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1556
|
+
case "ThrottlingException":
|
|
1557
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
1558
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1559
|
+
case "UninitializedAccountException":
|
|
1560
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1561
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1562
|
+
default:
|
|
1563
|
+
const parsedBody = parsedOutput.body;
|
|
1564
|
+
return throwDefaultError({
|
|
1565
|
+
output,
|
|
1566
|
+
parsedBody,
|
|
1567
|
+
errorCode,
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1247
1571
|
const de_DeleteSourceServerCommand = async (output, context) => {
|
|
1248
1572
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1249
1573
|
return de_DeleteSourceServerCommandError(output, context);
|
|
@@ -1559,6 +1883,50 @@ const de_DescribeReplicationConfigurationTemplatesCommandError = async (output,
|
|
|
1559
1883
|
});
|
|
1560
1884
|
}
|
|
1561
1885
|
};
|
|
1886
|
+
const de_DescribeSourceNetworksCommand = async (output, context) => {
|
|
1887
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
|
+
return de_DescribeSourceNetworksCommandError(output, context);
|
|
1889
|
+
}
|
|
1890
|
+
const contents = (0, smithy_client_1.map)({
|
|
1891
|
+
$metadata: deserializeMetadata(output),
|
|
1892
|
+
});
|
|
1893
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1894
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1895
|
+
items: (_) => de_SourceNetworksList(_, context),
|
|
1896
|
+
nextToken: smithy_client_1.expectString,
|
|
1897
|
+
});
|
|
1898
|
+
Object.assign(contents, doc);
|
|
1899
|
+
return contents;
|
|
1900
|
+
};
|
|
1901
|
+
exports.de_DescribeSourceNetworksCommand = de_DescribeSourceNetworksCommand;
|
|
1902
|
+
const de_DescribeSourceNetworksCommandError = async (output, context) => {
|
|
1903
|
+
const parsedOutput = {
|
|
1904
|
+
...output,
|
|
1905
|
+
body: await parseErrorBody(output.body, context),
|
|
1906
|
+
};
|
|
1907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
|
+
switch (errorCode) {
|
|
1909
|
+
case "InternalServerException":
|
|
1910
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
1911
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1912
|
+
case "ThrottlingException":
|
|
1913
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
1914
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1915
|
+
case "UninitializedAccountException":
|
|
1916
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1917
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1918
|
+
case "ValidationException":
|
|
1919
|
+
case "com.amazonaws.drs#ValidationException":
|
|
1920
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
|
+
default:
|
|
1922
|
+
const parsedBody = parsedOutput.body;
|
|
1923
|
+
return throwDefaultError({
|
|
1924
|
+
output,
|
|
1925
|
+
parsedBody,
|
|
1926
|
+
errorCode,
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1562
1930
|
const de_DescribeSourceServersCommand = async (output, context) => {
|
|
1563
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
1932
|
return de_DescribeSourceServersCommandError(output, context);
|
|
@@ -1665,6 +2033,7 @@ const de_DisconnectSourceServerCommand = async (output, context) => {
|
|
|
1665
2033
|
replicationDirection: smithy_client_1.expectString,
|
|
1666
2034
|
reversedDirectionSourceServerArn: smithy_client_1.expectString,
|
|
1667
2035
|
sourceCloudProperties: smithy_client_1._json,
|
|
2036
|
+
sourceNetworkID: smithy_client_1.expectString,
|
|
1668
2037
|
sourceProperties: smithy_client_1._json,
|
|
1669
2038
|
sourceServerID: smithy_client_1.expectString,
|
|
1670
2039
|
stagingArea: smithy_client_1._json,
|
|
@@ -1705,6 +2074,55 @@ const de_DisconnectSourceServerCommandError = async (output, context) => {
|
|
|
1705
2074
|
});
|
|
1706
2075
|
}
|
|
1707
2076
|
};
|
|
2077
|
+
const de_ExportSourceNetworkCfnTemplateCommand = async (output, context) => {
|
|
2078
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2079
|
+
return de_ExportSourceNetworkCfnTemplateCommandError(output, context);
|
|
2080
|
+
}
|
|
2081
|
+
const contents = (0, smithy_client_1.map)({
|
|
2082
|
+
$metadata: deserializeMetadata(output),
|
|
2083
|
+
});
|
|
2084
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2085
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2086
|
+
s3DestinationUrl: smithy_client_1.expectString,
|
|
2087
|
+
});
|
|
2088
|
+
Object.assign(contents, doc);
|
|
2089
|
+
return contents;
|
|
2090
|
+
};
|
|
2091
|
+
exports.de_ExportSourceNetworkCfnTemplateCommand = de_ExportSourceNetworkCfnTemplateCommand;
|
|
2092
|
+
const de_ExportSourceNetworkCfnTemplateCommandError = async (output, context) => {
|
|
2093
|
+
const parsedOutput = {
|
|
2094
|
+
...output,
|
|
2095
|
+
body: await parseErrorBody(output.body, context),
|
|
2096
|
+
};
|
|
2097
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
|
+
switch (errorCode) {
|
|
2099
|
+
case "ConflictException":
|
|
2100
|
+
case "com.amazonaws.drs#ConflictException":
|
|
2101
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2102
|
+
case "InternalServerException":
|
|
2103
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
2104
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2105
|
+
case "ResourceNotFoundException":
|
|
2106
|
+
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2107
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2108
|
+
case "ThrottlingException":
|
|
2109
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
2110
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2111
|
+
case "UninitializedAccountException":
|
|
2112
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2113
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2114
|
+
case "ValidationException":
|
|
2115
|
+
case "com.amazonaws.drs#ValidationException":
|
|
2116
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2117
|
+
default:
|
|
2118
|
+
const parsedBody = parsedOutput.body;
|
|
2119
|
+
return throwDefaultError({
|
|
2120
|
+
output,
|
|
2121
|
+
parsedBody,
|
|
2122
|
+
errorCode,
|
|
2123
|
+
});
|
|
2124
|
+
}
|
|
2125
|
+
};
|
|
1708
2126
|
const de_GetFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
1709
2127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1710
2128
|
return de_GetFailbackReplicationConfigurationCommandError(output, context);
|
|
@@ -2059,6 +2477,7 @@ const de_RetryDataReplicationCommand = async (output, context) => {
|
|
|
2059
2477
|
replicationDirection: smithy_client_1.expectString,
|
|
2060
2478
|
reversedDirectionSourceServerArn: smithy_client_1.expectString,
|
|
2061
2479
|
sourceCloudProperties: smithy_client_1._json,
|
|
2480
|
+
sourceNetworkID: smithy_client_1.expectString,
|
|
2062
2481
|
sourceProperties: smithy_client_1._json,
|
|
2063
2482
|
sourceServerID: smithy_client_1.expectString,
|
|
2064
2483
|
stagingArea: smithy_client_1._json,
|
|
@@ -2292,6 +2711,101 @@ const de_StartReplicationCommandError = async (output, context) => {
|
|
|
2292
2711
|
});
|
|
2293
2712
|
}
|
|
2294
2713
|
};
|
|
2714
|
+
const de_StartSourceNetworkRecoveryCommand = async (output, context) => {
|
|
2715
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2716
|
+
return de_StartSourceNetworkRecoveryCommandError(output, context);
|
|
2717
|
+
}
|
|
2718
|
+
const contents = (0, smithy_client_1.map)({
|
|
2719
|
+
$metadata: deserializeMetadata(output),
|
|
2720
|
+
});
|
|
2721
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2722
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2723
|
+
job: smithy_client_1._json,
|
|
2724
|
+
});
|
|
2725
|
+
Object.assign(contents, doc);
|
|
2726
|
+
return contents;
|
|
2727
|
+
};
|
|
2728
|
+
exports.de_StartSourceNetworkRecoveryCommand = de_StartSourceNetworkRecoveryCommand;
|
|
2729
|
+
const de_StartSourceNetworkRecoveryCommandError = async (output, context) => {
|
|
2730
|
+
const parsedOutput = {
|
|
2731
|
+
...output,
|
|
2732
|
+
body: await parseErrorBody(output.body, context),
|
|
2733
|
+
};
|
|
2734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
|
+
switch (errorCode) {
|
|
2736
|
+
case "ConflictException":
|
|
2737
|
+
case "com.amazonaws.drs#ConflictException":
|
|
2738
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2739
|
+
case "InternalServerException":
|
|
2740
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
2741
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2742
|
+
case "ServiceQuotaExceededException":
|
|
2743
|
+
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2744
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2745
|
+
case "ThrottlingException":
|
|
2746
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
2747
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2748
|
+
case "UninitializedAccountException":
|
|
2749
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2750
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2751
|
+
case "ValidationException":
|
|
2752
|
+
case "com.amazonaws.drs#ValidationException":
|
|
2753
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2754
|
+
default:
|
|
2755
|
+
const parsedBody = parsedOutput.body;
|
|
2756
|
+
return throwDefaultError({
|
|
2757
|
+
output,
|
|
2758
|
+
parsedBody,
|
|
2759
|
+
errorCode,
|
|
2760
|
+
});
|
|
2761
|
+
}
|
|
2762
|
+
};
|
|
2763
|
+
const de_StartSourceNetworkReplicationCommand = async (output, context) => {
|
|
2764
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2765
|
+
return de_StartSourceNetworkReplicationCommandError(output, context);
|
|
2766
|
+
}
|
|
2767
|
+
const contents = (0, smithy_client_1.map)({
|
|
2768
|
+
$metadata: deserializeMetadata(output),
|
|
2769
|
+
});
|
|
2770
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2771
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2772
|
+
sourceNetwork: (_) => de_SourceNetwork(_, context),
|
|
2773
|
+
});
|
|
2774
|
+
Object.assign(contents, doc);
|
|
2775
|
+
return contents;
|
|
2776
|
+
};
|
|
2777
|
+
exports.de_StartSourceNetworkReplicationCommand = de_StartSourceNetworkReplicationCommand;
|
|
2778
|
+
const de_StartSourceNetworkReplicationCommandError = async (output, context) => {
|
|
2779
|
+
const parsedOutput = {
|
|
2780
|
+
...output,
|
|
2781
|
+
body: await parseErrorBody(output.body, context),
|
|
2782
|
+
};
|
|
2783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2784
|
+
switch (errorCode) {
|
|
2785
|
+
case "ConflictException":
|
|
2786
|
+
case "com.amazonaws.drs#ConflictException":
|
|
2787
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2788
|
+
case "InternalServerException":
|
|
2789
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
2790
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2791
|
+
case "ResourceNotFoundException":
|
|
2792
|
+
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2793
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2794
|
+
case "ThrottlingException":
|
|
2795
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
2796
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2797
|
+
case "UninitializedAccountException":
|
|
2798
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2799
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2800
|
+
default:
|
|
2801
|
+
const parsedBody = parsedOutput.body;
|
|
2802
|
+
return throwDefaultError({
|
|
2803
|
+
output,
|
|
2804
|
+
parsedBody,
|
|
2805
|
+
errorCode,
|
|
2806
|
+
});
|
|
2807
|
+
}
|
|
2808
|
+
};
|
|
2295
2809
|
const de_StopFailbackCommand = async (output, context) => {
|
|
2296
2810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2297
2811
|
return de_StopFailbackCommandError(output, context);
|
|
@@ -2377,6 +2891,55 @@ const de_StopReplicationCommandError = async (output, context) => {
|
|
|
2377
2891
|
});
|
|
2378
2892
|
}
|
|
2379
2893
|
};
|
|
2894
|
+
const de_StopSourceNetworkReplicationCommand = async (output, context) => {
|
|
2895
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2896
|
+
return de_StopSourceNetworkReplicationCommandError(output, context);
|
|
2897
|
+
}
|
|
2898
|
+
const contents = (0, smithy_client_1.map)({
|
|
2899
|
+
$metadata: deserializeMetadata(output),
|
|
2900
|
+
});
|
|
2901
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2902
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2903
|
+
sourceNetwork: (_) => de_SourceNetwork(_, context),
|
|
2904
|
+
});
|
|
2905
|
+
Object.assign(contents, doc);
|
|
2906
|
+
return contents;
|
|
2907
|
+
};
|
|
2908
|
+
exports.de_StopSourceNetworkReplicationCommand = de_StopSourceNetworkReplicationCommand;
|
|
2909
|
+
const de_StopSourceNetworkReplicationCommandError = async (output, context) => {
|
|
2910
|
+
const parsedOutput = {
|
|
2911
|
+
...output,
|
|
2912
|
+
body: await parseErrorBody(output.body, context),
|
|
2913
|
+
};
|
|
2914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2915
|
+
switch (errorCode) {
|
|
2916
|
+
case "ConflictException":
|
|
2917
|
+
case "com.amazonaws.drs#ConflictException":
|
|
2918
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2919
|
+
case "InternalServerException":
|
|
2920
|
+
case "com.amazonaws.drs#InternalServerException":
|
|
2921
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2922
|
+
case "ResourceNotFoundException":
|
|
2923
|
+
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2924
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2925
|
+
case "ThrottlingException":
|
|
2926
|
+
case "com.amazonaws.drs#ThrottlingException":
|
|
2927
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2928
|
+
case "UninitializedAccountException":
|
|
2929
|
+
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2930
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2931
|
+
case "ValidationException":
|
|
2932
|
+
case "com.amazonaws.drs#ValidationException":
|
|
2933
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2934
|
+
default:
|
|
2935
|
+
const parsedBody = parsedOutput.body;
|
|
2936
|
+
return throwDefaultError({
|
|
2937
|
+
output,
|
|
2938
|
+
parsedBody,
|
|
2939
|
+
errorCode,
|
|
2940
|
+
});
|
|
2941
|
+
}
|
|
2942
|
+
};
|
|
2380
2943
|
const de_TagResourceCommand = async (output, context) => {
|
|
2381
2944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2382
2945
|
return de_TagResourceCommandError(output, context);
|
|
@@ -2917,6 +3480,36 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
2917
3480
|
});
|
|
2918
3481
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2919
3482
|
};
|
|
3483
|
+
const de_RecoveryLifeCycle = (output, context) => {
|
|
3484
|
+
return (0, smithy_client_1.take)(output, {
|
|
3485
|
+
apiCallDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3486
|
+
jobID: smithy_client_1.expectString,
|
|
3487
|
+
lastRecoveryResult: smithy_client_1.expectString,
|
|
3488
|
+
});
|
|
3489
|
+
};
|
|
3490
|
+
const de_SourceNetwork = (output, context) => {
|
|
3491
|
+
return (0, smithy_client_1.take)(output, {
|
|
3492
|
+
arn: smithy_client_1.expectString,
|
|
3493
|
+
cfnStackName: smithy_client_1.expectString,
|
|
3494
|
+
lastRecovery: (_) => de_RecoveryLifeCycle(_, context),
|
|
3495
|
+
launchedVpcID: smithy_client_1.expectString,
|
|
3496
|
+
replicationStatus: smithy_client_1.expectString,
|
|
3497
|
+
replicationStatusDetails: smithy_client_1.expectString,
|
|
3498
|
+
sourceAccountID: smithy_client_1.expectString,
|
|
3499
|
+
sourceNetworkID: smithy_client_1.expectString,
|
|
3500
|
+
sourceRegion: smithy_client_1.expectString,
|
|
3501
|
+
sourceVpcID: smithy_client_1.expectString,
|
|
3502
|
+
tags: smithy_client_1._json,
|
|
3503
|
+
});
|
|
3504
|
+
};
|
|
3505
|
+
const de_SourceNetworksList = (output, context) => {
|
|
3506
|
+
const retVal = (output || [])
|
|
3507
|
+
.filter((e) => e != null)
|
|
3508
|
+
.map((entry) => {
|
|
3509
|
+
return de_SourceNetwork(entry, context);
|
|
3510
|
+
});
|
|
3511
|
+
return retVal;
|
|
3512
|
+
};
|
|
2920
3513
|
const deserializeMetadata = (output) => ({
|
|
2921
3514
|
httpStatusCode: output.statusCode,
|
|
2922
3515
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|