@aws-sdk/client-resource-explorer-2 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/AssociateDefaultViewCommand.js +2 -2
- package/dist-cjs/commands/BatchGetViewCommand.js +2 -2
- package/dist-cjs/commands/CreateIndexCommand.js +2 -2
- package/dist-cjs/commands/CreateViewCommand.js +2 -2
- package/dist-cjs/commands/DeleteIndexCommand.js +2 -2
- package/dist-cjs/commands/DeleteViewCommand.js +2 -2
- package/dist-cjs/commands/DisassociateDefaultViewCommand.js +2 -2
- package/dist-cjs/commands/GetDefaultViewCommand.js +2 -2
- package/dist-cjs/commands/GetIndexCommand.js +2 -2
- package/dist-cjs/commands/GetViewCommand.js +2 -2
- package/dist-cjs/commands/ListIndexesCommand.js +2 -2
- package/dist-cjs/commands/ListSupportedResourceTypesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListViewsCommand.js +2 -2
- package/dist-cjs/commands/SearchCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateIndexTypeCommand.js +2 -2
- package/dist-cjs/commands/UpdateViewCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +291 -293
- package/dist-es/commands/AssociateDefaultViewCommand.js +3 -3
- package/dist-es/commands/BatchGetViewCommand.js +3 -3
- package/dist-es/commands/CreateIndexCommand.js +3 -3
- package/dist-es/commands/CreateViewCommand.js +3 -3
- package/dist-es/commands/DeleteIndexCommand.js +3 -3
- package/dist-es/commands/DeleteViewCommand.js +3 -3
- package/dist-es/commands/DisassociateDefaultViewCommand.js +3 -3
- package/dist-es/commands/GetDefaultViewCommand.js +3 -3
- package/dist-es/commands/GetIndexCommand.js +3 -3
- package/dist-es/commands/GetViewCommand.js +3 -3
- package/dist-es/commands/ListIndexesCommand.js +3 -3
- package/dist-es/commands/ListSupportedResourceTypesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListViewsCommand.js +3 -3
- package/dist-es/commands/SearchCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateIndexTypeCommand.js +3 -3
- package/dist-es/commands/UpdateViewCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +252 -254
- package/dist-types/protocols/Aws_restJson1.d.ts +152 -38
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +38 -38
- package/package.json +35 -35
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { ResourceExplorer2ServiceException as __BaseException } from "../models/ResourceExplorer2ServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateDefaultViewCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -23,7 +23,7 @@ export const serializeAws_restJson1AssociateDefaultViewCommand = async (input, c
|
|
|
23
23
|
body,
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
export const
|
|
26
|
+
export const se_BatchGetViewCommand = async (input, context) => {
|
|
27
27
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
28
|
const headers = {
|
|
29
29
|
"content-type": "application/json",
|
|
@@ -31,7 +31,7 @@ export const serializeAws_restJson1BatchGetViewCommand = async (input, context)
|
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetView";
|
|
32
32
|
let body;
|
|
33
33
|
body = JSON.stringify({
|
|
34
|
-
...(input.ViewArns != null && { ViewArns:
|
|
34
|
+
...(input.ViewArns != null && { ViewArns: se_ViewArnList(input.ViewArns, context) }),
|
|
35
35
|
});
|
|
36
36
|
return new __HttpRequest({
|
|
37
37
|
protocol,
|
|
@@ -43,7 +43,7 @@ export const serializeAws_restJson1BatchGetViewCommand = async (input, context)
|
|
|
43
43
|
body,
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
export const
|
|
46
|
+
export const se_CreateIndexCommand = async (input, context) => {
|
|
47
47
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
48
|
const headers = {
|
|
49
49
|
"content-type": "application/json",
|
|
@@ -52,7 +52,7 @@ export const serializeAws_restJson1CreateIndexCommand = async (input, context) =
|
|
|
52
52
|
let body;
|
|
53
53
|
body = JSON.stringify({
|
|
54
54
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
55
|
-
...(input.Tags != null && { Tags:
|
|
55
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
56
56
|
});
|
|
57
57
|
return new __HttpRequest({
|
|
58
58
|
protocol,
|
|
@@ -64,7 +64,7 @@ export const serializeAws_restJson1CreateIndexCommand = async (input, context) =
|
|
|
64
64
|
body,
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
export const
|
|
67
|
+
export const se_CreateViewCommand = async (input, context) => {
|
|
68
68
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/json",
|
|
@@ -73,11 +73,11 @@ export const serializeAws_restJson1CreateViewCommand = async (input, context) =>
|
|
|
73
73
|
let body;
|
|
74
74
|
body = JSON.stringify({
|
|
75
75
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
76
|
-
...(input.Filters != null && { Filters:
|
|
76
|
+
...(input.Filters != null && { Filters: se_SearchFilter(input.Filters, context) }),
|
|
77
77
|
...(input.IncludedProperties != null && {
|
|
78
|
-
IncludedProperties:
|
|
78
|
+
IncludedProperties: se_IncludedPropertyList(input.IncludedProperties, context),
|
|
79
79
|
}),
|
|
80
|
-
...(input.Tags != null && { Tags:
|
|
80
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
81
81
|
...(input.ViewName != null && { ViewName: input.ViewName }),
|
|
82
82
|
});
|
|
83
83
|
return new __HttpRequest({
|
|
@@ -90,7 +90,7 @@ export const serializeAws_restJson1CreateViewCommand = async (input, context) =>
|
|
|
90
90
|
body,
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
|
-
export const
|
|
93
|
+
export const se_DeleteIndexCommand = async (input, context) => {
|
|
94
94
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
95
95
|
const headers = {
|
|
96
96
|
"content-type": "application/json",
|
|
@@ -110,7 +110,7 @@ export const serializeAws_restJson1DeleteIndexCommand = async (input, context) =
|
|
|
110
110
|
body,
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_DeleteViewCommand = async (input, context) => {
|
|
114
114
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
115
115
|
const headers = {
|
|
116
116
|
"content-type": "application/json",
|
|
@@ -130,7 +130,7 @@ export const serializeAws_restJson1DeleteViewCommand = async (input, context) =>
|
|
|
130
130
|
body,
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
|
-
export const
|
|
133
|
+
export const se_DisassociateDefaultViewCommand = async (input, context) => {
|
|
134
134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
135
135
|
const headers = {
|
|
136
136
|
"content-type": "application/json",
|
|
@@ -148,7 +148,7 @@ export const serializeAws_restJson1DisassociateDefaultViewCommand = async (input
|
|
|
148
148
|
body,
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
|
-
export const
|
|
151
|
+
export const se_GetDefaultViewCommand = async (input, context) => {
|
|
152
152
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
153
153
|
const headers = {
|
|
154
154
|
"content-type": "application/json",
|
|
@@ -166,7 +166,7 @@ export const serializeAws_restJson1GetDefaultViewCommand = async (input, context
|
|
|
166
166
|
body,
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
|
-
export const
|
|
169
|
+
export const se_GetIndexCommand = async (input, context) => {
|
|
170
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
171
|
const headers = {
|
|
172
172
|
"content-type": "application/json",
|
|
@@ -184,7 +184,7 @@ export const serializeAws_restJson1GetIndexCommand = async (input, context) => {
|
|
|
184
184
|
body,
|
|
185
185
|
});
|
|
186
186
|
};
|
|
187
|
-
export const
|
|
187
|
+
export const se_GetViewCommand = async (input, context) => {
|
|
188
188
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
189
|
const headers = {
|
|
190
190
|
"content-type": "application/json",
|
|
@@ -204,7 +204,7 @@ export const serializeAws_restJson1GetViewCommand = async (input, context) => {
|
|
|
204
204
|
body,
|
|
205
205
|
});
|
|
206
206
|
};
|
|
207
|
-
export const
|
|
207
|
+
export const se_ListIndexesCommand = async (input, context) => {
|
|
208
208
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
209
|
const headers = {
|
|
210
210
|
"content-type": "application/json",
|
|
@@ -214,7 +214,7 @@ export const serializeAws_restJson1ListIndexesCommand = async (input, context) =
|
|
|
214
214
|
body = JSON.stringify({
|
|
215
215
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
216
216
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
217
|
-
...(input.Regions != null && { Regions:
|
|
217
|
+
...(input.Regions != null && { Regions: se_RegionList(input.Regions, context) }),
|
|
218
218
|
...(input.Type != null && { Type: input.Type }),
|
|
219
219
|
});
|
|
220
220
|
return new __HttpRequest({
|
|
@@ -227,7 +227,7 @@ export const serializeAws_restJson1ListIndexesCommand = async (input, context) =
|
|
|
227
227
|
body,
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
|
-
export const
|
|
230
|
+
export const se_ListSupportedResourceTypesCommand = async (input, context) => {
|
|
231
231
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
232
232
|
const headers = {
|
|
233
233
|
"content-type": "application/json",
|
|
@@ -248,7 +248,7 @@ export const serializeAws_restJson1ListSupportedResourceTypesCommand = async (in
|
|
|
248
248
|
body,
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
|
-
export const
|
|
251
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
252
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
253
|
const headers = {};
|
|
254
254
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -264,7 +264,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
264
264
|
body,
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
|
-
export const
|
|
267
|
+
export const se_ListViewsCommand = async (input, context) => {
|
|
268
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
269
|
const headers = {
|
|
270
270
|
"content-type": "application/json",
|
|
@@ -285,7 +285,7 @@ export const serializeAws_restJson1ListViewsCommand = async (input, context) =>
|
|
|
285
285
|
body,
|
|
286
286
|
});
|
|
287
287
|
};
|
|
288
|
-
export const
|
|
288
|
+
export const se_SearchCommand = async (input, context) => {
|
|
289
289
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/json",
|
|
@@ -308,7 +308,7 @@ export const serializeAws_restJson1SearchCommand = async (input, context) => {
|
|
|
308
308
|
body,
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
|
-
export const
|
|
311
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
312
312
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
313
313
|
const headers = {
|
|
314
314
|
"content-type": "application/json",
|
|
@@ -317,7 +317,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
317
317
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
318
318
|
let body;
|
|
319
319
|
body = JSON.stringify({
|
|
320
|
-
...(input.Tags != null && { Tags:
|
|
320
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
321
321
|
});
|
|
322
322
|
return new __HttpRequest({
|
|
323
323
|
protocol,
|
|
@@ -329,7 +329,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
329
329
|
body,
|
|
330
330
|
});
|
|
331
331
|
};
|
|
332
|
-
export const
|
|
332
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
333
333
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
334
|
const headers = {};
|
|
335
335
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -352,7 +352,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
352
352
|
body,
|
|
353
353
|
});
|
|
354
354
|
};
|
|
355
|
-
export const
|
|
355
|
+
export const se_UpdateIndexTypeCommand = async (input, context) => {
|
|
356
356
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
357
|
const headers = {
|
|
358
358
|
"content-type": "application/json",
|
|
@@ -373,7 +373,7 @@ export const serializeAws_restJson1UpdateIndexTypeCommand = async (input, contex
|
|
|
373
373
|
body,
|
|
374
374
|
});
|
|
375
375
|
};
|
|
376
|
-
export const
|
|
376
|
+
export const se_UpdateViewCommand = async (input, context) => {
|
|
377
377
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
378
|
const headers = {
|
|
379
379
|
"content-type": "application/json",
|
|
@@ -381,9 +381,9 @@ export const serializeAws_restJson1UpdateViewCommand = async (input, context) =>
|
|
|
381
381
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateView";
|
|
382
382
|
let body;
|
|
383
383
|
body = JSON.stringify({
|
|
384
|
-
...(input.Filters != null && { Filters:
|
|
384
|
+
...(input.Filters != null && { Filters: se_SearchFilter(input.Filters, context) }),
|
|
385
385
|
...(input.IncludedProperties != null && {
|
|
386
|
-
IncludedProperties:
|
|
386
|
+
IncludedProperties: se_IncludedPropertyList(input.IncludedProperties, context),
|
|
387
387
|
}),
|
|
388
388
|
...(input.ViewArn != null && { ViewArn: input.ViewArn }),
|
|
389
389
|
});
|
|
@@ -397,9 +397,9 @@ export const serializeAws_restJson1UpdateViewCommand = async (input, context) =>
|
|
|
397
397
|
body,
|
|
398
398
|
});
|
|
399
399
|
};
|
|
400
|
-
export const
|
|
400
|
+
export const de_AssociateDefaultViewCommand = async (output, context) => {
|
|
401
401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
402
|
-
return
|
|
402
|
+
return de_AssociateDefaultViewCommandError(output, context);
|
|
403
403
|
}
|
|
404
404
|
const contents = map({
|
|
405
405
|
$metadata: deserializeMetadata(output),
|
|
@@ -410,7 +410,7 @@ export const deserializeAws_restJson1AssociateDefaultViewCommand = async (output
|
|
|
410
410
|
}
|
|
411
411
|
return contents;
|
|
412
412
|
};
|
|
413
|
-
const
|
|
413
|
+
const de_AssociateDefaultViewCommandError = async (output, context) => {
|
|
414
414
|
const parsedOutput = {
|
|
415
415
|
...output,
|
|
416
416
|
body: await parseErrorBody(output.body, context),
|
|
@@ -419,19 +419,19 @@ const deserializeAws_restJson1AssociateDefaultViewCommandError = async (output,
|
|
|
419
419
|
switch (errorCode) {
|
|
420
420
|
case "AccessDeniedException":
|
|
421
421
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
422
|
-
throw await
|
|
422
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
423
423
|
case "InternalServerException":
|
|
424
424
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
425
|
-
throw await
|
|
425
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
426
426
|
case "ResourceNotFoundException":
|
|
427
427
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
428
|
-
throw await
|
|
428
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
429
429
|
case "ThrottlingException":
|
|
430
430
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
431
|
-
throw await
|
|
431
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
432
432
|
case "ValidationException":
|
|
433
433
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
434
|
-
throw await
|
|
434
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
435
435
|
default:
|
|
436
436
|
const parsedBody = parsedOutput.body;
|
|
437
437
|
throwDefaultError({
|
|
@@ -442,23 +442,23 @@ const deserializeAws_restJson1AssociateDefaultViewCommandError = async (output,
|
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
|
-
export const
|
|
445
|
+
export const de_BatchGetViewCommand = async (output, context) => {
|
|
446
446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
447
|
-
return
|
|
447
|
+
return de_BatchGetViewCommandError(output, context);
|
|
448
448
|
}
|
|
449
449
|
const contents = map({
|
|
450
450
|
$metadata: deserializeMetadata(output),
|
|
451
451
|
});
|
|
452
452
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
453
453
|
if (data.Errors != null) {
|
|
454
|
-
contents.Errors =
|
|
454
|
+
contents.Errors = de_BatchGetViewErrors(data.Errors, context);
|
|
455
455
|
}
|
|
456
456
|
if (data.Views != null) {
|
|
457
|
-
contents.Views =
|
|
457
|
+
contents.Views = de_ViewList(data.Views, context);
|
|
458
458
|
}
|
|
459
459
|
return contents;
|
|
460
460
|
};
|
|
461
|
-
const
|
|
461
|
+
const de_BatchGetViewCommandError = async (output, context) => {
|
|
462
462
|
const parsedOutput = {
|
|
463
463
|
...output,
|
|
464
464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -467,19 +467,19 @@ const deserializeAws_restJson1BatchGetViewCommandError = async (output, context)
|
|
|
467
467
|
switch (errorCode) {
|
|
468
468
|
case "AccessDeniedException":
|
|
469
469
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
470
|
-
throw await
|
|
470
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
471
471
|
case "InternalServerException":
|
|
472
472
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
473
|
-
throw await
|
|
473
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
474
474
|
case "ThrottlingException":
|
|
475
475
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
476
|
-
throw await
|
|
476
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
477
477
|
case "UnauthorizedException":
|
|
478
478
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
479
|
-
throw await
|
|
479
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
480
480
|
case "ValidationException":
|
|
481
481
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
482
|
-
throw await
|
|
482
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
483
483
|
default:
|
|
484
484
|
const parsedBody = parsedOutput.body;
|
|
485
485
|
throwDefaultError({
|
|
@@ -490,9 +490,9 @@ const deserializeAws_restJson1BatchGetViewCommandError = async (output, context)
|
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
|
-
export const
|
|
493
|
+
export const de_CreateIndexCommand = async (output, context) => {
|
|
494
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
495
|
-
return
|
|
495
|
+
return de_CreateIndexCommandError(output, context);
|
|
496
496
|
}
|
|
497
497
|
const contents = map({
|
|
498
498
|
$metadata: deserializeMetadata(output),
|
|
@@ -509,7 +509,7 @@ export const deserializeAws_restJson1CreateIndexCommand = async (output, context
|
|
|
509
509
|
}
|
|
510
510
|
return contents;
|
|
511
511
|
};
|
|
512
|
-
const
|
|
512
|
+
const de_CreateIndexCommandError = async (output, context) => {
|
|
513
513
|
const parsedOutput = {
|
|
514
514
|
...output,
|
|
515
515
|
body: await parseErrorBody(output.body, context),
|
|
@@ -518,19 +518,19 @@ const deserializeAws_restJson1CreateIndexCommandError = async (output, context)
|
|
|
518
518
|
switch (errorCode) {
|
|
519
519
|
case "AccessDeniedException":
|
|
520
520
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
521
|
-
throw await
|
|
521
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
522
522
|
case "ConflictException":
|
|
523
523
|
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
524
|
-
throw await
|
|
524
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
525
525
|
case "InternalServerException":
|
|
526
526
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
527
|
-
throw await
|
|
527
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
528
528
|
case "ThrottlingException":
|
|
529
529
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
530
|
-
throw await
|
|
530
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
531
531
|
case "ValidationException":
|
|
532
532
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
533
|
-
throw await
|
|
533
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
534
534
|
default:
|
|
535
535
|
const parsedBody = parsedOutput.body;
|
|
536
536
|
throwDefaultError({
|
|
@@ -541,20 +541,20 @@ const deserializeAws_restJson1CreateIndexCommandError = async (output, context)
|
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
|
-
export const
|
|
544
|
+
export const de_CreateViewCommand = async (output, context) => {
|
|
545
545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
546
|
-
return
|
|
546
|
+
return de_CreateViewCommandError(output, context);
|
|
547
547
|
}
|
|
548
548
|
const contents = map({
|
|
549
549
|
$metadata: deserializeMetadata(output),
|
|
550
550
|
});
|
|
551
551
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
552
552
|
if (data.View != null) {
|
|
553
|
-
contents.View =
|
|
553
|
+
contents.View = de_View(data.View, context);
|
|
554
554
|
}
|
|
555
555
|
return contents;
|
|
556
556
|
};
|
|
557
|
-
const
|
|
557
|
+
const de_CreateViewCommandError = async (output, context) => {
|
|
558
558
|
const parsedOutput = {
|
|
559
559
|
...output,
|
|
560
560
|
body: await parseErrorBody(output.body, context),
|
|
@@ -563,25 +563,25 @@ const deserializeAws_restJson1CreateViewCommandError = async (output, context) =
|
|
|
563
563
|
switch (errorCode) {
|
|
564
564
|
case "AccessDeniedException":
|
|
565
565
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
566
|
-
throw await
|
|
566
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
567
567
|
case "ConflictException":
|
|
568
568
|
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
569
|
-
throw await
|
|
569
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
570
570
|
case "InternalServerException":
|
|
571
571
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
572
|
-
throw await
|
|
572
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
573
573
|
case "ServiceQuotaExceededException":
|
|
574
574
|
case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
|
|
575
|
-
throw await
|
|
575
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
576
576
|
case "ThrottlingException":
|
|
577
577
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
578
|
-
throw await
|
|
578
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
579
579
|
case "UnauthorizedException":
|
|
580
580
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
581
|
-
throw await
|
|
581
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
582
582
|
case "ValidationException":
|
|
583
583
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
584
|
-
throw await
|
|
584
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
585
|
default:
|
|
586
586
|
const parsedBody = parsedOutput.body;
|
|
587
587
|
throwDefaultError({
|
|
@@ -592,9 +592,9 @@ const deserializeAws_restJson1CreateViewCommandError = async (output, context) =
|
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
|
-
export const
|
|
595
|
+
export const de_DeleteIndexCommand = async (output, context) => {
|
|
596
596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
597
|
-
return
|
|
597
|
+
return de_DeleteIndexCommandError(output, context);
|
|
598
598
|
}
|
|
599
599
|
const contents = map({
|
|
600
600
|
$metadata: deserializeMetadata(output),
|
|
@@ -611,7 +611,7 @@ export const deserializeAws_restJson1DeleteIndexCommand = async (output, context
|
|
|
611
611
|
}
|
|
612
612
|
return contents;
|
|
613
613
|
};
|
|
614
|
-
const
|
|
614
|
+
const de_DeleteIndexCommandError = async (output, context) => {
|
|
615
615
|
const parsedOutput = {
|
|
616
616
|
...output,
|
|
617
617
|
body: await parseErrorBody(output.body, context),
|
|
@@ -620,19 +620,19 @@ const deserializeAws_restJson1DeleteIndexCommandError = async (output, context)
|
|
|
620
620
|
switch (errorCode) {
|
|
621
621
|
case "AccessDeniedException":
|
|
622
622
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
623
|
-
throw await
|
|
623
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
624
624
|
case "InternalServerException":
|
|
625
625
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
626
|
-
throw await
|
|
626
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
627
627
|
case "ResourceNotFoundException":
|
|
628
628
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
629
|
-
throw await
|
|
629
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
630
630
|
case "ThrottlingException":
|
|
631
631
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
632
|
-
throw await
|
|
632
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
633
633
|
case "ValidationException":
|
|
634
634
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
635
|
-
throw await
|
|
635
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
636
636
|
default:
|
|
637
637
|
const parsedBody = parsedOutput.body;
|
|
638
638
|
throwDefaultError({
|
|
@@ -643,9 +643,9 @@ const deserializeAws_restJson1DeleteIndexCommandError = async (output, context)
|
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
export const
|
|
646
|
+
export const de_DeleteViewCommand = async (output, context) => {
|
|
647
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
648
|
-
return
|
|
648
|
+
return de_DeleteViewCommandError(output, context);
|
|
649
649
|
}
|
|
650
650
|
const contents = map({
|
|
651
651
|
$metadata: deserializeMetadata(output),
|
|
@@ -656,7 +656,7 @@ export const deserializeAws_restJson1DeleteViewCommand = async (output, context)
|
|
|
656
656
|
}
|
|
657
657
|
return contents;
|
|
658
658
|
};
|
|
659
|
-
const
|
|
659
|
+
const de_DeleteViewCommandError = async (output, context) => {
|
|
660
660
|
const parsedOutput = {
|
|
661
661
|
...output,
|
|
662
662
|
body: await parseErrorBody(output.body, context),
|
|
@@ -665,22 +665,22 @@ const deserializeAws_restJson1DeleteViewCommandError = async (output, context) =
|
|
|
665
665
|
switch (errorCode) {
|
|
666
666
|
case "AccessDeniedException":
|
|
667
667
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
668
|
-
throw await
|
|
668
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
669
669
|
case "InternalServerException":
|
|
670
670
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
671
|
-
throw await
|
|
671
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
672
672
|
case "ResourceNotFoundException":
|
|
673
673
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
674
|
-
throw await
|
|
674
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
675
675
|
case "ThrottlingException":
|
|
676
676
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
677
|
-
throw await
|
|
677
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
678
678
|
case "UnauthorizedException":
|
|
679
679
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
680
|
-
throw await
|
|
680
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
681
681
|
case "ValidationException":
|
|
682
682
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
683
|
-
throw await
|
|
683
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
684
|
default:
|
|
685
685
|
const parsedBody = parsedOutput.body;
|
|
686
686
|
throwDefaultError({
|
|
@@ -691,9 +691,9 @@ const deserializeAws_restJson1DeleteViewCommandError = async (output, context) =
|
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
};
|
|
694
|
-
export const
|
|
694
|
+
export const de_DisassociateDefaultViewCommand = async (output, context) => {
|
|
695
695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
|
-
return
|
|
696
|
+
return de_DisassociateDefaultViewCommandError(output, context);
|
|
697
697
|
}
|
|
698
698
|
const contents = map({
|
|
699
699
|
$metadata: deserializeMetadata(output),
|
|
@@ -701,7 +701,7 @@ export const deserializeAws_restJson1DisassociateDefaultViewCommand = async (out
|
|
|
701
701
|
await collectBody(output.body, context);
|
|
702
702
|
return contents;
|
|
703
703
|
};
|
|
704
|
-
const
|
|
704
|
+
const de_DisassociateDefaultViewCommandError = async (output, context) => {
|
|
705
705
|
const parsedOutput = {
|
|
706
706
|
...output,
|
|
707
707
|
body: await parseErrorBody(output.body, context),
|
|
@@ -710,16 +710,16 @@ const deserializeAws_restJson1DisassociateDefaultViewCommandError = async (outpu
|
|
|
710
710
|
switch (errorCode) {
|
|
711
711
|
case "AccessDeniedException":
|
|
712
712
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
713
|
-
throw await
|
|
713
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
714
714
|
case "InternalServerException":
|
|
715
715
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
716
|
-
throw await
|
|
716
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
717
717
|
case "ThrottlingException":
|
|
718
718
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
719
|
-
throw await
|
|
719
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
720
720
|
case "ValidationException":
|
|
721
721
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
722
|
-
throw await
|
|
722
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
723
723
|
default:
|
|
724
724
|
const parsedBody = parsedOutput.body;
|
|
725
725
|
throwDefaultError({
|
|
@@ -730,9 +730,9 @@ const deserializeAws_restJson1DisassociateDefaultViewCommandError = async (outpu
|
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
|
-
export const
|
|
733
|
+
export const de_GetDefaultViewCommand = async (output, context) => {
|
|
734
734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
-
return
|
|
735
|
+
return de_GetDefaultViewCommandError(output, context);
|
|
736
736
|
}
|
|
737
737
|
const contents = map({
|
|
738
738
|
$metadata: deserializeMetadata(output),
|
|
@@ -743,7 +743,7 @@ export const deserializeAws_restJson1GetDefaultViewCommand = async (output, cont
|
|
|
743
743
|
}
|
|
744
744
|
return contents;
|
|
745
745
|
};
|
|
746
|
-
const
|
|
746
|
+
const de_GetDefaultViewCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
749
|
body: await parseErrorBody(output.body, context),
|
|
@@ -752,19 +752,19 @@ const deserializeAws_restJson1GetDefaultViewCommandError = async (output, contex
|
|
|
752
752
|
switch (errorCode) {
|
|
753
753
|
case "AccessDeniedException":
|
|
754
754
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
755
|
-
throw await
|
|
755
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
756
756
|
case "InternalServerException":
|
|
757
757
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
758
|
-
throw await
|
|
758
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
759
759
|
case "ResourceNotFoundException":
|
|
760
760
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
761
|
-
throw await
|
|
761
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
762
762
|
case "ThrottlingException":
|
|
763
763
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
764
|
-
throw await
|
|
764
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
765
765
|
case "ValidationException":
|
|
766
766
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
767
|
-
throw await
|
|
767
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
768
|
default:
|
|
769
769
|
const parsedBody = parsedOutput.body;
|
|
770
770
|
throwDefaultError({
|
|
@@ -775,9 +775,9 @@ const deserializeAws_restJson1GetDefaultViewCommandError = async (output, contex
|
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
|
-
export const
|
|
778
|
+
export const de_GetIndexCommand = async (output, context) => {
|
|
779
779
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return
|
|
780
|
+
return de_GetIndexCommandError(output, context);
|
|
781
781
|
}
|
|
782
782
|
const contents = map({
|
|
783
783
|
$metadata: deserializeMetadata(output),
|
|
@@ -793,23 +793,23 @@ export const deserializeAws_restJson1GetIndexCommand = async (output, context) =
|
|
|
793
793
|
contents.LastUpdatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.LastUpdatedAt));
|
|
794
794
|
}
|
|
795
795
|
if (data.ReplicatingFrom != null) {
|
|
796
|
-
contents.ReplicatingFrom =
|
|
796
|
+
contents.ReplicatingFrom = de_RegionList(data.ReplicatingFrom, context);
|
|
797
797
|
}
|
|
798
798
|
if (data.ReplicatingTo != null) {
|
|
799
|
-
contents.ReplicatingTo =
|
|
799
|
+
contents.ReplicatingTo = de_RegionList(data.ReplicatingTo, context);
|
|
800
800
|
}
|
|
801
801
|
if (data.State != null) {
|
|
802
802
|
contents.State = __expectString(data.State);
|
|
803
803
|
}
|
|
804
804
|
if (data.Tags != null) {
|
|
805
|
-
contents.Tags =
|
|
805
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
806
806
|
}
|
|
807
807
|
if (data.Type != null) {
|
|
808
808
|
contents.Type = __expectString(data.Type);
|
|
809
809
|
}
|
|
810
810
|
return contents;
|
|
811
811
|
};
|
|
812
|
-
const
|
|
812
|
+
const de_GetIndexCommandError = async (output, context) => {
|
|
813
813
|
const parsedOutput = {
|
|
814
814
|
...output,
|
|
815
815
|
body: await parseErrorBody(output.body, context),
|
|
@@ -818,19 +818,19 @@ const deserializeAws_restJson1GetIndexCommandError = async (output, context) =>
|
|
|
818
818
|
switch (errorCode) {
|
|
819
819
|
case "AccessDeniedException":
|
|
820
820
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
821
|
-
throw await
|
|
821
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
822
822
|
case "InternalServerException":
|
|
823
823
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
824
|
-
throw await
|
|
824
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
825
825
|
case "ResourceNotFoundException":
|
|
826
826
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
827
|
-
throw await
|
|
827
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
828
828
|
case "ThrottlingException":
|
|
829
829
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
830
|
-
throw await
|
|
830
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
831
831
|
case "ValidationException":
|
|
832
832
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
833
|
-
throw await
|
|
833
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
834
|
default:
|
|
835
835
|
const parsedBody = parsedOutput.body;
|
|
836
836
|
throwDefaultError({
|
|
@@ -841,23 +841,23 @@ const deserializeAws_restJson1GetIndexCommandError = async (output, context) =>
|
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
843
|
};
|
|
844
|
-
export const
|
|
844
|
+
export const de_GetViewCommand = async (output, context) => {
|
|
845
845
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return
|
|
846
|
+
return de_GetViewCommandError(output, context);
|
|
847
847
|
}
|
|
848
848
|
const contents = map({
|
|
849
849
|
$metadata: deserializeMetadata(output),
|
|
850
850
|
});
|
|
851
851
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
852
852
|
if (data.Tags != null) {
|
|
853
|
-
contents.Tags =
|
|
853
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
854
854
|
}
|
|
855
855
|
if (data.View != null) {
|
|
856
|
-
contents.View =
|
|
856
|
+
contents.View = de_View(data.View, context);
|
|
857
857
|
}
|
|
858
858
|
return contents;
|
|
859
859
|
};
|
|
860
|
-
const
|
|
860
|
+
const de_GetViewCommandError = async (output, context) => {
|
|
861
861
|
const parsedOutput = {
|
|
862
862
|
...output,
|
|
863
863
|
body: await parseErrorBody(output.body, context),
|
|
@@ -866,22 +866,22 @@ const deserializeAws_restJson1GetViewCommandError = async (output, context) => {
|
|
|
866
866
|
switch (errorCode) {
|
|
867
867
|
case "AccessDeniedException":
|
|
868
868
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
869
|
-
throw await
|
|
869
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
870
870
|
case "InternalServerException":
|
|
871
871
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
872
|
-
throw await
|
|
872
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
873
873
|
case "ResourceNotFoundException":
|
|
874
874
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
875
|
-
throw await
|
|
875
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
876
876
|
case "ThrottlingException":
|
|
877
877
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
878
|
-
throw await
|
|
878
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
879
879
|
case "UnauthorizedException":
|
|
880
880
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
881
|
-
throw await
|
|
881
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
882
882
|
case "ValidationException":
|
|
883
883
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
884
|
-
throw await
|
|
884
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
885
885
|
default:
|
|
886
886
|
const parsedBody = parsedOutput.body;
|
|
887
887
|
throwDefaultError({
|
|
@@ -892,23 +892,23 @@ const deserializeAws_restJson1GetViewCommandError = async (output, context) => {
|
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
};
|
|
895
|
-
export const
|
|
895
|
+
export const de_ListIndexesCommand = async (output, context) => {
|
|
896
896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
897
|
-
return
|
|
897
|
+
return de_ListIndexesCommandError(output, context);
|
|
898
898
|
}
|
|
899
899
|
const contents = map({
|
|
900
900
|
$metadata: deserializeMetadata(output),
|
|
901
901
|
});
|
|
902
902
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
903
903
|
if (data.Indexes != null) {
|
|
904
|
-
contents.Indexes =
|
|
904
|
+
contents.Indexes = de_IndexList(data.Indexes, context);
|
|
905
905
|
}
|
|
906
906
|
if (data.NextToken != null) {
|
|
907
907
|
contents.NextToken = __expectString(data.NextToken);
|
|
908
908
|
}
|
|
909
909
|
return contents;
|
|
910
910
|
};
|
|
911
|
-
const
|
|
911
|
+
const de_ListIndexesCommandError = async (output, context) => {
|
|
912
912
|
const parsedOutput = {
|
|
913
913
|
...output,
|
|
914
914
|
body: await parseErrorBody(output.body, context),
|
|
@@ -917,16 +917,16 @@ const deserializeAws_restJson1ListIndexesCommandError = async (output, context)
|
|
|
917
917
|
switch (errorCode) {
|
|
918
918
|
case "AccessDeniedException":
|
|
919
919
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
920
|
-
throw await
|
|
920
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
921
921
|
case "InternalServerException":
|
|
922
922
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
923
|
-
throw await
|
|
923
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
924
924
|
case "ThrottlingException":
|
|
925
925
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
926
|
-
throw await
|
|
926
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
927
927
|
case "ValidationException":
|
|
928
928
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
929
|
-
throw await
|
|
929
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
930
930
|
default:
|
|
931
931
|
const parsedBody = parsedOutput.body;
|
|
932
932
|
throwDefaultError({
|
|
@@ -937,9 +937,9 @@ const deserializeAws_restJson1ListIndexesCommandError = async (output, context)
|
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
};
|
|
940
|
-
export const
|
|
940
|
+
export const de_ListSupportedResourceTypesCommand = async (output, context) => {
|
|
941
941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
942
|
+
return de_ListSupportedResourceTypesCommandError(output, context);
|
|
943
943
|
}
|
|
944
944
|
const contents = map({
|
|
945
945
|
$metadata: deserializeMetadata(output),
|
|
@@ -949,11 +949,11 @@ export const deserializeAws_restJson1ListSupportedResourceTypesCommand = async (
|
|
|
949
949
|
contents.NextToken = __expectString(data.NextToken);
|
|
950
950
|
}
|
|
951
951
|
if (data.ResourceTypes != null) {
|
|
952
|
-
contents.ResourceTypes =
|
|
952
|
+
contents.ResourceTypes = de_ResourceTypeList(data.ResourceTypes, context);
|
|
953
953
|
}
|
|
954
954
|
return contents;
|
|
955
955
|
};
|
|
956
|
-
const
|
|
956
|
+
const de_ListSupportedResourceTypesCommandError = async (output, context) => {
|
|
957
957
|
const parsedOutput = {
|
|
958
958
|
...output,
|
|
959
959
|
body: await parseErrorBody(output.body, context),
|
|
@@ -962,16 +962,16 @@ const deserializeAws_restJson1ListSupportedResourceTypesCommandError = async (ou
|
|
|
962
962
|
switch (errorCode) {
|
|
963
963
|
case "AccessDeniedException":
|
|
964
964
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
965
|
-
throw await
|
|
965
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
966
966
|
case "InternalServerException":
|
|
967
967
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
968
|
-
throw await
|
|
968
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
969
969
|
case "ThrottlingException":
|
|
970
970
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
971
|
-
throw await
|
|
971
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
972
972
|
case "ValidationException":
|
|
973
973
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
974
|
-
throw await
|
|
974
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
975
|
default:
|
|
976
976
|
const parsedBody = parsedOutput.body;
|
|
977
977
|
throwDefaultError({
|
|
@@ -982,20 +982,20 @@ const deserializeAws_restJson1ListSupportedResourceTypesCommandError = async (ou
|
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
|
-
export const
|
|
985
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
986
986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
987
|
-
return
|
|
987
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
988
988
|
}
|
|
989
989
|
const contents = map({
|
|
990
990
|
$metadata: deserializeMetadata(output),
|
|
991
991
|
});
|
|
992
992
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
993
993
|
if (data.Tags != null) {
|
|
994
|
-
contents.Tags =
|
|
994
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
995
995
|
}
|
|
996
996
|
return contents;
|
|
997
997
|
};
|
|
998
|
-
const
|
|
998
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
999
999
|
const parsedOutput = {
|
|
1000
1000
|
...output,
|
|
1001
1001
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1004,22 +1004,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1004
1004
|
switch (errorCode) {
|
|
1005
1005
|
case "AccessDeniedException":
|
|
1006
1006
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1007
|
-
throw await
|
|
1007
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1008
1008
|
case "InternalServerException":
|
|
1009
1009
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1010
|
-
throw await
|
|
1010
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1011
1011
|
case "ResourceNotFoundException":
|
|
1012
1012
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1013
|
-
throw await
|
|
1013
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1014
1014
|
case "ThrottlingException":
|
|
1015
1015
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1016
|
-
throw await
|
|
1016
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1017
1017
|
case "UnauthorizedException":
|
|
1018
1018
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1019
|
-
throw await
|
|
1019
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1020
1020
|
case "ValidationException":
|
|
1021
1021
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1022
|
-
throw await
|
|
1022
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1023
1023
|
default:
|
|
1024
1024
|
const parsedBody = parsedOutput.body;
|
|
1025
1025
|
throwDefaultError({
|
|
@@ -1030,9 +1030,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
|
-
export const
|
|
1033
|
+
export const de_ListViewsCommand = async (output, context) => {
|
|
1034
1034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
-
return
|
|
1035
|
+
return de_ListViewsCommandError(output, context);
|
|
1036
1036
|
}
|
|
1037
1037
|
const contents = map({
|
|
1038
1038
|
$metadata: deserializeMetadata(output),
|
|
@@ -1042,11 +1042,11 @@ export const deserializeAws_restJson1ListViewsCommand = async (output, context)
|
|
|
1042
1042
|
contents.NextToken = __expectString(data.NextToken);
|
|
1043
1043
|
}
|
|
1044
1044
|
if (data.Views != null) {
|
|
1045
|
-
contents.Views =
|
|
1045
|
+
contents.Views = de_ViewArnList(data.Views, context);
|
|
1046
1046
|
}
|
|
1047
1047
|
return contents;
|
|
1048
1048
|
};
|
|
1049
|
-
const
|
|
1049
|
+
const de_ListViewsCommandError = async (output, context) => {
|
|
1050
1050
|
const parsedOutput = {
|
|
1051
1051
|
...output,
|
|
1052
1052
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1055,16 +1055,16 @@ const deserializeAws_restJson1ListViewsCommandError = async (output, context) =>
|
|
|
1055
1055
|
switch (errorCode) {
|
|
1056
1056
|
case "AccessDeniedException":
|
|
1057
1057
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1058
|
-
throw await
|
|
1058
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1059
1059
|
case "InternalServerException":
|
|
1060
1060
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1061
|
-
throw await
|
|
1061
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1062
1062
|
case "ThrottlingException":
|
|
1063
1063
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1064
|
-
throw await
|
|
1064
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1065
1065
|
case "ValidationException":
|
|
1066
1066
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1067
|
-
throw await
|
|
1067
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1068
1068
|
default:
|
|
1069
1069
|
const parsedBody = parsedOutput.body;
|
|
1070
1070
|
throwDefaultError({
|
|
@@ -1075,29 +1075,29 @@ const deserializeAws_restJson1ListViewsCommandError = async (output, context) =>
|
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
export const
|
|
1078
|
+
export const de_SearchCommand = async (output, context) => {
|
|
1079
1079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
1080
|
+
return de_SearchCommandError(output, context);
|
|
1081
1081
|
}
|
|
1082
1082
|
const contents = map({
|
|
1083
1083
|
$metadata: deserializeMetadata(output),
|
|
1084
1084
|
});
|
|
1085
1085
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1086
1086
|
if (data.Count != null) {
|
|
1087
|
-
contents.Count =
|
|
1087
|
+
contents.Count = de_ResourceCount(data.Count, context);
|
|
1088
1088
|
}
|
|
1089
1089
|
if (data.NextToken != null) {
|
|
1090
1090
|
contents.NextToken = __expectString(data.NextToken);
|
|
1091
1091
|
}
|
|
1092
1092
|
if (data.Resources != null) {
|
|
1093
|
-
contents.Resources =
|
|
1093
|
+
contents.Resources = de_ResourceList(data.Resources, context);
|
|
1094
1094
|
}
|
|
1095
1095
|
if (data.ViewArn != null) {
|
|
1096
1096
|
contents.ViewArn = __expectString(data.ViewArn);
|
|
1097
1097
|
}
|
|
1098
1098
|
return contents;
|
|
1099
1099
|
};
|
|
1100
|
-
const
|
|
1100
|
+
const de_SearchCommandError = async (output, context) => {
|
|
1101
1101
|
const parsedOutput = {
|
|
1102
1102
|
...output,
|
|
1103
1103
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1106,22 +1106,22 @@ const deserializeAws_restJson1SearchCommandError = async (output, context) => {
|
|
|
1106
1106
|
switch (errorCode) {
|
|
1107
1107
|
case "AccessDeniedException":
|
|
1108
1108
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1109
|
-
throw await
|
|
1109
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1110
1110
|
case "InternalServerException":
|
|
1111
1111
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1112
|
-
throw await
|
|
1112
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1113
1113
|
case "ResourceNotFoundException":
|
|
1114
1114
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1115
|
-
throw await
|
|
1115
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
1116
|
case "ThrottlingException":
|
|
1117
1117
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1118
|
-
throw await
|
|
1118
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1119
1119
|
case "UnauthorizedException":
|
|
1120
1120
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1121
|
-
throw await
|
|
1121
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1122
1122
|
case "ValidationException":
|
|
1123
1123
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1124
|
-
throw await
|
|
1124
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1125
1125
|
default:
|
|
1126
1126
|
const parsedBody = parsedOutput.body;
|
|
1127
1127
|
throwDefaultError({
|
|
@@ -1132,9 +1132,9 @@ const deserializeAws_restJson1SearchCommandError = async (output, context) => {
|
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
1134
|
};
|
|
1135
|
-
export const
|
|
1135
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1136
1136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
|
-
return
|
|
1137
|
+
return de_TagResourceCommandError(output, context);
|
|
1138
1138
|
}
|
|
1139
1139
|
const contents = map({
|
|
1140
1140
|
$metadata: deserializeMetadata(output),
|
|
@@ -1142,7 +1142,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1142
1142
|
await collectBody(output.body, context);
|
|
1143
1143
|
return contents;
|
|
1144
1144
|
};
|
|
1145
|
-
const
|
|
1145
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1146
1146
|
const parsedOutput = {
|
|
1147
1147
|
...output,
|
|
1148
1148
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1151,22 +1151,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1151
1151
|
switch (errorCode) {
|
|
1152
1152
|
case "AccessDeniedException":
|
|
1153
1153
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1154
|
-
throw await
|
|
1154
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1155
1155
|
case "ConflictException":
|
|
1156
1156
|
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
1157
|
-
throw await
|
|
1157
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1158
1158
|
case "InternalServerException":
|
|
1159
1159
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1160
|
-
throw await
|
|
1160
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1161
1161
|
case "ThrottlingException":
|
|
1162
1162
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1163
|
-
throw await
|
|
1163
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1164
1164
|
case "UnauthorizedException":
|
|
1165
1165
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1166
|
-
throw await
|
|
1166
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1167
1167
|
case "ValidationException":
|
|
1168
1168
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1169
|
-
throw await
|
|
1169
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1170
1170
|
default:
|
|
1171
1171
|
const parsedBody = parsedOutput.body;
|
|
1172
1172
|
throwDefaultError({
|
|
@@ -1177,9 +1177,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1177
1177
|
});
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
export const
|
|
1180
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1181
1181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
1182
|
+
return de_UntagResourceCommandError(output, context);
|
|
1183
1183
|
}
|
|
1184
1184
|
const contents = map({
|
|
1185
1185
|
$metadata: deserializeMetadata(output),
|
|
@@ -1187,7 +1187,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1187
1187
|
await collectBody(output.body, context);
|
|
1188
1188
|
return contents;
|
|
1189
1189
|
};
|
|
1190
|
-
const
|
|
1190
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1191
1191
|
const parsedOutput = {
|
|
1192
1192
|
...output,
|
|
1193
1193
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1196,22 +1196,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1196
1196
|
switch (errorCode) {
|
|
1197
1197
|
case "AccessDeniedException":
|
|
1198
1198
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1199
|
-
throw await
|
|
1199
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1200
1200
|
case "InternalServerException":
|
|
1201
1201
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1202
|
-
throw await
|
|
1202
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1203
1203
|
case "ResourceNotFoundException":
|
|
1204
1204
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1205
|
-
throw await
|
|
1205
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1206
1206
|
case "ThrottlingException":
|
|
1207
1207
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1208
|
-
throw await
|
|
1208
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1209
1209
|
case "UnauthorizedException":
|
|
1210
1210
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1211
|
-
throw await
|
|
1211
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1212
1212
|
case "ValidationException":
|
|
1213
1213
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1214
|
-
throw await
|
|
1214
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1215
1215
|
default:
|
|
1216
1216
|
const parsedBody = parsedOutput.body;
|
|
1217
1217
|
throwDefaultError({
|
|
@@ -1222,9 +1222,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
1224
|
};
|
|
1225
|
-
export const
|
|
1225
|
+
export const de_UpdateIndexTypeCommand = async (output, context) => {
|
|
1226
1226
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1227
|
-
return
|
|
1227
|
+
return de_UpdateIndexTypeCommandError(output, context);
|
|
1228
1228
|
}
|
|
1229
1229
|
const contents = map({
|
|
1230
1230
|
$metadata: deserializeMetadata(output),
|
|
@@ -1244,7 +1244,7 @@ export const deserializeAws_restJson1UpdateIndexTypeCommand = async (output, con
|
|
|
1244
1244
|
}
|
|
1245
1245
|
return contents;
|
|
1246
1246
|
};
|
|
1247
|
-
const
|
|
1247
|
+
const de_UpdateIndexTypeCommandError = async (output, context) => {
|
|
1248
1248
|
const parsedOutput = {
|
|
1249
1249
|
...output,
|
|
1250
1250
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1253,25 +1253,25 @@ const deserializeAws_restJson1UpdateIndexTypeCommandError = async (output, conte
|
|
|
1253
1253
|
switch (errorCode) {
|
|
1254
1254
|
case "AccessDeniedException":
|
|
1255
1255
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1256
|
-
throw await
|
|
1256
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1257
1257
|
case "ConflictException":
|
|
1258
1258
|
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
1259
|
-
throw await
|
|
1259
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1260
1260
|
case "InternalServerException":
|
|
1261
1261
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1262
|
-
throw await
|
|
1262
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1263
1263
|
case "ResourceNotFoundException":
|
|
1264
1264
|
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1265
|
-
throw await
|
|
1265
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1266
1266
|
case "ServiceQuotaExceededException":
|
|
1267
1267
|
case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
|
|
1268
|
-
throw await
|
|
1268
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1269
1269
|
case "ThrottlingException":
|
|
1270
1270
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1271
|
-
throw await
|
|
1271
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1272
1272
|
case "ValidationException":
|
|
1273
1273
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1274
|
-
throw await
|
|
1274
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1275
1275
|
default:
|
|
1276
1276
|
const parsedBody = parsedOutput.body;
|
|
1277
1277
|
throwDefaultError({
|
|
@@ -1282,20 +1282,20 @@ const deserializeAws_restJson1UpdateIndexTypeCommandError = async (output, conte
|
|
|
1282
1282
|
});
|
|
1283
1283
|
}
|
|
1284
1284
|
};
|
|
1285
|
-
export const
|
|
1285
|
+
export const de_UpdateViewCommand = async (output, context) => {
|
|
1286
1286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1287
|
-
return
|
|
1287
|
+
return de_UpdateViewCommandError(output, context);
|
|
1288
1288
|
}
|
|
1289
1289
|
const contents = map({
|
|
1290
1290
|
$metadata: deserializeMetadata(output),
|
|
1291
1291
|
});
|
|
1292
1292
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1293
1293
|
if (data.View != null) {
|
|
1294
|
-
contents.View =
|
|
1294
|
+
contents.View = de_View(data.View, context);
|
|
1295
1295
|
}
|
|
1296
1296
|
return contents;
|
|
1297
1297
|
};
|
|
1298
|
-
const
|
|
1298
|
+
const de_UpdateViewCommandError = async (output, context) => {
|
|
1299
1299
|
const parsedOutput = {
|
|
1300
1300
|
...output,
|
|
1301
1301
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1304,22 +1304,22 @@ const deserializeAws_restJson1UpdateViewCommandError = async (output, context) =
|
|
|
1304
1304
|
switch (errorCode) {
|
|
1305
1305
|
case "AccessDeniedException":
|
|
1306
1306
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1307
|
-
throw await
|
|
1307
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1308
1308
|
case "InternalServerException":
|
|
1309
1309
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1310
|
-
throw await
|
|
1310
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1311
1311
|
case "ServiceQuotaExceededException":
|
|
1312
1312
|
case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
|
|
1313
|
-
throw await
|
|
1313
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1314
1314
|
case "ThrottlingException":
|
|
1315
1315
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1316
|
-
throw await
|
|
1316
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1317
1317
|
case "UnauthorizedException":
|
|
1318
1318
|
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1319
|
-
throw await
|
|
1319
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1320
1320
|
case "ValidationException":
|
|
1321
1321
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1322
|
-
throw await
|
|
1322
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
1323
|
default:
|
|
1324
1324
|
const parsedBody = parsedOutput.body;
|
|
1325
1325
|
throwDefaultError({
|
|
@@ -1331,7 +1331,7 @@ const deserializeAws_restJson1UpdateViewCommandError = async (output, context) =
|
|
|
1331
1331
|
}
|
|
1332
1332
|
};
|
|
1333
1333
|
const map = __map;
|
|
1334
|
-
const
|
|
1334
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1335
1335
|
const contents = map({});
|
|
1336
1336
|
const data = parsedOutput.body;
|
|
1337
1337
|
if (data.Message != null) {
|
|
@@ -1343,7 +1343,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1343
1343
|
});
|
|
1344
1344
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1345
1345
|
};
|
|
1346
|
-
const
|
|
1346
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1347
1347
|
const contents = map({});
|
|
1348
1348
|
const data = parsedOutput.body;
|
|
1349
1349
|
if (data.Message != null) {
|
|
@@ -1355,7 +1355,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1355
1355
|
});
|
|
1356
1356
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1357
1357
|
};
|
|
1358
|
-
const
|
|
1358
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1359
1359
|
const contents = map({});
|
|
1360
1360
|
const data = parsedOutput.body;
|
|
1361
1361
|
if (data.Message != null) {
|
|
@@ -1367,7 +1367,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1367
1367
|
});
|
|
1368
1368
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1369
1369
|
};
|
|
1370
|
-
const
|
|
1370
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1371
1371
|
const contents = map({});
|
|
1372
1372
|
const data = parsedOutput.body;
|
|
1373
1373
|
if (data.Message != null) {
|
|
@@ -1379,7 +1379,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1379
1379
|
});
|
|
1380
1380
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1381
1381
|
};
|
|
1382
|
-
const
|
|
1382
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1383
1383
|
const contents = map({});
|
|
1384
1384
|
const data = parsedOutput.body;
|
|
1385
1385
|
if (data.Message != null) {
|
|
@@ -1397,7 +1397,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1397
1397
|
});
|
|
1398
1398
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1399
1399
|
};
|
|
1400
|
-
const
|
|
1400
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1401
1401
|
const contents = map({});
|
|
1402
1402
|
const data = parsedOutput.body;
|
|
1403
1403
|
if (data.Message != null) {
|
|
@@ -1409,7 +1409,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1409
1409
|
});
|
|
1410
1410
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1411
1411
|
};
|
|
1412
|
-
const
|
|
1412
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1413
1413
|
const contents = map({});
|
|
1414
1414
|
const data = parsedOutput.body;
|
|
1415
1415
|
if (data.Message != null) {
|
|
@@ -1421,11 +1421,11 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1421
1421
|
});
|
|
1422
1422
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1423
1423
|
};
|
|
1424
|
-
const
|
|
1424
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1425
1425
|
const contents = map({});
|
|
1426
1426
|
const data = parsedOutput.body;
|
|
1427
1427
|
if (data.FieldList != null) {
|
|
1428
|
-
contents.FieldList =
|
|
1428
|
+
contents.FieldList = de_ValidationExceptionFieldList(data.FieldList, context);
|
|
1429
1429
|
}
|
|
1430
1430
|
if (data.Message != null) {
|
|
1431
1431
|
contents.Message = __expectString(data.Message);
|
|
@@ -1436,31 +1436,31 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1436
1436
|
});
|
|
1437
1437
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1438
1438
|
};
|
|
1439
|
-
const
|
|
1439
|
+
const se_IncludedProperty = (input, context) => {
|
|
1440
1440
|
return {
|
|
1441
1441
|
...(input.Name != null && { Name: input.Name }),
|
|
1442
1442
|
};
|
|
1443
1443
|
};
|
|
1444
|
-
const
|
|
1444
|
+
const se_IncludedPropertyList = (input, context) => {
|
|
1445
1445
|
return input
|
|
1446
1446
|
.filter((e) => e != null)
|
|
1447
1447
|
.map((entry) => {
|
|
1448
|
-
return
|
|
1448
|
+
return se_IncludedProperty(entry, context);
|
|
1449
1449
|
});
|
|
1450
1450
|
};
|
|
1451
|
-
const
|
|
1451
|
+
const se_RegionList = (input, context) => {
|
|
1452
1452
|
return input
|
|
1453
1453
|
.filter((e) => e != null)
|
|
1454
1454
|
.map((entry) => {
|
|
1455
1455
|
return entry;
|
|
1456
1456
|
});
|
|
1457
1457
|
};
|
|
1458
|
-
const
|
|
1458
|
+
const se_SearchFilter = (input, context) => {
|
|
1459
1459
|
return {
|
|
1460
1460
|
...(input.FilterString != null && { FilterString: input.FilterString }),
|
|
1461
1461
|
};
|
|
1462
1462
|
};
|
|
1463
|
-
const
|
|
1463
|
+
const se_TagMap = (input, context) => {
|
|
1464
1464
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1465
1465
|
if (value === null) {
|
|
1466
1466
|
return acc;
|
|
@@ -1469,65 +1469,65 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1469
1469
|
return acc;
|
|
1470
1470
|
}, {});
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const se_ViewArnList = (input, context) => {
|
|
1473
1473
|
return input
|
|
1474
1474
|
.filter((e) => e != null)
|
|
1475
1475
|
.map((entry) => {
|
|
1476
1476
|
return entry;
|
|
1477
1477
|
});
|
|
1478
1478
|
};
|
|
1479
|
-
const
|
|
1479
|
+
const de_BatchGetViewError = (output, context) => {
|
|
1480
1480
|
return {
|
|
1481
1481
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1482
1482
|
ViewArn: __expectString(output.ViewArn),
|
|
1483
1483
|
};
|
|
1484
1484
|
};
|
|
1485
|
-
const
|
|
1485
|
+
const de_BatchGetViewErrors = (output, context) => {
|
|
1486
1486
|
const retVal = (output || [])
|
|
1487
1487
|
.filter((e) => e != null)
|
|
1488
1488
|
.map((entry) => {
|
|
1489
1489
|
if (entry === null) {
|
|
1490
1490
|
return null;
|
|
1491
1491
|
}
|
|
1492
|
-
return
|
|
1492
|
+
return de_BatchGetViewError(entry, context);
|
|
1493
1493
|
});
|
|
1494
1494
|
return retVal;
|
|
1495
1495
|
};
|
|
1496
|
-
const
|
|
1496
|
+
const de_IncludedProperty = (output, context) => {
|
|
1497
1497
|
return {
|
|
1498
1498
|
Name: __expectString(output.Name),
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
|
-
const
|
|
1501
|
+
const de_IncludedPropertyList = (output, context) => {
|
|
1502
1502
|
const retVal = (output || [])
|
|
1503
1503
|
.filter((e) => e != null)
|
|
1504
1504
|
.map((entry) => {
|
|
1505
1505
|
if (entry === null) {
|
|
1506
1506
|
return null;
|
|
1507
1507
|
}
|
|
1508
|
-
return
|
|
1508
|
+
return de_IncludedProperty(entry, context);
|
|
1509
1509
|
});
|
|
1510
1510
|
return retVal;
|
|
1511
1511
|
};
|
|
1512
|
-
const
|
|
1512
|
+
const de_Index = (output, context) => {
|
|
1513
1513
|
return {
|
|
1514
1514
|
Arn: __expectString(output.Arn),
|
|
1515
1515
|
Region: __expectString(output.Region),
|
|
1516
1516
|
Type: __expectString(output.Type),
|
|
1517
1517
|
};
|
|
1518
1518
|
};
|
|
1519
|
-
const
|
|
1519
|
+
const de_IndexList = (output, context) => {
|
|
1520
1520
|
const retVal = (output || [])
|
|
1521
1521
|
.filter((e) => e != null)
|
|
1522
1522
|
.map((entry) => {
|
|
1523
1523
|
if (entry === null) {
|
|
1524
1524
|
return null;
|
|
1525
1525
|
}
|
|
1526
|
-
return
|
|
1526
|
+
return de_Index(entry, context);
|
|
1527
1527
|
});
|
|
1528
1528
|
return retVal;
|
|
1529
1529
|
};
|
|
1530
|
-
const
|
|
1530
|
+
const de_RegionList = (output, context) => {
|
|
1531
1531
|
const retVal = (output || [])
|
|
1532
1532
|
.filter((e) => e != null)
|
|
1533
1533
|
.map((entry) => {
|
|
@@ -1538,79 +1538,79 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
1538
1538
|
});
|
|
1539
1539
|
return retVal;
|
|
1540
1540
|
};
|
|
1541
|
-
const
|
|
1541
|
+
const de_Resource = (output, context) => {
|
|
1542
1542
|
return {
|
|
1543
1543
|
Arn: __expectString(output.Arn),
|
|
1544
1544
|
LastReportedAt: output.LastReportedAt != null
|
|
1545
1545
|
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.LastReportedAt))
|
|
1546
1546
|
: undefined,
|
|
1547
1547
|
OwningAccountId: __expectString(output.OwningAccountId),
|
|
1548
|
-
Properties: output.Properties != null ?
|
|
1548
|
+
Properties: output.Properties != null ? de_ResourcePropertyList(output.Properties, context) : undefined,
|
|
1549
1549
|
Region: __expectString(output.Region),
|
|
1550
1550
|
ResourceType: __expectString(output.ResourceType),
|
|
1551
1551
|
Service: __expectString(output.Service),
|
|
1552
1552
|
};
|
|
1553
1553
|
};
|
|
1554
|
-
const
|
|
1554
|
+
const de_ResourceCount = (output, context) => {
|
|
1555
1555
|
return {
|
|
1556
1556
|
Complete: __expectBoolean(output.Complete),
|
|
1557
1557
|
TotalResources: __expectLong(output.TotalResources),
|
|
1558
1558
|
};
|
|
1559
1559
|
};
|
|
1560
|
-
const
|
|
1560
|
+
const de_ResourceList = (output, context) => {
|
|
1561
1561
|
const retVal = (output || [])
|
|
1562
1562
|
.filter((e) => e != null)
|
|
1563
1563
|
.map((entry) => {
|
|
1564
1564
|
if (entry === null) {
|
|
1565
1565
|
return null;
|
|
1566
1566
|
}
|
|
1567
|
-
return
|
|
1567
|
+
return de_Resource(entry, context);
|
|
1568
1568
|
});
|
|
1569
1569
|
return retVal;
|
|
1570
1570
|
};
|
|
1571
|
-
const
|
|
1571
|
+
const de_ResourceProperty = (output, context) => {
|
|
1572
1572
|
return {
|
|
1573
|
-
Data: output.Data != null ?
|
|
1573
|
+
Data: output.Data != null ? de_Document(output.Data, context) : undefined,
|
|
1574
1574
|
LastReportedAt: output.LastReportedAt != null
|
|
1575
1575
|
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.LastReportedAt))
|
|
1576
1576
|
: undefined,
|
|
1577
1577
|
Name: __expectString(output.Name),
|
|
1578
1578
|
};
|
|
1579
1579
|
};
|
|
1580
|
-
const
|
|
1580
|
+
const de_ResourcePropertyList = (output, context) => {
|
|
1581
1581
|
const retVal = (output || [])
|
|
1582
1582
|
.filter((e) => e != null)
|
|
1583
1583
|
.map((entry) => {
|
|
1584
1584
|
if (entry === null) {
|
|
1585
1585
|
return null;
|
|
1586
1586
|
}
|
|
1587
|
-
return
|
|
1587
|
+
return de_ResourceProperty(entry, context);
|
|
1588
1588
|
});
|
|
1589
1589
|
return retVal;
|
|
1590
1590
|
};
|
|
1591
|
-
const
|
|
1591
|
+
const de_ResourceTypeList = (output, context) => {
|
|
1592
1592
|
const retVal = (output || [])
|
|
1593
1593
|
.filter((e) => e != null)
|
|
1594
1594
|
.map((entry) => {
|
|
1595
1595
|
if (entry === null) {
|
|
1596
1596
|
return null;
|
|
1597
1597
|
}
|
|
1598
|
-
return
|
|
1598
|
+
return de_SupportedResourceType(entry, context);
|
|
1599
1599
|
});
|
|
1600
1600
|
return retVal;
|
|
1601
1601
|
};
|
|
1602
|
-
const
|
|
1602
|
+
const de_SearchFilter = (output, context) => {
|
|
1603
1603
|
return {
|
|
1604
1604
|
FilterString: __expectString(output.FilterString),
|
|
1605
1605
|
};
|
|
1606
1606
|
};
|
|
1607
|
-
const
|
|
1607
|
+
const de_SupportedResourceType = (output, context) => {
|
|
1608
1608
|
return {
|
|
1609
1609
|
ResourceType: __expectString(output.ResourceType),
|
|
1610
1610
|
Service: __expectString(output.Service),
|
|
1611
1611
|
};
|
|
1612
1612
|
};
|
|
1613
|
-
const
|
|
1613
|
+
const de_TagMap = (output, context) => {
|
|
1614
1614
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1615
1615
|
if (value === null) {
|
|
1616
1616
|
return acc;
|
|
@@ -1619,29 +1619,27 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1619
1619
|
return acc;
|
|
1620
1620
|
}, {});
|
|
1621
1621
|
};
|
|
1622
|
-
const
|
|
1622
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
1623
1623
|
return {
|
|
1624
1624
|
Name: __expectString(output.Name),
|
|
1625
1625
|
ValidationIssue: __expectString(output.ValidationIssue),
|
|
1626
1626
|
};
|
|
1627
1627
|
};
|
|
1628
|
-
const
|
|
1628
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1629
1629
|
const retVal = (output || [])
|
|
1630
1630
|
.filter((e) => e != null)
|
|
1631
1631
|
.map((entry) => {
|
|
1632
1632
|
if (entry === null) {
|
|
1633
1633
|
return null;
|
|
1634
1634
|
}
|
|
1635
|
-
return
|
|
1635
|
+
return de_ValidationExceptionField(entry, context);
|
|
1636
1636
|
});
|
|
1637
1637
|
return retVal;
|
|
1638
1638
|
};
|
|
1639
|
-
const
|
|
1639
|
+
const de_View = (output, context) => {
|
|
1640
1640
|
return {
|
|
1641
|
-
Filters: output.Filters != null ?
|
|
1642
|
-
IncludedProperties: output.IncludedProperties != null
|
|
1643
|
-
? deserializeAws_restJson1IncludedPropertyList(output.IncludedProperties, context)
|
|
1644
|
-
: undefined,
|
|
1641
|
+
Filters: output.Filters != null ? de_SearchFilter(output.Filters, context) : undefined,
|
|
1642
|
+
IncludedProperties: output.IncludedProperties != null ? de_IncludedPropertyList(output.IncludedProperties, context) : undefined,
|
|
1645
1643
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
1646
1644
|
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.LastUpdatedAt))
|
|
1647
1645
|
: undefined,
|
|
@@ -1650,7 +1648,7 @@ const deserializeAws_restJson1View = (output, context) => {
|
|
|
1650
1648
|
ViewArn: __expectString(output.ViewArn),
|
|
1651
1649
|
};
|
|
1652
1650
|
};
|
|
1653
|
-
const
|
|
1651
|
+
const de_ViewArnList = (output, context) => {
|
|
1654
1652
|
const retVal = (output || [])
|
|
1655
1653
|
.filter((e) => e != null)
|
|
1656
1654
|
.map((entry) => {
|
|
@@ -1661,18 +1659,18 @@ const deserializeAws_restJson1ViewArnList = (output, context) => {
|
|
|
1661
1659
|
});
|
|
1662
1660
|
return retVal;
|
|
1663
1661
|
};
|
|
1664
|
-
const
|
|
1662
|
+
const de_ViewList = (output, context) => {
|
|
1665
1663
|
const retVal = (output || [])
|
|
1666
1664
|
.filter((e) => e != null)
|
|
1667
1665
|
.map((entry) => {
|
|
1668
1666
|
if (entry === null) {
|
|
1669
1667
|
return null;
|
|
1670
1668
|
}
|
|
1671
|
-
return
|
|
1669
|
+
return de_View(entry, context);
|
|
1672
1670
|
});
|
|
1673
1671
|
return retVal;
|
|
1674
1672
|
};
|
|
1675
|
-
const
|
|
1673
|
+
const de_Document = (output, context) => {
|
|
1676
1674
|
return output;
|
|
1677
1675
|
};
|
|
1678
1676
|
const deserializeMetadata = (output) => ({
|