@aws-sdk/client-migration-hub 3.306.0 → 3.310.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/commands/AssociateCreatedArtifactCommand.js +2 -2
- package/dist-cjs/commands/AssociateDiscoveredResourceCommand.js +2 -2
- package/dist-cjs/commands/CreateProgressUpdateStreamCommand.js +2 -2
- package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +2 -2
- package/dist-cjs/commands/DescribeApplicationStateCommand.js +2 -2
- package/dist-cjs/commands/DescribeMigrationTaskCommand.js +2 -2
- package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +2 -2
- package/dist-cjs/commands/DisassociateDiscoveredResourceCommand.js +2 -2
- package/dist-cjs/commands/ImportMigrationTaskCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationStatesCommand.js +2 -2
- package/dist-cjs/commands/ListCreatedArtifactsCommand.js +2 -2
- package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListMigrationTasksCommand.js +2 -2
- package/dist-cjs/commands/ListProgressUpdateStreamsCommand.js +2 -2
- package/dist-cjs/commands/NotifyApplicationStateCommand.js +2 -2
- package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +2 -2
- package/dist-cjs/commands/PutResourceAttributesCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +381 -389
- package/dist-es/commands/AssociateCreatedArtifactCommand.js +3 -3
- package/dist-es/commands/AssociateDiscoveredResourceCommand.js +3 -3
- package/dist-es/commands/CreateProgressUpdateStreamCommand.js +3 -3
- package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +3 -3
- package/dist-es/commands/DescribeApplicationStateCommand.js +3 -3
- package/dist-es/commands/DescribeMigrationTaskCommand.js +3 -3
- package/dist-es/commands/DisassociateCreatedArtifactCommand.js +3 -3
- package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +3 -3
- package/dist-es/commands/ImportMigrationTaskCommand.js +3 -3
- package/dist-es/commands/ListApplicationStatesCommand.js +3 -3
- package/dist-es/commands/ListCreatedArtifactsCommand.js +3 -3
- package/dist-es/commands/ListDiscoveredResourcesCommand.js +3 -3
- package/dist-es/commands/ListMigrationTasksCommand.js +3 -3
- package/dist-es/commands/ListProgressUpdateStreamsCommand.js +3 -3
- package/dist-es/commands/NotifyApplicationStateCommand.js +3 -3
- package/dist-es/commands/NotifyMigrationTaskStateCommand.js +3 -3
- package/dist-es/commands/PutResourceAttributesCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +346 -354
- package/dist-types/protocols/Aws_json1_1.d.ts +136 -34
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +34 -34
- package/package.json +35 -35
|
@@ -2,173 +2,173 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } 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
|
-
export const
|
|
5
|
+
export const se_AssociateCreatedArtifactCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "AWSMigrationHub.AssociateCreatedArtifact",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_AssociateCreatedArtifactRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_AssociateDiscoveredResourceCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "AWSMigrationHub.AssociateDiscoveredResource",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_AssociateDiscoveredResourceRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_CreateProgressUpdateStreamCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "AWSMigrationHub.CreateProgressUpdateStream",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_CreateProgressUpdateStreamRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_DeleteProgressUpdateStreamCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "AWSMigrationHub.DeleteProgressUpdateStream",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_DeleteProgressUpdateStreamRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_DescribeApplicationStateCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "AWSMigrationHub.DescribeApplicationState",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_DescribeApplicationStateRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_DescribeMigrationTaskCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "AWSMigrationHub.DescribeMigrationTask",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_DescribeMigrationTaskRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_DisassociateCreatedArtifactCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "AWSMigrationHub.DisassociateCreatedArtifact",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DisassociateCreatedArtifactRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_DisassociateDiscoveredResourceCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "AWSMigrationHub.DisassociateDiscoveredResource",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DisassociateDiscoveredResourceRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_ImportMigrationTaskCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "AWSMigrationHub.ImportMigrationTask",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_ImportMigrationTaskRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_ListApplicationStatesCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "AWSMigrationHub.ListApplicationStates",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_ListApplicationStatesRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_ListCreatedArtifactsCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "AWSMigrationHub.ListCreatedArtifacts",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_ListCreatedArtifactsRequest(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_ListDiscoveredResourcesCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.1",
|
|
107
107
|
"x-amz-target": "AWSMigrationHub.ListDiscoveredResources",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_ListDiscoveredResourcesRequest(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_ListMigrationTasksCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.1",
|
|
116
116
|
"x-amz-target": "AWSMigrationHub.ListMigrationTasks",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_ListMigrationTasksRequest(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_ListProgressUpdateStreamsCommand = async (input, context) => {
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/x-amz-json-1.1",
|
|
125
125
|
"x-amz-target": "AWSMigrationHub.ListProgressUpdateStreams",
|
|
126
126
|
};
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(se_ListProgressUpdateStreamsRequest(input, context));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const se_NotifyApplicationStateCommand = async (input, context) => {
|
|
132
132
|
const headers = {
|
|
133
133
|
"content-type": "application/x-amz-json-1.1",
|
|
134
134
|
"x-amz-target": "AWSMigrationHub.NotifyApplicationState",
|
|
135
135
|
};
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify(se_NotifyApplicationStateRequest(input, context));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_NotifyMigrationTaskStateCommand = async (input, context) => {
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/x-amz-json-1.1",
|
|
143
143
|
"x-amz-target": "AWSMigrationHub.NotifyMigrationTaskState",
|
|
144
144
|
};
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(se_NotifyMigrationTaskStateRequest(input, context));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const se_PutResourceAttributesCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "AWSMigrationHub.PutResourceAttributes",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_PutResourceAttributesRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
export const
|
|
158
|
+
export const de_AssociateCreatedArtifactCommand = async (output, context) => {
|
|
159
159
|
if (output.statusCode >= 300) {
|
|
160
|
-
return
|
|
160
|
+
return de_AssociateCreatedArtifactCommandError(output, context);
|
|
161
161
|
}
|
|
162
162
|
const data = await parseBody(output.body, context);
|
|
163
163
|
let contents = {};
|
|
164
|
-
contents =
|
|
164
|
+
contents = de_AssociateCreatedArtifactResult(data, context);
|
|
165
165
|
const response = {
|
|
166
166
|
$metadata: deserializeMetadata(output),
|
|
167
167
|
...contents,
|
|
168
168
|
};
|
|
169
169
|
return Promise.resolve(response);
|
|
170
170
|
};
|
|
171
|
-
const
|
|
171
|
+
const de_AssociateCreatedArtifactCommandError = async (output, context) => {
|
|
172
172
|
const parsedOutput = {
|
|
173
173
|
...output,
|
|
174
174
|
body: await parseErrorBody(output.body, context),
|
|
@@ -177,31 +177,31 @@ const deserializeAws_json1_1AssociateCreatedArtifactCommandError = async (output
|
|
|
177
177
|
switch (errorCode) {
|
|
178
178
|
case "AccessDeniedException":
|
|
179
179
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
180
|
-
throw await
|
|
180
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
181
181
|
case "DryRunOperation":
|
|
182
182
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
183
|
-
throw await
|
|
183
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
184
184
|
case "HomeRegionNotSetException":
|
|
185
185
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
186
|
-
throw await
|
|
186
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
187
187
|
case "InternalServerError":
|
|
188
188
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
189
|
-
throw await
|
|
189
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
190
190
|
case "InvalidInputException":
|
|
191
191
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
192
|
-
throw await
|
|
192
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
193
193
|
case "ResourceNotFoundException":
|
|
194
194
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
195
|
-
throw await
|
|
195
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
196
196
|
case "ServiceUnavailableException":
|
|
197
197
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
198
|
-
throw await
|
|
198
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
199
199
|
case "ThrottlingException":
|
|
200
200
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
201
|
-
throw await
|
|
201
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
202
202
|
case "UnauthorizedOperation":
|
|
203
203
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
204
|
-
throw await
|
|
204
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
205
205
|
default:
|
|
206
206
|
const parsedBody = parsedOutput.body;
|
|
207
207
|
throwDefaultError({
|
|
@@ -212,20 +212,20 @@ const deserializeAws_json1_1AssociateCreatedArtifactCommandError = async (output
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
|
-
export const
|
|
215
|
+
export const de_AssociateDiscoveredResourceCommand = async (output, context) => {
|
|
216
216
|
if (output.statusCode >= 300) {
|
|
217
|
-
return
|
|
217
|
+
return de_AssociateDiscoveredResourceCommandError(output, context);
|
|
218
218
|
}
|
|
219
219
|
const data = await parseBody(output.body, context);
|
|
220
220
|
let contents = {};
|
|
221
|
-
contents =
|
|
221
|
+
contents = de_AssociateDiscoveredResourceResult(data, context);
|
|
222
222
|
const response = {
|
|
223
223
|
$metadata: deserializeMetadata(output),
|
|
224
224
|
...contents,
|
|
225
225
|
};
|
|
226
226
|
return Promise.resolve(response);
|
|
227
227
|
};
|
|
228
|
-
const
|
|
228
|
+
const de_AssociateDiscoveredResourceCommandError = async (output, context) => {
|
|
229
229
|
const parsedOutput = {
|
|
230
230
|
...output,
|
|
231
231
|
body: await parseErrorBody(output.body, context),
|
|
@@ -234,34 +234,34 @@ const deserializeAws_json1_1AssociateDiscoveredResourceCommandError = async (out
|
|
|
234
234
|
switch (errorCode) {
|
|
235
235
|
case "AccessDeniedException":
|
|
236
236
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
238
238
|
case "DryRunOperation":
|
|
239
239
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
241
241
|
case "HomeRegionNotSetException":
|
|
242
242
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
244
244
|
case "InternalServerError":
|
|
245
245
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
247
247
|
case "InvalidInputException":
|
|
248
248
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
249
|
-
throw await
|
|
249
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
250
250
|
case "PolicyErrorException":
|
|
251
251
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
252
|
-
throw await
|
|
252
|
+
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
253
253
|
case "ResourceNotFoundException":
|
|
254
254
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
255
|
-
throw await
|
|
255
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
256
256
|
case "ServiceUnavailableException":
|
|
257
257
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
259
259
|
case "ThrottlingException":
|
|
260
260
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
262
262
|
case "UnauthorizedOperation":
|
|
263
263
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
264
|
-
throw await
|
|
264
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
265
265
|
default:
|
|
266
266
|
const parsedBody = parsedOutput.body;
|
|
267
267
|
throwDefaultError({
|
|
@@ -272,20 +272,20 @@ const deserializeAws_json1_1AssociateDiscoveredResourceCommandError = async (out
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
export const
|
|
275
|
+
export const de_CreateProgressUpdateStreamCommand = async (output, context) => {
|
|
276
276
|
if (output.statusCode >= 300) {
|
|
277
|
-
return
|
|
277
|
+
return de_CreateProgressUpdateStreamCommandError(output, context);
|
|
278
278
|
}
|
|
279
279
|
const data = await parseBody(output.body, context);
|
|
280
280
|
let contents = {};
|
|
281
|
-
contents =
|
|
281
|
+
contents = de_CreateProgressUpdateStreamResult(data, context);
|
|
282
282
|
const response = {
|
|
283
283
|
$metadata: deserializeMetadata(output),
|
|
284
284
|
...contents,
|
|
285
285
|
};
|
|
286
286
|
return Promise.resolve(response);
|
|
287
287
|
};
|
|
288
|
-
const
|
|
288
|
+
const de_CreateProgressUpdateStreamCommandError = async (output, context) => {
|
|
289
289
|
const parsedOutput = {
|
|
290
290
|
...output,
|
|
291
291
|
body: await parseErrorBody(output.body, context),
|
|
@@ -294,28 +294,28 @@ const deserializeAws_json1_1CreateProgressUpdateStreamCommandError = async (outp
|
|
|
294
294
|
switch (errorCode) {
|
|
295
295
|
case "AccessDeniedException":
|
|
296
296
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
297
|
-
throw await
|
|
297
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
298
298
|
case "DryRunOperation":
|
|
299
299
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
300
|
-
throw await
|
|
300
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
301
301
|
case "HomeRegionNotSetException":
|
|
302
302
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
303
|
-
throw await
|
|
303
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
304
304
|
case "InternalServerError":
|
|
305
305
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
306
|
-
throw await
|
|
306
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
307
307
|
case "InvalidInputException":
|
|
308
308
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
309
|
-
throw await
|
|
309
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
310
310
|
case "ServiceUnavailableException":
|
|
311
311
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
312
|
-
throw await
|
|
312
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
313
313
|
case "ThrottlingException":
|
|
314
314
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
315
|
-
throw await
|
|
315
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
316
316
|
case "UnauthorizedOperation":
|
|
317
317
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
318
|
-
throw await
|
|
318
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
319
319
|
default:
|
|
320
320
|
const parsedBody = parsedOutput.body;
|
|
321
321
|
throwDefaultError({
|
|
@@ -326,20 +326,20 @@ const deserializeAws_json1_1CreateProgressUpdateStreamCommandError = async (outp
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
export const
|
|
329
|
+
export const de_DeleteProgressUpdateStreamCommand = async (output, context) => {
|
|
330
330
|
if (output.statusCode >= 300) {
|
|
331
|
-
return
|
|
331
|
+
return de_DeleteProgressUpdateStreamCommandError(output, context);
|
|
332
332
|
}
|
|
333
333
|
const data = await parseBody(output.body, context);
|
|
334
334
|
let contents = {};
|
|
335
|
-
contents =
|
|
335
|
+
contents = de_DeleteProgressUpdateStreamResult(data, context);
|
|
336
336
|
const response = {
|
|
337
337
|
$metadata: deserializeMetadata(output),
|
|
338
338
|
...contents,
|
|
339
339
|
};
|
|
340
340
|
return Promise.resolve(response);
|
|
341
341
|
};
|
|
342
|
-
const
|
|
342
|
+
const de_DeleteProgressUpdateStreamCommandError = async (output, context) => {
|
|
343
343
|
const parsedOutput = {
|
|
344
344
|
...output,
|
|
345
345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -348,31 +348,31 @@ const deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = async (outp
|
|
|
348
348
|
switch (errorCode) {
|
|
349
349
|
case "AccessDeniedException":
|
|
350
350
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
351
|
-
throw await
|
|
351
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
352
352
|
case "DryRunOperation":
|
|
353
353
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
354
|
-
throw await
|
|
354
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
355
355
|
case "HomeRegionNotSetException":
|
|
356
356
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
357
|
-
throw await
|
|
357
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
358
358
|
case "InternalServerError":
|
|
359
359
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
360
|
-
throw await
|
|
360
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
361
361
|
case "InvalidInputException":
|
|
362
362
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
363
|
-
throw await
|
|
363
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
364
364
|
case "ResourceNotFoundException":
|
|
365
365
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
366
|
-
throw await
|
|
366
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
367
367
|
case "ServiceUnavailableException":
|
|
368
368
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
369
|
-
throw await
|
|
369
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
370
370
|
case "ThrottlingException":
|
|
371
371
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
372
|
-
throw await
|
|
372
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
373
373
|
case "UnauthorizedOperation":
|
|
374
374
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
375
|
-
throw await
|
|
375
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
376
376
|
default:
|
|
377
377
|
const parsedBody = parsedOutput.body;
|
|
378
378
|
throwDefaultError({
|
|
@@ -383,20 +383,20 @@ const deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = async (outp
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
|
-
export const
|
|
386
|
+
export const de_DescribeApplicationStateCommand = async (output, context) => {
|
|
387
387
|
if (output.statusCode >= 300) {
|
|
388
|
-
return
|
|
388
|
+
return de_DescribeApplicationStateCommandError(output, context);
|
|
389
389
|
}
|
|
390
390
|
const data = await parseBody(output.body, context);
|
|
391
391
|
let contents = {};
|
|
392
|
-
contents =
|
|
392
|
+
contents = de_DescribeApplicationStateResult(data, context);
|
|
393
393
|
const response = {
|
|
394
394
|
$metadata: deserializeMetadata(output),
|
|
395
395
|
...contents,
|
|
396
396
|
};
|
|
397
397
|
return Promise.resolve(response);
|
|
398
398
|
};
|
|
399
|
-
const
|
|
399
|
+
const de_DescribeApplicationStateCommandError = async (output, context) => {
|
|
400
400
|
const parsedOutput = {
|
|
401
401
|
...output,
|
|
402
402
|
body: await parseErrorBody(output.body, context),
|
|
@@ -405,28 +405,28 @@ const deserializeAws_json1_1DescribeApplicationStateCommandError = async (output
|
|
|
405
405
|
switch (errorCode) {
|
|
406
406
|
case "AccessDeniedException":
|
|
407
407
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
408
|
-
throw await
|
|
408
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
409
409
|
case "HomeRegionNotSetException":
|
|
410
410
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
411
|
-
throw await
|
|
411
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
412
412
|
case "InternalServerError":
|
|
413
413
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
414
|
-
throw await
|
|
414
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
415
415
|
case "InvalidInputException":
|
|
416
416
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
417
|
-
throw await
|
|
417
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
418
418
|
case "PolicyErrorException":
|
|
419
419
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
420
|
-
throw await
|
|
420
|
+
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
421
421
|
case "ResourceNotFoundException":
|
|
422
422
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
423
|
-
throw await
|
|
423
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
424
424
|
case "ServiceUnavailableException":
|
|
425
425
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
426
|
-
throw await
|
|
426
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
427
427
|
case "ThrottlingException":
|
|
428
428
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
429
|
-
throw await
|
|
429
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
430
430
|
default:
|
|
431
431
|
const parsedBody = parsedOutput.body;
|
|
432
432
|
throwDefaultError({
|
|
@@ -437,20 +437,20 @@ const deserializeAws_json1_1DescribeApplicationStateCommandError = async (output
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
export const
|
|
440
|
+
export const de_DescribeMigrationTaskCommand = async (output, context) => {
|
|
441
441
|
if (output.statusCode >= 300) {
|
|
442
|
-
return
|
|
442
|
+
return de_DescribeMigrationTaskCommandError(output, context);
|
|
443
443
|
}
|
|
444
444
|
const data = await parseBody(output.body, context);
|
|
445
445
|
let contents = {};
|
|
446
|
-
contents =
|
|
446
|
+
contents = de_DescribeMigrationTaskResult(data, context);
|
|
447
447
|
const response = {
|
|
448
448
|
$metadata: deserializeMetadata(output),
|
|
449
449
|
...contents,
|
|
450
450
|
};
|
|
451
451
|
return Promise.resolve(response);
|
|
452
452
|
};
|
|
453
|
-
const
|
|
453
|
+
const de_DescribeMigrationTaskCommandError = async (output, context) => {
|
|
454
454
|
const parsedOutput = {
|
|
455
455
|
...output,
|
|
456
456
|
body: await parseErrorBody(output.body, context),
|
|
@@ -459,25 +459,25 @@ const deserializeAws_json1_1DescribeMigrationTaskCommandError = async (output, c
|
|
|
459
459
|
switch (errorCode) {
|
|
460
460
|
case "AccessDeniedException":
|
|
461
461
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
462
|
-
throw await
|
|
462
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
463
463
|
case "HomeRegionNotSetException":
|
|
464
464
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
465
|
-
throw await
|
|
465
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
466
466
|
case "InternalServerError":
|
|
467
467
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
468
|
-
throw await
|
|
468
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
469
469
|
case "InvalidInputException":
|
|
470
470
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
471
|
-
throw await
|
|
471
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
472
472
|
case "ResourceNotFoundException":
|
|
473
473
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
474
|
-
throw await
|
|
474
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
475
475
|
case "ServiceUnavailableException":
|
|
476
476
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
477
|
-
throw await
|
|
477
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
478
478
|
case "ThrottlingException":
|
|
479
479
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
480
|
-
throw await
|
|
480
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
481
481
|
default:
|
|
482
482
|
const parsedBody = parsedOutput.body;
|
|
483
483
|
throwDefaultError({
|
|
@@ -488,20 +488,20 @@ const deserializeAws_json1_1DescribeMigrationTaskCommandError = async (output, c
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
export const
|
|
491
|
+
export const de_DisassociateCreatedArtifactCommand = async (output, context) => {
|
|
492
492
|
if (output.statusCode >= 300) {
|
|
493
|
-
return
|
|
493
|
+
return de_DisassociateCreatedArtifactCommandError(output, context);
|
|
494
494
|
}
|
|
495
495
|
const data = await parseBody(output.body, context);
|
|
496
496
|
let contents = {};
|
|
497
|
-
contents =
|
|
497
|
+
contents = de_DisassociateCreatedArtifactResult(data, context);
|
|
498
498
|
const response = {
|
|
499
499
|
$metadata: deserializeMetadata(output),
|
|
500
500
|
...contents,
|
|
501
501
|
};
|
|
502
502
|
return Promise.resolve(response);
|
|
503
503
|
};
|
|
504
|
-
const
|
|
504
|
+
const de_DisassociateCreatedArtifactCommandError = async (output, context) => {
|
|
505
505
|
const parsedOutput = {
|
|
506
506
|
...output,
|
|
507
507
|
body: await parseErrorBody(output.body, context),
|
|
@@ -510,31 +510,31 @@ const deserializeAws_json1_1DisassociateCreatedArtifactCommandError = async (out
|
|
|
510
510
|
switch (errorCode) {
|
|
511
511
|
case "AccessDeniedException":
|
|
512
512
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
513
|
-
throw await
|
|
513
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
514
514
|
case "DryRunOperation":
|
|
515
515
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
516
|
-
throw await
|
|
516
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
517
517
|
case "HomeRegionNotSetException":
|
|
518
518
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
520
520
|
case "InternalServerError":
|
|
521
521
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
522
|
-
throw await
|
|
522
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
523
523
|
case "InvalidInputException":
|
|
524
524
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
525
|
-
throw await
|
|
525
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
526
526
|
case "ResourceNotFoundException":
|
|
527
527
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
528
|
-
throw await
|
|
528
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
529
529
|
case "ServiceUnavailableException":
|
|
530
530
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
531
|
-
throw await
|
|
531
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
532
532
|
case "ThrottlingException":
|
|
533
533
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
534
|
-
throw await
|
|
534
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
535
535
|
case "UnauthorizedOperation":
|
|
536
536
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
537
|
-
throw await
|
|
537
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
538
538
|
default:
|
|
539
539
|
const parsedBody = parsedOutput.body;
|
|
540
540
|
throwDefaultError({
|
|
@@ -545,20 +545,20 @@ const deserializeAws_json1_1DisassociateCreatedArtifactCommandError = async (out
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
|
-
export const
|
|
548
|
+
export const de_DisassociateDiscoveredResourceCommand = async (output, context) => {
|
|
549
549
|
if (output.statusCode >= 300) {
|
|
550
|
-
return
|
|
550
|
+
return de_DisassociateDiscoveredResourceCommandError(output, context);
|
|
551
551
|
}
|
|
552
552
|
const data = await parseBody(output.body, context);
|
|
553
553
|
let contents = {};
|
|
554
|
-
contents =
|
|
554
|
+
contents = de_DisassociateDiscoveredResourceResult(data, context);
|
|
555
555
|
const response = {
|
|
556
556
|
$metadata: deserializeMetadata(output),
|
|
557
557
|
...contents,
|
|
558
558
|
};
|
|
559
559
|
return Promise.resolve(response);
|
|
560
560
|
};
|
|
561
|
-
const
|
|
561
|
+
const de_DisassociateDiscoveredResourceCommandError = async (output, context) => {
|
|
562
562
|
const parsedOutput = {
|
|
563
563
|
...output,
|
|
564
564
|
body: await parseErrorBody(output.body, context),
|
|
@@ -567,31 +567,31 @@ const deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = async (
|
|
|
567
567
|
switch (errorCode) {
|
|
568
568
|
case "AccessDeniedException":
|
|
569
569
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
570
|
-
throw await
|
|
570
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
571
571
|
case "DryRunOperation":
|
|
572
572
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
574
574
|
case "HomeRegionNotSetException":
|
|
575
575
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
576
|
-
throw await
|
|
576
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
577
577
|
case "InternalServerError":
|
|
578
578
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
579
|
-
throw await
|
|
579
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
580
580
|
case "InvalidInputException":
|
|
581
581
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
582
|
-
throw await
|
|
582
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
583
583
|
case "ResourceNotFoundException":
|
|
584
584
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
585
|
-
throw await
|
|
585
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
586
586
|
case "ServiceUnavailableException":
|
|
587
587
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
588
|
-
throw await
|
|
588
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
589
589
|
case "ThrottlingException":
|
|
590
590
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
592
592
|
case "UnauthorizedOperation":
|
|
593
593
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
595
595
|
default:
|
|
596
596
|
const parsedBody = parsedOutput.body;
|
|
597
597
|
throwDefaultError({
|
|
@@ -602,20 +602,20 @@ const deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = async (
|
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
|
-
export const
|
|
605
|
+
export const de_ImportMigrationTaskCommand = async (output, context) => {
|
|
606
606
|
if (output.statusCode >= 300) {
|
|
607
|
-
return
|
|
607
|
+
return de_ImportMigrationTaskCommandError(output, context);
|
|
608
608
|
}
|
|
609
609
|
const data = await parseBody(output.body, context);
|
|
610
610
|
let contents = {};
|
|
611
|
-
contents =
|
|
611
|
+
contents = de_ImportMigrationTaskResult(data, context);
|
|
612
612
|
const response = {
|
|
613
613
|
$metadata: deserializeMetadata(output),
|
|
614
614
|
...contents,
|
|
615
615
|
};
|
|
616
616
|
return Promise.resolve(response);
|
|
617
617
|
};
|
|
618
|
-
const
|
|
618
|
+
const de_ImportMigrationTaskCommandError = async (output, context) => {
|
|
619
619
|
const parsedOutput = {
|
|
620
620
|
...output,
|
|
621
621
|
body: await parseErrorBody(output.body, context),
|
|
@@ -624,31 +624,31 @@ const deserializeAws_json1_1ImportMigrationTaskCommandError = async (output, con
|
|
|
624
624
|
switch (errorCode) {
|
|
625
625
|
case "AccessDeniedException":
|
|
626
626
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
627
|
-
throw await
|
|
627
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
628
628
|
case "DryRunOperation":
|
|
629
629
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
630
|
-
throw await
|
|
630
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
631
631
|
case "HomeRegionNotSetException":
|
|
632
632
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
633
|
-
throw await
|
|
633
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
634
634
|
case "InternalServerError":
|
|
635
635
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
636
|
-
throw await
|
|
636
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
637
637
|
case "InvalidInputException":
|
|
638
638
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
639
|
-
throw await
|
|
639
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
640
640
|
case "ResourceNotFoundException":
|
|
641
641
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
642
|
-
throw await
|
|
642
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
643
643
|
case "ServiceUnavailableException":
|
|
644
644
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
645
|
-
throw await
|
|
645
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
646
646
|
case "ThrottlingException":
|
|
647
647
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
648
|
-
throw await
|
|
648
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
649
649
|
case "UnauthorizedOperation":
|
|
650
650
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
651
|
-
throw await
|
|
651
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
652
652
|
default:
|
|
653
653
|
const parsedBody = parsedOutput.body;
|
|
654
654
|
throwDefaultError({
|
|
@@ -659,20 +659,20 @@ const deserializeAws_json1_1ImportMigrationTaskCommandError = async (output, con
|
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
export const
|
|
662
|
+
export const de_ListApplicationStatesCommand = async (output, context) => {
|
|
663
663
|
if (output.statusCode >= 300) {
|
|
664
|
-
return
|
|
664
|
+
return de_ListApplicationStatesCommandError(output, context);
|
|
665
665
|
}
|
|
666
666
|
const data = await parseBody(output.body, context);
|
|
667
667
|
let contents = {};
|
|
668
|
-
contents =
|
|
668
|
+
contents = de_ListApplicationStatesResult(data, context);
|
|
669
669
|
const response = {
|
|
670
670
|
$metadata: deserializeMetadata(output),
|
|
671
671
|
...contents,
|
|
672
672
|
};
|
|
673
673
|
return Promise.resolve(response);
|
|
674
674
|
};
|
|
675
|
-
const
|
|
675
|
+
const de_ListApplicationStatesCommandError = async (output, context) => {
|
|
676
676
|
const parsedOutput = {
|
|
677
677
|
...output,
|
|
678
678
|
body: await parseErrorBody(output.body, context),
|
|
@@ -681,22 +681,22 @@ const deserializeAws_json1_1ListApplicationStatesCommandError = async (output, c
|
|
|
681
681
|
switch (errorCode) {
|
|
682
682
|
case "AccessDeniedException":
|
|
683
683
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
685
685
|
case "HomeRegionNotSetException":
|
|
686
686
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
687
|
-
throw await
|
|
687
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
688
688
|
case "InternalServerError":
|
|
689
689
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
690
|
-
throw await
|
|
690
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
691
691
|
case "InvalidInputException":
|
|
692
692
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
693
|
-
throw await
|
|
693
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
694
694
|
case "ServiceUnavailableException":
|
|
695
695
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
696
|
-
throw await
|
|
696
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
697
697
|
case "ThrottlingException":
|
|
698
698
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
699
|
-
throw await
|
|
699
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
700
|
default:
|
|
701
701
|
const parsedBody = parsedOutput.body;
|
|
702
702
|
throwDefaultError({
|
|
@@ -707,20 +707,20 @@ const deserializeAws_json1_1ListApplicationStatesCommandError = async (output, c
|
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
709
|
};
|
|
710
|
-
export const
|
|
710
|
+
export const de_ListCreatedArtifactsCommand = async (output, context) => {
|
|
711
711
|
if (output.statusCode >= 300) {
|
|
712
|
-
return
|
|
712
|
+
return de_ListCreatedArtifactsCommandError(output, context);
|
|
713
713
|
}
|
|
714
714
|
const data = await parseBody(output.body, context);
|
|
715
715
|
let contents = {};
|
|
716
|
-
contents =
|
|
716
|
+
contents = de_ListCreatedArtifactsResult(data, context);
|
|
717
717
|
const response = {
|
|
718
718
|
$metadata: deserializeMetadata(output),
|
|
719
719
|
...contents,
|
|
720
720
|
};
|
|
721
721
|
return Promise.resolve(response);
|
|
722
722
|
};
|
|
723
|
-
const
|
|
723
|
+
const de_ListCreatedArtifactsCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
726
|
body: await parseErrorBody(output.body, context),
|
|
@@ -729,25 +729,25 @@ const deserializeAws_json1_1ListCreatedArtifactsCommandError = async (output, co
|
|
|
729
729
|
switch (errorCode) {
|
|
730
730
|
case "AccessDeniedException":
|
|
731
731
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
732
|
-
throw await
|
|
732
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
733
733
|
case "HomeRegionNotSetException":
|
|
734
734
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
735
|
-
throw await
|
|
735
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
736
736
|
case "InternalServerError":
|
|
737
737
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
738
|
-
throw await
|
|
738
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
739
739
|
case "InvalidInputException":
|
|
740
740
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
741
|
-
throw await
|
|
741
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
742
742
|
case "ResourceNotFoundException":
|
|
743
743
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
744
|
-
throw await
|
|
744
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
745
745
|
case "ServiceUnavailableException":
|
|
746
746
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
747
|
-
throw await
|
|
747
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
748
748
|
case "ThrottlingException":
|
|
749
749
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
750
|
-
throw await
|
|
750
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
751
751
|
default:
|
|
752
752
|
const parsedBody = parsedOutput.body;
|
|
753
753
|
throwDefaultError({
|
|
@@ -758,20 +758,20 @@ const deserializeAws_json1_1ListCreatedArtifactsCommandError = async (output, co
|
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
};
|
|
761
|
-
export const
|
|
761
|
+
export const de_ListDiscoveredResourcesCommand = async (output, context) => {
|
|
762
762
|
if (output.statusCode >= 300) {
|
|
763
|
-
return
|
|
763
|
+
return de_ListDiscoveredResourcesCommandError(output, context);
|
|
764
764
|
}
|
|
765
765
|
const data = await parseBody(output.body, context);
|
|
766
766
|
let contents = {};
|
|
767
|
-
contents =
|
|
767
|
+
contents = de_ListDiscoveredResourcesResult(data, context);
|
|
768
768
|
const response = {
|
|
769
769
|
$metadata: deserializeMetadata(output),
|
|
770
770
|
...contents,
|
|
771
771
|
};
|
|
772
772
|
return Promise.resolve(response);
|
|
773
773
|
};
|
|
774
|
-
const
|
|
774
|
+
const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
775
775
|
const parsedOutput = {
|
|
776
776
|
...output,
|
|
777
777
|
body: await parseErrorBody(output.body, context),
|
|
@@ -780,25 +780,25 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
780
780
|
switch (errorCode) {
|
|
781
781
|
case "AccessDeniedException":
|
|
782
782
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
783
|
-
throw await
|
|
783
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
784
784
|
case "HomeRegionNotSetException":
|
|
785
785
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
786
|
-
throw await
|
|
786
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
787
787
|
case "InternalServerError":
|
|
788
788
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
789
|
-
throw await
|
|
789
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
790
790
|
case "InvalidInputException":
|
|
791
791
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
792
|
-
throw await
|
|
792
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
793
793
|
case "ResourceNotFoundException":
|
|
794
794
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
795
|
-
throw await
|
|
795
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
796
796
|
case "ServiceUnavailableException":
|
|
797
797
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
798
|
-
throw await
|
|
798
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
799
799
|
case "ThrottlingException":
|
|
800
800
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
801
|
-
throw await
|
|
801
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
802
802
|
default:
|
|
803
803
|
const parsedBody = parsedOutput.body;
|
|
804
804
|
throwDefaultError({
|
|
@@ -809,20 +809,20 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
|
-
export const
|
|
812
|
+
export const de_ListMigrationTasksCommand = async (output, context) => {
|
|
813
813
|
if (output.statusCode >= 300) {
|
|
814
|
-
return
|
|
814
|
+
return de_ListMigrationTasksCommandError(output, context);
|
|
815
815
|
}
|
|
816
816
|
const data = await parseBody(output.body, context);
|
|
817
817
|
let contents = {};
|
|
818
|
-
contents =
|
|
818
|
+
contents = de_ListMigrationTasksResult(data, context);
|
|
819
819
|
const response = {
|
|
820
820
|
$metadata: deserializeMetadata(output),
|
|
821
821
|
...contents,
|
|
822
822
|
};
|
|
823
823
|
return Promise.resolve(response);
|
|
824
824
|
};
|
|
825
|
-
const
|
|
825
|
+
const de_ListMigrationTasksCommandError = async (output, context) => {
|
|
826
826
|
const parsedOutput = {
|
|
827
827
|
...output,
|
|
828
828
|
body: await parseErrorBody(output.body, context),
|
|
@@ -831,28 +831,28 @@ const deserializeAws_json1_1ListMigrationTasksCommandError = async (output, cont
|
|
|
831
831
|
switch (errorCode) {
|
|
832
832
|
case "AccessDeniedException":
|
|
833
833
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
834
|
-
throw await
|
|
834
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
835
835
|
case "HomeRegionNotSetException":
|
|
836
836
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
837
|
-
throw await
|
|
837
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
838
838
|
case "InternalServerError":
|
|
839
839
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
840
|
-
throw await
|
|
840
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
841
841
|
case "InvalidInputException":
|
|
842
842
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
843
|
-
throw await
|
|
843
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
844
844
|
case "PolicyErrorException":
|
|
845
845
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
846
|
-
throw await
|
|
846
|
+
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
847
847
|
case "ResourceNotFoundException":
|
|
848
848
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
850
850
|
case "ServiceUnavailableException":
|
|
851
851
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
853
853
|
case "ThrottlingException":
|
|
854
854
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
856
856
|
default:
|
|
857
857
|
const parsedBody = parsedOutput.body;
|
|
858
858
|
throwDefaultError({
|
|
@@ -863,20 +863,20 @@ const deserializeAws_json1_1ListMigrationTasksCommandError = async (output, cont
|
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
|
-
export const
|
|
866
|
+
export const de_ListProgressUpdateStreamsCommand = async (output, context) => {
|
|
867
867
|
if (output.statusCode >= 300) {
|
|
868
|
-
return
|
|
868
|
+
return de_ListProgressUpdateStreamsCommandError(output, context);
|
|
869
869
|
}
|
|
870
870
|
const data = await parseBody(output.body, context);
|
|
871
871
|
let contents = {};
|
|
872
|
-
contents =
|
|
872
|
+
contents = de_ListProgressUpdateStreamsResult(data, context);
|
|
873
873
|
const response = {
|
|
874
874
|
$metadata: deserializeMetadata(output),
|
|
875
875
|
...contents,
|
|
876
876
|
};
|
|
877
877
|
return Promise.resolve(response);
|
|
878
878
|
};
|
|
879
|
-
const
|
|
879
|
+
const de_ListProgressUpdateStreamsCommandError = async (output, context) => {
|
|
880
880
|
const parsedOutput = {
|
|
881
881
|
...output,
|
|
882
882
|
body: await parseErrorBody(output.body, context),
|
|
@@ -885,22 +885,22 @@ const deserializeAws_json1_1ListProgressUpdateStreamsCommandError = async (outpu
|
|
|
885
885
|
switch (errorCode) {
|
|
886
886
|
case "AccessDeniedException":
|
|
887
887
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
888
|
-
throw await
|
|
888
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
889
889
|
case "HomeRegionNotSetException":
|
|
890
890
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
891
|
-
throw await
|
|
891
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
892
892
|
case "InternalServerError":
|
|
893
893
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
894
|
-
throw await
|
|
894
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
895
895
|
case "InvalidInputException":
|
|
896
896
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
897
|
-
throw await
|
|
897
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
898
898
|
case "ServiceUnavailableException":
|
|
899
899
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
900
|
-
throw await
|
|
900
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
901
901
|
case "ThrottlingException":
|
|
902
902
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
903
|
-
throw await
|
|
903
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
904
904
|
default:
|
|
905
905
|
const parsedBody = parsedOutput.body;
|
|
906
906
|
throwDefaultError({
|
|
@@ -911,20 +911,20 @@ const deserializeAws_json1_1ListProgressUpdateStreamsCommandError = async (outpu
|
|
|
911
911
|
});
|
|
912
912
|
}
|
|
913
913
|
};
|
|
914
|
-
export const
|
|
914
|
+
export const de_NotifyApplicationStateCommand = async (output, context) => {
|
|
915
915
|
if (output.statusCode >= 300) {
|
|
916
|
-
return
|
|
916
|
+
return de_NotifyApplicationStateCommandError(output, context);
|
|
917
917
|
}
|
|
918
918
|
const data = await parseBody(output.body, context);
|
|
919
919
|
let contents = {};
|
|
920
|
-
contents =
|
|
920
|
+
contents = de_NotifyApplicationStateResult(data, context);
|
|
921
921
|
const response = {
|
|
922
922
|
$metadata: deserializeMetadata(output),
|
|
923
923
|
...contents,
|
|
924
924
|
};
|
|
925
925
|
return Promise.resolve(response);
|
|
926
926
|
};
|
|
927
|
-
const
|
|
927
|
+
const de_NotifyApplicationStateCommandError = async (output, context) => {
|
|
928
928
|
const parsedOutput = {
|
|
929
929
|
...output,
|
|
930
930
|
body: await parseErrorBody(output.body, context),
|
|
@@ -933,34 +933,34 @@ const deserializeAws_json1_1NotifyApplicationStateCommandError = async (output,
|
|
|
933
933
|
switch (errorCode) {
|
|
934
934
|
case "AccessDeniedException":
|
|
935
935
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
936
|
-
throw await
|
|
936
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
937
937
|
case "DryRunOperation":
|
|
938
938
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
939
|
-
throw await
|
|
939
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
940
940
|
case "HomeRegionNotSetException":
|
|
941
941
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
942
|
-
throw await
|
|
942
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
943
943
|
case "InternalServerError":
|
|
944
944
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
945
|
-
throw await
|
|
945
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
946
946
|
case "InvalidInputException":
|
|
947
947
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
948
|
-
throw await
|
|
948
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
949
949
|
case "PolicyErrorException":
|
|
950
950
|
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
951
|
-
throw await
|
|
951
|
+
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
952
952
|
case "ResourceNotFoundException":
|
|
953
953
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
954
|
-
throw await
|
|
954
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
955
955
|
case "ServiceUnavailableException":
|
|
956
956
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
957
|
-
throw await
|
|
957
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
958
958
|
case "ThrottlingException":
|
|
959
959
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
960
|
-
throw await
|
|
960
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
961
961
|
case "UnauthorizedOperation":
|
|
962
962
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
963
|
-
throw await
|
|
963
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
964
964
|
default:
|
|
965
965
|
const parsedBody = parsedOutput.body;
|
|
966
966
|
throwDefaultError({
|
|
@@ -971,20 +971,20 @@ const deserializeAws_json1_1NotifyApplicationStateCommandError = async (output,
|
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
-
export const
|
|
974
|
+
export const de_NotifyMigrationTaskStateCommand = async (output, context) => {
|
|
975
975
|
if (output.statusCode >= 300) {
|
|
976
|
-
return
|
|
976
|
+
return de_NotifyMigrationTaskStateCommandError(output, context);
|
|
977
977
|
}
|
|
978
978
|
const data = await parseBody(output.body, context);
|
|
979
979
|
let contents = {};
|
|
980
|
-
contents =
|
|
980
|
+
contents = de_NotifyMigrationTaskStateResult(data, context);
|
|
981
981
|
const response = {
|
|
982
982
|
$metadata: deserializeMetadata(output),
|
|
983
983
|
...contents,
|
|
984
984
|
};
|
|
985
985
|
return Promise.resolve(response);
|
|
986
986
|
};
|
|
987
|
-
const
|
|
987
|
+
const de_NotifyMigrationTaskStateCommandError = async (output, context) => {
|
|
988
988
|
const parsedOutput = {
|
|
989
989
|
...output,
|
|
990
990
|
body: await parseErrorBody(output.body, context),
|
|
@@ -993,31 +993,31 @@ const deserializeAws_json1_1NotifyMigrationTaskStateCommandError = async (output
|
|
|
993
993
|
switch (errorCode) {
|
|
994
994
|
case "AccessDeniedException":
|
|
995
995
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
996
|
-
throw await
|
|
996
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
997
997
|
case "DryRunOperation":
|
|
998
998
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
999
|
-
throw await
|
|
999
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
1000
1000
|
case "HomeRegionNotSetException":
|
|
1001
1001
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1002
|
-
throw await
|
|
1002
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1003
1003
|
case "InternalServerError":
|
|
1004
1004
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1005
|
-
throw await
|
|
1005
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1006
1006
|
case "InvalidInputException":
|
|
1007
1007
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1008
|
-
throw await
|
|
1008
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1009
1009
|
case "ResourceNotFoundException":
|
|
1010
1010
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1011
|
-
throw await
|
|
1011
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1012
1012
|
case "ServiceUnavailableException":
|
|
1013
1013
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1014
|
-
throw await
|
|
1014
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1015
1015
|
case "ThrottlingException":
|
|
1016
1016
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1017
|
-
throw await
|
|
1017
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1018
1018
|
case "UnauthorizedOperation":
|
|
1019
1019
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1020
|
-
throw await
|
|
1020
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1021
1021
|
default:
|
|
1022
1022
|
const parsedBody = parsedOutput.body;
|
|
1023
1023
|
throwDefaultError({
|
|
@@ -1028,20 +1028,20 @@ const deserializeAws_json1_1NotifyMigrationTaskStateCommandError = async (output
|
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
|
-
export const
|
|
1031
|
+
export const de_PutResourceAttributesCommand = async (output, context) => {
|
|
1032
1032
|
if (output.statusCode >= 300) {
|
|
1033
|
-
return
|
|
1033
|
+
return de_PutResourceAttributesCommandError(output, context);
|
|
1034
1034
|
}
|
|
1035
1035
|
const data = await parseBody(output.body, context);
|
|
1036
1036
|
let contents = {};
|
|
1037
|
-
contents =
|
|
1037
|
+
contents = de_PutResourceAttributesResult(data, context);
|
|
1038
1038
|
const response = {
|
|
1039
1039
|
$metadata: deserializeMetadata(output),
|
|
1040
1040
|
...contents,
|
|
1041
1041
|
};
|
|
1042
1042
|
return Promise.resolve(response);
|
|
1043
1043
|
};
|
|
1044
|
-
const
|
|
1044
|
+
const de_PutResourceAttributesCommandError = async (output, context) => {
|
|
1045
1045
|
const parsedOutput = {
|
|
1046
1046
|
...output,
|
|
1047
1047
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1050,31 +1050,31 @@ const deserializeAws_json1_1PutResourceAttributesCommandError = async (output, c
|
|
|
1050
1050
|
switch (errorCode) {
|
|
1051
1051
|
case "AccessDeniedException":
|
|
1052
1052
|
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1053
|
-
throw await
|
|
1053
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1054
1054
|
case "DryRunOperation":
|
|
1055
1055
|
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
1056
|
-
throw await
|
|
1056
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
1057
1057
|
case "HomeRegionNotSetException":
|
|
1058
1058
|
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1059
|
-
throw await
|
|
1059
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1060
1060
|
case "InternalServerError":
|
|
1061
1061
|
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1062
|
-
throw await
|
|
1062
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1063
1063
|
case "InvalidInputException":
|
|
1064
1064
|
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1065
|
-
throw await
|
|
1065
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1066
1066
|
case "ResourceNotFoundException":
|
|
1067
1067
|
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1068
|
-
throw await
|
|
1068
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1069
1069
|
case "ServiceUnavailableException":
|
|
1070
1070
|
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1071
|
-
throw await
|
|
1071
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1072
1072
|
case "ThrottlingException":
|
|
1073
1073
|
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1074
|
-
throw await
|
|
1074
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1075
1075
|
case "UnauthorizedOperation":
|
|
1076
1076
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1077
|
-
throw await
|
|
1077
|
+
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1078
1078
|
default:
|
|
1079
1079
|
const parsedBody = parsedOutput.body;
|
|
1080
1080
|
throwDefaultError({
|
|
@@ -1085,153 +1085,151 @@ const deserializeAws_json1_1PutResourceAttributesCommandError = async (output, c
|
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
|
-
const
|
|
1088
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1089
1089
|
const body = parsedOutput.body;
|
|
1090
|
-
const deserialized =
|
|
1090
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1091
1091
|
const exception = new AccessDeniedException({
|
|
1092
1092
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1093
1093
|
...deserialized,
|
|
1094
1094
|
});
|
|
1095
1095
|
return __decorateServiceException(exception, body);
|
|
1096
1096
|
};
|
|
1097
|
-
const
|
|
1097
|
+
const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
1098
1098
|
const body = parsedOutput.body;
|
|
1099
|
-
const deserialized =
|
|
1099
|
+
const deserialized = de_DryRunOperation(body, context);
|
|
1100
1100
|
const exception = new DryRunOperation({
|
|
1101
1101
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1102
1102
|
...deserialized,
|
|
1103
1103
|
});
|
|
1104
1104
|
return __decorateServiceException(exception, body);
|
|
1105
1105
|
};
|
|
1106
|
-
const
|
|
1106
|
+
const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
1107
1107
|
const body = parsedOutput.body;
|
|
1108
|
-
const deserialized =
|
|
1108
|
+
const deserialized = de_HomeRegionNotSetException(body, context);
|
|
1109
1109
|
const exception = new HomeRegionNotSetException({
|
|
1110
1110
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
1111
|
...deserialized,
|
|
1112
1112
|
});
|
|
1113
1113
|
return __decorateServiceException(exception, body);
|
|
1114
1114
|
};
|
|
1115
|
-
const
|
|
1115
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1116
1116
|
const body = parsedOutput.body;
|
|
1117
|
-
const deserialized =
|
|
1117
|
+
const deserialized = de_InternalServerError(body, context);
|
|
1118
1118
|
const exception = new InternalServerError({
|
|
1119
1119
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1120
1120
|
...deserialized,
|
|
1121
1121
|
});
|
|
1122
1122
|
return __decorateServiceException(exception, body);
|
|
1123
1123
|
};
|
|
1124
|
-
const
|
|
1124
|
+
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1125
1125
|
const body = parsedOutput.body;
|
|
1126
|
-
const deserialized =
|
|
1126
|
+
const deserialized = de_InvalidInputException(body, context);
|
|
1127
1127
|
const exception = new InvalidInputException({
|
|
1128
1128
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1129
1129
|
...deserialized,
|
|
1130
1130
|
});
|
|
1131
1131
|
return __decorateServiceException(exception, body);
|
|
1132
1132
|
};
|
|
1133
|
-
const
|
|
1133
|
+
const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
|
|
1134
1134
|
const body = parsedOutput.body;
|
|
1135
|
-
const deserialized =
|
|
1135
|
+
const deserialized = de_PolicyErrorException(body, context);
|
|
1136
1136
|
const exception = new PolicyErrorException({
|
|
1137
1137
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1138
1138
|
...deserialized,
|
|
1139
1139
|
});
|
|
1140
1140
|
return __decorateServiceException(exception, body);
|
|
1141
1141
|
};
|
|
1142
|
-
const
|
|
1142
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1143
1143
|
const body = parsedOutput.body;
|
|
1144
|
-
const deserialized =
|
|
1144
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1145
1145
|
const exception = new ResourceNotFoundException({
|
|
1146
1146
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
1147
|
...deserialized,
|
|
1148
1148
|
});
|
|
1149
1149
|
return __decorateServiceException(exception, body);
|
|
1150
1150
|
};
|
|
1151
|
-
const
|
|
1151
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1152
1152
|
const body = parsedOutput.body;
|
|
1153
|
-
const deserialized =
|
|
1153
|
+
const deserialized = de_ServiceUnavailableException(body, context);
|
|
1154
1154
|
const exception = new ServiceUnavailableException({
|
|
1155
1155
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1156
1156
|
...deserialized,
|
|
1157
1157
|
});
|
|
1158
1158
|
return __decorateServiceException(exception, body);
|
|
1159
1159
|
};
|
|
1160
|
-
const
|
|
1160
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1161
1161
|
const body = parsedOutput.body;
|
|
1162
|
-
const deserialized =
|
|
1162
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1163
1163
|
const exception = new ThrottlingException({
|
|
1164
1164
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1165
1165
|
...deserialized,
|
|
1166
1166
|
});
|
|
1167
1167
|
return __decorateServiceException(exception, body);
|
|
1168
1168
|
};
|
|
1169
|
-
const
|
|
1169
|
+
const de_UnauthorizedOperationRes = async (parsedOutput, context) => {
|
|
1170
1170
|
const body = parsedOutput.body;
|
|
1171
|
-
const deserialized =
|
|
1171
|
+
const deserialized = de_UnauthorizedOperation(body, context);
|
|
1172
1172
|
const exception = new UnauthorizedOperation({
|
|
1173
1173
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1174
1174
|
...deserialized,
|
|
1175
1175
|
});
|
|
1176
1176
|
return __decorateServiceException(exception, body);
|
|
1177
1177
|
};
|
|
1178
|
-
const
|
|
1178
|
+
const se_ApplicationIds = (input, context) => {
|
|
1179
1179
|
return input
|
|
1180
1180
|
.filter((e) => e != null)
|
|
1181
1181
|
.map((entry) => {
|
|
1182
1182
|
return entry;
|
|
1183
1183
|
});
|
|
1184
1184
|
};
|
|
1185
|
-
const
|
|
1185
|
+
const se_AssociateCreatedArtifactRequest = (input, context) => {
|
|
1186
1186
|
return {
|
|
1187
|
-
...(input.CreatedArtifact != null && {
|
|
1188
|
-
CreatedArtifact: serializeAws_json1_1CreatedArtifact(input.CreatedArtifact, context),
|
|
1189
|
-
}),
|
|
1187
|
+
...(input.CreatedArtifact != null && { CreatedArtifact: se_CreatedArtifact(input.CreatedArtifact, context) }),
|
|
1190
1188
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1191
1189
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1192
1190
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1193
1191
|
};
|
|
1194
1192
|
};
|
|
1195
|
-
const
|
|
1193
|
+
const se_AssociateDiscoveredResourceRequest = (input, context) => {
|
|
1196
1194
|
return {
|
|
1197
1195
|
...(input.DiscoveredResource != null && {
|
|
1198
|
-
DiscoveredResource:
|
|
1196
|
+
DiscoveredResource: se_DiscoveredResource(input.DiscoveredResource, context),
|
|
1199
1197
|
}),
|
|
1200
1198
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1201
1199
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1202
1200
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1203
1201
|
};
|
|
1204
1202
|
};
|
|
1205
|
-
const
|
|
1203
|
+
const se_CreatedArtifact = (input, context) => {
|
|
1206
1204
|
return {
|
|
1207
1205
|
...(input.Description != null && { Description: input.Description }),
|
|
1208
1206
|
...(input.Name != null && { Name: input.Name }),
|
|
1209
1207
|
};
|
|
1210
1208
|
};
|
|
1211
|
-
const
|
|
1209
|
+
const se_CreateProgressUpdateStreamRequest = (input, context) => {
|
|
1212
1210
|
return {
|
|
1213
1211
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1214
1212
|
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1215
1213
|
};
|
|
1216
1214
|
};
|
|
1217
|
-
const
|
|
1215
|
+
const se_DeleteProgressUpdateStreamRequest = (input, context) => {
|
|
1218
1216
|
return {
|
|
1219
1217
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1220
1218
|
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1221
1219
|
};
|
|
1222
1220
|
};
|
|
1223
|
-
const
|
|
1221
|
+
const se_DescribeApplicationStateRequest = (input, context) => {
|
|
1224
1222
|
return {
|
|
1225
1223
|
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
1226
1224
|
};
|
|
1227
1225
|
};
|
|
1228
|
-
const
|
|
1226
|
+
const se_DescribeMigrationTaskRequest = (input, context) => {
|
|
1229
1227
|
return {
|
|
1230
1228
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1231
1229
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1232
1230
|
};
|
|
1233
1231
|
};
|
|
1234
|
-
const
|
|
1232
|
+
const se_DisassociateCreatedArtifactRequest = (input, context) => {
|
|
1235
1233
|
return {
|
|
1236
1234
|
...(input.CreatedArtifactName != null && { CreatedArtifactName: input.CreatedArtifactName }),
|
|
1237
1235
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
@@ -1239,7 +1237,7 @@ const serializeAws_json1_1DisassociateCreatedArtifactRequest = (input, context)
|
|
|
1239
1237
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1240
1238
|
};
|
|
1241
1239
|
};
|
|
1242
|
-
const
|
|
1240
|
+
const se_DisassociateDiscoveredResourceRequest = (input, context) => {
|
|
1243
1241
|
return {
|
|
1244
1242
|
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1245
1243
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
@@ -1247,29 +1245,27 @@ const serializeAws_json1_1DisassociateDiscoveredResourceRequest = (input, contex
|
|
|
1247
1245
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1248
1246
|
};
|
|
1249
1247
|
};
|
|
1250
|
-
const
|
|
1248
|
+
const se_DiscoveredResource = (input, context) => {
|
|
1251
1249
|
return {
|
|
1252
1250
|
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1253
1251
|
...(input.Description != null && { Description: input.Description }),
|
|
1254
1252
|
};
|
|
1255
1253
|
};
|
|
1256
|
-
const
|
|
1254
|
+
const se_ImportMigrationTaskRequest = (input, context) => {
|
|
1257
1255
|
return {
|
|
1258
1256
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1259
1257
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1260
1258
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1261
1259
|
};
|
|
1262
1260
|
};
|
|
1263
|
-
const
|
|
1261
|
+
const se_ListApplicationStatesRequest = (input, context) => {
|
|
1264
1262
|
return {
|
|
1265
|
-
...(input.ApplicationIds != null && {
|
|
1266
|
-
ApplicationIds: serializeAws_json1_1ApplicationIds(input.ApplicationIds, context),
|
|
1267
|
-
}),
|
|
1263
|
+
...(input.ApplicationIds != null && { ApplicationIds: se_ApplicationIds(input.ApplicationIds, context) }),
|
|
1268
1264
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1269
1265
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1270
1266
|
};
|
|
1271
1267
|
};
|
|
1272
|
-
const
|
|
1268
|
+
const se_ListCreatedArtifactsRequest = (input, context) => {
|
|
1273
1269
|
return {
|
|
1274
1270
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1275
1271
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
@@ -1277,7 +1273,7 @@ const serializeAws_json1_1ListCreatedArtifactsRequest = (input, context) => {
|
|
|
1277
1273
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1278
1274
|
};
|
|
1279
1275
|
};
|
|
1280
|
-
const
|
|
1276
|
+
const se_ListDiscoveredResourcesRequest = (input, context) => {
|
|
1281
1277
|
return {
|
|
1282
1278
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1283
1279
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
@@ -1285,20 +1281,20 @@ const serializeAws_json1_1ListDiscoveredResourcesRequest = (input, context) => {
|
|
|
1285
1281
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1286
1282
|
};
|
|
1287
1283
|
};
|
|
1288
|
-
const
|
|
1284
|
+
const se_ListMigrationTasksRequest = (input, context) => {
|
|
1289
1285
|
return {
|
|
1290
1286
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1291
1287
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1292
1288
|
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1293
1289
|
};
|
|
1294
1290
|
};
|
|
1295
|
-
const
|
|
1291
|
+
const se_ListProgressUpdateStreamsRequest = (input, context) => {
|
|
1296
1292
|
return {
|
|
1297
1293
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1298
1294
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1299
1295
|
};
|
|
1300
1296
|
};
|
|
1301
|
-
const
|
|
1297
|
+
const se_NotifyApplicationStateRequest = (input, context) => {
|
|
1302
1298
|
return {
|
|
1303
1299
|
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
1304
1300
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
@@ -1306,52 +1302,52 @@ const serializeAws_json1_1NotifyApplicationStateRequest = (input, context) => {
|
|
|
1306
1302
|
...(input.UpdateDateTime != null && { UpdateDateTime: Math.round(input.UpdateDateTime.getTime() / 1000) }),
|
|
1307
1303
|
};
|
|
1308
1304
|
};
|
|
1309
|
-
const
|
|
1305
|
+
const se_NotifyMigrationTaskStateRequest = (input, context) => {
|
|
1310
1306
|
return {
|
|
1311
1307
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1312
1308
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1313
1309
|
...(input.NextUpdateSeconds != null && { NextUpdateSeconds: input.NextUpdateSeconds }),
|
|
1314
1310
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1315
|
-
...(input.Task != null && { Task:
|
|
1311
|
+
...(input.Task != null && { Task: se_Task(input.Task, context) }),
|
|
1316
1312
|
...(input.UpdateDateTime != null && { UpdateDateTime: Math.round(input.UpdateDateTime.getTime() / 1000) }),
|
|
1317
1313
|
};
|
|
1318
1314
|
};
|
|
1319
|
-
const
|
|
1315
|
+
const se_PutResourceAttributesRequest = (input, context) => {
|
|
1320
1316
|
return {
|
|
1321
1317
|
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1322
1318
|
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1323
1319
|
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1324
1320
|
...(input.ResourceAttributeList != null && {
|
|
1325
|
-
ResourceAttributeList:
|
|
1321
|
+
ResourceAttributeList: se_ResourceAttributeList(input.ResourceAttributeList, context),
|
|
1326
1322
|
}),
|
|
1327
1323
|
};
|
|
1328
1324
|
};
|
|
1329
|
-
const
|
|
1325
|
+
const se_ResourceAttribute = (input, context) => {
|
|
1330
1326
|
return {
|
|
1331
1327
|
...(input.Type != null && { Type: input.Type }),
|
|
1332
1328
|
...(input.Value != null && { Value: input.Value }),
|
|
1333
1329
|
};
|
|
1334
1330
|
};
|
|
1335
|
-
const
|
|
1331
|
+
const se_ResourceAttributeList = (input, context) => {
|
|
1336
1332
|
return input
|
|
1337
1333
|
.filter((e) => e != null)
|
|
1338
1334
|
.map((entry) => {
|
|
1339
|
-
return
|
|
1335
|
+
return se_ResourceAttribute(entry, context);
|
|
1340
1336
|
});
|
|
1341
1337
|
};
|
|
1342
|
-
const
|
|
1338
|
+
const se_Task = (input, context) => {
|
|
1343
1339
|
return {
|
|
1344
1340
|
...(input.ProgressPercent != null && { ProgressPercent: input.ProgressPercent }),
|
|
1345
1341
|
...(input.Status != null && { Status: input.Status }),
|
|
1346
1342
|
...(input.StatusDetail != null && { StatusDetail: input.StatusDetail }),
|
|
1347
1343
|
};
|
|
1348
1344
|
};
|
|
1349
|
-
const
|
|
1345
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1350
1346
|
return {
|
|
1351
1347
|
Message: __expectString(output.Message),
|
|
1352
1348
|
};
|
|
1353
1349
|
};
|
|
1354
|
-
const
|
|
1350
|
+
const de_ApplicationState = (output, context) => {
|
|
1355
1351
|
return {
|
|
1356
1352
|
ApplicationId: __expectString(output.ApplicationId),
|
|
1357
1353
|
ApplicationStatus: __expectString(output.ApplicationStatus),
|
|
@@ -1360,47 +1356,47 @@ const deserializeAws_json1_1ApplicationState = (output, context) => {
|
|
|
1360
1356
|
: undefined,
|
|
1361
1357
|
};
|
|
1362
1358
|
};
|
|
1363
|
-
const
|
|
1359
|
+
const de_ApplicationStateList = (output, context) => {
|
|
1364
1360
|
const retVal = (output || [])
|
|
1365
1361
|
.filter((e) => e != null)
|
|
1366
1362
|
.map((entry) => {
|
|
1367
1363
|
if (entry === null) {
|
|
1368
1364
|
return null;
|
|
1369
1365
|
}
|
|
1370
|
-
return
|
|
1366
|
+
return de_ApplicationState(entry, context);
|
|
1371
1367
|
});
|
|
1372
1368
|
return retVal;
|
|
1373
1369
|
};
|
|
1374
|
-
const
|
|
1370
|
+
const de_AssociateCreatedArtifactResult = (output, context) => {
|
|
1375
1371
|
return {};
|
|
1376
1372
|
};
|
|
1377
|
-
const
|
|
1373
|
+
const de_AssociateDiscoveredResourceResult = (output, context) => {
|
|
1378
1374
|
return {};
|
|
1379
1375
|
};
|
|
1380
|
-
const
|
|
1376
|
+
const de_CreatedArtifact = (output, context) => {
|
|
1381
1377
|
return {
|
|
1382
1378
|
Description: __expectString(output.Description),
|
|
1383
1379
|
Name: __expectString(output.Name),
|
|
1384
1380
|
};
|
|
1385
1381
|
};
|
|
1386
|
-
const
|
|
1382
|
+
const de_CreatedArtifactList = (output, context) => {
|
|
1387
1383
|
const retVal = (output || [])
|
|
1388
1384
|
.filter((e) => e != null)
|
|
1389
1385
|
.map((entry) => {
|
|
1390
1386
|
if (entry === null) {
|
|
1391
1387
|
return null;
|
|
1392
1388
|
}
|
|
1393
|
-
return
|
|
1389
|
+
return de_CreatedArtifact(entry, context);
|
|
1394
1390
|
});
|
|
1395
1391
|
return retVal;
|
|
1396
1392
|
};
|
|
1397
|
-
const
|
|
1393
|
+
const de_CreateProgressUpdateStreamResult = (output, context) => {
|
|
1398
1394
|
return {};
|
|
1399
1395
|
};
|
|
1400
|
-
const
|
|
1396
|
+
const de_DeleteProgressUpdateStreamResult = (output, context) => {
|
|
1401
1397
|
return {};
|
|
1402
1398
|
};
|
|
1403
|
-
const
|
|
1399
|
+
const de_DescribeApplicationStateResult = (output, context) => {
|
|
1404
1400
|
return {
|
|
1405
1401
|
ApplicationStatus: __expectString(output.ApplicationStatus),
|
|
1406
1402
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
@@ -1408,122 +1404,118 @@ const deserializeAws_json1_1DescribeApplicationStateResult = (output, context) =
|
|
|
1408
1404
|
: undefined,
|
|
1409
1405
|
};
|
|
1410
1406
|
};
|
|
1411
|
-
const
|
|
1407
|
+
const de_DescribeMigrationTaskResult = (output, context) => {
|
|
1412
1408
|
return {
|
|
1413
|
-
MigrationTask: output.MigrationTask != null ?
|
|
1409
|
+
MigrationTask: output.MigrationTask != null ? de_MigrationTask(output.MigrationTask, context) : undefined,
|
|
1414
1410
|
};
|
|
1415
1411
|
};
|
|
1416
|
-
const
|
|
1412
|
+
const de_DisassociateCreatedArtifactResult = (output, context) => {
|
|
1417
1413
|
return {};
|
|
1418
1414
|
};
|
|
1419
|
-
const
|
|
1415
|
+
const de_DisassociateDiscoveredResourceResult = (output, context) => {
|
|
1420
1416
|
return {};
|
|
1421
1417
|
};
|
|
1422
|
-
const
|
|
1418
|
+
const de_DiscoveredResource = (output, context) => {
|
|
1423
1419
|
return {
|
|
1424
1420
|
ConfigurationId: __expectString(output.ConfigurationId),
|
|
1425
1421
|
Description: __expectString(output.Description),
|
|
1426
1422
|
};
|
|
1427
1423
|
};
|
|
1428
|
-
const
|
|
1424
|
+
const de_DiscoveredResourceList = (output, context) => {
|
|
1429
1425
|
const retVal = (output || [])
|
|
1430
1426
|
.filter((e) => e != null)
|
|
1431
1427
|
.map((entry) => {
|
|
1432
1428
|
if (entry === null) {
|
|
1433
1429
|
return null;
|
|
1434
1430
|
}
|
|
1435
|
-
return
|
|
1431
|
+
return de_DiscoveredResource(entry, context);
|
|
1436
1432
|
});
|
|
1437
1433
|
return retVal;
|
|
1438
1434
|
};
|
|
1439
|
-
const
|
|
1435
|
+
const de_DryRunOperation = (output, context) => {
|
|
1440
1436
|
return {
|
|
1441
1437
|
Message: __expectString(output.Message),
|
|
1442
1438
|
};
|
|
1443
1439
|
};
|
|
1444
|
-
const
|
|
1440
|
+
const de_HomeRegionNotSetException = (output, context) => {
|
|
1445
1441
|
return {
|
|
1446
1442
|
Message: __expectString(output.Message),
|
|
1447
1443
|
};
|
|
1448
1444
|
};
|
|
1449
|
-
const
|
|
1445
|
+
const de_ImportMigrationTaskResult = (output, context) => {
|
|
1450
1446
|
return {};
|
|
1451
1447
|
};
|
|
1452
|
-
const
|
|
1448
|
+
const de_InternalServerError = (output, context) => {
|
|
1453
1449
|
return {
|
|
1454
1450
|
Message: __expectString(output.Message),
|
|
1455
1451
|
};
|
|
1456
1452
|
};
|
|
1457
|
-
const
|
|
1453
|
+
const de_InvalidInputException = (output, context) => {
|
|
1458
1454
|
return {
|
|
1459
1455
|
Message: __expectString(output.Message),
|
|
1460
1456
|
};
|
|
1461
1457
|
};
|
|
1462
|
-
const
|
|
1458
|
+
const de_LatestResourceAttributeList = (output, context) => {
|
|
1463
1459
|
const retVal = (output || [])
|
|
1464
1460
|
.filter((e) => e != null)
|
|
1465
1461
|
.map((entry) => {
|
|
1466
1462
|
if (entry === null) {
|
|
1467
1463
|
return null;
|
|
1468
1464
|
}
|
|
1469
|
-
return
|
|
1465
|
+
return de_ResourceAttribute(entry, context);
|
|
1470
1466
|
});
|
|
1471
1467
|
return retVal;
|
|
1472
1468
|
};
|
|
1473
|
-
const
|
|
1469
|
+
const de_ListApplicationStatesResult = (output, context) => {
|
|
1474
1470
|
return {
|
|
1475
|
-
ApplicationStateList: output.ApplicationStateList != null
|
|
1476
|
-
? deserializeAws_json1_1ApplicationStateList(output.ApplicationStateList, context)
|
|
1477
|
-
: undefined,
|
|
1471
|
+
ApplicationStateList: output.ApplicationStateList != null ? de_ApplicationStateList(output.ApplicationStateList, context) : undefined,
|
|
1478
1472
|
NextToken: __expectString(output.NextToken),
|
|
1479
1473
|
};
|
|
1480
1474
|
};
|
|
1481
|
-
const
|
|
1475
|
+
const de_ListCreatedArtifactsResult = (output, context) => {
|
|
1482
1476
|
return {
|
|
1483
|
-
CreatedArtifactList: output.CreatedArtifactList != null
|
|
1484
|
-
? deserializeAws_json1_1CreatedArtifactList(output.CreatedArtifactList, context)
|
|
1485
|
-
: undefined,
|
|
1477
|
+
CreatedArtifactList: output.CreatedArtifactList != null ? de_CreatedArtifactList(output.CreatedArtifactList, context) : undefined,
|
|
1486
1478
|
NextToken: __expectString(output.NextToken),
|
|
1487
1479
|
};
|
|
1488
1480
|
};
|
|
1489
|
-
const
|
|
1481
|
+
const de_ListDiscoveredResourcesResult = (output, context) => {
|
|
1490
1482
|
return {
|
|
1491
1483
|
DiscoveredResourceList: output.DiscoveredResourceList != null
|
|
1492
|
-
?
|
|
1484
|
+
? de_DiscoveredResourceList(output.DiscoveredResourceList, context)
|
|
1493
1485
|
: undefined,
|
|
1494
1486
|
NextToken: __expectString(output.NextToken),
|
|
1495
1487
|
};
|
|
1496
1488
|
};
|
|
1497
|
-
const
|
|
1489
|
+
const de_ListMigrationTasksResult = (output, context) => {
|
|
1498
1490
|
return {
|
|
1499
1491
|
MigrationTaskSummaryList: output.MigrationTaskSummaryList != null
|
|
1500
|
-
?
|
|
1492
|
+
? de_MigrationTaskSummaryList(output.MigrationTaskSummaryList, context)
|
|
1501
1493
|
: undefined,
|
|
1502
1494
|
NextToken: __expectString(output.NextToken),
|
|
1503
1495
|
};
|
|
1504
1496
|
};
|
|
1505
|
-
const
|
|
1497
|
+
const de_ListProgressUpdateStreamsResult = (output, context) => {
|
|
1506
1498
|
return {
|
|
1507
1499
|
NextToken: __expectString(output.NextToken),
|
|
1508
1500
|
ProgressUpdateStreamSummaryList: output.ProgressUpdateStreamSummaryList != null
|
|
1509
|
-
?
|
|
1501
|
+
? de_ProgressUpdateStreamSummaryList(output.ProgressUpdateStreamSummaryList, context)
|
|
1510
1502
|
: undefined,
|
|
1511
1503
|
};
|
|
1512
1504
|
};
|
|
1513
|
-
const
|
|
1505
|
+
const de_MigrationTask = (output, context) => {
|
|
1514
1506
|
return {
|
|
1515
1507
|
MigrationTaskName: __expectString(output.MigrationTaskName),
|
|
1516
1508
|
ProgressUpdateStream: __expectString(output.ProgressUpdateStream),
|
|
1517
1509
|
ResourceAttributeList: output.ResourceAttributeList != null
|
|
1518
|
-
?
|
|
1510
|
+
? de_LatestResourceAttributeList(output.ResourceAttributeList, context)
|
|
1519
1511
|
: undefined,
|
|
1520
|
-
Task: output.Task != null ?
|
|
1512
|
+
Task: output.Task != null ? de_Task(output.Task, context) : undefined,
|
|
1521
1513
|
UpdateDateTime: output.UpdateDateTime != null
|
|
1522
1514
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDateTime)))
|
|
1523
1515
|
: undefined,
|
|
1524
1516
|
};
|
|
1525
1517
|
};
|
|
1526
|
-
const
|
|
1518
|
+
const de_MigrationTaskSummary = (output, context) => {
|
|
1527
1519
|
return {
|
|
1528
1520
|
MigrationTaskName: __expectString(output.MigrationTaskName),
|
|
1529
1521
|
ProgressPercent: __expectInt32(output.ProgressPercent),
|
|
@@ -1535,77 +1527,77 @@ const deserializeAws_json1_1MigrationTaskSummary = (output, context) => {
|
|
|
1535
1527
|
: undefined,
|
|
1536
1528
|
};
|
|
1537
1529
|
};
|
|
1538
|
-
const
|
|
1530
|
+
const de_MigrationTaskSummaryList = (output, context) => {
|
|
1539
1531
|
const retVal = (output || [])
|
|
1540
1532
|
.filter((e) => e != null)
|
|
1541
1533
|
.map((entry) => {
|
|
1542
1534
|
if (entry === null) {
|
|
1543
1535
|
return null;
|
|
1544
1536
|
}
|
|
1545
|
-
return
|
|
1537
|
+
return de_MigrationTaskSummary(entry, context);
|
|
1546
1538
|
});
|
|
1547
1539
|
return retVal;
|
|
1548
1540
|
};
|
|
1549
|
-
const
|
|
1541
|
+
const de_NotifyApplicationStateResult = (output, context) => {
|
|
1550
1542
|
return {};
|
|
1551
1543
|
};
|
|
1552
|
-
const
|
|
1544
|
+
const de_NotifyMigrationTaskStateResult = (output, context) => {
|
|
1553
1545
|
return {};
|
|
1554
1546
|
};
|
|
1555
|
-
const
|
|
1547
|
+
const de_PolicyErrorException = (output, context) => {
|
|
1556
1548
|
return {
|
|
1557
1549
|
Message: __expectString(output.Message),
|
|
1558
1550
|
};
|
|
1559
1551
|
};
|
|
1560
|
-
const
|
|
1552
|
+
const de_ProgressUpdateStreamSummary = (output, context) => {
|
|
1561
1553
|
return {
|
|
1562
1554
|
ProgressUpdateStreamName: __expectString(output.ProgressUpdateStreamName),
|
|
1563
1555
|
};
|
|
1564
1556
|
};
|
|
1565
|
-
const
|
|
1557
|
+
const de_ProgressUpdateStreamSummaryList = (output, context) => {
|
|
1566
1558
|
const retVal = (output || [])
|
|
1567
1559
|
.filter((e) => e != null)
|
|
1568
1560
|
.map((entry) => {
|
|
1569
1561
|
if (entry === null) {
|
|
1570
1562
|
return null;
|
|
1571
1563
|
}
|
|
1572
|
-
return
|
|
1564
|
+
return de_ProgressUpdateStreamSummary(entry, context);
|
|
1573
1565
|
});
|
|
1574
1566
|
return retVal;
|
|
1575
1567
|
};
|
|
1576
|
-
const
|
|
1568
|
+
const de_PutResourceAttributesResult = (output, context) => {
|
|
1577
1569
|
return {};
|
|
1578
1570
|
};
|
|
1579
|
-
const
|
|
1571
|
+
const de_ResourceAttribute = (output, context) => {
|
|
1580
1572
|
return {
|
|
1581
1573
|
Type: __expectString(output.Type),
|
|
1582
1574
|
Value: __expectString(output.Value),
|
|
1583
1575
|
};
|
|
1584
1576
|
};
|
|
1585
|
-
const
|
|
1577
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
1586
1578
|
return {
|
|
1587
1579
|
Message: __expectString(output.Message),
|
|
1588
1580
|
};
|
|
1589
1581
|
};
|
|
1590
|
-
const
|
|
1582
|
+
const de_ServiceUnavailableException = (output, context) => {
|
|
1591
1583
|
return {
|
|
1592
1584
|
Message: __expectString(output.Message),
|
|
1593
1585
|
};
|
|
1594
1586
|
};
|
|
1595
|
-
const
|
|
1587
|
+
const de_Task = (output, context) => {
|
|
1596
1588
|
return {
|
|
1597
1589
|
ProgressPercent: __expectInt32(output.ProgressPercent),
|
|
1598
1590
|
Status: __expectString(output.Status),
|
|
1599
1591
|
StatusDetail: __expectString(output.StatusDetail),
|
|
1600
1592
|
};
|
|
1601
1593
|
};
|
|
1602
|
-
const
|
|
1594
|
+
const de_ThrottlingException = (output, context) => {
|
|
1603
1595
|
return {
|
|
1604
1596
|
Message: __expectString(output.Message),
|
|
1605
1597
|
RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
|
|
1606
1598
|
};
|
|
1607
1599
|
};
|
|
1608
|
-
const
|
|
1600
|
+
const de_UnauthorizedOperation = (output, context) => {
|
|
1609
1601
|
return {
|
|
1610
1602
|
Message: __expectString(output.Message),
|
|
1611
1603
|
};
|