@aws-sdk/client-drs 3.490.0 → 3.495.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/dist-cjs/Drs.js +1 -111
- package/dist-cjs/DrsClient.js +1 -43
- package/dist-cjs/commands/AssociateSourceNetworkStackCommand.js +1 -29
- package/dist-cjs/commands/CreateExtendedSourceServerCommand.js +1 -29
- package/dist-cjs/commands/CreateLaunchConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/CreateReplicationConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/CreateSourceNetworkCommand.js +1 -29
- package/dist-cjs/commands/DeleteJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteLaunchActionCommand.js +1 -28
- package/dist-cjs/commands/DeleteLaunchConfigurationTemplateCommand.js +1 -28
- package/dist-cjs/commands/DeleteRecoveryInstanceCommand.js +1 -28
- package/dist-cjs/commands/DeleteReplicationConfigurationTemplateCommand.js +1 -28
- package/dist-cjs/commands/DeleteSourceNetworkCommand.js +1 -28
- package/dist-cjs/commands/DeleteSourceServerCommand.js +1 -28
- package/dist-cjs/commands/DescribeJobLogItemsCommand.js +1 -28
- package/dist-cjs/commands/DescribeJobsCommand.js +1 -29
- package/dist-cjs/commands/DescribeLaunchConfigurationTemplatesCommand.js +1 -29
- package/dist-cjs/commands/DescribeRecoveryInstancesCommand.js +1 -29
- package/dist-cjs/commands/DescribeRecoverySnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeReplicationConfigurationTemplatesCommand.js +1 -29
- package/dist-cjs/commands/DescribeSourceNetworksCommand.js +1 -29
- package/dist-cjs/commands/DescribeSourceServersCommand.js +1 -29
- package/dist-cjs/commands/DisconnectRecoveryInstanceCommand.js +1 -28
- package/dist-cjs/commands/DisconnectSourceServerCommand.js +1 -29
- package/dist-cjs/commands/ExportSourceNetworkCfnTemplateCommand.js +1 -28
- package/dist-cjs/commands/GetFailbackReplicationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetLaunchConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetReplicationConfigurationCommand.js +1 -29
- package/dist-cjs/commands/InitializeServiceCommand.js +1 -28
- package/dist-cjs/commands/ListExtensibleSourceServersCommand.js +1 -29
- package/dist-cjs/commands/ListLaunchActionsCommand.js +1 -28
- package/dist-cjs/commands/ListStagingAccountsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/PutLaunchActionCommand.js +1 -28
- package/dist-cjs/commands/RetryDataReplicationCommand.js +1 -29
- package/dist-cjs/commands/ReverseReplicationCommand.js +1 -28
- package/dist-cjs/commands/StartFailbackLaunchCommand.js +1 -29
- package/dist-cjs/commands/StartRecoveryCommand.js +1 -29
- package/dist-cjs/commands/StartReplicationCommand.js +1 -29
- package/dist-cjs/commands/StartSourceNetworkRecoveryCommand.js +1 -29
- package/dist-cjs/commands/StartSourceNetworkReplicationCommand.js +1 -29
- package/dist-cjs/commands/StopFailbackCommand.js +1 -28
- package/dist-cjs/commands/StopReplicationCommand.js +1 -29
- package/dist-cjs/commands/StopSourceNetworkReplicationCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/TerminateRecoveryInstancesCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateFailbackReplicationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateLaunchConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateLaunchConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/UpdateReplicationConfigurationCommand.js +1 -29
- package/dist-cjs/commands/UpdateReplicationConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -53
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5484 -11
- package/dist-cjs/models/DrsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -660
- package/dist-cjs/pagination/DescribeJobLogItemsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeJobsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRecoveryInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRecoverySnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSourceNetworksPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSourceServersPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListExtensibleSourceServersPaginator.js +1 -7
- package/dist-cjs/pagination/ListLaunchActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListStagingAccountsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -15
- package/dist-cjs/protocols/Aws_restJson1.js +1 -3451
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3451 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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_PutLaunchActionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStagingAccountsCommand = exports.se_ListLaunchActionsCommand = 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_DeleteLaunchActionCommand = 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_PutLaunchActionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStagingAccountsCommand = exports.de_ListLaunchActionsCommand = 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_DeleteLaunchActionCommand = exports.de_DeleteJobCommand = exports.de_CreateSourceNetworkCommand = exports.de_CreateReplicationConfigurationTemplateCommand = exports.de_CreateLaunchConfigurationTemplateCommand = exports.de_CreateExtendedSourceServerCommand = exports.de_AssociateSourceNetworkStackCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const DrsServiceException_1 = require("../models/DrsServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_AssociateSourceNetworkStackCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/AssociateSourceNetworkStack");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
cfnStackName: [],
|
|
18
|
-
sourceNetworkID: [],
|
|
19
|
-
}));
|
|
20
|
-
b.m("POST").h(headers).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
exports.se_AssociateSourceNetworkStackCommand = se_AssociateSourceNetworkStackCommand;
|
|
24
|
-
const se_CreateExtendedSourceServerCommand = async (input, context) => {
|
|
25
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/CreateExtendedSourceServer");
|
|
30
|
-
let body;
|
|
31
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
32
|
-
sourceServerArn: [],
|
|
33
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
34
|
-
}));
|
|
35
|
-
b.m("POST").h(headers).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
exports.se_CreateExtendedSourceServerCommand = se_CreateExtendedSourceServerCommand;
|
|
39
|
-
const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
40
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
41
|
-
const headers = {
|
|
42
|
-
"content-type": "application/json",
|
|
43
|
-
};
|
|
44
|
-
b.bp("/CreateLaunchConfigurationTemplate");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
47
|
-
copyPrivateIp: [],
|
|
48
|
-
copyTags: [],
|
|
49
|
-
exportBucketArn: [],
|
|
50
|
-
launchDisposition: [],
|
|
51
|
-
launchIntoSourceInstance: [],
|
|
52
|
-
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
53
|
-
postLaunchEnabled: [],
|
|
54
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
55
|
-
targetInstanceTypeRightSizingMethod: [],
|
|
56
|
-
}));
|
|
57
|
-
b.m("POST").h(headers).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
exports.se_CreateLaunchConfigurationTemplateCommand = se_CreateLaunchConfigurationTemplateCommand;
|
|
61
|
-
const se_CreateReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
62
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
63
|
-
const headers = {
|
|
64
|
-
"content-type": "application/json",
|
|
65
|
-
};
|
|
66
|
-
b.bp("/CreateReplicationConfigurationTemplate");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
69
|
-
associateDefaultSecurityGroup: [],
|
|
70
|
-
autoReplicateNewDisks: [],
|
|
71
|
-
bandwidthThrottling: [],
|
|
72
|
-
createPublicIP: [],
|
|
73
|
-
dataPlaneRouting: [],
|
|
74
|
-
defaultLargeStagingDiskType: [],
|
|
75
|
-
ebsEncryption: [],
|
|
76
|
-
ebsEncryptionKeyArn: [],
|
|
77
|
-
pitPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
78
|
-
replicationServerInstanceType: [],
|
|
79
|
-
replicationServersSecurityGroupsIDs: (_) => (0, smithy_client_1._json)(_),
|
|
80
|
-
stagingAreaSubnetId: [],
|
|
81
|
-
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
82
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
-
useDedicatedReplicationServer: [],
|
|
84
|
-
}));
|
|
85
|
-
b.m("POST").h(headers).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
exports.se_CreateReplicationConfigurationTemplateCommand = se_CreateReplicationConfigurationTemplateCommand;
|
|
89
|
-
const se_CreateSourceNetworkCommand = async (input, context) => {
|
|
90
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
|
-
const headers = {
|
|
92
|
-
"content-type": "application/json",
|
|
93
|
-
};
|
|
94
|
-
b.bp("/CreateSourceNetwork");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
97
|
-
originAccountID: [],
|
|
98
|
-
originRegion: [],
|
|
99
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
-
vpcID: [],
|
|
101
|
-
}));
|
|
102
|
-
b.m("POST").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
exports.se_CreateSourceNetworkCommand = se_CreateSourceNetworkCommand;
|
|
106
|
-
const se_DeleteJobCommand = async (input, context) => {
|
|
107
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
|
-
const headers = {
|
|
109
|
-
"content-type": "application/json",
|
|
110
|
-
};
|
|
111
|
-
b.bp("/DeleteJob");
|
|
112
|
-
let body;
|
|
113
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
114
|
-
jobID: [],
|
|
115
|
-
}));
|
|
116
|
-
b.m("POST").h(headers).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
exports.se_DeleteJobCommand = se_DeleteJobCommand;
|
|
120
|
-
const se_DeleteLaunchActionCommand = async (input, context) => {
|
|
121
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
122
|
-
const headers = {
|
|
123
|
-
"content-type": "application/json",
|
|
124
|
-
};
|
|
125
|
-
b.bp("/DeleteLaunchAction");
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
|
-
actionId: [],
|
|
129
|
-
resourceId: [],
|
|
130
|
-
}));
|
|
131
|
-
b.m("POST").h(headers).b(body);
|
|
132
|
-
return b.build();
|
|
133
|
-
};
|
|
134
|
-
exports.se_DeleteLaunchActionCommand = se_DeleteLaunchActionCommand;
|
|
135
|
-
const se_DeleteLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
136
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
137
|
-
const headers = {
|
|
138
|
-
"content-type": "application/json",
|
|
139
|
-
};
|
|
140
|
-
b.bp("/DeleteLaunchConfigurationTemplate");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
143
|
-
launchConfigurationTemplateID: [],
|
|
144
|
-
}));
|
|
145
|
-
b.m("POST").h(headers).b(body);
|
|
146
|
-
return b.build();
|
|
147
|
-
};
|
|
148
|
-
exports.se_DeleteLaunchConfigurationTemplateCommand = se_DeleteLaunchConfigurationTemplateCommand;
|
|
149
|
-
const se_DeleteRecoveryInstanceCommand = async (input, context) => {
|
|
150
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
151
|
-
const headers = {
|
|
152
|
-
"content-type": "application/json",
|
|
153
|
-
};
|
|
154
|
-
b.bp("/DeleteRecoveryInstance");
|
|
155
|
-
let body;
|
|
156
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
157
|
-
recoveryInstanceID: [],
|
|
158
|
-
}));
|
|
159
|
-
b.m("POST").h(headers).b(body);
|
|
160
|
-
return b.build();
|
|
161
|
-
};
|
|
162
|
-
exports.se_DeleteRecoveryInstanceCommand = se_DeleteRecoveryInstanceCommand;
|
|
163
|
-
const se_DeleteReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
164
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
165
|
-
const headers = {
|
|
166
|
-
"content-type": "application/json",
|
|
167
|
-
};
|
|
168
|
-
b.bp("/DeleteReplicationConfigurationTemplate");
|
|
169
|
-
let body;
|
|
170
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
171
|
-
replicationConfigurationTemplateID: [],
|
|
172
|
-
}));
|
|
173
|
-
b.m("POST").h(headers).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_DeleteReplicationConfigurationTemplateCommand = se_DeleteReplicationConfigurationTemplateCommand;
|
|
177
|
-
const se_DeleteSourceNetworkCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
|
-
const headers = {
|
|
180
|
-
"content-type": "application/json",
|
|
181
|
-
};
|
|
182
|
-
b.bp("/DeleteSourceNetwork");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
185
|
-
sourceNetworkID: [],
|
|
186
|
-
}));
|
|
187
|
-
b.m("POST").h(headers).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
exports.se_DeleteSourceNetworkCommand = se_DeleteSourceNetworkCommand;
|
|
191
|
-
const se_DeleteSourceServerCommand = async (input, context) => {
|
|
192
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
|
-
const headers = {
|
|
194
|
-
"content-type": "application/json",
|
|
195
|
-
};
|
|
196
|
-
b.bp("/DeleteSourceServer");
|
|
197
|
-
let body;
|
|
198
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
199
|
-
sourceServerID: [],
|
|
200
|
-
}));
|
|
201
|
-
b.m("POST").h(headers).b(body);
|
|
202
|
-
return b.build();
|
|
203
|
-
};
|
|
204
|
-
exports.se_DeleteSourceServerCommand = se_DeleteSourceServerCommand;
|
|
205
|
-
const se_DescribeJobLogItemsCommand = async (input, context) => {
|
|
206
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
207
|
-
const headers = {
|
|
208
|
-
"content-type": "application/json",
|
|
209
|
-
};
|
|
210
|
-
b.bp("/DescribeJobLogItems");
|
|
211
|
-
let body;
|
|
212
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
213
|
-
jobID: [],
|
|
214
|
-
maxResults: [],
|
|
215
|
-
nextToken: [],
|
|
216
|
-
}));
|
|
217
|
-
b.m("POST").h(headers).b(body);
|
|
218
|
-
return b.build();
|
|
219
|
-
};
|
|
220
|
-
exports.se_DescribeJobLogItemsCommand = se_DescribeJobLogItemsCommand;
|
|
221
|
-
const se_DescribeJobsCommand = async (input, context) => {
|
|
222
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
223
|
-
const headers = {
|
|
224
|
-
"content-type": "application/json",
|
|
225
|
-
};
|
|
226
|
-
b.bp("/DescribeJobs");
|
|
227
|
-
let body;
|
|
228
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
229
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
230
|
-
maxResults: [],
|
|
231
|
-
nextToken: [],
|
|
232
|
-
}));
|
|
233
|
-
b.m("POST").h(headers).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
exports.se_DescribeJobsCommand = se_DescribeJobsCommand;
|
|
237
|
-
const se_DescribeLaunchConfigurationTemplatesCommand = async (input, context) => {
|
|
238
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
|
-
const headers = {
|
|
240
|
-
"content-type": "application/json",
|
|
241
|
-
};
|
|
242
|
-
b.bp("/DescribeLaunchConfigurationTemplates");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
245
|
-
launchConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
|
|
246
|
-
maxResults: [],
|
|
247
|
-
nextToken: [],
|
|
248
|
-
}));
|
|
249
|
-
b.m("POST").h(headers).b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
exports.se_DescribeLaunchConfigurationTemplatesCommand = se_DescribeLaunchConfigurationTemplatesCommand;
|
|
253
|
-
const se_DescribeRecoveryInstancesCommand = async (input, context) => {
|
|
254
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
255
|
-
const headers = {
|
|
256
|
-
"content-type": "application/json",
|
|
257
|
-
};
|
|
258
|
-
b.bp("/DescribeRecoveryInstances");
|
|
259
|
-
let body;
|
|
260
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
261
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
262
|
-
maxResults: [],
|
|
263
|
-
nextToken: [],
|
|
264
|
-
}));
|
|
265
|
-
b.m("POST").h(headers).b(body);
|
|
266
|
-
return b.build();
|
|
267
|
-
};
|
|
268
|
-
exports.se_DescribeRecoveryInstancesCommand = se_DescribeRecoveryInstancesCommand;
|
|
269
|
-
const se_DescribeRecoverySnapshotsCommand = async (input, context) => {
|
|
270
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
271
|
-
const headers = {
|
|
272
|
-
"content-type": "application/json",
|
|
273
|
-
};
|
|
274
|
-
b.bp("/DescribeRecoverySnapshots");
|
|
275
|
-
let body;
|
|
276
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
277
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
278
|
-
maxResults: [],
|
|
279
|
-
nextToken: [],
|
|
280
|
-
order: [],
|
|
281
|
-
sourceServerID: [],
|
|
282
|
-
}));
|
|
283
|
-
b.m("POST").h(headers).b(body);
|
|
284
|
-
return b.build();
|
|
285
|
-
};
|
|
286
|
-
exports.se_DescribeRecoverySnapshotsCommand = se_DescribeRecoverySnapshotsCommand;
|
|
287
|
-
const se_DescribeReplicationConfigurationTemplatesCommand = async (input, context) => {
|
|
288
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
289
|
-
const headers = {
|
|
290
|
-
"content-type": "application/json",
|
|
291
|
-
};
|
|
292
|
-
b.bp("/DescribeReplicationConfigurationTemplates");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
295
|
-
maxResults: [],
|
|
296
|
-
nextToken: [],
|
|
297
|
-
replicationConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
|
|
298
|
-
}));
|
|
299
|
-
b.m("POST").h(headers).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
exports.se_DescribeReplicationConfigurationTemplatesCommand = se_DescribeReplicationConfigurationTemplatesCommand;
|
|
303
|
-
const se_DescribeSourceNetworksCommand = async (input, context) => {
|
|
304
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
305
|
-
const headers = {
|
|
306
|
-
"content-type": "application/json",
|
|
307
|
-
};
|
|
308
|
-
b.bp("/DescribeSourceNetworks");
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
311
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
312
|
-
maxResults: [],
|
|
313
|
-
nextToken: [],
|
|
314
|
-
}));
|
|
315
|
-
b.m("POST").h(headers).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
exports.se_DescribeSourceNetworksCommand = se_DescribeSourceNetworksCommand;
|
|
319
|
-
const se_DescribeSourceServersCommand = async (input, context) => {
|
|
320
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
321
|
-
const headers = {
|
|
322
|
-
"content-type": "application/json",
|
|
323
|
-
};
|
|
324
|
-
b.bp("/DescribeSourceServers");
|
|
325
|
-
let body;
|
|
326
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
327
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
328
|
-
maxResults: [],
|
|
329
|
-
nextToken: [],
|
|
330
|
-
}));
|
|
331
|
-
b.m("POST").h(headers).b(body);
|
|
332
|
-
return b.build();
|
|
333
|
-
};
|
|
334
|
-
exports.se_DescribeSourceServersCommand = se_DescribeSourceServersCommand;
|
|
335
|
-
const se_DisconnectRecoveryInstanceCommand = async (input, context) => {
|
|
336
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
337
|
-
const headers = {
|
|
338
|
-
"content-type": "application/json",
|
|
339
|
-
};
|
|
340
|
-
b.bp("/DisconnectRecoveryInstance");
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
343
|
-
recoveryInstanceID: [],
|
|
344
|
-
}));
|
|
345
|
-
b.m("POST").h(headers).b(body);
|
|
346
|
-
return b.build();
|
|
347
|
-
};
|
|
348
|
-
exports.se_DisconnectRecoveryInstanceCommand = se_DisconnectRecoveryInstanceCommand;
|
|
349
|
-
const se_DisconnectSourceServerCommand = async (input, context) => {
|
|
350
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
351
|
-
const headers = {
|
|
352
|
-
"content-type": "application/json",
|
|
353
|
-
};
|
|
354
|
-
b.bp("/DisconnectSourceServer");
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
357
|
-
sourceServerID: [],
|
|
358
|
-
}));
|
|
359
|
-
b.m("POST").h(headers).b(body);
|
|
360
|
-
return b.build();
|
|
361
|
-
};
|
|
362
|
-
exports.se_DisconnectSourceServerCommand = se_DisconnectSourceServerCommand;
|
|
363
|
-
const se_ExportSourceNetworkCfnTemplateCommand = async (input, context) => {
|
|
364
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
365
|
-
const headers = {
|
|
366
|
-
"content-type": "application/json",
|
|
367
|
-
};
|
|
368
|
-
b.bp("/ExportSourceNetworkCfnTemplate");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
371
|
-
sourceNetworkID: [],
|
|
372
|
-
}));
|
|
373
|
-
b.m("POST").h(headers).b(body);
|
|
374
|
-
return b.build();
|
|
375
|
-
};
|
|
376
|
-
exports.se_ExportSourceNetworkCfnTemplateCommand = se_ExportSourceNetworkCfnTemplateCommand;
|
|
377
|
-
const se_GetFailbackReplicationConfigurationCommand = async (input, context) => {
|
|
378
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
379
|
-
const headers = {
|
|
380
|
-
"content-type": "application/json",
|
|
381
|
-
};
|
|
382
|
-
b.bp("/GetFailbackReplicationConfiguration");
|
|
383
|
-
let body;
|
|
384
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
385
|
-
recoveryInstanceID: [],
|
|
386
|
-
}));
|
|
387
|
-
b.m("POST").h(headers).b(body);
|
|
388
|
-
return b.build();
|
|
389
|
-
};
|
|
390
|
-
exports.se_GetFailbackReplicationConfigurationCommand = se_GetFailbackReplicationConfigurationCommand;
|
|
391
|
-
const se_GetLaunchConfigurationCommand = async (input, context) => {
|
|
392
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
393
|
-
const headers = {
|
|
394
|
-
"content-type": "application/json",
|
|
395
|
-
};
|
|
396
|
-
b.bp("/GetLaunchConfiguration");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
399
|
-
sourceServerID: [],
|
|
400
|
-
}));
|
|
401
|
-
b.m("POST").h(headers).b(body);
|
|
402
|
-
return b.build();
|
|
403
|
-
};
|
|
404
|
-
exports.se_GetLaunchConfigurationCommand = se_GetLaunchConfigurationCommand;
|
|
405
|
-
const se_GetReplicationConfigurationCommand = async (input, context) => {
|
|
406
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
407
|
-
const headers = {
|
|
408
|
-
"content-type": "application/json",
|
|
409
|
-
};
|
|
410
|
-
b.bp("/GetReplicationConfiguration");
|
|
411
|
-
let body;
|
|
412
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
413
|
-
sourceServerID: [],
|
|
414
|
-
}));
|
|
415
|
-
b.m("POST").h(headers).b(body);
|
|
416
|
-
return b.build();
|
|
417
|
-
};
|
|
418
|
-
exports.se_GetReplicationConfigurationCommand = se_GetReplicationConfigurationCommand;
|
|
419
|
-
const se_InitializeServiceCommand = async (input, context) => {
|
|
420
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
421
|
-
const headers = {
|
|
422
|
-
"content-type": "application/json",
|
|
423
|
-
};
|
|
424
|
-
b.bp("/InitializeService");
|
|
425
|
-
let body;
|
|
426
|
-
body = "";
|
|
427
|
-
b.m("POST").h(headers).b(body);
|
|
428
|
-
return b.build();
|
|
429
|
-
};
|
|
430
|
-
exports.se_InitializeServiceCommand = se_InitializeServiceCommand;
|
|
431
|
-
const se_ListExtensibleSourceServersCommand = async (input, context) => {
|
|
432
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
433
|
-
const headers = {
|
|
434
|
-
"content-type": "application/json",
|
|
435
|
-
};
|
|
436
|
-
b.bp("/ListExtensibleSourceServers");
|
|
437
|
-
let body;
|
|
438
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
439
|
-
maxResults: [],
|
|
440
|
-
nextToken: [],
|
|
441
|
-
stagingAccountID: [],
|
|
442
|
-
}));
|
|
443
|
-
b.m("POST").h(headers).b(body);
|
|
444
|
-
return b.build();
|
|
445
|
-
};
|
|
446
|
-
exports.se_ListExtensibleSourceServersCommand = se_ListExtensibleSourceServersCommand;
|
|
447
|
-
const se_ListLaunchActionsCommand = async (input, context) => {
|
|
448
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
449
|
-
const headers = {
|
|
450
|
-
"content-type": "application/json",
|
|
451
|
-
};
|
|
452
|
-
b.bp("/ListLaunchActions");
|
|
453
|
-
let body;
|
|
454
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
455
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
456
|
-
maxResults: [],
|
|
457
|
-
nextToken: [],
|
|
458
|
-
resourceId: [],
|
|
459
|
-
}));
|
|
460
|
-
b.m("POST").h(headers).b(body);
|
|
461
|
-
return b.build();
|
|
462
|
-
};
|
|
463
|
-
exports.se_ListLaunchActionsCommand = se_ListLaunchActionsCommand;
|
|
464
|
-
const se_ListStagingAccountsCommand = async (input, context) => {
|
|
465
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
466
|
-
const headers = {};
|
|
467
|
-
b.bp("/ListStagingAccounts");
|
|
468
|
-
const query = (0, smithy_client_1.map)({
|
|
469
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
470
|
-
[_nT]: [, input[_nT]],
|
|
471
|
-
});
|
|
472
|
-
let body;
|
|
473
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
474
|
-
return b.build();
|
|
475
|
-
};
|
|
476
|
-
exports.se_ListStagingAccountsCommand = se_ListStagingAccountsCommand;
|
|
477
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
478
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
479
|
-
const headers = {};
|
|
480
|
-
b.bp("/tags/{resourceArn}");
|
|
481
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
482
|
-
let body;
|
|
483
|
-
b.m("GET").h(headers).b(body);
|
|
484
|
-
return b.build();
|
|
485
|
-
};
|
|
486
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
487
|
-
const se_PutLaunchActionCommand = async (input, context) => {
|
|
488
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
489
|
-
const headers = {
|
|
490
|
-
"content-type": "application/json",
|
|
491
|
-
};
|
|
492
|
-
b.bp("/PutLaunchAction");
|
|
493
|
-
let body;
|
|
494
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
495
|
-
actionCode: [],
|
|
496
|
-
actionId: [],
|
|
497
|
-
actionVersion: [],
|
|
498
|
-
active: [],
|
|
499
|
-
category: [],
|
|
500
|
-
description: [],
|
|
501
|
-
name: [],
|
|
502
|
-
optional: [],
|
|
503
|
-
order: [],
|
|
504
|
-
parameters: (_) => (0, smithy_client_1._json)(_),
|
|
505
|
-
resourceId: [],
|
|
506
|
-
}));
|
|
507
|
-
b.m("POST").h(headers).b(body);
|
|
508
|
-
return b.build();
|
|
509
|
-
};
|
|
510
|
-
exports.se_PutLaunchActionCommand = se_PutLaunchActionCommand;
|
|
511
|
-
const se_RetryDataReplicationCommand = async (input, context) => {
|
|
512
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
513
|
-
const headers = {
|
|
514
|
-
"content-type": "application/json",
|
|
515
|
-
};
|
|
516
|
-
b.bp("/RetryDataReplication");
|
|
517
|
-
let body;
|
|
518
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
519
|
-
sourceServerID: [],
|
|
520
|
-
}));
|
|
521
|
-
b.m("POST").h(headers).b(body);
|
|
522
|
-
return b.build();
|
|
523
|
-
};
|
|
524
|
-
exports.se_RetryDataReplicationCommand = se_RetryDataReplicationCommand;
|
|
525
|
-
const se_ReverseReplicationCommand = async (input, context) => {
|
|
526
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
527
|
-
const headers = {
|
|
528
|
-
"content-type": "application/json",
|
|
529
|
-
};
|
|
530
|
-
b.bp("/ReverseReplication");
|
|
531
|
-
let body;
|
|
532
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
533
|
-
recoveryInstanceID: [],
|
|
534
|
-
}));
|
|
535
|
-
b.m("POST").h(headers).b(body);
|
|
536
|
-
return b.build();
|
|
537
|
-
};
|
|
538
|
-
exports.se_ReverseReplicationCommand = se_ReverseReplicationCommand;
|
|
539
|
-
const se_StartFailbackLaunchCommand = async (input, context) => {
|
|
540
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
541
|
-
const headers = {
|
|
542
|
-
"content-type": "application/json",
|
|
543
|
-
};
|
|
544
|
-
b.bp("/StartFailbackLaunch");
|
|
545
|
-
let body;
|
|
546
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
547
|
-
recoveryInstanceIDs: (_) => (0, smithy_client_1._json)(_),
|
|
548
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
549
|
-
}));
|
|
550
|
-
b.m("POST").h(headers).b(body);
|
|
551
|
-
return b.build();
|
|
552
|
-
};
|
|
553
|
-
exports.se_StartFailbackLaunchCommand = se_StartFailbackLaunchCommand;
|
|
554
|
-
const se_StartRecoveryCommand = async (input, context) => {
|
|
555
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
556
|
-
const headers = {
|
|
557
|
-
"content-type": "application/json",
|
|
558
|
-
};
|
|
559
|
-
b.bp("/StartRecovery");
|
|
560
|
-
let body;
|
|
561
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
562
|
-
isDrill: [],
|
|
563
|
-
sourceServers: (_) => (0, smithy_client_1._json)(_),
|
|
564
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
565
|
-
}));
|
|
566
|
-
b.m("POST").h(headers).b(body);
|
|
567
|
-
return b.build();
|
|
568
|
-
};
|
|
569
|
-
exports.se_StartRecoveryCommand = se_StartRecoveryCommand;
|
|
570
|
-
const se_StartReplicationCommand = async (input, context) => {
|
|
571
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
572
|
-
const headers = {
|
|
573
|
-
"content-type": "application/json",
|
|
574
|
-
};
|
|
575
|
-
b.bp("/StartReplication");
|
|
576
|
-
let body;
|
|
577
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
578
|
-
sourceServerID: [],
|
|
579
|
-
}));
|
|
580
|
-
b.m("POST").h(headers).b(body);
|
|
581
|
-
return b.build();
|
|
582
|
-
};
|
|
583
|
-
exports.se_StartReplicationCommand = se_StartReplicationCommand;
|
|
584
|
-
const se_StartSourceNetworkRecoveryCommand = async (input, context) => {
|
|
585
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
586
|
-
const headers = {
|
|
587
|
-
"content-type": "application/json",
|
|
588
|
-
};
|
|
589
|
-
b.bp("/StartSourceNetworkRecovery");
|
|
590
|
-
let body;
|
|
591
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
592
|
-
deployAsNew: [],
|
|
593
|
-
sourceNetworks: (_) => (0, smithy_client_1._json)(_),
|
|
594
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
595
|
-
}));
|
|
596
|
-
b.m("POST").h(headers).b(body);
|
|
597
|
-
return b.build();
|
|
598
|
-
};
|
|
599
|
-
exports.se_StartSourceNetworkRecoveryCommand = se_StartSourceNetworkRecoveryCommand;
|
|
600
|
-
const se_StartSourceNetworkReplicationCommand = async (input, context) => {
|
|
601
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
602
|
-
const headers = {
|
|
603
|
-
"content-type": "application/json",
|
|
604
|
-
};
|
|
605
|
-
b.bp("/StartSourceNetworkReplication");
|
|
606
|
-
let body;
|
|
607
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
608
|
-
sourceNetworkID: [],
|
|
609
|
-
}));
|
|
610
|
-
b.m("POST").h(headers).b(body);
|
|
611
|
-
return b.build();
|
|
612
|
-
};
|
|
613
|
-
exports.se_StartSourceNetworkReplicationCommand = se_StartSourceNetworkReplicationCommand;
|
|
614
|
-
const se_StopFailbackCommand = async (input, context) => {
|
|
615
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
616
|
-
const headers = {
|
|
617
|
-
"content-type": "application/json",
|
|
618
|
-
};
|
|
619
|
-
b.bp("/StopFailback");
|
|
620
|
-
let body;
|
|
621
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
622
|
-
recoveryInstanceID: [],
|
|
623
|
-
}));
|
|
624
|
-
b.m("POST").h(headers).b(body);
|
|
625
|
-
return b.build();
|
|
626
|
-
};
|
|
627
|
-
exports.se_StopFailbackCommand = se_StopFailbackCommand;
|
|
628
|
-
const se_StopReplicationCommand = async (input, context) => {
|
|
629
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
630
|
-
const headers = {
|
|
631
|
-
"content-type": "application/json",
|
|
632
|
-
};
|
|
633
|
-
b.bp("/StopReplication");
|
|
634
|
-
let body;
|
|
635
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
636
|
-
sourceServerID: [],
|
|
637
|
-
}));
|
|
638
|
-
b.m("POST").h(headers).b(body);
|
|
639
|
-
return b.build();
|
|
640
|
-
};
|
|
641
|
-
exports.se_StopReplicationCommand = se_StopReplicationCommand;
|
|
642
|
-
const se_StopSourceNetworkReplicationCommand = async (input, context) => {
|
|
643
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
644
|
-
const headers = {
|
|
645
|
-
"content-type": "application/json",
|
|
646
|
-
};
|
|
647
|
-
b.bp("/StopSourceNetworkReplication");
|
|
648
|
-
let body;
|
|
649
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
650
|
-
sourceNetworkID: [],
|
|
651
|
-
}));
|
|
652
|
-
b.m("POST").h(headers).b(body);
|
|
653
|
-
return b.build();
|
|
654
|
-
};
|
|
655
|
-
exports.se_StopSourceNetworkReplicationCommand = se_StopSourceNetworkReplicationCommand;
|
|
656
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
657
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
658
|
-
const headers = {
|
|
659
|
-
"content-type": "application/json",
|
|
660
|
-
};
|
|
661
|
-
b.bp("/tags/{resourceArn}");
|
|
662
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
663
|
-
let body;
|
|
664
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
665
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
666
|
-
}));
|
|
667
|
-
b.m("POST").h(headers).b(body);
|
|
668
|
-
return b.build();
|
|
669
|
-
};
|
|
670
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
671
|
-
const se_TerminateRecoveryInstancesCommand = async (input, context) => {
|
|
672
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
673
|
-
const headers = {
|
|
674
|
-
"content-type": "application/json",
|
|
675
|
-
};
|
|
676
|
-
b.bp("/TerminateRecoveryInstances");
|
|
677
|
-
let body;
|
|
678
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
679
|
-
recoveryInstanceIDs: (_) => (0, smithy_client_1._json)(_),
|
|
680
|
-
}));
|
|
681
|
-
b.m("POST").h(headers).b(body);
|
|
682
|
-
return b.build();
|
|
683
|
-
};
|
|
684
|
-
exports.se_TerminateRecoveryInstancesCommand = se_TerminateRecoveryInstancesCommand;
|
|
685
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
686
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
687
|
-
const headers = {};
|
|
688
|
-
b.bp("/tags/{resourceArn}");
|
|
689
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
690
|
-
const query = (0, smithy_client_1.map)({
|
|
691
|
-
[_tK]: [
|
|
692
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
693
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
694
|
-
],
|
|
695
|
-
});
|
|
696
|
-
let body;
|
|
697
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
698
|
-
return b.build();
|
|
699
|
-
};
|
|
700
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
701
|
-
const se_UpdateFailbackReplicationConfigurationCommand = async (input, context) => {
|
|
702
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
703
|
-
const headers = {
|
|
704
|
-
"content-type": "application/json",
|
|
705
|
-
};
|
|
706
|
-
b.bp("/UpdateFailbackReplicationConfiguration");
|
|
707
|
-
let body;
|
|
708
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
709
|
-
bandwidthThrottling: [],
|
|
710
|
-
name: [],
|
|
711
|
-
recoveryInstanceID: [],
|
|
712
|
-
usePrivateIP: [],
|
|
713
|
-
}));
|
|
714
|
-
b.m("POST").h(headers).b(body);
|
|
715
|
-
return b.build();
|
|
716
|
-
};
|
|
717
|
-
exports.se_UpdateFailbackReplicationConfigurationCommand = se_UpdateFailbackReplicationConfigurationCommand;
|
|
718
|
-
const se_UpdateLaunchConfigurationCommand = async (input, context) => {
|
|
719
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
720
|
-
const headers = {
|
|
721
|
-
"content-type": "application/json",
|
|
722
|
-
};
|
|
723
|
-
b.bp("/UpdateLaunchConfiguration");
|
|
724
|
-
let body;
|
|
725
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
726
|
-
copyPrivateIp: [],
|
|
727
|
-
copyTags: [],
|
|
728
|
-
launchDisposition: [],
|
|
729
|
-
launchIntoInstanceProperties: (_) => (0, smithy_client_1._json)(_),
|
|
730
|
-
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
731
|
-
name: [],
|
|
732
|
-
postLaunchEnabled: [],
|
|
733
|
-
sourceServerID: [],
|
|
734
|
-
targetInstanceTypeRightSizingMethod: [],
|
|
735
|
-
}));
|
|
736
|
-
b.m("POST").h(headers).b(body);
|
|
737
|
-
return b.build();
|
|
738
|
-
};
|
|
739
|
-
exports.se_UpdateLaunchConfigurationCommand = se_UpdateLaunchConfigurationCommand;
|
|
740
|
-
const se_UpdateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
741
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
742
|
-
const headers = {
|
|
743
|
-
"content-type": "application/json",
|
|
744
|
-
};
|
|
745
|
-
b.bp("/UpdateLaunchConfigurationTemplate");
|
|
746
|
-
let body;
|
|
747
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
748
|
-
copyPrivateIp: [],
|
|
749
|
-
copyTags: [],
|
|
750
|
-
exportBucketArn: [],
|
|
751
|
-
launchConfigurationTemplateID: [],
|
|
752
|
-
launchDisposition: [],
|
|
753
|
-
launchIntoSourceInstance: [],
|
|
754
|
-
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
755
|
-
postLaunchEnabled: [],
|
|
756
|
-
targetInstanceTypeRightSizingMethod: [],
|
|
757
|
-
}));
|
|
758
|
-
b.m("POST").h(headers).b(body);
|
|
759
|
-
return b.build();
|
|
760
|
-
};
|
|
761
|
-
exports.se_UpdateLaunchConfigurationTemplateCommand = se_UpdateLaunchConfigurationTemplateCommand;
|
|
762
|
-
const se_UpdateReplicationConfigurationCommand = async (input, context) => {
|
|
763
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
764
|
-
const headers = {
|
|
765
|
-
"content-type": "application/json",
|
|
766
|
-
};
|
|
767
|
-
b.bp("/UpdateReplicationConfiguration");
|
|
768
|
-
let body;
|
|
769
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
770
|
-
associateDefaultSecurityGroup: [],
|
|
771
|
-
autoReplicateNewDisks: [],
|
|
772
|
-
bandwidthThrottling: [],
|
|
773
|
-
createPublicIP: [],
|
|
774
|
-
dataPlaneRouting: [],
|
|
775
|
-
defaultLargeStagingDiskType: [],
|
|
776
|
-
ebsEncryption: [],
|
|
777
|
-
ebsEncryptionKeyArn: [],
|
|
778
|
-
name: [],
|
|
779
|
-
pitPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
780
|
-
replicatedDisks: (_) => (0, smithy_client_1._json)(_),
|
|
781
|
-
replicationServerInstanceType: [],
|
|
782
|
-
replicationServersSecurityGroupsIDs: (_) => (0, smithy_client_1._json)(_),
|
|
783
|
-
sourceServerID: [],
|
|
784
|
-
stagingAreaSubnetId: [],
|
|
785
|
-
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
786
|
-
useDedicatedReplicationServer: [],
|
|
787
|
-
}));
|
|
788
|
-
b.m("POST").h(headers).b(body);
|
|
789
|
-
return b.build();
|
|
790
|
-
};
|
|
791
|
-
exports.se_UpdateReplicationConfigurationCommand = se_UpdateReplicationConfigurationCommand;
|
|
792
|
-
const se_UpdateReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
793
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
794
|
-
const headers = {
|
|
795
|
-
"content-type": "application/json",
|
|
796
|
-
};
|
|
797
|
-
b.bp("/UpdateReplicationConfigurationTemplate");
|
|
798
|
-
let body;
|
|
799
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
800
|
-
arn: [],
|
|
801
|
-
associateDefaultSecurityGroup: [],
|
|
802
|
-
autoReplicateNewDisks: [],
|
|
803
|
-
bandwidthThrottling: [],
|
|
804
|
-
createPublicIP: [],
|
|
805
|
-
dataPlaneRouting: [],
|
|
806
|
-
defaultLargeStagingDiskType: [],
|
|
807
|
-
ebsEncryption: [],
|
|
808
|
-
ebsEncryptionKeyArn: [],
|
|
809
|
-
pitPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
810
|
-
replicationConfigurationTemplateID: [],
|
|
811
|
-
replicationServerInstanceType: [],
|
|
812
|
-
replicationServersSecurityGroupsIDs: (_) => (0, smithy_client_1._json)(_),
|
|
813
|
-
stagingAreaSubnetId: [],
|
|
814
|
-
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
815
|
-
useDedicatedReplicationServer: [],
|
|
816
|
-
}));
|
|
817
|
-
b.m("POST").h(headers).b(body);
|
|
818
|
-
return b.build();
|
|
819
|
-
};
|
|
820
|
-
exports.se_UpdateReplicationConfigurationTemplateCommand = se_UpdateReplicationConfigurationTemplateCommand;
|
|
821
|
-
const de_AssociateSourceNetworkStackCommand = async (output, context) => {
|
|
822
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
823
|
-
return de_AssociateSourceNetworkStackCommandError(output, context);
|
|
824
|
-
}
|
|
825
|
-
const contents = (0, smithy_client_1.map)({
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
});
|
|
828
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
829
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
830
|
-
job: smithy_client_1._json,
|
|
831
|
-
});
|
|
832
|
-
Object.assign(contents, doc);
|
|
833
|
-
return contents;
|
|
834
|
-
};
|
|
835
|
-
exports.de_AssociateSourceNetworkStackCommand = de_AssociateSourceNetworkStackCommand;
|
|
836
|
-
const de_AssociateSourceNetworkStackCommandError = async (output, context) => {
|
|
837
|
-
const parsedOutput = {
|
|
838
|
-
...output,
|
|
839
|
-
body: await parseErrorBody(output.body, context),
|
|
840
|
-
};
|
|
841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
|
-
switch (errorCode) {
|
|
843
|
-
case "ConflictException":
|
|
844
|
-
case "com.amazonaws.drs#ConflictException":
|
|
845
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
846
|
-
case "InternalServerException":
|
|
847
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ResourceNotFoundException":
|
|
850
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ServiceQuotaExceededException":
|
|
853
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
854
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ThrottlingException":
|
|
856
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
|
-
case "UninitializedAccountException":
|
|
859
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
860
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ValidationException":
|
|
862
|
-
case "com.amazonaws.drs#ValidationException":
|
|
863
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
864
|
-
default:
|
|
865
|
-
const parsedBody = parsedOutput.body;
|
|
866
|
-
return throwDefaultError({
|
|
867
|
-
output,
|
|
868
|
-
parsedBody,
|
|
869
|
-
errorCode,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
const de_CreateExtendedSourceServerCommand = async (output, context) => {
|
|
874
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
875
|
-
return de_CreateExtendedSourceServerCommandError(output, context);
|
|
876
|
-
}
|
|
877
|
-
const contents = (0, smithy_client_1.map)({
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
});
|
|
880
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
881
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
882
|
-
sourceServer: smithy_client_1._json,
|
|
883
|
-
});
|
|
884
|
-
Object.assign(contents, doc);
|
|
885
|
-
return contents;
|
|
886
|
-
};
|
|
887
|
-
exports.de_CreateExtendedSourceServerCommand = de_CreateExtendedSourceServerCommand;
|
|
888
|
-
const de_CreateExtendedSourceServerCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "AccessDeniedException":
|
|
896
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
897
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
898
|
-
case "InternalServerException":
|
|
899
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
900
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ResourceNotFoundException":
|
|
902
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
903
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
904
|
-
case "ServiceQuotaExceededException":
|
|
905
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
906
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
907
|
-
case "ThrottlingException":
|
|
908
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
909
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
910
|
-
case "UninitializedAccountException":
|
|
911
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
912
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ValidationException":
|
|
914
|
-
case "com.amazonaws.drs#ValidationException":
|
|
915
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
|
-
default:
|
|
917
|
-
const parsedBody = parsedOutput.body;
|
|
918
|
-
return throwDefaultError({
|
|
919
|
-
output,
|
|
920
|
-
parsedBody,
|
|
921
|
-
errorCode,
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
const de_CreateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
926
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
927
|
-
return de_CreateLaunchConfigurationTemplateCommandError(output, context);
|
|
928
|
-
}
|
|
929
|
-
const contents = (0, smithy_client_1.map)({
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
});
|
|
932
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
933
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
934
|
-
launchConfigurationTemplate: smithy_client_1._json,
|
|
935
|
-
});
|
|
936
|
-
Object.assign(contents, doc);
|
|
937
|
-
return contents;
|
|
938
|
-
};
|
|
939
|
-
exports.de_CreateLaunchConfigurationTemplateCommand = de_CreateLaunchConfigurationTemplateCommand;
|
|
940
|
-
const de_CreateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context),
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "AccessDeniedException":
|
|
948
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
949
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
950
|
-
case "InternalServerException":
|
|
951
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
952
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ServiceQuotaExceededException":
|
|
954
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
955
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ThrottlingException":
|
|
957
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
958
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
959
|
-
case "UninitializedAccountException":
|
|
960
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
961
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ValidationException":
|
|
963
|
-
case "com.amazonaws.drs#ValidationException":
|
|
964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode,
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
const de_CreateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
975
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
976
|
-
return de_CreateReplicationConfigurationTemplateCommandError(output, context);
|
|
977
|
-
}
|
|
978
|
-
const contents = (0, smithy_client_1.map)({
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
});
|
|
981
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
982
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
983
|
-
arn: smithy_client_1.expectString,
|
|
984
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
985
|
-
autoReplicateNewDisks: smithy_client_1.expectBoolean,
|
|
986
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
987
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
988
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
989
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
990
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
991
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
992
|
-
pitPolicy: smithy_client_1._json,
|
|
993
|
-
replicationConfigurationTemplateID: smithy_client_1.expectString,
|
|
994
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
995
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
996
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
997
|
-
stagingAreaTags: smithy_client_1._json,
|
|
998
|
-
tags: smithy_client_1._json,
|
|
999
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
1000
|
-
});
|
|
1001
|
-
Object.assign(contents, doc);
|
|
1002
|
-
return contents;
|
|
1003
|
-
};
|
|
1004
|
-
exports.de_CreateReplicationConfigurationTemplateCommand = de_CreateReplicationConfigurationTemplateCommand;
|
|
1005
|
-
const de_CreateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1006
|
-
const parsedOutput = {
|
|
1007
|
-
...output,
|
|
1008
|
-
body: await parseErrorBody(output.body, context),
|
|
1009
|
-
};
|
|
1010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
|
-
switch (errorCode) {
|
|
1012
|
-
case "AccessDeniedException":
|
|
1013
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "InternalServerException":
|
|
1016
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ServiceQuotaExceededException":
|
|
1019
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1020
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "ThrottlingException":
|
|
1022
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1023
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "UninitializedAccountException":
|
|
1025
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1026
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ValidationException":
|
|
1028
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1029
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1030
|
-
default:
|
|
1031
|
-
const parsedBody = parsedOutput.body;
|
|
1032
|
-
return throwDefaultError({
|
|
1033
|
-
output,
|
|
1034
|
-
parsedBody,
|
|
1035
|
-
errorCode,
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
};
|
|
1039
|
-
const de_CreateSourceNetworkCommand = async (output, context) => {
|
|
1040
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1041
|
-
return de_CreateSourceNetworkCommandError(output, context);
|
|
1042
|
-
}
|
|
1043
|
-
const contents = (0, smithy_client_1.map)({
|
|
1044
|
-
$metadata: deserializeMetadata(output),
|
|
1045
|
-
});
|
|
1046
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1047
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1048
|
-
sourceNetworkID: smithy_client_1.expectString,
|
|
1049
|
-
});
|
|
1050
|
-
Object.assign(contents, doc);
|
|
1051
|
-
return contents;
|
|
1052
|
-
};
|
|
1053
|
-
exports.de_CreateSourceNetworkCommand = de_CreateSourceNetworkCommand;
|
|
1054
|
-
const de_CreateSourceNetworkCommandError = async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context),
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "ConflictException":
|
|
1062
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1063
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "InternalServerException":
|
|
1065
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ResourceNotFoundException":
|
|
1068
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ServiceQuotaExceededException":
|
|
1071
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1072
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ThrottlingException":
|
|
1074
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1075
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "UninitializedAccountException":
|
|
1077
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1078
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ValidationException":
|
|
1080
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1081
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode,
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
const de_DeleteJobCommand = async (output, context) => {
|
|
1092
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1093
|
-
return de_DeleteJobCommandError(output, context);
|
|
1094
|
-
}
|
|
1095
|
-
const contents = (0, smithy_client_1.map)({
|
|
1096
|
-
$metadata: deserializeMetadata(output),
|
|
1097
|
-
});
|
|
1098
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1099
|
-
return contents;
|
|
1100
|
-
};
|
|
1101
|
-
exports.de_DeleteJobCommand = de_DeleteJobCommand;
|
|
1102
|
-
const de_DeleteJobCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "ConflictException":
|
|
1110
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1111
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "InternalServerException":
|
|
1113
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1114
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ResourceNotFoundException":
|
|
1116
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1117
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ThrottlingException":
|
|
1119
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1120
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "UninitializedAccountException":
|
|
1122
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1123
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1124
|
-
default:
|
|
1125
|
-
const parsedBody = parsedOutput.body;
|
|
1126
|
-
return throwDefaultError({
|
|
1127
|
-
output,
|
|
1128
|
-
parsedBody,
|
|
1129
|
-
errorCode,
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
|
-
const de_DeleteLaunchActionCommand = async (output, context) => {
|
|
1134
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1135
|
-
return de_DeleteLaunchActionCommandError(output, context);
|
|
1136
|
-
}
|
|
1137
|
-
const contents = (0, smithy_client_1.map)({
|
|
1138
|
-
$metadata: deserializeMetadata(output),
|
|
1139
|
-
});
|
|
1140
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1141
|
-
return contents;
|
|
1142
|
-
};
|
|
1143
|
-
exports.de_DeleteLaunchActionCommand = de_DeleteLaunchActionCommand;
|
|
1144
|
-
const de_DeleteLaunchActionCommandError = async (output, context) => {
|
|
1145
|
-
const parsedOutput = {
|
|
1146
|
-
...output,
|
|
1147
|
-
body: await parseErrorBody(output.body, context),
|
|
1148
|
-
};
|
|
1149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
-
switch (errorCode) {
|
|
1151
|
-
case "InternalServerException":
|
|
1152
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ResourceNotFoundException":
|
|
1155
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ThrottlingException":
|
|
1158
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1159
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "UninitializedAccountException":
|
|
1161
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1162
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ValidationException":
|
|
1164
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
|
-
default:
|
|
1167
|
-
const parsedBody = parsedOutput.body;
|
|
1168
|
-
return throwDefaultError({
|
|
1169
|
-
output,
|
|
1170
|
-
parsedBody,
|
|
1171
|
-
errorCode,
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
};
|
|
1175
|
-
const de_DeleteLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
1176
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1177
|
-
return de_DeleteLaunchConfigurationTemplateCommandError(output, context);
|
|
1178
|
-
}
|
|
1179
|
-
const contents = (0, smithy_client_1.map)({
|
|
1180
|
-
$metadata: deserializeMetadata(output),
|
|
1181
|
-
});
|
|
1182
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1183
|
-
return contents;
|
|
1184
|
-
};
|
|
1185
|
-
exports.de_DeleteLaunchConfigurationTemplateCommand = de_DeleteLaunchConfigurationTemplateCommand;
|
|
1186
|
-
const de_DeleteLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
1187
|
-
const parsedOutput = {
|
|
1188
|
-
...output,
|
|
1189
|
-
body: await parseErrorBody(output.body, context),
|
|
1190
|
-
};
|
|
1191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
|
-
switch (errorCode) {
|
|
1193
|
-
case "ConflictException":
|
|
1194
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1195
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "InternalServerException":
|
|
1197
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1198
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "ResourceNotFoundException":
|
|
1200
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1201
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ThrottlingException":
|
|
1203
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1204
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "UninitializedAccountException":
|
|
1206
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1207
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1208
|
-
default:
|
|
1209
|
-
const parsedBody = parsedOutput.body;
|
|
1210
|
-
return throwDefaultError({
|
|
1211
|
-
output,
|
|
1212
|
-
parsedBody,
|
|
1213
|
-
errorCode,
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
const de_DeleteRecoveryInstanceCommand = async (output, context) => {
|
|
1218
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1219
|
-
return de_DeleteRecoveryInstanceCommandError(output, context);
|
|
1220
|
-
}
|
|
1221
|
-
const contents = (0, smithy_client_1.map)({
|
|
1222
|
-
$metadata: deserializeMetadata(output),
|
|
1223
|
-
});
|
|
1224
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1225
|
-
return contents;
|
|
1226
|
-
};
|
|
1227
|
-
exports.de_DeleteRecoveryInstanceCommand = de_DeleteRecoveryInstanceCommand;
|
|
1228
|
-
const de_DeleteRecoveryInstanceCommandError = async (output, context) => {
|
|
1229
|
-
const parsedOutput = {
|
|
1230
|
-
...output,
|
|
1231
|
-
body: await parseErrorBody(output.body, context),
|
|
1232
|
-
};
|
|
1233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
-
switch (errorCode) {
|
|
1235
|
-
case "AccessDeniedException":
|
|
1236
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1237
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ConflictException":
|
|
1239
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1240
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "InternalServerException":
|
|
1242
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1243
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "ThrottlingException":
|
|
1245
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1246
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "UninitializedAccountException":
|
|
1248
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1249
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1250
|
-
default:
|
|
1251
|
-
const parsedBody = parsedOutput.body;
|
|
1252
|
-
return throwDefaultError({
|
|
1253
|
-
output,
|
|
1254
|
-
parsedBody,
|
|
1255
|
-
errorCode,
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
};
|
|
1259
|
-
const de_DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1260
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1261
|
-
return de_DeleteReplicationConfigurationTemplateCommandError(output, context);
|
|
1262
|
-
}
|
|
1263
|
-
const contents = (0, smithy_client_1.map)({
|
|
1264
|
-
$metadata: deserializeMetadata(output),
|
|
1265
|
-
});
|
|
1266
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1267
|
-
return contents;
|
|
1268
|
-
};
|
|
1269
|
-
exports.de_DeleteReplicationConfigurationTemplateCommand = de_DeleteReplicationConfigurationTemplateCommand;
|
|
1270
|
-
const de_DeleteReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context),
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "ConflictException":
|
|
1278
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1279
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "InternalServerException":
|
|
1281
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1282
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ResourceNotFoundException":
|
|
1284
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ThrottlingException":
|
|
1287
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1288
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "UninitializedAccountException":
|
|
1290
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1291
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode,
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
};
|
|
1301
|
-
const de_DeleteSourceNetworkCommand = async (output, context) => {
|
|
1302
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1303
|
-
return de_DeleteSourceNetworkCommandError(output, context);
|
|
1304
|
-
}
|
|
1305
|
-
const contents = (0, smithy_client_1.map)({
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
});
|
|
1308
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1309
|
-
return contents;
|
|
1310
|
-
};
|
|
1311
|
-
exports.de_DeleteSourceNetworkCommand = de_DeleteSourceNetworkCommand;
|
|
1312
|
-
const de_DeleteSourceNetworkCommandError = async (output, context) => {
|
|
1313
|
-
const parsedOutput = {
|
|
1314
|
-
...output,
|
|
1315
|
-
body: await parseErrorBody(output.body, context),
|
|
1316
|
-
};
|
|
1317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
-
switch (errorCode) {
|
|
1319
|
-
case "ConflictException":
|
|
1320
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1321
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "InternalServerException":
|
|
1323
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ResourceNotFoundException":
|
|
1326
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ThrottlingException":
|
|
1329
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1330
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "UninitializedAccountException":
|
|
1332
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1333
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode,
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
|
-
const de_DeleteSourceServerCommand = async (output, context) => {
|
|
1344
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1345
|
-
return de_DeleteSourceServerCommandError(output, context);
|
|
1346
|
-
}
|
|
1347
|
-
const contents = (0, smithy_client_1.map)({
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
});
|
|
1350
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1351
|
-
return contents;
|
|
1352
|
-
};
|
|
1353
|
-
exports.de_DeleteSourceServerCommand = de_DeleteSourceServerCommand;
|
|
1354
|
-
const de_DeleteSourceServerCommandError = async (output, context) => {
|
|
1355
|
-
const parsedOutput = {
|
|
1356
|
-
...output,
|
|
1357
|
-
body: await parseErrorBody(output.body, context),
|
|
1358
|
-
};
|
|
1359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
|
-
switch (errorCode) {
|
|
1361
|
-
case "ConflictException":
|
|
1362
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1363
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "InternalServerException":
|
|
1365
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1366
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ResourceNotFoundException":
|
|
1368
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1369
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "ThrottlingException":
|
|
1371
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1372
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "UninitializedAccountException":
|
|
1374
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1375
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1376
|
-
default:
|
|
1377
|
-
const parsedBody = parsedOutput.body;
|
|
1378
|
-
return throwDefaultError({
|
|
1379
|
-
output,
|
|
1380
|
-
parsedBody,
|
|
1381
|
-
errorCode,
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
|
-
const de_DescribeJobLogItemsCommand = async (output, context) => {
|
|
1386
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1387
|
-
return de_DescribeJobLogItemsCommandError(output, context);
|
|
1388
|
-
}
|
|
1389
|
-
const contents = (0, smithy_client_1.map)({
|
|
1390
|
-
$metadata: deserializeMetadata(output),
|
|
1391
|
-
});
|
|
1392
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1393
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1394
|
-
items: smithy_client_1._json,
|
|
1395
|
-
nextToken: smithy_client_1.expectString,
|
|
1396
|
-
});
|
|
1397
|
-
Object.assign(contents, doc);
|
|
1398
|
-
return contents;
|
|
1399
|
-
};
|
|
1400
|
-
exports.de_DescribeJobLogItemsCommand = de_DescribeJobLogItemsCommand;
|
|
1401
|
-
const de_DescribeJobLogItemsCommandError = async (output, context) => {
|
|
1402
|
-
const parsedOutput = {
|
|
1403
|
-
...output,
|
|
1404
|
-
body: await parseErrorBody(output.body, context),
|
|
1405
|
-
};
|
|
1406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
|
-
switch (errorCode) {
|
|
1408
|
-
case "InternalServerException":
|
|
1409
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1410
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ThrottlingException":
|
|
1412
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1413
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "UninitializedAccountException":
|
|
1415
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1416
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ValidationException":
|
|
1418
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1420
|
-
default:
|
|
1421
|
-
const parsedBody = parsedOutput.body;
|
|
1422
|
-
return throwDefaultError({
|
|
1423
|
-
output,
|
|
1424
|
-
parsedBody,
|
|
1425
|
-
errorCode,
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
|
-
const de_DescribeJobsCommand = async (output, context) => {
|
|
1430
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1431
|
-
return de_DescribeJobsCommandError(output, context);
|
|
1432
|
-
}
|
|
1433
|
-
const contents = (0, smithy_client_1.map)({
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
});
|
|
1436
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1437
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1438
|
-
items: smithy_client_1._json,
|
|
1439
|
-
nextToken: smithy_client_1.expectString,
|
|
1440
|
-
});
|
|
1441
|
-
Object.assign(contents, doc);
|
|
1442
|
-
return contents;
|
|
1443
|
-
};
|
|
1444
|
-
exports.de_DescribeJobsCommand = de_DescribeJobsCommand;
|
|
1445
|
-
const de_DescribeJobsCommandError = async (output, context) => {
|
|
1446
|
-
const parsedOutput = {
|
|
1447
|
-
...output,
|
|
1448
|
-
body: await parseErrorBody(output.body, context),
|
|
1449
|
-
};
|
|
1450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
-
switch (errorCode) {
|
|
1452
|
-
case "InternalServerException":
|
|
1453
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ThrottlingException":
|
|
1456
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1457
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "UninitializedAccountException":
|
|
1459
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1460
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ValidationException":
|
|
1462
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1464
|
-
default:
|
|
1465
|
-
const parsedBody = parsedOutput.body;
|
|
1466
|
-
return throwDefaultError({
|
|
1467
|
-
output,
|
|
1468
|
-
parsedBody,
|
|
1469
|
-
errorCode,
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
const de_DescribeLaunchConfigurationTemplatesCommand = async (output, context) => {
|
|
1474
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1475
|
-
return de_DescribeLaunchConfigurationTemplatesCommandError(output, context);
|
|
1476
|
-
}
|
|
1477
|
-
const contents = (0, smithy_client_1.map)({
|
|
1478
|
-
$metadata: deserializeMetadata(output),
|
|
1479
|
-
});
|
|
1480
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1481
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1482
|
-
items: smithy_client_1._json,
|
|
1483
|
-
nextToken: smithy_client_1.expectString,
|
|
1484
|
-
});
|
|
1485
|
-
Object.assign(contents, doc);
|
|
1486
|
-
return contents;
|
|
1487
|
-
};
|
|
1488
|
-
exports.de_DescribeLaunchConfigurationTemplatesCommand = de_DescribeLaunchConfigurationTemplatesCommand;
|
|
1489
|
-
const de_DescribeLaunchConfigurationTemplatesCommandError = async (output, context) => {
|
|
1490
|
-
const parsedOutput = {
|
|
1491
|
-
...output,
|
|
1492
|
-
body: await parseErrorBody(output.body, context),
|
|
1493
|
-
};
|
|
1494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
-
switch (errorCode) {
|
|
1496
|
-
case "InternalServerException":
|
|
1497
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ResourceNotFoundException":
|
|
1500
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ThrottlingException":
|
|
1503
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "UninitializedAccountException":
|
|
1506
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1507
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ValidationException":
|
|
1509
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1510
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1511
|
-
default:
|
|
1512
|
-
const parsedBody = parsedOutput.body;
|
|
1513
|
-
return throwDefaultError({
|
|
1514
|
-
output,
|
|
1515
|
-
parsedBody,
|
|
1516
|
-
errorCode,
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
};
|
|
1520
|
-
const de_DescribeRecoveryInstancesCommand = async (output, context) => {
|
|
1521
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1522
|
-
return de_DescribeRecoveryInstancesCommandError(output, context);
|
|
1523
|
-
}
|
|
1524
|
-
const contents = (0, smithy_client_1.map)({
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
});
|
|
1527
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1528
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1529
|
-
items: smithy_client_1._json,
|
|
1530
|
-
nextToken: smithy_client_1.expectString,
|
|
1531
|
-
});
|
|
1532
|
-
Object.assign(contents, doc);
|
|
1533
|
-
return contents;
|
|
1534
|
-
};
|
|
1535
|
-
exports.de_DescribeRecoveryInstancesCommand = de_DescribeRecoveryInstancesCommand;
|
|
1536
|
-
const de_DescribeRecoveryInstancesCommandError = async (output, context) => {
|
|
1537
|
-
const parsedOutput = {
|
|
1538
|
-
...output,
|
|
1539
|
-
body: await parseErrorBody(output.body, context),
|
|
1540
|
-
};
|
|
1541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
|
-
switch (errorCode) {
|
|
1543
|
-
case "AccessDeniedException":
|
|
1544
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1545
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "InternalServerException":
|
|
1547
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ThrottlingException":
|
|
1550
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1551
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "UninitializedAccountException":
|
|
1553
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1554
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1555
|
-
default:
|
|
1556
|
-
const parsedBody = parsedOutput.body;
|
|
1557
|
-
return throwDefaultError({
|
|
1558
|
-
output,
|
|
1559
|
-
parsedBody,
|
|
1560
|
-
errorCode,
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
};
|
|
1564
|
-
const de_DescribeRecoverySnapshotsCommand = async (output, context) => {
|
|
1565
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1566
|
-
return de_DescribeRecoverySnapshotsCommandError(output, context);
|
|
1567
|
-
}
|
|
1568
|
-
const contents = (0, smithy_client_1.map)({
|
|
1569
|
-
$metadata: deserializeMetadata(output),
|
|
1570
|
-
});
|
|
1571
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1572
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1573
|
-
items: smithy_client_1._json,
|
|
1574
|
-
nextToken: smithy_client_1.expectString,
|
|
1575
|
-
});
|
|
1576
|
-
Object.assign(contents, doc);
|
|
1577
|
-
return contents;
|
|
1578
|
-
};
|
|
1579
|
-
exports.de_DescribeRecoverySnapshotsCommand = de_DescribeRecoverySnapshotsCommand;
|
|
1580
|
-
const de_DescribeRecoverySnapshotsCommandError = async (output, context) => {
|
|
1581
|
-
const parsedOutput = {
|
|
1582
|
-
...output,
|
|
1583
|
-
body: await parseErrorBody(output.body, context),
|
|
1584
|
-
};
|
|
1585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
|
-
switch (errorCode) {
|
|
1587
|
-
case "AccessDeniedException":
|
|
1588
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1589
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "InternalServerException":
|
|
1591
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1592
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ThrottlingException":
|
|
1594
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1595
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "UninitializedAccountException":
|
|
1597
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1598
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1599
|
-
case "ValidationException":
|
|
1600
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1601
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1602
|
-
default:
|
|
1603
|
-
const parsedBody = parsedOutput.body;
|
|
1604
|
-
return throwDefaultError({
|
|
1605
|
-
output,
|
|
1606
|
-
parsedBody,
|
|
1607
|
-
errorCode,
|
|
1608
|
-
});
|
|
1609
|
-
}
|
|
1610
|
-
};
|
|
1611
|
-
const de_DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
1612
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1613
|
-
return de_DescribeReplicationConfigurationTemplatesCommandError(output, context);
|
|
1614
|
-
}
|
|
1615
|
-
const contents = (0, smithy_client_1.map)({
|
|
1616
|
-
$metadata: deserializeMetadata(output),
|
|
1617
|
-
});
|
|
1618
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1619
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1620
|
-
items: smithy_client_1._json,
|
|
1621
|
-
nextToken: smithy_client_1.expectString,
|
|
1622
|
-
});
|
|
1623
|
-
Object.assign(contents, doc);
|
|
1624
|
-
return contents;
|
|
1625
|
-
};
|
|
1626
|
-
exports.de_DescribeReplicationConfigurationTemplatesCommand = de_DescribeReplicationConfigurationTemplatesCommand;
|
|
1627
|
-
const de_DescribeReplicationConfigurationTemplatesCommandError = async (output, context) => {
|
|
1628
|
-
const parsedOutput = {
|
|
1629
|
-
...output,
|
|
1630
|
-
body: await parseErrorBody(output.body, context),
|
|
1631
|
-
};
|
|
1632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
-
switch (errorCode) {
|
|
1634
|
-
case "InternalServerException":
|
|
1635
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1636
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ResourceNotFoundException":
|
|
1638
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1639
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ThrottlingException":
|
|
1641
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1642
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "UninitializedAccountException":
|
|
1644
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1645
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ValidationException":
|
|
1647
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1649
|
-
default:
|
|
1650
|
-
const parsedBody = parsedOutput.body;
|
|
1651
|
-
return throwDefaultError({
|
|
1652
|
-
output,
|
|
1653
|
-
parsedBody,
|
|
1654
|
-
errorCode,
|
|
1655
|
-
});
|
|
1656
|
-
}
|
|
1657
|
-
};
|
|
1658
|
-
const de_DescribeSourceNetworksCommand = async (output, context) => {
|
|
1659
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1660
|
-
return de_DescribeSourceNetworksCommandError(output, context);
|
|
1661
|
-
}
|
|
1662
|
-
const contents = (0, smithy_client_1.map)({
|
|
1663
|
-
$metadata: deserializeMetadata(output),
|
|
1664
|
-
});
|
|
1665
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1666
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1667
|
-
items: (_) => de_SourceNetworksList(_, context),
|
|
1668
|
-
nextToken: smithy_client_1.expectString,
|
|
1669
|
-
});
|
|
1670
|
-
Object.assign(contents, doc);
|
|
1671
|
-
return contents;
|
|
1672
|
-
};
|
|
1673
|
-
exports.de_DescribeSourceNetworksCommand = de_DescribeSourceNetworksCommand;
|
|
1674
|
-
const de_DescribeSourceNetworksCommandError = async (output, context) => {
|
|
1675
|
-
const parsedOutput = {
|
|
1676
|
-
...output,
|
|
1677
|
-
body: await parseErrorBody(output.body, context),
|
|
1678
|
-
};
|
|
1679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1680
|
-
switch (errorCode) {
|
|
1681
|
-
case "InternalServerException":
|
|
1682
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1683
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ThrottlingException":
|
|
1685
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1686
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "UninitializedAccountException":
|
|
1688
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1689
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ValidationException":
|
|
1691
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1692
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1693
|
-
default:
|
|
1694
|
-
const parsedBody = parsedOutput.body;
|
|
1695
|
-
return throwDefaultError({
|
|
1696
|
-
output,
|
|
1697
|
-
parsedBody,
|
|
1698
|
-
errorCode,
|
|
1699
|
-
});
|
|
1700
|
-
}
|
|
1701
|
-
};
|
|
1702
|
-
const de_DescribeSourceServersCommand = async (output, context) => {
|
|
1703
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
-
return de_DescribeSourceServersCommandError(output, context);
|
|
1705
|
-
}
|
|
1706
|
-
const contents = (0, smithy_client_1.map)({
|
|
1707
|
-
$metadata: deserializeMetadata(output),
|
|
1708
|
-
});
|
|
1709
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1710
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1711
|
-
items: smithy_client_1._json,
|
|
1712
|
-
nextToken: smithy_client_1.expectString,
|
|
1713
|
-
});
|
|
1714
|
-
Object.assign(contents, doc);
|
|
1715
|
-
return contents;
|
|
1716
|
-
};
|
|
1717
|
-
exports.de_DescribeSourceServersCommand = de_DescribeSourceServersCommand;
|
|
1718
|
-
const de_DescribeSourceServersCommandError = async (output, context) => {
|
|
1719
|
-
const parsedOutput = {
|
|
1720
|
-
...output,
|
|
1721
|
-
body: await parseErrorBody(output.body, context),
|
|
1722
|
-
};
|
|
1723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
|
-
switch (errorCode) {
|
|
1725
|
-
case "InternalServerException":
|
|
1726
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1727
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ThrottlingException":
|
|
1729
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1730
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "UninitializedAccountException":
|
|
1732
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1733
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ValidationException":
|
|
1735
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1736
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody,
|
|
1742
|
-
errorCode,
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
};
|
|
1746
|
-
const de_DisconnectRecoveryInstanceCommand = async (output, context) => {
|
|
1747
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
|
-
return de_DisconnectRecoveryInstanceCommandError(output, context);
|
|
1749
|
-
}
|
|
1750
|
-
const contents = (0, smithy_client_1.map)({
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
});
|
|
1753
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1754
|
-
return contents;
|
|
1755
|
-
};
|
|
1756
|
-
exports.de_DisconnectRecoveryInstanceCommand = de_DisconnectRecoveryInstanceCommand;
|
|
1757
|
-
const de_DisconnectRecoveryInstanceCommandError = async (output, context) => {
|
|
1758
|
-
const parsedOutput = {
|
|
1759
|
-
...output,
|
|
1760
|
-
body: await parseErrorBody(output.body, context),
|
|
1761
|
-
};
|
|
1762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
|
-
switch (errorCode) {
|
|
1764
|
-
case "AccessDeniedException":
|
|
1765
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1766
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ConflictException":
|
|
1768
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1769
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "InternalServerException":
|
|
1771
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1772
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "ResourceNotFoundException":
|
|
1774
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1775
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ThrottlingException":
|
|
1777
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1778
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "UninitializedAccountException":
|
|
1780
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1781
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1782
|
-
default:
|
|
1783
|
-
const parsedBody = parsedOutput.body;
|
|
1784
|
-
return throwDefaultError({
|
|
1785
|
-
output,
|
|
1786
|
-
parsedBody,
|
|
1787
|
-
errorCode,
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1790
|
-
};
|
|
1791
|
-
const de_DisconnectSourceServerCommand = async (output, context) => {
|
|
1792
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1793
|
-
return de_DisconnectSourceServerCommandError(output, context);
|
|
1794
|
-
}
|
|
1795
|
-
const contents = (0, smithy_client_1.map)({
|
|
1796
|
-
$metadata: deserializeMetadata(output),
|
|
1797
|
-
});
|
|
1798
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1799
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1800
|
-
agentVersion: smithy_client_1.expectString,
|
|
1801
|
-
arn: smithy_client_1.expectString,
|
|
1802
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
1803
|
-
lastLaunchResult: smithy_client_1.expectString,
|
|
1804
|
-
lifeCycle: smithy_client_1._json,
|
|
1805
|
-
recoveryInstanceId: smithy_client_1.expectString,
|
|
1806
|
-
replicationDirection: smithy_client_1.expectString,
|
|
1807
|
-
reversedDirectionSourceServerArn: smithy_client_1.expectString,
|
|
1808
|
-
sourceCloudProperties: smithy_client_1._json,
|
|
1809
|
-
sourceNetworkID: smithy_client_1.expectString,
|
|
1810
|
-
sourceProperties: smithy_client_1._json,
|
|
1811
|
-
sourceServerID: smithy_client_1.expectString,
|
|
1812
|
-
stagingArea: smithy_client_1._json,
|
|
1813
|
-
tags: smithy_client_1._json,
|
|
1814
|
-
});
|
|
1815
|
-
Object.assign(contents, doc);
|
|
1816
|
-
return contents;
|
|
1817
|
-
};
|
|
1818
|
-
exports.de_DisconnectSourceServerCommand = de_DisconnectSourceServerCommand;
|
|
1819
|
-
const de_DisconnectSourceServerCommandError = async (output, context) => {
|
|
1820
|
-
const parsedOutput = {
|
|
1821
|
-
...output,
|
|
1822
|
-
body: await parseErrorBody(output.body, context),
|
|
1823
|
-
};
|
|
1824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
|
-
switch (errorCode) {
|
|
1826
|
-
case "ConflictException":
|
|
1827
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1828
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "InternalServerException":
|
|
1830
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1831
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "ResourceNotFoundException":
|
|
1833
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1834
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ThrottlingException":
|
|
1836
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1837
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "UninitializedAccountException":
|
|
1839
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1840
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1841
|
-
default:
|
|
1842
|
-
const parsedBody = parsedOutput.body;
|
|
1843
|
-
return throwDefaultError({
|
|
1844
|
-
output,
|
|
1845
|
-
parsedBody,
|
|
1846
|
-
errorCode,
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
};
|
|
1850
|
-
const de_ExportSourceNetworkCfnTemplateCommand = async (output, context) => {
|
|
1851
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1852
|
-
return de_ExportSourceNetworkCfnTemplateCommandError(output, context);
|
|
1853
|
-
}
|
|
1854
|
-
const contents = (0, smithy_client_1.map)({
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
});
|
|
1857
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1858
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1859
|
-
s3DestinationUrl: smithy_client_1.expectString,
|
|
1860
|
-
});
|
|
1861
|
-
Object.assign(contents, doc);
|
|
1862
|
-
return contents;
|
|
1863
|
-
};
|
|
1864
|
-
exports.de_ExportSourceNetworkCfnTemplateCommand = de_ExportSourceNetworkCfnTemplateCommand;
|
|
1865
|
-
const de_ExportSourceNetworkCfnTemplateCommandError = async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context),
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "ConflictException":
|
|
1873
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1874
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "InternalServerException":
|
|
1876
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1877
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "ResourceNotFoundException":
|
|
1879
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "ThrottlingException":
|
|
1882
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1883
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "UninitializedAccountException":
|
|
1885
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1886
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "ValidationException":
|
|
1888
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1889
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1890
|
-
default:
|
|
1891
|
-
const parsedBody = parsedOutput.body;
|
|
1892
|
-
return throwDefaultError({
|
|
1893
|
-
output,
|
|
1894
|
-
parsedBody,
|
|
1895
|
-
errorCode,
|
|
1896
|
-
});
|
|
1897
|
-
}
|
|
1898
|
-
};
|
|
1899
|
-
const de_GetFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
1900
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1901
|
-
return de_GetFailbackReplicationConfigurationCommandError(output, context);
|
|
1902
|
-
}
|
|
1903
|
-
const contents = (0, smithy_client_1.map)({
|
|
1904
|
-
$metadata: deserializeMetadata(output),
|
|
1905
|
-
});
|
|
1906
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1907
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1908
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
1909
|
-
name: smithy_client_1.expectString,
|
|
1910
|
-
recoveryInstanceID: smithy_client_1.expectString,
|
|
1911
|
-
usePrivateIP: smithy_client_1.expectBoolean,
|
|
1912
|
-
});
|
|
1913
|
-
Object.assign(contents, doc);
|
|
1914
|
-
return contents;
|
|
1915
|
-
};
|
|
1916
|
-
exports.de_GetFailbackReplicationConfigurationCommand = de_GetFailbackReplicationConfigurationCommand;
|
|
1917
|
-
const de_GetFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
1918
|
-
const parsedOutput = {
|
|
1919
|
-
...output,
|
|
1920
|
-
body: await parseErrorBody(output.body, context),
|
|
1921
|
-
};
|
|
1922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1923
|
-
switch (errorCode) {
|
|
1924
|
-
case "InternalServerException":
|
|
1925
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1926
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "ResourceNotFoundException":
|
|
1928
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1929
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1930
|
-
case "ThrottlingException":
|
|
1931
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1932
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1933
|
-
case "UninitializedAccountException":
|
|
1934
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1935
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1936
|
-
default:
|
|
1937
|
-
const parsedBody = parsedOutput.body;
|
|
1938
|
-
return throwDefaultError({
|
|
1939
|
-
output,
|
|
1940
|
-
parsedBody,
|
|
1941
|
-
errorCode,
|
|
1942
|
-
});
|
|
1943
|
-
}
|
|
1944
|
-
};
|
|
1945
|
-
const de_GetLaunchConfigurationCommand = async (output, context) => {
|
|
1946
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1947
|
-
return de_GetLaunchConfigurationCommandError(output, context);
|
|
1948
|
-
}
|
|
1949
|
-
const contents = (0, smithy_client_1.map)({
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
});
|
|
1952
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1953
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1954
|
-
copyPrivateIp: smithy_client_1.expectBoolean,
|
|
1955
|
-
copyTags: smithy_client_1.expectBoolean,
|
|
1956
|
-
ec2LaunchTemplateID: smithy_client_1.expectString,
|
|
1957
|
-
launchDisposition: smithy_client_1.expectString,
|
|
1958
|
-
launchIntoInstanceProperties: smithy_client_1._json,
|
|
1959
|
-
licensing: smithy_client_1._json,
|
|
1960
|
-
name: smithy_client_1.expectString,
|
|
1961
|
-
postLaunchEnabled: smithy_client_1.expectBoolean,
|
|
1962
|
-
sourceServerID: smithy_client_1.expectString,
|
|
1963
|
-
targetInstanceTypeRightSizingMethod: smithy_client_1.expectString,
|
|
1964
|
-
});
|
|
1965
|
-
Object.assign(contents, doc);
|
|
1966
|
-
return contents;
|
|
1967
|
-
};
|
|
1968
|
-
exports.de_GetLaunchConfigurationCommand = de_GetLaunchConfigurationCommand;
|
|
1969
|
-
const de_GetLaunchConfigurationCommandError = async (output, context) => {
|
|
1970
|
-
const parsedOutput = {
|
|
1971
|
-
...output,
|
|
1972
|
-
body: await parseErrorBody(output.body, context),
|
|
1973
|
-
};
|
|
1974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1975
|
-
switch (errorCode) {
|
|
1976
|
-
case "InternalServerException":
|
|
1977
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1978
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "ResourceNotFoundException":
|
|
1980
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1981
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "ThrottlingException":
|
|
1983
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1984
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1985
|
-
case "UninitializedAccountException":
|
|
1986
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1987
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1988
|
-
default:
|
|
1989
|
-
const parsedBody = parsedOutput.body;
|
|
1990
|
-
return throwDefaultError({
|
|
1991
|
-
output,
|
|
1992
|
-
parsedBody,
|
|
1993
|
-
errorCode,
|
|
1994
|
-
});
|
|
1995
|
-
}
|
|
1996
|
-
};
|
|
1997
|
-
const de_GetReplicationConfigurationCommand = async (output, context) => {
|
|
1998
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1999
|
-
return de_GetReplicationConfigurationCommandError(output, context);
|
|
2000
|
-
}
|
|
2001
|
-
const contents = (0, smithy_client_1.map)({
|
|
2002
|
-
$metadata: deserializeMetadata(output),
|
|
2003
|
-
});
|
|
2004
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2005
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2006
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
2007
|
-
autoReplicateNewDisks: smithy_client_1.expectBoolean,
|
|
2008
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
2009
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
2010
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
2011
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
2012
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
2013
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
2014
|
-
name: smithy_client_1.expectString,
|
|
2015
|
-
pitPolicy: smithy_client_1._json,
|
|
2016
|
-
replicatedDisks: smithy_client_1._json,
|
|
2017
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
2018
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
2019
|
-
sourceServerID: smithy_client_1.expectString,
|
|
2020
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
2021
|
-
stagingAreaTags: smithy_client_1._json,
|
|
2022
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
2023
|
-
});
|
|
2024
|
-
Object.assign(contents, doc);
|
|
2025
|
-
return contents;
|
|
2026
|
-
};
|
|
2027
|
-
exports.de_GetReplicationConfigurationCommand = de_GetReplicationConfigurationCommand;
|
|
2028
|
-
const de_GetReplicationConfigurationCommandError = async (output, context) => {
|
|
2029
|
-
const parsedOutput = {
|
|
2030
|
-
...output,
|
|
2031
|
-
body: await parseErrorBody(output.body, context),
|
|
2032
|
-
};
|
|
2033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
|
-
switch (errorCode) {
|
|
2035
|
-
case "AccessDeniedException":
|
|
2036
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2037
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "InternalServerException":
|
|
2039
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2040
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2041
|
-
case "ResourceNotFoundException":
|
|
2042
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2043
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2044
|
-
case "ThrottlingException":
|
|
2045
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2046
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2047
|
-
case "UninitializedAccountException":
|
|
2048
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2049
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2050
|
-
default:
|
|
2051
|
-
const parsedBody = parsedOutput.body;
|
|
2052
|
-
return throwDefaultError({
|
|
2053
|
-
output,
|
|
2054
|
-
parsedBody,
|
|
2055
|
-
errorCode,
|
|
2056
|
-
});
|
|
2057
|
-
}
|
|
2058
|
-
};
|
|
2059
|
-
const de_InitializeServiceCommand = async (output, context) => {
|
|
2060
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2061
|
-
return de_InitializeServiceCommandError(output, context);
|
|
2062
|
-
}
|
|
2063
|
-
const contents = (0, smithy_client_1.map)({
|
|
2064
|
-
$metadata: deserializeMetadata(output),
|
|
2065
|
-
});
|
|
2066
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2067
|
-
return contents;
|
|
2068
|
-
};
|
|
2069
|
-
exports.de_InitializeServiceCommand = de_InitializeServiceCommand;
|
|
2070
|
-
const de_InitializeServiceCommandError = async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context),
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "AccessDeniedException":
|
|
2078
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2079
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InternalServerException":
|
|
2081
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2082
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ThrottlingException":
|
|
2084
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2085
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "ValidationException":
|
|
2087
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2088
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2089
|
-
default:
|
|
2090
|
-
const parsedBody = parsedOutput.body;
|
|
2091
|
-
return throwDefaultError({
|
|
2092
|
-
output,
|
|
2093
|
-
parsedBody,
|
|
2094
|
-
errorCode,
|
|
2095
|
-
});
|
|
2096
|
-
}
|
|
2097
|
-
};
|
|
2098
|
-
const de_ListExtensibleSourceServersCommand = async (output, context) => {
|
|
2099
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2100
|
-
return de_ListExtensibleSourceServersCommandError(output, context);
|
|
2101
|
-
}
|
|
2102
|
-
const contents = (0, smithy_client_1.map)({
|
|
2103
|
-
$metadata: deserializeMetadata(output),
|
|
2104
|
-
});
|
|
2105
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2106
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2107
|
-
items: smithy_client_1._json,
|
|
2108
|
-
nextToken: smithy_client_1.expectString,
|
|
2109
|
-
});
|
|
2110
|
-
Object.assign(contents, doc);
|
|
2111
|
-
return contents;
|
|
2112
|
-
};
|
|
2113
|
-
exports.de_ListExtensibleSourceServersCommand = de_ListExtensibleSourceServersCommand;
|
|
2114
|
-
const de_ListExtensibleSourceServersCommandError = async (output, context) => {
|
|
2115
|
-
const parsedOutput = {
|
|
2116
|
-
...output,
|
|
2117
|
-
body: await parseErrorBody(output.body, context),
|
|
2118
|
-
};
|
|
2119
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
|
-
switch (errorCode) {
|
|
2121
|
-
case "AccessDeniedException":
|
|
2122
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2123
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "InternalServerException":
|
|
2125
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2126
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ThrottlingException":
|
|
2128
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2129
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "UninitializedAccountException":
|
|
2131
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2132
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "ValidationException":
|
|
2134
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2135
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2136
|
-
default:
|
|
2137
|
-
const parsedBody = parsedOutput.body;
|
|
2138
|
-
return throwDefaultError({
|
|
2139
|
-
output,
|
|
2140
|
-
parsedBody,
|
|
2141
|
-
errorCode,
|
|
2142
|
-
});
|
|
2143
|
-
}
|
|
2144
|
-
};
|
|
2145
|
-
const de_ListLaunchActionsCommand = async (output, context) => {
|
|
2146
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2147
|
-
return de_ListLaunchActionsCommandError(output, context);
|
|
2148
|
-
}
|
|
2149
|
-
const contents = (0, smithy_client_1.map)({
|
|
2150
|
-
$metadata: deserializeMetadata(output),
|
|
2151
|
-
});
|
|
2152
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2153
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2154
|
-
items: smithy_client_1._json,
|
|
2155
|
-
nextToken: smithy_client_1.expectString,
|
|
2156
|
-
});
|
|
2157
|
-
Object.assign(contents, doc);
|
|
2158
|
-
return contents;
|
|
2159
|
-
};
|
|
2160
|
-
exports.de_ListLaunchActionsCommand = de_ListLaunchActionsCommand;
|
|
2161
|
-
const de_ListLaunchActionsCommandError = async (output, context) => {
|
|
2162
|
-
const parsedOutput = {
|
|
2163
|
-
...output,
|
|
2164
|
-
body: await parseErrorBody(output.body, context),
|
|
2165
|
-
};
|
|
2166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2167
|
-
switch (errorCode) {
|
|
2168
|
-
case "InternalServerException":
|
|
2169
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2170
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "ResourceNotFoundException":
|
|
2172
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "ServiceQuotaExceededException":
|
|
2175
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2176
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "ThrottlingException":
|
|
2178
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2179
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "UninitializedAccountException":
|
|
2181
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2182
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2183
|
-
default:
|
|
2184
|
-
const parsedBody = parsedOutput.body;
|
|
2185
|
-
return throwDefaultError({
|
|
2186
|
-
output,
|
|
2187
|
-
parsedBody,
|
|
2188
|
-
errorCode,
|
|
2189
|
-
});
|
|
2190
|
-
}
|
|
2191
|
-
};
|
|
2192
|
-
const de_ListStagingAccountsCommand = async (output, context) => {
|
|
2193
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2194
|
-
return de_ListStagingAccountsCommandError(output, context);
|
|
2195
|
-
}
|
|
2196
|
-
const contents = (0, smithy_client_1.map)({
|
|
2197
|
-
$metadata: deserializeMetadata(output),
|
|
2198
|
-
});
|
|
2199
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2200
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2201
|
-
accounts: smithy_client_1._json,
|
|
2202
|
-
nextToken: smithy_client_1.expectString,
|
|
2203
|
-
});
|
|
2204
|
-
Object.assign(contents, doc);
|
|
2205
|
-
return contents;
|
|
2206
|
-
};
|
|
2207
|
-
exports.de_ListStagingAccountsCommand = de_ListStagingAccountsCommand;
|
|
2208
|
-
const de_ListStagingAccountsCommandError = async (output, context) => {
|
|
2209
|
-
const parsedOutput = {
|
|
2210
|
-
...output,
|
|
2211
|
-
body: await parseErrorBody(output.body, context),
|
|
2212
|
-
};
|
|
2213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
-
switch (errorCode) {
|
|
2215
|
-
case "AccessDeniedException":
|
|
2216
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2217
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "InternalServerException":
|
|
2219
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2220
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "ThrottlingException":
|
|
2222
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2223
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "UninitializedAccountException":
|
|
2225
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2226
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ValidationException":
|
|
2228
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2229
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2230
|
-
default:
|
|
2231
|
-
const parsedBody = parsedOutput.body;
|
|
2232
|
-
return throwDefaultError({
|
|
2233
|
-
output,
|
|
2234
|
-
parsedBody,
|
|
2235
|
-
errorCode,
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
};
|
|
2239
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2240
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2241
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2242
|
-
}
|
|
2243
|
-
const contents = (0, smithy_client_1.map)({
|
|
2244
|
-
$metadata: deserializeMetadata(output),
|
|
2245
|
-
});
|
|
2246
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2247
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2248
|
-
tags: smithy_client_1._json,
|
|
2249
|
-
});
|
|
2250
|
-
Object.assign(contents, doc);
|
|
2251
|
-
return contents;
|
|
2252
|
-
};
|
|
2253
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2254
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2255
|
-
const parsedOutput = {
|
|
2256
|
-
...output,
|
|
2257
|
-
body: await parseErrorBody(output.body, context),
|
|
2258
|
-
};
|
|
2259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
|
-
switch (errorCode) {
|
|
2261
|
-
case "AccessDeniedException":
|
|
2262
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "InternalServerException":
|
|
2265
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ResourceNotFoundException":
|
|
2268
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ThrottlingException":
|
|
2271
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2272
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ValidationException":
|
|
2274
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2275
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2276
|
-
default:
|
|
2277
|
-
const parsedBody = parsedOutput.body;
|
|
2278
|
-
return throwDefaultError({
|
|
2279
|
-
output,
|
|
2280
|
-
parsedBody,
|
|
2281
|
-
errorCode,
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
};
|
|
2285
|
-
const de_PutLaunchActionCommand = async (output, context) => {
|
|
2286
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
|
-
return de_PutLaunchActionCommandError(output, context);
|
|
2288
|
-
}
|
|
2289
|
-
const contents = (0, smithy_client_1.map)({
|
|
2290
|
-
$metadata: deserializeMetadata(output),
|
|
2291
|
-
});
|
|
2292
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2293
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2294
|
-
actionCode: smithy_client_1.expectString,
|
|
2295
|
-
actionId: smithy_client_1.expectString,
|
|
2296
|
-
actionVersion: smithy_client_1.expectString,
|
|
2297
|
-
active: smithy_client_1.expectBoolean,
|
|
2298
|
-
category: smithy_client_1.expectString,
|
|
2299
|
-
description: smithy_client_1.expectString,
|
|
2300
|
-
name: smithy_client_1.expectString,
|
|
2301
|
-
optional: smithy_client_1.expectBoolean,
|
|
2302
|
-
order: smithy_client_1.expectInt32,
|
|
2303
|
-
parameters: smithy_client_1._json,
|
|
2304
|
-
resourceId: smithy_client_1.expectString,
|
|
2305
|
-
type: smithy_client_1.expectString,
|
|
2306
|
-
});
|
|
2307
|
-
Object.assign(contents, doc);
|
|
2308
|
-
return contents;
|
|
2309
|
-
};
|
|
2310
|
-
exports.de_PutLaunchActionCommand = de_PutLaunchActionCommand;
|
|
2311
|
-
const de_PutLaunchActionCommandError = async (output, context) => {
|
|
2312
|
-
const parsedOutput = {
|
|
2313
|
-
...output,
|
|
2314
|
-
body: await parseErrorBody(output.body, context),
|
|
2315
|
-
};
|
|
2316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
-
switch (errorCode) {
|
|
2318
|
-
case "ConflictException":
|
|
2319
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2320
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "InternalServerException":
|
|
2322
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2323
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ResourceNotFoundException":
|
|
2325
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ThrottlingException":
|
|
2328
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2329
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "UninitializedAccountException":
|
|
2331
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2332
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "ValidationException":
|
|
2334
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2336
|
-
default:
|
|
2337
|
-
const parsedBody = parsedOutput.body;
|
|
2338
|
-
return throwDefaultError({
|
|
2339
|
-
output,
|
|
2340
|
-
parsedBody,
|
|
2341
|
-
errorCode,
|
|
2342
|
-
});
|
|
2343
|
-
}
|
|
2344
|
-
};
|
|
2345
|
-
const de_RetryDataReplicationCommand = async (output, context) => {
|
|
2346
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2347
|
-
return de_RetryDataReplicationCommandError(output, context);
|
|
2348
|
-
}
|
|
2349
|
-
const contents = (0, smithy_client_1.map)({
|
|
2350
|
-
$metadata: deserializeMetadata(output),
|
|
2351
|
-
});
|
|
2352
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2353
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2354
|
-
agentVersion: smithy_client_1.expectString,
|
|
2355
|
-
arn: smithy_client_1.expectString,
|
|
2356
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
2357
|
-
lastLaunchResult: smithy_client_1.expectString,
|
|
2358
|
-
lifeCycle: smithy_client_1._json,
|
|
2359
|
-
recoveryInstanceId: smithy_client_1.expectString,
|
|
2360
|
-
replicationDirection: smithy_client_1.expectString,
|
|
2361
|
-
reversedDirectionSourceServerArn: smithy_client_1.expectString,
|
|
2362
|
-
sourceCloudProperties: smithy_client_1._json,
|
|
2363
|
-
sourceNetworkID: smithy_client_1.expectString,
|
|
2364
|
-
sourceProperties: smithy_client_1._json,
|
|
2365
|
-
sourceServerID: smithy_client_1.expectString,
|
|
2366
|
-
stagingArea: smithy_client_1._json,
|
|
2367
|
-
tags: smithy_client_1._json,
|
|
2368
|
-
});
|
|
2369
|
-
Object.assign(contents, doc);
|
|
2370
|
-
return contents;
|
|
2371
|
-
};
|
|
2372
|
-
exports.de_RetryDataReplicationCommand = de_RetryDataReplicationCommand;
|
|
2373
|
-
const de_RetryDataReplicationCommandError = async (output, context) => {
|
|
2374
|
-
const parsedOutput = {
|
|
2375
|
-
...output,
|
|
2376
|
-
body: await parseErrorBody(output.body, context),
|
|
2377
|
-
};
|
|
2378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
|
-
switch (errorCode) {
|
|
2380
|
-
case "InternalServerException":
|
|
2381
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "ResourceNotFoundException":
|
|
2384
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "ThrottlingException":
|
|
2387
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "UninitializedAccountException":
|
|
2390
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2391
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "ValidationException":
|
|
2393
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2394
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2395
|
-
default:
|
|
2396
|
-
const parsedBody = parsedOutput.body;
|
|
2397
|
-
return throwDefaultError({
|
|
2398
|
-
output,
|
|
2399
|
-
parsedBody,
|
|
2400
|
-
errorCode,
|
|
2401
|
-
});
|
|
2402
|
-
}
|
|
2403
|
-
};
|
|
2404
|
-
const de_ReverseReplicationCommand = async (output, context) => {
|
|
2405
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2406
|
-
return de_ReverseReplicationCommandError(output, context);
|
|
2407
|
-
}
|
|
2408
|
-
const contents = (0, smithy_client_1.map)({
|
|
2409
|
-
$metadata: deserializeMetadata(output),
|
|
2410
|
-
});
|
|
2411
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2412
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2413
|
-
reversedDirectionSourceServerArn: smithy_client_1.expectString,
|
|
2414
|
-
});
|
|
2415
|
-
Object.assign(contents, doc);
|
|
2416
|
-
return contents;
|
|
2417
|
-
};
|
|
2418
|
-
exports.de_ReverseReplicationCommand = de_ReverseReplicationCommand;
|
|
2419
|
-
const de_ReverseReplicationCommandError = async (output, context) => {
|
|
2420
|
-
const parsedOutput = {
|
|
2421
|
-
...output,
|
|
2422
|
-
body: await parseErrorBody(output.body, context),
|
|
2423
|
-
};
|
|
2424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
-
switch (errorCode) {
|
|
2426
|
-
case "AccessDeniedException":
|
|
2427
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2428
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "ConflictException":
|
|
2430
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2431
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "InternalServerException":
|
|
2433
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2434
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "ResourceNotFoundException":
|
|
2436
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2437
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "ThrottlingException":
|
|
2439
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2440
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "UninitializedAccountException":
|
|
2442
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2443
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "ValidationException":
|
|
2445
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2446
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2447
|
-
default:
|
|
2448
|
-
const parsedBody = parsedOutput.body;
|
|
2449
|
-
return throwDefaultError({
|
|
2450
|
-
output,
|
|
2451
|
-
parsedBody,
|
|
2452
|
-
errorCode,
|
|
2453
|
-
});
|
|
2454
|
-
}
|
|
2455
|
-
};
|
|
2456
|
-
const de_StartFailbackLaunchCommand = async (output, context) => {
|
|
2457
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2458
|
-
return de_StartFailbackLaunchCommandError(output, context);
|
|
2459
|
-
}
|
|
2460
|
-
const contents = (0, smithy_client_1.map)({
|
|
2461
|
-
$metadata: deserializeMetadata(output),
|
|
2462
|
-
});
|
|
2463
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2464
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2465
|
-
job: smithy_client_1._json,
|
|
2466
|
-
});
|
|
2467
|
-
Object.assign(contents, doc);
|
|
2468
|
-
return contents;
|
|
2469
|
-
};
|
|
2470
|
-
exports.de_StartFailbackLaunchCommand = de_StartFailbackLaunchCommand;
|
|
2471
|
-
const de_StartFailbackLaunchCommandError = async (output, context) => {
|
|
2472
|
-
const parsedOutput = {
|
|
2473
|
-
...output,
|
|
2474
|
-
body: await parseErrorBody(output.body, context),
|
|
2475
|
-
};
|
|
2476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
|
-
switch (errorCode) {
|
|
2478
|
-
case "ConflictException":
|
|
2479
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2480
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "InternalServerException":
|
|
2482
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2483
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "ServiceQuotaExceededException":
|
|
2485
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2486
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "ThrottlingException":
|
|
2488
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2489
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "UninitializedAccountException":
|
|
2491
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2492
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "ValidationException":
|
|
2494
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2496
|
-
default:
|
|
2497
|
-
const parsedBody = parsedOutput.body;
|
|
2498
|
-
return throwDefaultError({
|
|
2499
|
-
output,
|
|
2500
|
-
parsedBody,
|
|
2501
|
-
errorCode,
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
};
|
|
2505
|
-
const de_StartRecoveryCommand = async (output, context) => {
|
|
2506
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2507
|
-
return de_StartRecoveryCommandError(output, context);
|
|
2508
|
-
}
|
|
2509
|
-
const contents = (0, smithy_client_1.map)({
|
|
2510
|
-
$metadata: deserializeMetadata(output),
|
|
2511
|
-
});
|
|
2512
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2513
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2514
|
-
job: smithy_client_1._json,
|
|
2515
|
-
});
|
|
2516
|
-
Object.assign(contents, doc);
|
|
2517
|
-
return contents;
|
|
2518
|
-
};
|
|
2519
|
-
exports.de_StartRecoveryCommand = de_StartRecoveryCommand;
|
|
2520
|
-
const de_StartRecoveryCommandError = async (output, context) => {
|
|
2521
|
-
const parsedOutput = {
|
|
2522
|
-
...output,
|
|
2523
|
-
body: await parseErrorBody(output.body, context),
|
|
2524
|
-
};
|
|
2525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
-
switch (errorCode) {
|
|
2527
|
-
case "ConflictException":
|
|
2528
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2529
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "InternalServerException":
|
|
2531
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2532
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "ServiceQuotaExceededException":
|
|
2534
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2535
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ThrottlingException":
|
|
2537
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2538
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "UninitializedAccountException":
|
|
2540
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2541
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2542
|
-
default:
|
|
2543
|
-
const parsedBody = parsedOutput.body;
|
|
2544
|
-
return throwDefaultError({
|
|
2545
|
-
output,
|
|
2546
|
-
parsedBody,
|
|
2547
|
-
errorCode,
|
|
2548
|
-
});
|
|
2549
|
-
}
|
|
2550
|
-
};
|
|
2551
|
-
const de_StartReplicationCommand = async (output, context) => {
|
|
2552
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2553
|
-
return de_StartReplicationCommandError(output, context);
|
|
2554
|
-
}
|
|
2555
|
-
const contents = (0, smithy_client_1.map)({
|
|
2556
|
-
$metadata: deserializeMetadata(output),
|
|
2557
|
-
});
|
|
2558
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2559
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2560
|
-
sourceServer: smithy_client_1._json,
|
|
2561
|
-
});
|
|
2562
|
-
Object.assign(contents, doc);
|
|
2563
|
-
return contents;
|
|
2564
|
-
};
|
|
2565
|
-
exports.de_StartReplicationCommand = de_StartReplicationCommand;
|
|
2566
|
-
const de_StartReplicationCommandError = async (output, context) => {
|
|
2567
|
-
const parsedOutput = {
|
|
2568
|
-
...output,
|
|
2569
|
-
body: await parseErrorBody(output.body, context),
|
|
2570
|
-
};
|
|
2571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
|
-
switch (errorCode) {
|
|
2573
|
-
case "ConflictException":
|
|
2574
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2575
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "InternalServerException":
|
|
2577
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2578
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "ResourceNotFoundException":
|
|
2580
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "ThrottlingException":
|
|
2583
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2584
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "UninitializedAccountException":
|
|
2586
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2587
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2588
|
-
default:
|
|
2589
|
-
const parsedBody = parsedOutput.body;
|
|
2590
|
-
return throwDefaultError({
|
|
2591
|
-
output,
|
|
2592
|
-
parsedBody,
|
|
2593
|
-
errorCode,
|
|
2594
|
-
});
|
|
2595
|
-
}
|
|
2596
|
-
};
|
|
2597
|
-
const de_StartSourceNetworkRecoveryCommand = async (output, context) => {
|
|
2598
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2599
|
-
return de_StartSourceNetworkRecoveryCommandError(output, context);
|
|
2600
|
-
}
|
|
2601
|
-
const contents = (0, smithy_client_1.map)({
|
|
2602
|
-
$metadata: deserializeMetadata(output),
|
|
2603
|
-
});
|
|
2604
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2605
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2606
|
-
job: smithy_client_1._json,
|
|
2607
|
-
});
|
|
2608
|
-
Object.assign(contents, doc);
|
|
2609
|
-
return contents;
|
|
2610
|
-
};
|
|
2611
|
-
exports.de_StartSourceNetworkRecoveryCommand = de_StartSourceNetworkRecoveryCommand;
|
|
2612
|
-
const de_StartSourceNetworkRecoveryCommandError = async (output, context) => {
|
|
2613
|
-
const parsedOutput = {
|
|
2614
|
-
...output,
|
|
2615
|
-
body: await parseErrorBody(output.body, context),
|
|
2616
|
-
};
|
|
2617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
|
-
switch (errorCode) {
|
|
2619
|
-
case "ConflictException":
|
|
2620
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2621
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "InternalServerException":
|
|
2623
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2624
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "ServiceQuotaExceededException":
|
|
2626
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2627
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ThrottlingException":
|
|
2629
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2630
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "UninitializedAccountException":
|
|
2632
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2633
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "ValidationException":
|
|
2635
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2636
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2637
|
-
default:
|
|
2638
|
-
const parsedBody = parsedOutput.body;
|
|
2639
|
-
return throwDefaultError({
|
|
2640
|
-
output,
|
|
2641
|
-
parsedBody,
|
|
2642
|
-
errorCode,
|
|
2643
|
-
});
|
|
2644
|
-
}
|
|
2645
|
-
};
|
|
2646
|
-
const de_StartSourceNetworkReplicationCommand = async (output, context) => {
|
|
2647
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2648
|
-
return de_StartSourceNetworkReplicationCommandError(output, context);
|
|
2649
|
-
}
|
|
2650
|
-
const contents = (0, smithy_client_1.map)({
|
|
2651
|
-
$metadata: deserializeMetadata(output),
|
|
2652
|
-
});
|
|
2653
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2654
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2655
|
-
sourceNetwork: (_) => de_SourceNetwork(_, context),
|
|
2656
|
-
});
|
|
2657
|
-
Object.assign(contents, doc);
|
|
2658
|
-
return contents;
|
|
2659
|
-
};
|
|
2660
|
-
exports.de_StartSourceNetworkReplicationCommand = de_StartSourceNetworkReplicationCommand;
|
|
2661
|
-
const de_StartSourceNetworkReplicationCommandError = async (output, context) => {
|
|
2662
|
-
const parsedOutput = {
|
|
2663
|
-
...output,
|
|
2664
|
-
body: await parseErrorBody(output.body, context),
|
|
2665
|
-
};
|
|
2666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
|
-
switch (errorCode) {
|
|
2668
|
-
case "ConflictException":
|
|
2669
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2670
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "InternalServerException":
|
|
2672
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ResourceNotFoundException":
|
|
2675
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ThrottlingException":
|
|
2678
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2679
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "UninitializedAccountException":
|
|
2681
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2682
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2683
|
-
default:
|
|
2684
|
-
const parsedBody = parsedOutput.body;
|
|
2685
|
-
return throwDefaultError({
|
|
2686
|
-
output,
|
|
2687
|
-
parsedBody,
|
|
2688
|
-
errorCode,
|
|
2689
|
-
});
|
|
2690
|
-
}
|
|
2691
|
-
};
|
|
2692
|
-
const de_StopFailbackCommand = async (output, context) => {
|
|
2693
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2694
|
-
return de_StopFailbackCommandError(output, context);
|
|
2695
|
-
}
|
|
2696
|
-
const contents = (0, smithy_client_1.map)({
|
|
2697
|
-
$metadata: deserializeMetadata(output),
|
|
2698
|
-
});
|
|
2699
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2700
|
-
return contents;
|
|
2701
|
-
};
|
|
2702
|
-
exports.de_StopFailbackCommand = de_StopFailbackCommand;
|
|
2703
|
-
const de_StopFailbackCommandError = async (output, context) => {
|
|
2704
|
-
const parsedOutput = {
|
|
2705
|
-
...output,
|
|
2706
|
-
body: await parseErrorBody(output.body, context),
|
|
2707
|
-
};
|
|
2708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
|
-
switch (errorCode) {
|
|
2710
|
-
case "InternalServerException":
|
|
2711
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2712
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "ResourceNotFoundException":
|
|
2714
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2715
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "ThrottlingException":
|
|
2717
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2718
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "UninitializedAccountException":
|
|
2720
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2721
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2722
|
-
default:
|
|
2723
|
-
const parsedBody = parsedOutput.body;
|
|
2724
|
-
return throwDefaultError({
|
|
2725
|
-
output,
|
|
2726
|
-
parsedBody,
|
|
2727
|
-
errorCode,
|
|
2728
|
-
});
|
|
2729
|
-
}
|
|
2730
|
-
};
|
|
2731
|
-
const de_StopReplicationCommand = async (output, context) => {
|
|
2732
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2733
|
-
return de_StopReplicationCommandError(output, context);
|
|
2734
|
-
}
|
|
2735
|
-
const contents = (0, smithy_client_1.map)({
|
|
2736
|
-
$metadata: deserializeMetadata(output),
|
|
2737
|
-
});
|
|
2738
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2739
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2740
|
-
sourceServer: smithy_client_1._json,
|
|
2741
|
-
});
|
|
2742
|
-
Object.assign(contents, doc);
|
|
2743
|
-
return contents;
|
|
2744
|
-
};
|
|
2745
|
-
exports.de_StopReplicationCommand = de_StopReplicationCommand;
|
|
2746
|
-
const de_StopReplicationCommandError = async (output, context) => {
|
|
2747
|
-
const parsedOutput = {
|
|
2748
|
-
...output,
|
|
2749
|
-
body: await parseErrorBody(output.body, context),
|
|
2750
|
-
};
|
|
2751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
|
-
switch (errorCode) {
|
|
2753
|
-
case "ConflictException":
|
|
2754
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2755
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "InternalServerException":
|
|
2757
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2758
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "ResourceNotFoundException":
|
|
2760
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2761
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ThrottlingException":
|
|
2763
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2764
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "UninitializedAccountException":
|
|
2766
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2767
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2768
|
-
default:
|
|
2769
|
-
const parsedBody = parsedOutput.body;
|
|
2770
|
-
return throwDefaultError({
|
|
2771
|
-
output,
|
|
2772
|
-
parsedBody,
|
|
2773
|
-
errorCode,
|
|
2774
|
-
});
|
|
2775
|
-
}
|
|
2776
|
-
};
|
|
2777
|
-
const de_StopSourceNetworkReplicationCommand = async (output, context) => {
|
|
2778
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2779
|
-
return de_StopSourceNetworkReplicationCommandError(output, context);
|
|
2780
|
-
}
|
|
2781
|
-
const contents = (0, smithy_client_1.map)({
|
|
2782
|
-
$metadata: deserializeMetadata(output),
|
|
2783
|
-
});
|
|
2784
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2785
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2786
|
-
sourceNetwork: (_) => de_SourceNetwork(_, context),
|
|
2787
|
-
});
|
|
2788
|
-
Object.assign(contents, doc);
|
|
2789
|
-
return contents;
|
|
2790
|
-
};
|
|
2791
|
-
exports.de_StopSourceNetworkReplicationCommand = de_StopSourceNetworkReplicationCommand;
|
|
2792
|
-
const de_StopSourceNetworkReplicationCommandError = async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context),
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "ConflictException":
|
|
2800
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2801
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "InternalServerException":
|
|
2803
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "ResourceNotFoundException":
|
|
2806
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "ThrottlingException":
|
|
2809
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "UninitializedAccountException":
|
|
2812
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2813
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "ValidationException":
|
|
2815
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2817
|
-
default:
|
|
2818
|
-
const parsedBody = parsedOutput.body;
|
|
2819
|
-
return throwDefaultError({
|
|
2820
|
-
output,
|
|
2821
|
-
parsedBody,
|
|
2822
|
-
errorCode,
|
|
2823
|
-
});
|
|
2824
|
-
}
|
|
2825
|
-
};
|
|
2826
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2827
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2828
|
-
return de_TagResourceCommandError(output, context);
|
|
2829
|
-
}
|
|
2830
|
-
const contents = (0, smithy_client_1.map)({
|
|
2831
|
-
$metadata: deserializeMetadata(output),
|
|
2832
|
-
});
|
|
2833
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2834
|
-
return contents;
|
|
2835
|
-
};
|
|
2836
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2837
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2838
|
-
const parsedOutput = {
|
|
2839
|
-
...output,
|
|
2840
|
-
body: await parseErrorBody(output.body, context),
|
|
2841
|
-
};
|
|
2842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
|
-
switch (errorCode) {
|
|
2844
|
-
case "AccessDeniedException":
|
|
2845
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2846
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "InternalServerException":
|
|
2848
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2849
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "ResourceNotFoundException":
|
|
2851
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2852
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2853
|
-
case "ThrottlingException":
|
|
2854
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2855
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2856
|
-
case "ValidationException":
|
|
2857
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2858
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2859
|
-
default:
|
|
2860
|
-
const parsedBody = parsedOutput.body;
|
|
2861
|
-
return throwDefaultError({
|
|
2862
|
-
output,
|
|
2863
|
-
parsedBody,
|
|
2864
|
-
errorCode,
|
|
2865
|
-
});
|
|
2866
|
-
}
|
|
2867
|
-
};
|
|
2868
|
-
const de_TerminateRecoveryInstancesCommand = async (output, context) => {
|
|
2869
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2870
|
-
return de_TerminateRecoveryInstancesCommandError(output, context);
|
|
2871
|
-
}
|
|
2872
|
-
const contents = (0, smithy_client_1.map)({
|
|
2873
|
-
$metadata: deserializeMetadata(output),
|
|
2874
|
-
});
|
|
2875
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2876
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2877
|
-
job: smithy_client_1._json,
|
|
2878
|
-
});
|
|
2879
|
-
Object.assign(contents, doc);
|
|
2880
|
-
return contents;
|
|
2881
|
-
};
|
|
2882
|
-
exports.de_TerminateRecoveryInstancesCommand = de_TerminateRecoveryInstancesCommand;
|
|
2883
|
-
const de_TerminateRecoveryInstancesCommandError = async (output, context) => {
|
|
2884
|
-
const parsedOutput = {
|
|
2885
|
-
...output,
|
|
2886
|
-
body: await parseErrorBody(output.body, context),
|
|
2887
|
-
};
|
|
2888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
|
-
switch (errorCode) {
|
|
2890
|
-
case "ConflictException":
|
|
2891
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2892
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "InternalServerException":
|
|
2894
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ServiceQuotaExceededException":
|
|
2897
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2898
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ThrottlingException":
|
|
2900
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "UninitializedAccountException":
|
|
2903
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2904
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2905
|
-
default:
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody,
|
|
2910
|
-
errorCode,
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
};
|
|
2914
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2915
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2916
|
-
return de_UntagResourceCommandError(output, context);
|
|
2917
|
-
}
|
|
2918
|
-
const contents = (0, smithy_client_1.map)({
|
|
2919
|
-
$metadata: deserializeMetadata(output),
|
|
2920
|
-
});
|
|
2921
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2922
|
-
return contents;
|
|
2923
|
-
};
|
|
2924
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2925
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2926
|
-
const parsedOutput = {
|
|
2927
|
-
...output,
|
|
2928
|
-
body: await parseErrorBody(output.body, context),
|
|
2929
|
-
};
|
|
2930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2931
|
-
switch (errorCode) {
|
|
2932
|
-
case "AccessDeniedException":
|
|
2933
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2934
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "InternalServerException":
|
|
2936
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2937
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "ResourceNotFoundException":
|
|
2939
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2940
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2941
|
-
case "ThrottlingException":
|
|
2942
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2943
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2944
|
-
case "ValidationException":
|
|
2945
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2946
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2947
|
-
default:
|
|
2948
|
-
const parsedBody = parsedOutput.body;
|
|
2949
|
-
return throwDefaultError({
|
|
2950
|
-
output,
|
|
2951
|
-
parsedBody,
|
|
2952
|
-
errorCode,
|
|
2953
|
-
});
|
|
2954
|
-
}
|
|
2955
|
-
};
|
|
2956
|
-
const de_UpdateFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
2957
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2958
|
-
return de_UpdateFailbackReplicationConfigurationCommandError(output, context);
|
|
2959
|
-
}
|
|
2960
|
-
const contents = (0, smithy_client_1.map)({
|
|
2961
|
-
$metadata: deserializeMetadata(output),
|
|
2962
|
-
});
|
|
2963
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2964
|
-
return contents;
|
|
2965
|
-
};
|
|
2966
|
-
exports.de_UpdateFailbackReplicationConfigurationCommand = de_UpdateFailbackReplicationConfigurationCommand;
|
|
2967
|
-
const de_UpdateFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
2968
|
-
const parsedOutput = {
|
|
2969
|
-
...output,
|
|
2970
|
-
body: await parseErrorBody(output.body, context),
|
|
2971
|
-
};
|
|
2972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2973
|
-
switch (errorCode) {
|
|
2974
|
-
case "AccessDeniedException":
|
|
2975
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "InternalServerException":
|
|
2978
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2979
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "ResourceNotFoundException":
|
|
2981
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2983
|
-
case "ThrottlingException":
|
|
2984
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2985
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2986
|
-
case "UninitializedAccountException":
|
|
2987
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2988
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2989
|
-
default:
|
|
2990
|
-
const parsedBody = parsedOutput.body;
|
|
2991
|
-
return throwDefaultError({
|
|
2992
|
-
output,
|
|
2993
|
-
parsedBody,
|
|
2994
|
-
errorCode,
|
|
2995
|
-
});
|
|
2996
|
-
}
|
|
2997
|
-
};
|
|
2998
|
-
const de_UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
2999
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3000
|
-
return de_UpdateLaunchConfigurationCommandError(output, context);
|
|
3001
|
-
}
|
|
3002
|
-
const contents = (0, smithy_client_1.map)({
|
|
3003
|
-
$metadata: deserializeMetadata(output),
|
|
3004
|
-
});
|
|
3005
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3006
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3007
|
-
copyPrivateIp: smithy_client_1.expectBoolean,
|
|
3008
|
-
copyTags: smithy_client_1.expectBoolean,
|
|
3009
|
-
ec2LaunchTemplateID: smithy_client_1.expectString,
|
|
3010
|
-
launchDisposition: smithy_client_1.expectString,
|
|
3011
|
-
launchIntoInstanceProperties: smithy_client_1._json,
|
|
3012
|
-
licensing: smithy_client_1._json,
|
|
3013
|
-
name: smithy_client_1.expectString,
|
|
3014
|
-
postLaunchEnabled: smithy_client_1.expectBoolean,
|
|
3015
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3016
|
-
targetInstanceTypeRightSizingMethod: smithy_client_1.expectString,
|
|
3017
|
-
});
|
|
3018
|
-
Object.assign(contents, doc);
|
|
3019
|
-
return contents;
|
|
3020
|
-
};
|
|
3021
|
-
exports.de_UpdateLaunchConfigurationCommand = de_UpdateLaunchConfigurationCommand;
|
|
3022
|
-
const de_UpdateLaunchConfigurationCommandError = async (output, context) => {
|
|
3023
|
-
const parsedOutput = {
|
|
3024
|
-
...output,
|
|
3025
|
-
body: await parseErrorBody(output.body, context),
|
|
3026
|
-
};
|
|
3027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3028
|
-
switch (errorCode) {
|
|
3029
|
-
case "ConflictException":
|
|
3030
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3031
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "InternalServerException":
|
|
3033
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3034
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3035
|
-
case "ResourceNotFoundException":
|
|
3036
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3037
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "ThrottlingException":
|
|
3039
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3040
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3041
|
-
case "UninitializedAccountException":
|
|
3042
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3043
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "ValidationException":
|
|
3045
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3046
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3047
|
-
default:
|
|
3048
|
-
const parsedBody = parsedOutput.body;
|
|
3049
|
-
return throwDefaultError({
|
|
3050
|
-
output,
|
|
3051
|
-
parsedBody,
|
|
3052
|
-
errorCode,
|
|
3053
|
-
});
|
|
3054
|
-
}
|
|
3055
|
-
};
|
|
3056
|
-
const de_UpdateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
3057
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3058
|
-
return de_UpdateLaunchConfigurationTemplateCommandError(output, context);
|
|
3059
|
-
}
|
|
3060
|
-
const contents = (0, smithy_client_1.map)({
|
|
3061
|
-
$metadata: deserializeMetadata(output),
|
|
3062
|
-
});
|
|
3063
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3064
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3065
|
-
launchConfigurationTemplate: smithy_client_1._json,
|
|
3066
|
-
});
|
|
3067
|
-
Object.assign(contents, doc);
|
|
3068
|
-
return contents;
|
|
3069
|
-
};
|
|
3070
|
-
exports.de_UpdateLaunchConfigurationTemplateCommand = de_UpdateLaunchConfigurationTemplateCommand;
|
|
3071
|
-
const de_UpdateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
3072
|
-
const parsedOutput = {
|
|
3073
|
-
...output,
|
|
3074
|
-
body: await parseErrorBody(output.body, context),
|
|
3075
|
-
};
|
|
3076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3077
|
-
switch (errorCode) {
|
|
3078
|
-
case "AccessDeniedException":
|
|
3079
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3080
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "InternalServerException":
|
|
3082
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3083
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "ResourceNotFoundException":
|
|
3085
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "ThrottlingException":
|
|
3088
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3089
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3090
|
-
case "UninitializedAccountException":
|
|
3091
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3092
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3093
|
-
case "ValidationException":
|
|
3094
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3096
|
-
default:
|
|
3097
|
-
const parsedBody = parsedOutput.body;
|
|
3098
|
-
return throwDefaultError({
|
|
3099
|
-
output,
|
|
3100
|
-
parsedBody,
|
|
3101
|
-
errorCode,
|
|
3102
|
-
});
|
|
3103
|
-
}
|
|
3104
|
-
};
|
|
3105
|
-
const de_UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
3106
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3107
|
-
return de_UpdateReplicationConfigurationCommandError(output, context);
|
|
3108
|
-
}
|
|
3109
|
-
const contents = (0, smithy_client_1.map)({
|
|
3110
|
-
$metadata: deserializeMetadata(output),
|
|
3111
|
-
});
|
|
3112
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3113
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3114
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
3115
|
-
autoReplicateNewDisks: smithy_client_1.expectBoolean,
|
|
3116
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
3117
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
3118
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
3119
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
3120
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
3121
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
3122
|
-
name: smithy_client_1.expectString,
|
|
3123
|
-
pitPolicy: smithy_client_1._json,
|
|
3124
|
-
replicatedDisks: smithy_client_1._json,
|
|
3125
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
3126
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
3127
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3128
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
3129
|
-
stagingAreaTags: smithy_client_1._json,
|
|
3130
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
3131
|
-
});
|
|
3132
|
-
Object.assign(contents, doc);
|
|
3133
|
-
return contents;
|
|
3134
|
-
};
|
|
3135
|
-
exports.de_UpdateReplicationConfigurationCommand = de_UpdateReplicationConfigurationCommand;
|
|
3136
|
-
const de_UpdateReplicationConfigurationCommandError = async (output, context) => {
|
|
3137
|
-
const parsedOutput = {
|
|
3138
|
-
...output,
|
|
3139
|
-
body: await parseErrorBody(output.body, context),
|
|
3140
|
-
};
|
|
3141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3142
|
-
switch (errorCode) {
|
|
3143
|
-
case "AccessDeniedException":
|
|
3144
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3145
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "ConflictException":
|
|
3147
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3148
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3149
|
-
case "InternalServerException":
|
|
3150
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3151
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3152
|
-
case "ResourceNotFoundException":
|
|
3153
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3154
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3155
|
-
case "ThrottlingException":
|
|
3156
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3157
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3158
|
-
case "UninitializedAccountException":
|
|
3159
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3160
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3161
|
-
case "ValidationException":
|
|
3162
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3164
|
-
default:
|
|
3165
|
-
const parsedBody = parsedOutput.body;
|
|
3166
|
-
return throwDefaultError({
|
|
3167
|
-
output,
|
|
3168
|
-
parsedBody,
|
|
3169
|
-
errorCode,
|
|
3170
|
-
});
|
|
3171
|
-
}
|
|
3172
|
-
};
|
|
3173
|
-
const de_UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
3174
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3175
|
-
return de_UpdateReplicationConfigurationTemplateCommandError(output, context);
|
|
3176
|
-
}
|
|
3177
|
-
const contents = (0, smithy_client_1.map)({
|
|
3178
|
-
$metadata: deserializeMetadata(output),
|
|
3179
|
-
});
|
|
3180
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3181
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3182
|
-
arn: smithy_client_1.expectString,
|
|
3183
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
3184
|
-
autoReplicateNewDisks: smithy_client_1.expectBoolean,
|
|
3185
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
3186
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
3187
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
3188
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
3189
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
3190
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
3191
|
-
pitPolicy: smithy_client_1._json,
|
|
3192
|
-
replicationConfigurationTemplateID: smithy_client_1.expectString,
|
|
3193
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
3194
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
3195
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
3196
|
-
stagingAreaTags: smithy_client_1._json,
|
|
3197
|
-
tags: smithy_client_1._json,
|
|
3198
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
3199
|
-
});
|
|
3200
|
-
Object.assign(contents, doc);
|
|
3201
|
-
return contents;
|
|
3202
|
-
};
|
|
3203
|
-
exports.de_UpdateReplicationConfigurationTemplateCommand = de_UpdateReplicationConfigurationTemplateCommand;
|
|
3204
|
-
const de_UpdateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
3205
|
-
const parsedOutput = {
|
|
3206
|
-
...output,
|
|
3207
|
-
body: await parseErrorBody(output.body, context),
|
|
3208
|
-
};
|
|
3209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3210
|
-
switch (errorCode) {
|
|
3211
|
-
case "AccessDeniedException":
|
|
3212
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3213
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "InternalServerException":
|
|
3215
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3216
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3217
|
-
case "ResourceNotFoundException":
|
|
3218
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3220
|
-
case "ThrottlingException":
|
|
3221
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3222
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3223
|
-
case "UninitializedAccountException":
|
|
3224
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3225
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3226
|
-
case "ValidationException":
|
|
3227
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3228
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3229
|
-
default:
|
|
3230
|
-
const parsedBody = parsedOutput.body;
|
|
3231
|
-
return throwDefaultError({
|
|
3232
|
-
output,
|
|
3233
|
-
parsedBody,
|
|
3234
|
-
errorCode,
|
|
3235
|
-
});
|
|
3236
|
-
}
|
|
3237
|
-
};
|
|
3238
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(DrsServiceException_1.DrsServiceException);
|
|
3239
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3240
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3241
|
-
const data = parsedOutput.body;
|
|
3242
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3243
|
-
code: smithy_client_1.expectString,
|
|
3244
|
-
message: smithy_client_1.expectString,
|
|
3245
|
-
});
|
|
3246
|
-
Object.assign(contents, doc);
|
|
3247
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3248
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3249
|
-
...contents,
|
|
3250
|
-
});
|
|
3251
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3252
|
-
};
|
|
3253
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3254
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3255
|
-
const data = parsedOutput.body;
|
|
3256
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3257
|
-
code: smithy_client_1.expectString,
|
|
3258
|
-
message: smithy_client_1.expectString,
|
|
3259
|
-
resourceId: smithy_client_1.expectString,
|
|
3260
|
-
resourceType: smithy_client_1.expectString,
|
|
3261
|
-
});
|
|
3262
|
-
Object.assign(contents, doc);
|
|
3263
|
-
const exception = new models_0_1.ConflictException({
|
|
3264
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3265
|
-
...contents,
|
|
3266
|
-
});
|
|
3267
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3268
|
-
};
|
|
3269
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3270
|
-
const contents = (0, smithy_client_1.map)({
|
|
3271
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseLong)(parsedOutput.headers[_ra])],
|
|
3272
|
-
});
|
|
3273
|
-
const data = parsedOutput.body;
|
|
3274
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3275
|
-
message: smithy_client_1.expectString,
|
|
3276
|
-
});
|
|
3277
|
-
Object.assign(contents, doc);
|
|
3278
|
-
const exception = new models_0_1.InternalServerException({
|
|
3279
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3280
|
-
...contents,
|
|
3281
|
-
});
|
|
3282
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3283
|
-
};
|
|
3284
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3285
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3286
|
-
const data = parsedOutput.body;
|
|
3287
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3288
|
-
code: smithy_client_1.expectString,
|
|
3289
|
-
message: smithy_client_1.expectString,
|
|
3290
|
-
resourceId: smithy_client_1.expectString,
|
|
3291
|
-
resourceType: smithy_client_1.expectString,
|
|
3292
|
-
});
|
|
3293
|
-
Object.assign(contents, doc);
|
|
3294
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3295
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3296
|
-
...contents,
|
|
3297
|
-
});
|
|
3298
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3299
|
-
};
|
|
3300
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3301
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3302
|
-
const data = parsedOutput.body;
|
|
3303
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3304
|
-
code: smithy_client_1.expectString,
|
|
3305
|
-
message: smithy_client_1.expectString,
|
|
3306
|
-
quotaCode: smithy_client_1.expectString,
|
|
3307
|
-
resourceId: smithy_client_1.expectString,
|
|
3308
|
-
resourceType: smithy_client_1.expectString,
|
|
3309
|
-
serviceCode: smithy_client_1.expectString,
|
|
3310
|
-
});
|
|
3311
|
-
Object.assign(contents, doc);
|
|
3312
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3313
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3314
|
-
...contents,
|
|
3315
|
-
});
|
|
3316
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3317
|
-
};
|
|
3318
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3319
|
-
const contents = (0, smithy_client_1.map)({
|
|
3320
|
-
[_rAS]: [, parsedOutput.headers[_ra]],
|
|
3321
|
-
});
|
|
3322
|
-
const data = parsedOutput.body;
|
|
3323
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3324
|
-
message: smithy_client_1.expectString,
|
|
3325
|
-
quotaCode: smithy_client_1.expectString,
|
|
3326
|
-
serviceCode: smithy_client_1.expectString,
|
|
3327
|
-
});
|
|
3328
|
-
Object.assign(contents, doc);
|
|
3329
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3330
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3331
|
-
...contents,
|
|
3332
|
-
});
|
|
3333
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3334
|
-
};
|
|
3335
|
-
const de_UninitializedAccountExceptionRes = async (parsedOutput, context) => {
|
|
3336
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3337
|
-
const data = parsedOutput.body;
|
|
3338
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3339
|
-
code: smithy_client_1.expectString,
|
|
3340
|
-
message: smithy_client_1.expectString,
|
|
3341
|
-
});
|
|
3342
|
-
Object.assign(contents, doc);
|
|
3343
|
-
const exception = new models_0_1.UninitializedAccountException({
|
|
3344
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3345
|
-
...contents,
|
|
3346
|
-
});
|
|
3347
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3348
|
-
};
|
|
3349
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3350
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3351
|
-
const data = parsedOutput.body;
|
|
3352
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3353
|
-
code: smithy_client_1.expectString,
|
|
3354
|
-
fieldList: smithy_client_1._json,
|
|
3355
|
-
message: smithy_client_1.expectString,
|
|
3356
|
-
reason: smithy_client_1.expectString,
|
|
3357
|
-
});
|
|
3358
|
-
Object.assign(contents, doc);
|
|
3359
|
-
const exception = new models_0_1.ValidationException({
|
|
3360
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3361
|
-
...contents,
|
|
3362
|
-
});
|
|
3363
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3364
|
-
};
|
|
3365
|
-
const de_RecoveryLifeCycle = (output, context) => {
|
|
3366
|
-
return (0, smithy_client_1.take)(output, {
|
|
3367
|
-
apiCallDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3368
|
-
jobID: smithy_client_1.expectString,
|
|
3369
|
-
lastRecoveryResult: smithy_client_1.expectString,
|
|
3370
|
-
});
|
|
3371
|
-
};
|
|
3372
|
-
const de_SourceNetwork = (output, context) => {
|
|
3373
|
-
return (0, smithy_client_1.take)(output, {
|
|
3374
|
-
arn: smithy_client_1.expectString,
|
|
3375
|
-
cfnStackName: smithy_client_1.expectString,
|
|
3376
|
-
lastRecovery: (_) => de_RecoveryLifeCycle(_, context),
|
|
3377
|
-
launchedVpcID: smithy_client_1.expectString,
|
|
3378
|
-
replicationStatus: smithy_client_1.expectString,
|
|
3379
|
-
replicationStatusDetails: smithy_client_1.expectString,
|
|
3380
|
-
sourceAccountID: smithy_client_1.expectString,
|
|
3381
|
-
sourceNetworkID: smithy_client_1.expectString,
|
|
3382
|
-
sourceRegion: smithy_client_1.expectString,
|
|
3383
|
-
sourceVpcID: smithy_client_1.expectString,
|
|
3384
|
-
tags: smithy_client_1._json,
|
|
3385
|
-
});
|
|
3386
|
-
};
|
|
3387
|
-
const de_SourceNetworksList = (output, context) => {
|
|
3388
|
-
const retVal = (output || [])
|
|
3389
|
-
.filter((e) => e != null)
|
|
3390
|
-
.map((entry) => {
|
|
3391
|
-
return de_SourceNetwork(entry, context);
|
|
3392
|
-
});
|
|
3393
|
-
return retVal;
|
|
3394
|
-
};
|
|
3395
|
-
const deserializeMetadata = (output) => ({
|
|
3396
|
-
httpStatusCode: output.statusCode,
|
|
3397
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3398
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3399
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3400
|
-
});
|
|
3401
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3402
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3403
|
-
value !== null &&
|
|
3404
|
-
value !== "" &&
|
|
3405
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3406
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3407
|
-
const _mR = "maxResults";
|
|
3408
|
-
const _nT = "nextToken";
|
|
3409
|
-
const _rAS = "retryAfterSeconds";
|
|
3410
|
-
const _ra = "retry-after";
|
|
3411
|
-
const _tK = "tagKeys";
|
|
3412
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3413
|
-
if (encoded.length) {
|
|
3414
|
-
return JSON.parse(encoded);
|
|
3415
|
-
}
|
|
3416
|
-
return {};
|
|
3417
|
-
});
|
|
3418
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3419
|
-
const value = await parseBody(errorBody, context);
|
|
3420
|
-
value.message = value.message ?? value.Message;
|
|
3421
|
-
return value;
|
|
3422
|
-
};
|
|
3423
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3424
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3425
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3426
|
-
let cleanValue = rawValue;
|
|
3427
|
-
if (typeof cleanValue === "number") {
|
|
3428
|
-
cleanValue = cleanValue.toString();
|
|
3429
|
-
}
|
|
3430
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3431
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3432
|
-
}
|
|
3433
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3434
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3435
|
-
}
|
|
3436
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3437
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3438
|
-
}
|
|
3439
|
-
return cleanValue;
|
|
3440
|
-
};
|
|
3441
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3442
|
-
if (headerKey !== undefined) {
|
|
3443
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3444
|
-
}
|
|
3445
|
-
if (data.code !== undefined) {
|
|
3446
|
-
return sanitizeErrorCode(data.code);
|
|
3447
|
-
}
|
|
3448
|
-
if (data["__type"] !== undefined) {
|
|
3449
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3450
|
-
}
|
|
3451
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|