@aws-sdk/client-migration-hub 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +143 -548
- package/dist-es/protocols/Aws_json1_1.js +144 -549
- package/package.json +6 -6
|
@@ -1,158 +1,107 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MigrationHubServiceException as __BaseException } from "../models/MigrationHubServiceException";
|
|
4
4
|
import { AccessDeniedException, DryRunOperation, HomeRegionNotSetException, InternalServerError, InvalidInputException, PolicyErrorException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedOperation, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateCreatedArtifactCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AWSMigrationHub.AssociateCreatedArtifact",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("AssociateCreatedArtifact");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_AssociateDiscoveredResourceCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSMigrationHub.AssociateDiscoveredResource",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("AssociateDiscoveredResource");
|
|
19
13
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateProgressUpdateStreamCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSMigrationHub.CreateProgressUpdateStream",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateProgressUpdateStream");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_DeleteProgressUpdateStreamCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSMigrationHub.DeleteProgressUpdateStream",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DeleteProgressUpdateStream");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DescribeApplicationStateCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSMigrationHub.DescribeApplicationState",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DescribeApplicationState");
|
|
46
31
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DescribeMigrationTaskCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSMigrationHub.DescribeMigrationTask",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DescribeMigrationTask");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DisassociateCreatedArtifactCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSMigrationHub.DisassociateCreatedArtifact",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DisassociateCreatedArtifact");
|
|
64
43
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DisassociateDiscoveredResourceCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSMigrationHub.DisassociateDiscoveredResource",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DisassociateDiscoveredResource");
|
|
73
49
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_ImportMigrationTaskCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSMigrationHub.ImportMigrationTask",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("ImportMigrationTask");
|
|
82
55
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_ListApplicationStatesCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSMigrationHub.ListApplicationStates",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("ListApplicationStates");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_ListCreatedArtifactsCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSMigrationHub.ListCreatedArtifacts",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("ListCreatedArtifacts");
|
|
100
67
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_ListDiscoveredResourcesCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "AWSMigrationHub.ListDiscoveredResources",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("ListDiscoveredResources");
|
|
109
73
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_ListMigrationTasksCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AWSMigrationHub.ListMigrationTasks",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("ListMigrationTasks");
|
|
118
79
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_ListProgressUpdateStreamsCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "AWSMigrationHub.ListProgressUpdateStreams",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("ListProgressUpdateStreams");
|
|
127
85
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_NotifyApplicationStateCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AWSMigrationHub.NotifyApplicationState",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("NotifyApplicationState");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_NotifyApplicationStateRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_NotifyMigrationTaskStateCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AWSMigrationHub.NotifyMigrationTaskState",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("NotifyMigrationTaskState");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_NotifyMigrationTaskStateRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_PutResourceAttributesCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSMigrationHub.PutResourceAttributes",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("PutResourceAttributes");
|
|
154
103
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const de_AssociateCreatedArtifactCommand = async (output, context) => {
|
|
@@ -161,12 +110,12 @@ export const de_AssociateCreatedArtifactCommand = async (output, context) => {
|
|
|
161
110
|
}
|
|
162
111
|
const data = await parseBody(output.body, context);
|
|
163
112
|
let contents = {};
|
|
164
|
-
contents =
|
|
113
|
+
contents = _json(data);
|
|
165
114
|
const response = {
|
|
166
115
|
$metadata: deserializeMetadata(output),
|
|
167
116
|
...contents,
|
|
168
117
|
};
|
|
169
|
-
return
|
|
118
|
+
return response;
|
|
170
119
|
};
|
|
171
120
|
const de_AssociateCreatedArtifactCommandError = async (output, context) => {
|
|
172
121
|
const parsedOutput = {
|
|
@@ -204,10 +153,9 @@ const de_AssociateCreatedArtifactCommandError = async (output, context) => {
|
|
|
204
153
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
205
154
|
default:
|
|
206
155
|
const parsedBody = parsedOutput.body;
|
|
207
|
-
throwDefaultError({
|
|
156
|
+
return throwDefaultError({
|
|
208
157
|
output,
|
|
209
158
|
parsedBody,
|
|
210
|
-
exceptionCtor: __BaseException,
|
|
211
159
|
errorCode,
|
|
212
160
|
});
|
|
213
161
|
}
|
|
@@ -218,12 +166,12 @@ export const de_AssociateDiscoveredResourceCommand = async (output, context) =>
|
|
|
218
166
|
}
|
|
219
167
|
const data = await parseBody(output.body, context);
|
|
220
168
|
let contents = {};
|
|
221
|
-
contents =
|
|
169
|
+
contents = _json(data);
|
|
222
170
|
const response = {
|
|
223
171
|
$metadata: deserializeMetadata(output),
|
|
224
172
|
...contents,
|
|
225
173
|
};
|
|
226
|
-
return
|
|
174
|
+
return response;
|
|
227
175
|
};
|
|
228
176
|
const de_AssociateDiscoveredResourceCommandError = async (output, context) => {
|
|
229
177
|
const parsedOutput = {
|
|
@@ -264,10 +212,9 @@ const de_AssociateDiscoveredResourceCommandError = async (output, context) => {
|
|
|
264
212
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
265
213
|
default:
|
|
266
214
|
const parsedBody = parsedOutput.body;
|
|
267
|
-
throwDefaultError({
|
|
215
|
+
return throwDefaultError({
|
|
268
216
|
output,
|
|
269
217
|
parsedBody,
|
|
270
|
-
exceptionCtor: __BaseException,
|
|
271
218
|
errorCode,
|
|
272
219
|
});
|
|
273
220
|
}
|
|
@@ -278,12 +225,12 @@ export const de_CreateProgressUpdateStreamCommand = async (output, context) => {
|
|
|
278
225
|
}
|
|
279
226
|
const data = await parseBody(output.body, context);
|
|
280
227
|
let contents = {};
|
|
281
|
-
contents =
|
|
228
|
+
contents = _json(data);
|
|
282
229
|
const response = {
|
|
283
230
|
$metadata: deserializeMetadata(output),
|
|
284
231
|
...contents,
|
|
285
232
|
};
|
|
286
|
-
return
|
|
233
|
+
return response;
|
|
287
234
|
};
|
|
288
235
|
const de_CreateProgressUpdateStreamCommandError = async (output, context) => {
|
|
289
236
|
const parsedOutput = {
|
|
@@ -318,10 +265,9 @@ const de_CreateProgressUpdateStreamCommandError = async (output, context) => {
|
|
|
318
265
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
319
266
|
default:
|
|
320
267
|
const parsedBody = parsedOutput.body;
|
|
321
|
-
throwDefaultError({
|
|
268
|
+
return throwDefaultError({
|
|
322
269
|
output,
|
|
323
270
|
parsedBody,
|
|
324
|
-
exceptionCtor: __BaseException,
|
|
325
271
|
errorCode,
|
|
326
272
|
});
|
|
327
273
|
}
|
|
@@ -332,12 +278,12 @@ export const de_DeleteProgressUpdateStreamCommand = async (output, context) => {
|
|
|
332
278
|
}
|
|
333
279
|
const data = await parseBody(output.body, context);
|
|
334
280
|
let contents = {};
|
|
335
|
-
contents =
|
|
281
|
+
contents = _json(data);
|
|
336
282
|
const response = {
|
|
337
283
|
$metadata: deserializeMetadata(output),
|
|
338
284
|
...contents,
|
|
339
285
|
};
|
|
340
|
-
return
|
|
286
|
+
return response;
|
|
341
287
|
};
|
|
342
288
|
const de_DeleteProgressUpdateStreamCommandError = async (output, context) => {
|
|
343
289
|
const parsedOutput = {
|
|
@@ -375,10 +321,9 @@ const de_DeleteProgressUpdateStreamCommandError = async (output, context) => {
|
|
|
375
321
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
376
322
|
default:
|
|
377
323
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
throwDefaultError({
|
|
324
|
+
return throwDefaultError({
|
|
379
325
|
output,
|
|
380
326
|
parsedBody,
|
|
381
|
-
exceptionCtor: __BaseException,
|
|
382
327
|
errorCode,
|
|
383
328
|
});
|
|
384
329
|
}
|
|
@@ -394,7 +339,7 @@ export const de_DescribeApplicationStateCommand = async (output, context) => {
|
|
|
394
339
|
$metadata: deserializeMetadata(output),
|
|
395
340
|
...contents,
|
|
396
341
|
};
|
|
397
|
-
return
|
|
342
|
+
return response;
|
|
398
343
|
};
|
|
399
344
|
const de_DescribeApplicationStateCommandError = async (output, context) => {
|
|
400
345
|
const parsedOutput = {
|
|
@@ -429,10 +374,9 @@ const de_DescribeApplicationStateCommandError = async (output, context) => {
|
|
|
429
374
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
430
375
|
default:
|
|
431
376
|
const parsedBody = parsedOutput.body;
|
|
432
|
-
throwDefaultError({
|
|
377
|
+
return throwDefaultError({
|
|
433
378
|
output,
|
|
434
379
|
parsedBody,
|
|
435
|
-
exceptionCtor: __BaseException,
|
|
436
380
|
errorCode,
|
|
437
381
|
});
|
|
438
382
|
}
|
|
@@ -448,7 +392,7 @@ export const de_DescribeMigrationTaskCommand = async (output, context) => {
|
|
|
448
392
|
$metadata: deserializeMetadata(output),
|
|
449
393
|
...contents,
|
|
450
394
|
};
|
|
451
|
-
return
|
|
395
|
+
return response;
|
|
452
396
|
};
|
|
453
397
|
const de_DescribeMigrationTaskCommandError = async (output, context) => {
|
|
454
398
|
const parsedOutput = {
|
|
@@ -480,10 +424,9 @@ const de_DescribeMigrationTaskCommandError = async (output, context) => {
|
|
|
480
424
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
481
425
|
default:
|
|
482
426
|
const parsedBody = parsedOutput.body;
|
|
483
|
-
throwDefaultError({
|
|
427
|
+
return throwDefaultError({
|
|
484
428
|
output,
|
|
485
429
|
parsedBody,
|
|
486
|
-
exceptionCtor: __BaseException,
|
|
487
430
|
errorCode,
|
|
488
431
|
});
|
|
489
432
|
}
|
|
@@ -494,12 +437,12 @@ export const de_DisassociateCreatedArtifactCommand = async (output, context) =>
|
|
|
494
437
|
}
|
|
495
438
|
const data = await parseBody(output.body, context);
|
|
496
439
|
let contents = {};
|
|
497
|
-
contents =
|
|
440
|
+
contents = _json(data);
|
|
498
441
|
const response = {
|
|
499
442
|
$metadata: deserializeMetadata(output),
|
|
500
443
|
...contents,
|
|
501
444
|
};
|
|
502
|
-
return
|
|
445
|
+
return response;
|
|
503
446
|
};
|
|
504
447
|
const de_DisassociateCreatedArtifactCommandError = async (output, context) => {
|
|
505
448
|
const parsedOutput = {
|
|
@@ -537,10 +480,9 @@ const de_DisassociateCreatedArtifactCommandError = async (output, context) => {
|
|
|
537
480
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
538
481
|
default:
|
|
539
482
|
const parsedBody = parsedOutput.body;
|
|
540
|
-
throwDefaultError({
|
|
483
|
+
return throwDefaultError({
|
|
541
484
|
output,
|
|
542
485
|
parsedBody,
|
|
543
|
-
exceptionCtor: __BaseException,
|
|
544
486
|
errorCode,
|
|
545
487
|
});
|
|
546
488
|
}
|
|
@@ -551,12 +493,12 @@ export const de_DisassociateDiscoveredResourceCommand = async (output, context)
|
|
|
551
493
|
}
|
|
552
494
|
const data = await parseBody(output.body, context);
|
|
553
495
|
let contents = {};
|
|
554
|
-
contents =
|
|
496
|
+
contents = _json(data);
|
|
555
497
|
const response = {
|
|
556
498
|
$metadata: deserializeMetadata(output),
|
|
557
499
|
...contents,
|
|
558
500
|
};
|
|
559
|
-
return
|
|
501
|
+
return response;
|
|
560
502
|
};
|
|
561
503
|
const de_DisassociateDiscoveredResourceCommandError = async (output, context) => {
|
|
562
504
|
const parsedOutput = {
|
|
@@ -594,10 +536,9 @@ const de_DisassociateDiscoveredResourceCommandError = async (output, context) =>
|
|
|
594
536
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
595
537
|
default:
|
|
596
538
|
const parsedBody = parsedOutput.body;
|
|
597
|
-
throwDefaultError({
|
|
539
|
+
return throwDefaultError({
|
|
598
540
|
output,
|
|
599
541
|
parsedBody,
|
|
600
|
-
exceptionCtor: __BaseException,
|
|
601
542
|
errorCode,
|
|
602
543
|
});
|
|
603
544
|
}
|
|
@@ -608,12 +549,12 @@ export const de_ImportMigrationTaskCommand = async (output, context) => {
|
|
|
608
549
|
}
|
|
609
550
|
const data = await parseBody(output.body, context);
|
|
610
551
|
let contents = {};
|
|
611
|
-
contents =
|
|
552
|
+
contents = _json(data);
|
|
612
553
|
const response = {
|
|
613
554
|
$metadata: deserializeMetadata(output),
|
|
614
555
|
...contents,
|
|
615
556
|
};
|
|
616
|
-
return
|
|
557
|
+
return response;
|
|
617
558
|
};
|
|
618
559
|
const de_ImportMigrationTaskCommandError = async (output, context) => {
|
|
619
560
|
const parsedOutput = {
|
|
@@ -651,10 +592,9 @@ const de_ImportMigrationTaskCommandError = async (output, context) => {
|
|
|
651
592
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
652
593
|
default:
|
|
653
594
|
const parsedBody = parsedOutput.body;
|
|
654
|
-
throwDefaultError({
|
|
595
|
+
return throwDefaultError({
|
|
655
596
|
output,
|
|
656
597
|
parsedBody,
|
|
657
|
-
exceptionCtor: __BaseException,
|
|
658
598
|
errorCode,
|
|
659
599
|
});
|
|
660
600
|
}
|
|
@@ -670,7 +610,7 @@ export const de_ListApplicationStatesCommand = async (output, context) => {
|
|
|
670
610
|
$metadata: deserializeMetadata(output),
|
|
671
611
|
...contents,
|
|
672
612
|
};
|
|
673
|
-
return
|
|
613
|
+
return response;
|
|
674
614
|
};
|
|
675
615
|
const de_ListApplicationStatesCommandError = async (output, context) => {
|
|
676
616
|
const parsedOutput = {
|
|
@@ -699,10 +639,9 @@ const de_ListApplicationStatesCommandError = async (output, context) => {
|
|
|
699
639
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
640
|
default:
|
|
701
641
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
throwDefaultError({
|
|
642
|
+
return throwDefaultError({
|
|
703
643
|
output,
|
|
704
644
|
parsedBody,
|
|
705
|
-
exceptionCtor: __BaseException,
|
|
706
645
|
errorCode,
|
|
707
646
|
});
|
|
708
647
|
}
|
|
@@ -713,12 +652,12 @@ export const de_ListCreatedArtifactsCommand = async (output, context) => {
|
|
|
713
652
|
}
|
|
714
653
|
const data = await parseBody(output.body, context);
|
|
715
654
|
let contents = {};
|
|
716
|
-
contents =
|
|
655
|
+
contents = _json(data);
|
|
717
656
|
const response = {
|
|
718
657
|
$metadata: deserializeMetadata(output),
|
|
719
658
|
...contents,
|
|
720
659
|
};
|
|
721
|
-
return
|
|
660
|
+
return response;
|
|
722
661
|
};
|
|
723
662
|
const de_ListCreatedArtifactsCommandError = async (output, context) => {
|
|
724
663
|
const parsedOutput = {
|
|
@@ -750,10 +689,9 @@ const de_ListCreatedArtifactsCommandError = async (output, context) => {
|
|
|
750
689
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
751
690
|
default:
|
|
752
691
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
throwDefaultError({
|
|
692
|
+
return throwDefaultError({
|
|
754
693
|
output,
|
|
755
694
|
parsedBody,
|
|
756
|
-
exceptionCtor: __BaseException,
|
|
757
695
|
errorCode,
|
|
758
696
|
});
|
|
759
697
|
}
|
|
@@ -764,12 +702,12 @@ export const de_ListDiscoveredResourcesCommand = async (output, context) => {
|
|
|
764
702
|
}
|
|
765
703
|
const data = await parseBody(output.body, context);
|
|
766
704
|
let contents = {};
|
|
767
|
-
contents =
|
|
705
|
+
contents = _json(data);
|
|
768
706
|
const response = {
|
|
769
707
|
$metadata: deserializeMetadata(output),
|
|
770
708
|
...contents,
|
|
771
709
|
};
|
|
772
|
-
return
|
|
710
|
+
return response;
|
|
773
711
|
};
|
|
774
712
|
const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
775
713
|
const parsedOutput = {
|
|
@@ -801,10 +739,9 @@ const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
|
801
739
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
802
740
|
default:
|
|
803
741
|
const parsedBody = parsedOutput.body;
|
|
804
|
-
throwDefaultError({
|
|
742
|
+
return throwDefaultError({
|
|
805
743
|
output,
|
|
806
744
|
parsedBody,
|
|
807
|
-
exceptionCtor: __BaseException,
|
|
808
745
|
errorCode,
|
|
809
746
|
});
|
|
810
747
|
}
|
|
@@ -820,7 +757,7 @@ export const de_ListMigrationTasksCommand = async (output, context) => {
|
|
|
820
757
|
$metadata: deserializeMetadata(output),
|
|
821
758
|
...contents,
|
|
822
759
|
};
|
|
823
|
-
return
|
|
760
|
+
return response;
|
|
824
761
|
};
|
|
825
762
|
const de_ListMigrationTasksCommandError = async (output, context) => {
|
|
826
763
|
const parsedOutput = {
|
|
@@ -855,10 +792,9 @@ const de_ListMigrationTasksCommandError = async (output, context) => {
|
|
|
855
792
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
856
793
|
default:
|
|
857
794
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
throwDefaultError({
|
|
795
|
+
return throwDefaultError({
|
|
859
796
|
output,
|
|
860
797
|
parsedBody,
|
|
861
|
-
exceptionCtor: __BaseException,
|
|
862
798
|
errorCode,
|
|
863
799
|
});
|
|
864
800
|
}
|
|
@@ -869,12 +805,12 @@ export const de_ListProgressUpdateStreamsCommand = async (output, context) => {
|
|
|
869
805
|
}
|
|
870
806
|
const data = await parseBody(output.body, context);
|
|
871
807
|
let contents = {};
|
|
872
|
-
contents =
|
|
808
|
+
contents = _json(data);
|
|
873
809
|
const response = {
|
|
874
810
|
$metadata: deserializeMetadata(output),
|
|
875
811
|
...contents,
|
|
876
812
|
};
|
|
877
|
-
return
|
|
813
|
+
return response;
|
|
878
814
|
};
|
|
879
815
|
const de_ListProgressUpdateStreamsCommandError = async (output, context) => {
|
|
880
816
|
const parsedOutput = {
|
|
@@ -903,10 +839,9 @@ const de_ListProgressUpdateStreamsCommandError = async (output, context) => {
|
|
|
903
839
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
904
840
|
default:
|
|
905
841
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
throwDefaultError({
|
|
842
|
+
return throwDefaultError({
|
|
907
843
|
output,
|
|
908
844
|
parsedBody,
|
|
909
|
-
exceptionCtor: __BaseException,
|
|
910
845
|
errorCode,
|
|
911
846
|
});
|
|
912
847
|
}
|
|
@@ -917,12 +852,12 @@ export const de_NotifyApplicationStateCommand = async (output, context) => {
|
|
|
917
852
|
}
|
|
918
853
|
const data = await parseBody(output.body, context);
|
|
919
854
|
let contents = {};
|
|
920
|
-
contents =
|
|
855
|
+
contents = _json(data);
|
|
921
856
|
const response = {
|
|
922
857
|
$metadata: deserializeMetadata(output),
|
|
923
858
|
...contents,
|
|
924
859
|
};
|
|
925
|
-
return
|
|
860
|
+
return response;
|
|
926
861
|
};
|
|
927
862
|
const de_NotifyApplicationStateCommandError = async (output, context) => {
|
|
928
863
|
const parsedOutput = {
|
|
@@ -963,10 +898,9 @@ const de_NotifyApplicationStateCommandError = async (output, context) => {
|
|
|
963
898
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
964
899
|
default:
|
|
965
900
|
const parsedBody = parsedOutput.body;
|
|
966
|
-
throwDefaultError({
|
|
901
|
+
return throwDefaultError({
|
|
967
902
|
output,
|
|
968
903
|
parsedBody,
|
|
969
|
-
exceptionCtor: __BaseException,
|
|
970
904
|
errorCode,
|
|
971
905
|
});
|
|
972
906
|
}
|
|
@@ -977,12 +911,12 @@ export const de_NotifyMigrationTaskStateCommand = async (output, context) => {
|
|
|
977
911
|
}
|
|
978
912
|
const data = await parseBody(output.body, context);
|
|
979
913
|
let contents = {};
|
|
980
|
-
contents =
|
|
914
|
+
contents = _json(data);
|
|
981
915
|
const response = {
|
|
982
916
|
$metadata: deserializeMetadata(output),
|
|
983
917
|
...contents,
|
|
984
918
|
};
|
|
985
|
-
return
|
|
919
|
+
return response;
|
|
986
920
|
};
|
|
987
921
|
const de_NotifyMigrationTaskStateCommandError = async (output, context) => {
|
|
988
922
|
const parsedOutput = {
|
|
@@ -1020,10 +954,9 @@ const de_NotifyMigrationTaskStateCommandError = async (output, context) => {
|
|
|
1020
954
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1021
955
|
default:
|
|
1022
956
|
const parsedBody = parsedOutput.body;
|
|
1023
|
-
throwDefaultError({
|
|
957
|
+
return throwDefaultError({
|
|
1024
958
|
output,
|
|
1025
959
|
parsedBody,
|
|
1026
|
-
exceptionCtor: __BaseException,
|
|
1027
960
|
errorCode,
|
|
1028
961
|
});
|
|
1029
962
|
}
|
|
@@ -1034,12 +967,12 @@ export const de_PutResourceAttributesCommand = async (output, context) => {
|
|
|
1034
967
|
}
|
|
1035
968
|
const data = await parseBody(output.body, context);
|
|
1036
969
|
let contents = {};
|
|
1037
|
-
contents =
|
|
970
|
+
contents = _json(data);
|
|
1038
971
|
const response = {
|
|
1039
972
|
$metadata: deserializeMetadata(output),
|
|
1040
973
|
...contents,
|
|
1041
974
|
};
|
|
1042
|
-
return
|
|
975
|
+
return response;
|
|
1043
976
|
};
|
|
1044
977
|
const de_PutResourceAttributesCommandError = async (output, context) => {
|
|
1045
978
|
const parsedOutput = {
|
|
@@ -1077,17 +1010,16 @@ const de_PutResourceAttributesCommandError = async (output, context) => {
|
|
|
1077
1010
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1078
1011
|
default:
|
|
1079
1012
|
const parsedBody = parsedOutput.body;
|
|
1080
|
-
throwDefaultError({
|
|
1013
|
+
return throwDefaultError({
|
|
1081
1014
|
output,
|
|
1082
1015
|
parsedBody,
|
|
1083
|
-
exceptionCtor: __BaseException,
|
|
1084
1016
|
errorCode,
|
|
1085
1017
|
});
|
|
1086
1018
|
}
|
|
1087
1019
|
};
|
|
1088
1020
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1089
1021
|
const body = parsedOutput.body;
|
|
1090
|
-
const deserialized =
|
|
1022
|
+
const deserialized = _json(body);
|
|
1091
1023
|
const exception = new AccessDeniedException({
|
|
1092
1024
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1093
1025
|
...deserialized,
|
|
@@ -1096,7 +1028,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1096
1028
|
};
|
|
1097
1029
|
const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
1098
1030
|
const body = parsedOutput.body;
|
|
1099
|
-
const deserialized =
|
|
1031
|
+
const deserialized = _json(body);
|
|
1100
1032
|
const exception = new DryRunOperation({
|
|
1101
1033
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1102
1034
|
...deserialized,
|
|
@@ -1105,7 +1037,7 @@ const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
|
1105
1037
|
};
|
|
1106
1038
|
const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
1107
1039
|
const body = parsedOutput.body;
|
|
1108
|
-
const deserialized =
|
|
1040
|
+
const deserialized = _json(body);
|
|
1109
1041
|
const exception = new HomeRegionNotSetException({
|
|
1110
1042
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
1043
|
...deserialized,
|
|
@@ -1114,7 +1046,7 @@ const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
|
1114
1046
|
};
|
|
1115
1047
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1116
1048
|
const body = parsedOutput.body;
|
|
1117
|
-
const deserialized =
|
|
1049
|
+
const deserialized = _json(body);
|
|
1118
1050
|
const exception = new InternalServerError({
|
|
1119
1051
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1120
1052
|
...deserialized,
|
|
@@ -1123,7 +1055,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
1123
1055
|
};
|
|
1124
1056
|
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1125
1057
|
const body = parsedOutput.body;
|
|
1126
|
-
const deserialized =
|
|
1058
|
+
const deserialized = _json(body);
|
|
1127
1059
|
const exception = new InvalidInputException({
|
|
1128
1060
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1129
1061
|
...deserialized,
|
|
@@ -1132,7 +1064,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
|
1132
1064
|
};
|
|
1133
1065
|
const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
|
|
1134
1066
|
const body = parsedOutput.body;
|
|
1135
|
-
const deserialized =
|
|
1067
|
+
const deserialized = _json(body);
|
|
1136
1068
|
const exception = new PolicyErrorException({
|
|
1137
1069
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1138
1070
|
...deserialized,
|
|
@@ -1141,7 +1073,7 @@ const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1141
1073
|
};
|
|
1142
1074
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1143
1075
|
const body = parsedOutput.body;
|
|
1144
|
-
const deserialized =
|
|
1076
|
+
const deserialized = _json(body);
|
|
1145
1077
|
const exception = new ResourceNotFoundException({
|
|
1146
1078
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
1079
|
...deserialized,
|
|
@@ -1150,7 +1082,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1150
1082
|
};
|
|
1151
1083
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1152
1084
|
const body = parsedOutput.body;
|
|
1153
|
-
const deserialized =
|
|
1085
|
+
const deserialized = _json(body);
|
|
1154
1086
|
const exception = new ServiceUnavailableException({
|
|
1155
1087
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1156
1088
|
...deserialized,
|
|
@@ -1159,7 +1091,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1159
1091
|
};
|
|
1160
1092
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1161
1093
|
const body = parsedOutput.body;
|
|
1162
|
-
const deserialized =
|
|
1094
|
+
const deserialized = _json(body);
|
|
1163
1095
|
const exception = new ThrottlingException({
|
|
1164
1096
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1165
1097
|
...deserialized,
|
|
@@ -1168,440 +1100,96 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1168
1100
|
};
|
|
1169
1101
|
const de_UnauthorizedOperationRes = async (parsedOutput, context) => {
|
|
1170
1102
|
const body = parsedOutput.body;
|
|
1171
|
-
const deserialized =
|
|
1103
|
+
const deserialized = _json(body);
|
|
1172
1104
|
const exception = new UnauthorizedOperation({
|
|
1173
1105
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1174
1106
|
...deserialized,
|
|
1175
1107
|
});
|
|
1176
1108
|
return __decorateServiceException(exception, body);
|
|
1177
1109
|
};
|
|
1178
|
-
const se_ApplicationIds = (input, context) => {
|
|
1179
|
-
return input
|
|
1180
|
-
.filter((e) => e != null)
|
|
1181
|
-
.map((entry) => {
|
|
1182
|
-
return entry;
|
|
1183
|
-
});
|
|
1184
|
-
};
|
|
1185
|
-
const se_AssociateCreatedArtifactRequest = (input, context) => {
|
|
1186
|
-
return {
|
|
1187
|
-
...(input.CreatedArtifact != null && { CreatedArtifact: se_CreatedArtifact(input.CreatedArtifact, context) }),
|
|
1188
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1189
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1190
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1191
|
-
};
|
|
1192
|
-
};
|
|
1193
|
-
const se_AssociateDiscoveredResourceRequest = (input, context) => {
|
|
1194
|
-
return {
|
|
1195
|
-
...(input.DiscoveredResource != null && {
|
|
1196
|
-
DiscoveredResource: se_DiscoveredResource(input.DiscoveredResource, context),
|
|
1197
|
-
}),
|
|
1198
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1199
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1200
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1201
|
-
};
|
|
1202
|
-
};
|
|
1203
|
-
const se_CreatedArtifact = (input, context) => {
|
|
1204
|
-
return {
|
|
1205
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1206
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1207
|
-
};
|
|
1208
|
-
};
|
|
1209
|
-
const se_CreateProgressUpdateStreamRequest = (input, context) => {
|
|
1210
|
-
return {
|
|
1211
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1212
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1213
|
-
};
|
|
1214
|
-
};
|
|
1215
|
-
const se_DeleteProgressUpdateStreamRequest = (input, context) => {
|
|
1216
|
-
return {
|
|
1217
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1218
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1219
|
-
};
|
|
1220
|
-
};
|
|
1221
|
-
const se_DescribeApplicationStateRequest = (input, context) => {
|
|
1222
|
-
return {
|
|
1223
|
-
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
const se_DescribeMigrationTaskRequest = (input, context) => {
|
|
1227
|
-
return {
|
|
1228
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1229
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const se_DisassociateCreatedArtifactRequest = (input, context) => {
|
|
1233
|
-
return {
|
|
1234
|
-
...(input.CreatedArtifactName != null && { CreatedArtifactName: input.CreatedArtifactName }),
|
|
1235
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1236
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1237
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
const se_DisassociateDiscoveredResourceRequest = (input, context) => {
|
|
1241
|
-
return {
|
|
1242
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1243
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1244
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1245
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
const se_DiscoveredResource = (input, context) => {
|
|
1249
|
-
return {
|
|
1250
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1251
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
const se_ImportMigrationTaskRequest = (input, context) => {
|
|
1255
|
-
return {
|
|
1256
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1257
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1258
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1259
|
-
};
|
|
1260
|
-
};
|
|
1261
|
-
const se_ListApplicationStatesRequest = (input, context) => {
|
|
1262
|
-
return {
|
|
1263
|
-
...(input.ApplicationIds != null && { ApplicationIds: se_ApplicationIds(input.ApplicationIds, context) }),
|
|
1264
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1265
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1266
|
-
};
|
|
1267
|
-
};
|
|
1268
|
-
const se_ListCreatedArtifactsRequest = (input, context) => {
|
|
1269
|
-
return {
|
|
1270
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1271
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1272
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1273
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
const se_ListDiscoveredResourcesRequest = (input, context) => {
|
|
1277
|
-
return {
|
|
1278
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1279
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1280
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1281
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1282
|
-
};
|
|
1283
|
-
};
|
|
1284
|
-
const se_ListMigrationTasksRequest = (input, context) => {
|
|
1285
|
-
return {
|
|
1286
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1287
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1288
|
-
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
const se_ListProgressUpdateStreamsRequest = (input, context) => {
|
|
1292
|
-
return {
|
|
1293
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1294
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1295
|
-
};
|
|
1296
|
-
};
|
|
1297
1110
|
const se_NotifyApplicationStateRequest = (input, context) => {
|
|
1298
|
-
return {
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
};
|
|
1111
|
+
return take(input, {
|
|
1112
|
+
ApplicationId: [],
|
|
1113
|
+
DryRun: [],
|
|
1114
|
+
Status: [],
|
|
1115
|
+
UpdateDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1116
|
+
});
|
|
1304
1117
|
};
|
|
1305
1118
|
const se_NotifyMigrationTaskStateRequest = (input, context) => {
|
|
1306
|
-
return {
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
};
|
|
1314
|
-
};
|
|
1315
|
-
const se_PutResourceAttributesRequest = (input, context) => {
|
|
1316
|
-
return {
|
|
1317
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1318
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1319
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1320
|
-
...(input.ResourceAttributeList != null && {
|
|
1321
|
-
ResourceAttributeList: se_ResourceAttributeList(input.ResourceAttributeList, context),
|
|
1322
|
-
}),
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
const se_ResourceAttribute = (input, context) => {
|
|
1326
|
-
return {
|
|
1327
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1328
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1329
|
-
};
|
|
1330
|
-
};
|
|
1331
|
-
const se_ResourceAttributeList = (input, context) => {
|
|
1332
|
-
return input
|
|
1333
|
-
.filter((e) => e != null)
|
|
1334
|
-
.map((entry) => {
|
|
1335
|
-
return se_ResourceAttribute(entry, context);
|
|
1119
|
+
return take(input, {
|
|
1120
|
+
DryRun: [],
|
|
1121
|
+
MigrationTaskName: [],
|
|
1122
|
+
NextUpdateSeconds: [],
|
|
1123
|
+
ProgressUpdateStream: [],
|
|
1124
|
+
Task: _json,
|
|
1125
|
+
UpdateDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1336
1126
|
});
|
|
1337
1127
|
};
|
|
1338
|
-
const se_Task = (input, context) => {
|
|
1339
|
-
return {
|
|
1340
|
-
...(input.ProgressPercent != null && { ProgressPercent: input.ProgressPercent }),
|
|
1341
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1342
|
-
...(input.StatusDetail != null && { StatusDetail: input.StatusDetail }),
|
|
1343
|
-
};
|
|
1344
|
-
};
|
|
1345
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1346
|
-
return {
|
|
1347
|
-
Message: __expectString(output.Message),
|
|
1348
|
-
};
|
|
1349
|
-
};
|
|
1350
1128
|
const de_ApplicationState = (output, context) => {
|
|
1351
|
-
return {
|
|
1352
|
-
ApplicationId: __expectString
|
|
1353
|
-
ApplicationStatus: __expectString
|
|
1354
|
-
LastUpdatedTime:
|
|
1355
|
-
|
|
1356
|
-
: undefined,
|
|
1357
|
-
};
|
|
1129
|
+
return take(output, {
|
|
1130
|
+
ApplicationId: __expectString,
|
|
1131
|
+
ApplicationStatus: __expectString,
|
|
1132
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1133
|
+
});
|
|
1358
1134
|
};
|
|
1359
1135
|
const de_ApplicationStateList = (output, context) => {
|
|
1360
1136
|
const retVal = (output || [])
|
|
1361
1137
|
.filter((e) => e != null)
|
|
1362
1138
|
.map((entry) => {
|
|
1363
|
-
if (entry === null) {
|
|
1364
|
-
return null;
|
|
1365
|
-
}
|
|
1366
1139
|
return de_ApplicationState(entry, context);
|
|
1367
1140
|
});
|
|
1368
1141
|
return retVal;
|
|
1369
1142
|
};
|
|
1370
|
-
const de_AssociateCreatedArtifactResult = (output, context) => {
|
|
1371
|
-
return {};
|
|
1372
|
-
};
|
|
1373
|
-
const de_AssociateDiscoveredResourceResult = (output, context) => {
|
|
1374
|
-
return {};
|
|
1375
|
-
};
|
|
1376
|
-
const de_CreatedArtifact = (output, context) => {
|
|
1377
|
-
return {
|
|
1378
|
-
Description: __expectString(output.Description),
|
|
1379
|
-
Name: __expectString(output.Name),
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const de_CreatedArtifactList = (output, context) => {
|
|
1383
|
-
const retVal = (output || [])
|
|
1384
|
-
.filter((e) => e != null)
|
|
1385
|
-
.map((entry) => {
|
|
1386
|
-
if (entry === null) {
|
|
1387
|
-
return null;
|
|
1388
|
-
}
|
|
1389
|
-
return de_CreatedArtifact(entry, context);
|
|
1390
|
-
});
|
|
1391
|
-
return retVal;
|
|
1392
|
-
};
|
|
1393
|
-
const de_CreateProgressUpdateStreamResult = (output, context) => {
|
|
1394
|
-
return {};
|
|
1395
|
-
};
|
|
1396
|
-
const de_DeleteProgressUpdateStreamResult = (output, context) => {
|
|
1397
|
-
return {};
|
|
1398
|
-
};
|
|
1399
1143
|
const de_DescribeApplicationStateResult = (output, context) => {
|
|
1400
|
-
return {
|
|
1401
|
-
ApplicationStatus: __expectString
|
|
1402
|
-
LastUpdatedTime:
|
|
1403
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1404
|
-
: undefined,
|
|
1405
|
-
};
|
|
1406
|
-
};
|
|
1407
|
-
const de_DescribeMigrationTaskResult = (output, context) => {
|
|
1408
|
-
return {
|
|
1409
|
-
MigrationTask: output.MigrationTask != null ? de_MigrationTask(output.MigrationTask, context) : undefined,
|
|
1410
|
-
};
|
|
1411
|
-
};
|
|
1412
|
-
const de_DisassociateCreatedArtifactResult = (output, context) => {
|
|
1413
|
-
return {};
|
|
1414
|
-
};
|
|
1415
|
-
const de_DisassociateDiscoveredResourceResult = (output, context) => {
|
|
1416
|
-
return {};
|
|
1417
|
-
};
|
|
1418
|
-
const de_DiscoveredResource = (output, context) => {
|
|
1419
|
-
return {
|
|
1420
|
-
ConfigurationId: __expectString(output.ConfigurationId),
|
|
1421
|
-
Description: __expectString(output.Description),
|
|
1422
|
-
};
|
|
1423
|
-
};
|
|
1424
|
-
const de_DiscoveredResourceList = (output, context) => {
|
|
1425
|
-
const retVal = (output || [])
|
|
1426
|
-
.filter((e) => e != null)
|
|
1427
|
-
.map((entry) => {
|
|
1428
|
-
if (entry === null) {
|
|
1429
|
-
return null;
|
|
1430
|
-
}
|
|
1431
|
-
return de_DiscoveredResource(entry, context);
|
|
1144
|
+
return take(output, {
|
|
1145
|
+
ApplicationStatus: __expectString,
|
|
1146
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1432
1147
|
});
|
|
1433
|
-
return retVal;
|
|
1434
|
-
};
|
|
1435
|
-
const de_DryRunOperation = (output, context) => {
|
|
1436
|
-
return {
|
|
1437
|
-
Message: __expectString(output.Message),
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
const de_HomeRegionNotSetException = (output, context) => {
|
|
1441
|
-
return {
|
|
1442
|
-
Message: __expectString(output.Message),
|
|
1443
|
-
};
|
|
1444
|
-
};
|
|
1445
|
-
const de_ImportMigrationTaskResult = (output, context) => {
|
|
1446
|
-
return {};
|
|
1447
|
-
};
|
|
1448
|
-
const de_InternalServerError = (output, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
Message: __expectString(output.Message),
|
|
1451
|
-
};
|
|
1452
1148
|
};
|
|
1453
|
-
const
|
|
1454
|
-
return {
|
|
1455
|
-
|
|
1456
|
-
};
|
|
1457
|
-
};
|
|
1458
|
-
const de_LatestResourceAttributeList = (output, context) => {
|
|
1459
|
-
const retVal = (output || [])
|
|
1460
|
-
.filter((e) => e != null)
|
|
1461
|
-
.map((entry) => {
|
|
1462
|
-
if (entry === null) {
|
|
1463
|
-
return null;
|
|
1464
|
-
}
|
|
1465
|
-
return de_ResourceAttribute(entry, context);
|
|
1149
|
+
const de_DescribeMigrationTaskResult = (output, context) => {
|
|
1150
|
+
return take(output, {
|
|
1151
|
+
MigrationTask: (_) => de_MigrationTask(_, context),
|
|
1466
1152
|
});
|
|
1467
|
-
return retVal;
|
|
1468
1153
|
};
|
|
1469
1154
|
const de_ListApplicationStatesResult = (output, context) => {
|
|
1470
|
-
return {
|
|
1471
|
-
ApplicationStateList:
|
|
1472
|
-
NextToken: __expectString
|
|
1473
|
-
};
|
|
1474
|
-
};
|
|
1475
|
-
const de_ListCreatedArtifactsResult = (output, context) => {
|
|
1476
|
-
return {
|
|
1477
|
-
CreatedArtifactList: output.CreatedArtifactList != null ? de_CreatedArtifactList(output.CreatedArtifactList, context) : undefined,
|
|
1478
|
-
NextToken: __expectString(output.NextToken),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const de_ListDiscoveredResourcesResult = (output, context) => {
|
|
1482
|
-
return {
|
|
1483
|
-
DiscoveredResourceList: output.DiscoveredResourceList != null
|
|
1484
|
-
? de_DiscoveredResourceList(output.DiscoveredResourceList, context)
|
|
1485
|
-
: undefined,
|
|
1486
|
-
NextToken: __expectString(output.NextToken),
|
|
1487
|
-
};
|
|
1155
|
+
return take(output, {
|
|
1156
|
+
ApplicationStateList: (_) => de_ApplicationStateList(_, context),
|
|
1157
|
+
NextToken: __expectString,
|
|
1158
|
+
});
|
|
1488
1159
|
};
|
|
1489
1160
|
const de_ListMigrationTasksResult = (output, context) => {
|
|
1490
|
-
return {
|
|
1491
|
-
MigrationTaskSummaryList:
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
NextToken: __expectString(output.NextToken),
|
|
1495
|
-
};
|
|
1496
|
-
};
|
|
1497
|
-
const de_ListProgressUpdateStreamsResult = (output, context) => {
|
|
1498
|
-
return {
|
|
1499
|
-
NextToken: __expectString(output.NextToken),
|
|
1500
|
-
ProgressUpdateStreamSummaryList: output.ProgressUpdateStreamSummaryList != null
|
|
1501
|
-
? de_ProgressUpdateStreamSummaryList(output.ProgressUpdateStreamSummaryList, context)
|
|
1502
|
-
: undefined,
|
|
1503
|
-
};
|
|
1161
|
+
return take(output, {
|
|
1162
|
+
MigrationTaskSummaryList: (_) => de_MigrationTaskSummaryList(_, context),
|
|
1163
|
+
NextToken: __expectString,
|
|
1164
|
+
});
|
|
1504
1165
|
};
|
|
1505
1166
|
const de_MigrationTask = (output, context) => {
|
|
1506
|
-
return {
|
|
1507
|
-
MigrationTaskName: __expectString
|
|
1508
|
-
ProgressUpdateStream: __expectString
|
|
1509
|
-
ResourceAttributeList:
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
UpdateDateTime: output.UpdateDateTime != null
|
|
1514
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDateTime)))
|
|
1515
|
-
: undefined,
|
|
1516
|
-
};
|
|
1167
|
+
return take(output, {
|
|
1168
|
+
MigrationTaskName: __expectString,
|
|
1169
|
+
ProgressUpdateStream: __expectString,
|
|
1170
|
+
ResourceAttributeList: _json,
|
|
1171
|
+
Task: _json,
|
|
1172
|
+
UpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1173
|
+
});
|
|
1517
1174
|
};
|
|
1518
1175
|
const de_MigrationTaskSummary = (output, context) => {
|
|
1519
|
-
return {
|
|
1520
|
-
MigrationTaskName: __expectString
|
|
1521
|
-
ProgressPercent: __expectInt32
|
|
1522
|
-
ProgressUpdateStream: __expectString
|
|
1523
|
-
Status: __expectString
|
|
1524
|
-
StatusDetail: __expectString
|
|
1525
|
-
UpdateDateTime:
|
|
1526
|
-
|
|
1527
|
-
: undefined,
|
|
1528
|
-
};
|
|
1176
|
+
return take(output, {
|
|
1177
|
+
MigrationTaskName: __expectString,
|
|
1178
|
+
ProgressPercent: __expectInt32,
|
|
1179
|
+
ProgressUpdateStream: __expectString,
|
|
1180
|
+
Status: __expectString,
|
|
1181
|
+
StatusDetail: __expectString,
|
|
1182
|
+
UpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1183
|
+
});
|
|
1529
1184
|
};
|
|
1530
1185
|
const de_MigrationTaskSummaryList = (output, context) => {
|
|
1531
1186
|
const retVal = (output || [])
|
|
1532
1187
|
.filter((e) => e != null)
|
|
1533
1188
|
.map((entry) => {
|
|
1534
|
-
if (entry === null) {
|
|
1535
|
-
return null;
|
|
1536
|
-
}
|
|
1537
1189
|
return de_MigrationTaskSummary(entry, context);
|
|
1538
1190
|
});
|
|
1539
1191
|
return retVal;
|
|
1540
1192
|
};
|
|
1541
|
-
const de_NotifyApplicationStateResult = (output, context) => {
|
|
1542
|
-
return {};
|
|
1543
|
-
};
|
|
1544
|
-
const de_NotifyMigrationTaskStateResult = (output, context) => {
|
|
1545
|
-
return {};
|
|
1546
|
-
};
|
|
1547
|
-
const de_PolicyErrorException = (output, context) => {
|
|
1548
|
-
return {
|
|
1549
|
-
Message: __expectString(output.Message),
|
|
1550
|
-
};
|
|
1551
|
-
};
|
|
1552
|
-
const de_ProgressUpdateStreamSummary = (output, context) => {
|
|
1553
|
-
return {
|
|
1554
|
-
ProgressUpdateStreamName: __expectString(output.ProgressUpdateStreamName),
|
|
1555
|
-
};
|
|
1556
|
-
};
|
|
1557
|
-
const de_ProgressUpdateStreamSummaryList = (output, context) => {
|
|
1558
|
-
const retVal = (output || [])
|
|
1559
|
-
.filter((e) => e != null)
|
|
1560
|
-
.map((entry) => {
|
|
1561
|
-
if (entry === null) {
|
|
1562
|
-
return null;
|
|
1563
|
-
}
|
|
1564
|
-
return de_ProgressUpdateStreamSummary(entry, context);
|
|
1565
|
-
});
|
|
1566
|
-
return retVal;
|
|
1567
|
-
};
|
|
1568
|
-
const de_PutResourceAttributesResult = (output, context) => {
|
|
1569
|
-
return {};
|
|
1570
|
-
};
|
|
1571
|
-
const de_ResourceAttribute = (output, context) => {
|
|
1572
|
-
return {
|
|
1573
|
-
Type: __expectString(output.Type),
|
|
1574
|
-
Value: __expectString(output.Value),
|
|
1575
|
-
};
|
|
1576
|
-
};
|
|
1577
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1578
|
-
return {
|
|
1579
|
-
Message: __expectString(output.Message),
|
|
1580
|
-
};
|
|
1581
|
-
};
|
|
1582
|
-
const de_ServiceUnavailableException = (output, context) => {
|
|
1583
|
-
return {
|
|
1584
|
-
Message: __expectString(output.Message),
|
|
1585
|
-
};
|
|
1586
|
-
};
|
|
1587
|
-
const de_Task = (output, context) => {
|
|
1588
|
-
return {
|
|
1589
|
-
ProgressPercent: __expectInt32(output.ProgressPercent),
|
|
1590
|
-
Status: __expectString(output.Status),
|
|
1591
|
-
StatusDetail: __expectString(output.StatusDetail),
|
|
1592
|
-
};
|
|
1593
|
-
};
|
|
1594
|
-
const de_ThrottlingException = (output, context) => {
|
|
1595
|
-
return {
|
|
1596
|
-
Message: __expectString(output.Message),
|
|
1597
|
-
RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
|
|
1598
|
-
};
|
|
1599
|
-
};
|
|
1600
|
-
const de_UnauthorizedOperation = (output, context) => {
|
|
1601
|
-
return {
|
|
1602
|
-
Message: __expectString(output.Message),
|
|
1603
|
-
};
|
|
1604
|
-
};
|
|
1605
1193
|
const deserializeMetadata = (output) => ({
|
|
1606
1194
|
httpStatusCode: output.statusCode,
|
|
1607
1195
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1615,6 +1203,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1615
1203
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1616
1204
|
};
|
|
1617
1205
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1206
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1618
1207
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1619
1208
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1620
1209
|
const contents = {
|
|
@@ -1633,6 +1222,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1633
1222
|
}
|
|
1634
1223
|
return new __HttpRequest(contents);
|
|
1635
1224
|
};
|
|
1225
|
+
function sharedHeaders(operation) {
|
|
1226
|
+
return {
|
|
1227
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1228
|
+
"x-amz-target": `AWSMigrationHub.${operation}`,
|
|
1229
|
+
};
|
|
1230
|
+
}
|
|
1636
1231
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1637
1232
|
if (encoded.length) {
|
|
1638
1233
|
return JSON.parse(encoded);
|