@aws-sdk/client-amp 3.303.0 → 3.309.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/CreateAlertManagerDefinitionCommand.js +2 -2
- package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +2 -2
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +2 -2
- package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +2 -2
- package/dist-cjs/commands/DescribeWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWorkspacesCommand.js +2 -2
- package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +2 -2
- package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +300 -300
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +3 -3
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +3 -3
- package/dist-es/commands/CreateWorkspaceCommand.js +3 -3
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +3 -3
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +3 -3
- package/dist-es/commands/DeleteWorkspaceCommand.js +3 -3
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +3 -3
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +3 -3
- package/dist-es/commands/DescribeWorkspaceCommand.js +3 -3
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWorkspacesCommand.js +3 -3
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +3 -3
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +257 -257
- package/dist-types/protocols/Aws_restJson1.d.ts +168 -42
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +42 -42
- package/package.json +30 -30
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectNonNull a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AmpServiceException as __BaseException } from "../models/AmpServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateAlertManagerDefinitionCommand = 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",
|
|
@@ -26,7 +26,7 @@ export const serializeAws_restJson1CreateAlertManagerDefinitionCommand = async (
|
|
|
26
26
|
body,
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
export const
|
|
29
|
+
export const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
30
30
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
31
|
const headers = {
|
|
32
32
|
"content-type": "application/json",
|
|
@@ -48,7 +48,7 @@ export const serializeAws_restJson1CreateLoggingConfigurationCommand = async (in
|
|
|
48
48
|
body,
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const se_CreateRuleGroupsNamespaceCommand = async (input, context) => {
|
|
52
52
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
53
|
const headers = {
|
|
54
54
|
"content-type": "application/json",
|
|
@@ -61,7 +61,7 @@ export const serializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (inp
|
|
|
61
61
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
62
62
|
...(input.data != null && { data: context.base64Encoder(input.data) }),
|
|
63
63
|
...(input.name != null && { name: input.name }),
|
|
64
|
-
...(input.tags != null && { tags:
|
|
64
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
65
65
|
});
|
|
66
66
|
return new __HttpRequest({
|
|
67
67
|
protocol,
|
|
@@ -73,7 +73,7 @@ export const serializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (inp
|
|
|
73
73
|
body,
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
export const
|
|
76
|
+
export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
77
77
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/json",
|
|
@@ -83,7 +83,7 @@ export const serializeAws_restJson1CreateWorkspaceCommand = async (input, contex
|
|
|
83
83
|
body = JSON.stringify({
|
|
84
84
|
...(input.alias != null && { alias: input.alias }),
|
|
85
85
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
86
|
-
...(input.tags != null && { tags:
|
|
86
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
87
87
|
});
|
|
88
88
|
return new __HttpRequest({
|
|
89
89
|
protocol,
|
|
@@ -95,7 +95,7 @@ export const serializeAws_restJson1CreateWorkspaceCommand = async (input, contex
|
|
|
95
95
|
body,
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
-
export const
|
|
98
|
+
export const se_DeleteAlertManagerDefinitionCommand = async (input, context) => {
|
|
99
99
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
100
100
|
const headers = {};
|
|
101
101
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -116,7 +116,7 @@ export const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (
|
|
|
116
116
|
body,
|
|
117
117
|
});
|
|
118
118
|
};
|
|
119
|
-
export const
|
|
119
|
+
export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
120
120
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
121
|
const headers = {};
|
|
122
122
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
|
|
@@ -136,7 +136,7 @@ export const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (in
|
|
|
136
136
|
body,
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
export const
|
|
139
|
+
export const se_DeleteRuleGroupsNamespaceCommand = async (input, context) => {
|
|
140
140
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
141
141
|
const headers = {};
|
|
142
142
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -158,7 +158,7 @@ export const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (inp
|
|
|
158
158
|
body,
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
-
export const
|
|
161
|
+
export const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
162
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
163
|
const headers = {};
|
|
164
164
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
@@ -178,7 +178,7 @@ export const serializeAws_restJson1DeleteWorkspaceCommand = async (input, contex
|
|
|
178
178
|
body,
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
|
-
export const
|
|
181
|
+
export const se_DescribeAlertManagerDefinitionCommand = async (input, context) => {
|
|
182
182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
183
183
|
const headers = {};
|
|
184
184
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -195,7 +195,7 @@ export const serializeAws_restJson1DescribeAlertManagerDefinitionCommand = async
|
|
|
195
195
|
body,
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
export const
|
|
198
|
+
export const se_DescribeLoggingConfigurationCommand = async (input, context) => {
|
|
199
199
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
200
200
|
const headers = {};
|
|
201
201
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
|
|
@@ -211,7 +211,7 @@ export const serializeAws_restJson1DescribeLoggingConfigurationCommand = async (
|
|
|
211
211
|
body,
|
|
212
212
|
});
|
|
213
213
|
};
|
|
214
|
-
export const
|
|
214
|
+
export const se_DescribeRuleGroupsNamespaceCommand = async (input, context) => {
|
|
215
215
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
216
|
const headers = {};
|
|
217
217
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -229,7 +229,7 @@ export const serializeAws_restJson1DescribeRuleGroupsNamespaceCommand = async (i
|
|
|
229
229
|
body,
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
|
-
export const
|
|
232
|
+
export const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
233
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
234
|
const headers = {};
|
|
235
235
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
@@ -245,7 +245,7 @@ export const serializeAws_restJson1DescribeWorkspaceCommand = async (input, cont
|
|
|
245
245
|
body,
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
|
-
export const
|
|
248
|
+
export const se_ListRuleGroupsNamespacesCommand = async (input, context) => {
|
|
249
249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
250
250
|
const headers = {};
|
|
251
251
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -268,7 +268,7 @@ export const serializeAws_restJson1ListRuleGroupsNamespacesCommand = async (inpu
|
|
|
268
268
|
body,
|
|
269
269
|
});
|
|
270
270
|
};
|
|
271
|
-
export const
|
|
271
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
272
272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
273
|
const headers = {};
|
|
274
274
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -284,7 +284,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
284
284
|
body,
|
|
285
285
|
});
|
|
286
286
|
};
|
|
287
|
-
export const
|
|
287
|
+
export const se_ListWorkspacesCommand = async (input, context) => {
|
|
288
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
289
|
const headers = {};
|
|
290
290
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
|
|
@@ -305,7 +305,7 @@ export const serializeAws_restJson1ListWorkspacesCommand = async (input, context
|
|
|
305
305
|
body,
|
|
306
306
|
});
|
|
307
307
|
};
|
|
308
|
-
export const
|
|
308
|
+
export const se_PutAlertManagerDefinitionCommand = async (input, context) => {
|
|
309
309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
310
310
|
const headers = {
|
|
311
311
|
"content-type": "application/json",
|
|
@@ -328,7 +328,7 @@ export const serializeAws_restJson1PutAlertManagerDefinitionCommand = async (inp
|
|
|
328
328
|
body,
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
|
-
export const
|
|
331
|
+
export const se_PutRuleGroupsNamespaceCommand = async (input, context) => {
|
|
332
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
333
|
const headers = {
|
|
334
334
|
"content-type": "application/json",
|
|
@@ -352,7 +352,7 @@ export const serializeAws_restJson1PutRuleGroupsNamespaceCommand = async (input,
|
|
|
352
352
|
body,
|
|
353
353
|
});
|
|
354
354
|
};
|
|
355
|
-
export const
|
|
355
|
+
export const se_TagResourceCommand = 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",
|
|
@@ -361,7 +361,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
361
361
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
362
362
|
let body;
|
|
363
363
|
body = JSON.stringify({
|
|
364
|
-
...(input.tags != null && { tags:
|
|
364
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
365
365
|
});
|
|
366
366
|
return new __HttpRequest({
|
|
367
367
|
protocol,
|
|
@@ -373,7 +373,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
373
373
|
body,
|
|
374
374
|
});
|
|
375
375
|
};
|
|
376
|
-
export const
|
|
376
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
377
377
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
378
|
const headers = {};
|
|
379
379
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -396,7 +396,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
396
396
|
body,
|
|
397
397
|
});
|
|
398
398
|
};
|
|
399
|
-
export const
|
|
399
|
+
export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
400
400
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
401
401
|
const headers = {
|
|
402
402
|
"content-type": "application/json",
|
|
@@ -418,7 +418,7 @@ export const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (in
|
|
|
418
418
|
body,
|
|
419
419
|
});
|
|
420
420
|
};
|
|
421
|
-
export const
|
|
421
|
+
export const se_UpdateWorkspaceAliasCommand = async (input, context) => {
|
|
422
422
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
423
423
|
const headers = {
|
|
424
424
|
"content-type": "application/json",
|
|
@@ -440,20 +440,20 @@ export const serializeAws_restJson1UpdateWorkspaceAliasCommand = async (input, c
|
|
|
440
440
|
body,
|
|
441
441
|
});
|
|
442
442
|
};
|
|
443
|
-
export const
|
|
443
|
+
export const de_CreateAlertManagerDefinitionCommand = async (output, context) => {
|
|
444
444
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
445
|
-
return
|
|
445
|
+
return de_CreateAlertManagerDefinitionCommandError(output, context);
|
|
446
446
|
}
|
|
447
447
|
const contents = map({
|
|
448
448
|
$metadata: deserializeMetadata(output),
|
|
449
449
|
});
|
|
450
450
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
451
451
|
if (data.status != null) {
|
|
452
|
-
contents.status =
|
|
452
|
+
contents.status = de_AlertManagerDefinitionStatus(data.status, context);
|
|
453
453
|
}
|
|
454
454
|
return contents;
|
|
455
455
|
};
|
|
456
|
-
const
|
|
456
|
+
const de_CreateAlertManagerDefinitionCommandError = async (output, context) => {
|
|
457
457
|
const parsedOutput = {
|
|
458
458
|
...output,
|
|
459
459
|
body: await parseErrorBody(output.body, context),
|
|
@@ -462,25 +462,25 @@ const deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = async (
|
|
|
462
462
|
switch (errorCode) {
|
|
463
463
|
case "AccessDeniedException":
|
|
464
464
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
465
|
-
throw await
|
|
465
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
466
466
|
case "ConflictException":
|
|
467
467
|
case "com.amazonaws.amp#ConflictException":
|
|
468
|
-
throw await
|
|
468
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
469
469
|
case "InternalServerException":
|
|
470
470
|
case "com.amazonaws.amp#InternalServerException":
|
|
471
|
-
throw await
|
|
471
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
472
472
|
case "ResourceNotFoundException":
|
|
473
473
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
474
|
-
throw await
|
|
474
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
475
475
|
case "ServiceQuotaExceededException":
|
|
476
476
|
case "com.amazonaws.amp#ServiceQuotaExceededException":
|
|
477
|
-
throw await
|
|
477
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
478
478
|
case "ThrottlingException":
|
|
479
479
|
case "com.amazonaws.amp#ThrottlingException":
|
|
480
|
-
throw await
|
|
480
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
481
481
|
case "ValidationException":
|
|
482
482
|
case "com.amazonaws.amp#ValidationException":
|
|
483
|
-
throw await
|
|
483
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
484
484
|
default:
|
|
485
485
|
const parsedBody = parsedOutput.body;
|
|
486
486
|
throwDefaultError({
|
|
@@ -491,20 +491,20 @@ const deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = async (
|
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
|
-
export const
|
|
494
|
+
export const de_CreateLoggingConfigurationCommand = async (output, context) => {
|
|
495
495
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
496
|
-
return
|
|
496
|
+
return de_CreateLoggingConfigurationCommandError(output, context);
|
|
497
497
|
}
|
|
498
498
|
const contents = map({
|
|
499
499
|
$metadata: deserializeMetadata(output),
|
|
500
500
|
});
|
|
501
501
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
502
502
|
if (data.status != null) {
|
|
503
|
-
contents.status =
|
|
503
|
+
contents.status = de_LoggingConfigurationStatus(data.status, context);
|
|
504
504
|
}
|
|
505
505
|
return contents;
|
|
506
506
|
};
|
|
507
|
-
const
|
|
507
|
+
const de_CreateLoggingConfigurationCommandError = async (output, context) => {
|
|
508
508
|
const parsedOutput = {
|
|
509
509
|
...output,
|
|
510
510
|
body: await parseErrorBody(output.body, context),
|
|
@@ -513,16 +513,16 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
|
|
|
513
513
|
switch (errorCode) {
|
|
514
514
|
case "AccessDeniedException":
|
|
515
515
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
516
|
-
throw await
|
|
516
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
517
517
|
case "InternalServerException":
|
|
518
518
|
case "com.amazonaws.amp#InternalServerException":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
520
520
|
case "ResourceNotFoundException":
|
|
521
521
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
522
|
-
throw await
|
|
522
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
523
523
|
case "ValidationException":
|
|
524
524
|
case "com.amazonaws.amp#ValidationException":
|
|
525
|
-
throw await
|
|
525
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
526
526
|
default:
|
|
527
527
|
const parsedBody = parsedOutput.body;
|
|
528
528
|
throwDefaultError({
|
|
@@ -533,9 +533,9 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
|
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
|
-
export const
|
|
536
|
+
export const de_CreateRuleGroupsNamespaceCommand = async (output, context) => {
|
|
537
537
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
538
|
-
return
|
|
538
|
+
return de_CreateRuleGroupsNamespaceCommandError(output, context);
|
|
539
539
|
}
|
|
540
540
|
const contents = map({
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
@@ -548,14 +548,14 @@ export const deserializeAws_restJson1CreateRuleGroupsNamespaceCommand = async (o
|
|
|
548
548
|
contents.name = __expectString(data.name);
|
|
549
549
|
}
|
|
550
550
|
if (data.status != null) {
|
|
551
|
-
contents.status =
|
|
551
|
+
contents.status = de_RuleGroupsNamespaceStatus(data.status, context);
|
|
552
552
|
}
|
|
553
553
|
if (data.tags != null) {
|
|
554
|
-
contents.tags =
|
|
554
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
555
555
|
}
|
|
556
556
|
return contents;
|
|
557
557
|
};
|
|
558
|
-
const
|
|
558
|
+
const de_CreateRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
559
559
|
const parsedOutput = {
|
|
560
560
|
...output,
|
|
561
561
|
body: await parseErrorBody(output.body, context),
|
|
@@ -564,25 +564,25 @@ const deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError = async (out
|
|
|
564
564
|
switch (errorCode) {
|
|
565
565
|
case "AccessDeniedException":
|
|
566
566
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
567
|
-
throw await
|
|
567
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
568
568
|
case "ConflictException":
|
|
569
569
|
case "com.amazonaws.amp#ConflictException":
|
|
570
|
-
throw await
|
|
570
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
571
571
|
case "InternalServerException":
|
|
572
572
|
case "com.amazonaws.amp#InternalServerException":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
574
574
|
case "ResourceNotFoundException":
|
|
575
575
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
576
|
-
throw await
|
|
576
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
577
577
|
case "ServiceQuotaExceededException":
|
|
578
578
|
case "com.amazonaws.amp#ServiceQuotaExceededException":
|
|
579
|
-
throw await
|
|
579
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
580
580
|
case "ThrottlingException":
|
|
581
581
|
case "com.amazonaws.amp#ThrottlingException":
|
|
582
|
-
throw await
|
|
582
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
583
583
|
case "ValidationException":
|
|
584
584
|
case "com.amazonaws.amp#ValidationException":
|
|
585
|
-
throw await
|
|
585
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
586
586
|
default:
|
|
587
587
|
const parsedBody = parsedOutput.body;
|
|
588
588
|
throwDefaultError({
|
|
@@ -593,9 +593,9 @@ const deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError = async (out
|
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
|
-
export const
|
|
596
|
+
export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
597
597
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
598
|
-
return
|
|
598
|
+
return de_CreateWorkspaceCommandError(output, context);
|
|
599
599
|
}
|
|
600
600
|
const contents = map({
|
|
601
601
|
$metadata: deserializeMetadata(output),
|
|
@@ -605,17 +605,17 @@ export const deserializeAws_restJson1CreateWorkspaceCommand = async (output, con
|
|
|
605
605
|
contents.arn = __expectString(data.arn);
|
|
606
606
|
}
|
|
607
607
|
if (data.status != null) {
|
|
608
|
-
contents.status =
|
|
608
|
+
contents.status = de_WorkspaceStatus(data.status, context);
|
|
609
609
|
}
|
|
610
610
|
if (data.tags != null) {
|
|
611
|
-
contents.tags =
|
|
611
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
612
612
|
}
|
|
613
613
|
if (data.workspaceId != null) {
|
|
614
614
|
contents.workspaceId = __expectString(data.workspaceId);
|
|
615
615
|
}
|
|
616
616
|
return contents;
|
|
617
617
|
};
|
|
618
|
-
const
|
|
618
|
+
const de_CreateWorkspaceCommandError = async (output, context) => {
|
|
619
619
|
const parsedOutput = {
|
|
620
620
|
...output,
|
|
621
621
|
body: await parseErrorBody(output.body, context),
|
|
@@ -624,22 +624,22 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
624
624
|
switch (errorCode) {
|
|
625
625
|
case "AccessDeniedException":
|
|
626
626
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
627
|
-
throw await
|
|
627
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
628
628
|
case "ConflictException":
|
|
629
629
|
case "com.amazonaws.amp#ConflictException":
|
|
630
|
-
throw await
|
|
630
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
631
631
|
case "InternalServerException":
|
|
632
632
|
case "com.amazonaws.amp#InternalServerException":
|
|
633
|
-
throw await
|
|
633
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
634
634
|
case "ServiceQuotaExceededException":
|
|
635
635
|
case "com.amazonaws.amp#ServiceQuotaExceededException":
|
|
636
|
-
throw await
|
|
636
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
637
637
|
case "ThrottlingException":
|
|
638
638
|
case "com.amazonaws.amp#ThrottlingException":
|
|
639
|
-
throw await
|
|
639
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
640
640
|
case "ValidationException":
|
|
641
641
|
case "com.amazonaws.amp#ValidationException":
|
|
642
|
-
throw await
|
|
642
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
643
643
|
default:
|
|
644
644
|
const parsedBody = parsedOutput.body;
|
|
645
645
|
throwDefaultError({
|
|
@@ -650,9 +650,9 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
|
-
export const
|
|
653
|
+
export const de_DeleteAlertManagerDefinitionCommand = async (output, context) => {
|
|
654
654
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
655
|
-
return
|
|
655
|
+
return de_DeleteAlertManagerDefinitionCommandError(output, context);
|
|
656
656
|
}
|
|
657
657
|
const contents = map({
|
|
658
658
|
$metadata: deserializeMetadata(output),
|
|
@@ -660,7 +660,7 @@ export const deserializeAws_restJson1DeleteAlertManagerDefinitionCommand = async
|
|
|
660
660
|
await collectBody(output.body, context);
|
|
661
661
|
return contents;
|
|
662
662
|
};
|
|
663
|
-
const
|
|
663
|
+
const de_DeleteAlertManagerDefinitionCommandError = async (output, context) => {
|
|
664
664
|
const parsedOutput = {
|
|
665
665
|
...output,
|
|
666
666
|
body: await parseErrorBody(output.body, context),
|
|
@@ -669,22 +669,22 @@ const deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = async (
|
|
|
669
669
|
switch (errorCode) {
|
|
670
670
|
case "AccessDeniedException":
|
|
671
671
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
672
|
-
throw await
|
|
672
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
673
673
|
case "ConflictException":
|
|
674
674
|
case "com.amazonaws.amp#ConflictException":
|
|
675
|
-
throw await
|
|
675
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
676
676
|
case "InternalServerException":
|
|
677
677
|
case "com.amazonaws.amp#InternalServerException":
|
|
678
|
-
throw await
|
|
678
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
679
679
|
case "ResourceNotFoundException":
|
|
680
680
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
682
682
|
case "ThrottlingException":
|
|
683
683
|
case "com.amazonaws.amp#ThrottlingException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
685
685
|
case "ValidationException":
|
|
686
686
|
case "com.amazonaws.amp#ValidationException":
|
|
687
|
-
throw await
|
|
687
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
688
688
|
default:
|
|
689
689
|
const parsedBody = parsedOutput.body;
|
|
690
690
|
throwDefaultError({
|
|
@@ -695,9 +695,9 @@ const deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = async (
|
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
|
-
export const
|
|
698
|
+
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
699
699
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
700
|
-
return
|
|
700
|
+
return de_DeleteLoggingConfigurationCommandError(output, context);
|
|
701
701
|
}
|
|
702
702
|
const contents = map({
|
|
703
703
|
$metadata: deserializeMetadata(output),
|
|
@@ -705,7 +705,7 @@ export const deserializeAws_restJson1DeleteLoggingConfigurationCommand = async (
|
|
|
705
705
|
await collectBody(output.body, context);
|
|
706
706
|
return contents;
|
|
707
707
|
};
|
|
708
|
-
const
|
|
708
|
+
const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
|
|
709
709
|
const parsedOutput = {
|
|
710
710
|
...output,
|
|
711
711
|
body: await parseErrorBody(output.body, context),
|
|
@@ -714,19 +714,19 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
|
|
|
714
714
|
switch (errorCode) {
|
|
715
715
|
case "AccessDeniedException":
|
|
716
716
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
717
|
-
throw await
|
|
717
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
718
718
|
case "ConflictException":
|
|
719
719
|
case "com.amazonaws.amp#ConflictException":
|
|
720
|
-
throw await
|
|
720
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
721
721
|
case "InternalServerException":
|
|
722
722
|
case "com.amazonaws.amp#InternalServerException":
|
|
723
|
-
throw await
|
|
723
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
724
724
|
case "ResourceNotFoundException":
|
|
725
725
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
726
|
-
throw await
|
|
726
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
727
727
|
case "ValidationException":
|
|
728
728
|
case "com.amazonaws.amp#ValidationException":
|
|
729
|
-
throw await
|
|
729
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
730
|
default:
|
|
731
731
|
const parsedBody = parsedOutput.body;
|
|
732
732
|
throwDefaultError({
|
|
@@ -737,9 +737,9 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
|
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
|
-
export const
|
|
740
|
+
export const de_DeleteRuleGroupsNamespaceCommand = async (output, context) => {
|
|
741
741
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
742
|
-
return
|
|
742
|
+
return de_DeleteRuleGroupsNamespaceCommandError(output, context);
|
|
743
743
|
}
|
|
744
744
|
const contents = map({
|
|
745
745
|
$metadata: deserializeMetadata(output),
|
|
@@ -747,7 +747,7 @@ export const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (o
|
|
|
747
747
|
await collectBody(output.body, context);
|
|
748
748
|
return contents;
|
|
749
749
|
};
|
|
750
|
-
const
|
|
750
|
+
const de_DeleteRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
751
751
|
const parsedOutput = {
|
|
752
752
|
...output,
|
|
753
753
|
body: await parseErrorBody(output.body, context),
|
|
@@ -756,22 +756,22 @@ const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError = async (out
|
|
|
756
756
|
switch (errorCode) {
|
|
757
757
|
case "AccessDeniedException":
|
|
758
758
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
759
|
-
throw await
|
|
759
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
760
760
|
case "ConflictException":
|
|
761
761
|
case "com.amazonaws.amp#ConflictException":
|
|
762
|
-
throw await
|
|
762
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
763
763
|
case "InternalServerException":
|
|
764
764
|
case "com.amazonaws.amp#InternalServerException":
|
|
765
|
-
throw await
|
|
765
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
766
|
case "ResourceNotFoundException":
|
|
767
767
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
768
|
-
throw await
|
|
768
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
769
769
|
case "ThrottlingException":
|
|
770
770
|
case "com.amazonaws.amp#ThrottlingException":
|
|
771
|
-
throw await
|
|
771
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
772
772
|
case "ValidationException":
|
|
773
773
|
case "com.amazonaws.amp#ValidationException":
|
|
774
|
-
throw await
|
|
774
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
775
775
|
default:
|
|
776
776
|
const parsedBody = parsedOutput.body;
|
|
777
777
|
throwDefaultError({
|
|
@@ -782,9 +782,9 @@ const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError = async (out
|
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
|
-
export const
|
|
785
|
+
export const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
786
786
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
787
|
-
return
|
|
787
|
+
return de_DeleteWorkspaceCommandError(output, context);
|
|
788
788
|
}
|
|
789
789
|
const contents = map({
|
|
790
790
|
$metadata: deserializeMetadata(output),
|
|
@@ -792,7 +792,7 @@ export const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, con
|
|
|
792
792
|
await collectBody(output.body, context);
|
|
793
793
|
return contents;
|
|
794
794
|
};
|
|
795
|
-
const
|
|
795
|
+
const de_DeleteWorkspaceCommandError = async (output, context) => {
|
|
796
796
|
const parsedOutput = {
|
|
797
797
|
...output,
|
|
798
798
|
body: await parseErrorBody(output.body, context),
|
|
@@ -801,22 +801,22 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
801
801
|
switch (errorCode) {
|
|
802
802
|
case "AccessDeniedException":
|
|
803
803
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
805
805
|
case "ConflictException":
|
|
806
806
|
case "com.amazonaws.amp#ConflictException":
|
|
807
|
-
throw await
|
|
807
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
808
808
|
case "InternalServerException":
|
|
809
809
|
case "com.amazonaws.amp#InternalServerException":
|
|
810
|
-
throw await
|
|
810
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
811
811
|
case "ResourceNotFoundException":
|
|
812
812
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
813
|
-
throw await
|
|
813
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
814
814
|
case "ThrottlingException":
|
|
815
815
|
case "com.amazonaws.amp#ThrottlingException":
|
|
816
|
-
throw await
|
|
816
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
817
817
|
case "ValidationException":
|
|
818
818
|
case "com.amazonaws.amp#ValidationException":
|
|
819
|
-
throw await
|
|
819
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
820
820
|
default:
|
|
821
821
|
const parsedBody = parsedOutput.body;
|
|
822
822
|
throwDefaultError({
|
|
@@ -827,20 +827,20 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
|
-
export const
|
|
830
|
+
export const de_DescribeAlertManagerDefinitionCommand = async (output, context) => {
|
|
831
831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return
|
|
832
|
+
return de_DescribeAlertManagerDefinitionCommandError(output, context);
|
|
833
833
|
}
|
|
834
834
|
const contents = map({
|
|
835
835
|
$metadata: deserializeMetadata(output),
|
|
836
836
|
});
|
|
837
837
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
838
838
|
if (data.alertManagerDefinition != null) {
|
|
839
|
-
contents.alertManagerDefinition =
|
|
839
|
+
contents.alertManagerDefinition = de_AlertManagerDefinitionDescription(data.alertManagerDefinition, context);
|
|
840
840
|
}
|
|
841
841
|
return contents;
|
|
842
842
|
};
|
|
843
|
-
const
|
|
843
|
+
const de_DescribeAlertManagerDefinitionCommandError = async (output, context) => {
|
|
844
844
|
const parsedOutput = {
|
|
845
845
|
...output,
|
|
846
846
|
body: await parseErrorBody(output.body, context),
|
|
@@ -849,19 +849,19 @@ const deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = async
|
|
|
849
849
|
switch (errorCode) {
|
|
850
850
|
case "AccessDeniedException":
|
|
851
851
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
853
853
|
case "InternalServerException":
|
|
854
854
|
case "com.amazonaws.amp#InternalServerException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
856
856
|
case "ResourceNotFoundException":
|
|
857
857
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
858
|
-
throw await
|
|
858
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
859
859
|
case "ThrottlingException":
|
|
860
860
|
case "com.amazonaws.amp#ThrottlingException":
|
|
861
|
-
throw await
|
|
861
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
862
862
|
case "ValidationException":
|
|
863
863
|
case "com.amazonaws.amp#ValidationException":
|
|
864
|
-
throw await
|
|
864
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
865
865
|
default:
|
|
866
866
|
const parsedBody = parsedOutput.body;
|
|
867
867
|
throwDefaultError({
|
|
@@ -872,20 +872,20 @@ const deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = async
|
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
874
|
};
|
|
875
|
-
export const
|
|
875
|
+
export const de_DescribeLoggingConfigurationCommand = async (output, context) => {
|
|
876
876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
-
return
|
|
877
|
+
return de_DescribeLoggingConfigurationCommandError(output, context);
|
|
878
878
|
}
|
|
879
879
|
const contents = map({
|
|
880
880
|
$metadata: deserializeMetadata(output),
|
|
881
881
|
});
|
|
882
882
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
883
883
|
if (data.loggingConfiguration != null) {
|
|
884
|
-
contents.loggingConfiguration =
|
|
884
|
+
contents.loggingConfiguration = de_LoggingConfigurationMetadata(data.loggingConfiguration, context);
|
|
885
885
|
}
|
|
886
886
|
return contents;
|
|
887
887
|
};
|
|
888
|
-
const
|
|
888
|
+
const de_DescribeLoggingConfigurationCommandError = async (output, context) => {
|
|
889
889
|
const parsedOutput = {
|
|
890
890
|
...output,
|
|
891
891
|
body: await parseErrorBody(output.body, context),
|
|
@@ -894,16 +894,16 @@ const deserializeAws_restJson1DescribeLoggingConfigurationCommandError = async (
|
|
|
894
894
|
switch (errorCode) {
|
|
895
895
|
case "AccessDeniedException":
|
|
896
896
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
897
|
-
throw await
|
|
897
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
898
898
|
case "InternalServerException":
|
|
899
899
|
case "com.amazonaws.amp#InternalServerException":
|
|
900
|
-
throw await
|
|
900
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
901
901
|
case "ResourceNotFoundException":
|
|
902
902
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
903
|
-
throw await
|
|
903
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
904
904
|
case "ValidationException":
|
|
905
905
|
case "com.amazonaws.amp#ValidationException":
|
|
906
|
-
throw await
|
|
906
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
907
907
|
default:
|
|
908
908
|
const parsedBody = parsedOutput.body;
|
|
909
909
|
throwDefaultError({
|
|
@@ -914,20 +914,20 @@ const deserializeAws_restJson1DescribeLoggingConfigurationCommandError = async (
|
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
};
|
|
917
|
-
export const
|
|
917
|
+
export const de_DescribeRuleGroupsNamespaceCommand = async (output, context) => {
|
|
918
918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return
|
|
919
|
+
return de_DescribeRuleGroupsNamespaceCommandError(output, context);
|
|
920
920
|
}
|
|
921
921
|
const contents = map({
|
|
922
922
|
$metadata: deserializeMetadata(output),
|
|
923
923
|
});
|
|
924
924
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
925
925
|
if (data.ruleGroupsNamespace != null) {
|
|
926
|
-
contents.ruleGroupsNamespace =
|
|
926
|
+
contents.ruleGroupsNamespace = de_RuleGroupsNamespaceDescription(data.ruleGroupsNamespace, context);
|
|
927
927
|
}
|
|
928
928
|
return contents;
|
|
929
929
|
};
|
|
930
|
-
const
|
|
930
|
+
const de_DescribeRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
931
931
|
const parsedOutput = {
|
|
932
932
|
...output,
|
|
933
933
|
body: await parseErrorBody(output.body, context),
|
|
@@ -936,19 +936,19 @@ const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError = async (o
|
|
|
936
936
|
switch (errorCode) {
|
|
937
937
|
case "AccessDeniedException":
|
|
938
938
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
939
|
-
throw await
|
|
939
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
940
940
|
case "InternalServerException":
|
|
941
941
|
case "com.amazonaws.amp#InternalServerException":
|
|
942
|
-
throw await
|
|
942
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
943
943
|
case "ResourceNotFoundException":
|
|
944
944
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
945
|
-
throw await
|
|
945
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
946
946
|
case "ThrottlingException":
|
|
947
947
|
case "com.amazonaws.amp#ThrottlingException":
|
|
948
|
-
throw await
|
|
948
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
949
949
|
case "ValidationException":
|
|
950
950
|
case "com.amazonaws.amp#ValidationException":
|
|
951
|
-
throw await
|
|
951
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
952
952
|
default:
|
|
953
953
|
const parsedBody = parsedOutput.body;
|
|
954
954
|
throwDefaultError({
|
|
@@ -959,20 +959,20 @@ const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError = async (o
|
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
};
|
|
962
|
-
export const
|
|
962
|
+
export const de_DescribeWorkspaceCommand = async (output, context) => {
|
|
963
963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
-
return
|
|
964
|
+
return de_DescribeWorkspaceCommandError(output, context);
|
|
965
965
|
}
|
|
966
966
|
const contents = map({
|
|
967
967
|
$metadata: deserializeMetadata(output),
|
|
968
968
|
});
|
|
969
969
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
970
970
|
if (data.workspace != null) {
|
|
971
|
-
contents.workspace =
|
|
971
|
+
contents.workspace = de_WorkspaceDescription(data.workspace, context);
|
|
972
972
|
}
|
|
973
973
|
return contents;
|
|
974
974
|
};
|
|
975
|
-
const
|
|
975
|
+
const de_DescribeWorkspaceCommandError = async (output, context) => {
|
|
976
976
|
const parsedOutput = {
|
|
977
977
|
...output,
|
|
978
978
|
body: await parseErrorBody(output.body, context),
|
|
@@ -981,19 +981,19 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
|
|
|
981
981
|
switch (errorCode) {
|
|
982
982
|
case "AccessDeniedException":
|
|
983
983
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
984
|
-
throw await
|
|
984
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
985
985
|
case "InternalServerException":
|
|
986
986
|
case "com.amazonaws.amp#InternalServerException":
|
|
987
|
-
throw await
|
|
987
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
988
988
|
case "ResourceNotFoundException":
|
|
989
989
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
990
|
-
throw await
|
|
990
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
991
991
|
case "ThrottlingException":
|
|
992
992
|
case "com.amazonaws.amp#ThrottlingException":
|
|
993
|
-
throw await
|
|
993
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
994
994
|
case "ValidationException":
|
|
995
995
|
case "com.amazonaws.amp#ValidationException":
|
|
996
|
-
throw await
|
|
996
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
997
997
|
default:
|
|
998
998
|
const parsedBody = parsedOutput.body;
|
|
999
999
|
throwDefaultError({
|
|
@@ -1004,9 +1004,9 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
|
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
};
|
|
1007
|
-
export const
|
|
1007
|
+
export const de_ListRuleGroupsNamespacesCommand = async (output, context) => {
|
|
1008
1008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
-
return
|
|
1009
|
+
return de_ListRuleGroupsNamespacesCommandError(output, context);
|
|
1010
1010
|
}
|
|
1011
1011
|
const contents = map({
|
|
1012
1012
|
$metadata: deserializeMetadata(output),
|
|
@@ -1016,11 +1016,11 @@ export const deserializeAws_restJson1ListRuleGroupsNamespacesCommand = async (ou
|
|
|
1016
1016
|
contents.nextToken = __expectString(data.nextToken);
|
|
1017
1017
|
}
|
|
1018
1018
|
if (data.ruleGroupsNamespaces != null) {
|
|
1019
|
-
contents.ruleGroupsNamespaces =
|
|
1019
|
+
contents.ruleGroupsNamespaces = de_RuleGroupsNamespaceSummaryList(data.ruleGroupsNamespaces, context);
|
|
1020
1020
|
}
|
|
1021
1021
|
return contents;
|
|
1022
1022
|
};
|
|
1023
|
-
const
|
|
1023
|
+
const de_ListRuleGroupsNamespacesCommandError = async (output, context) => {
|
|
1024
1024
|
const parsedOutput = {
|
|
1025
1025
|
...output,
|
|
1026
1026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1029,19 +1029,19 @@ const deserializeAws_restJson1ListRuleGroupsNamespacesCommandError = async (outp
|
|
|
1029
1029
|
switch (errorCode) {
|
|
1030
1030
|
case "AccessDeniedException":
|
|
1031
1031
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1032
|
-
throw await
|
|
1032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1033
1033
|
case "InternalServerException":
|
|
1034
1034
|
case "com.amazonaws.amp#InternalServerException":
|
|
1035
|
-
throw await
|
|
1035
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1036
1036
|
case "ResourceNotFoundException":
|
|
1037
1037
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1038
|
-
throw await
|
|
1038
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1039
1039
|
case "ThrottlingException":
|
|
1040
1040
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1041
|
-
throw await
|
|
1041
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1042
1042
|
case "ValidationException":
|
|
1043
1043
|
case "com.amazonaws.amp#ValidationException":
|
|
1044
|
-
throw await
|
|
1044
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
1045
|
default:
|
|
1046
1046
|
const parsedBody = parsedOutput.body;
|
|
1047
1047
|
throwDefaultError({
|
|
@@ -1052,20 +1052,20 @@ const deserializeAws_restJson1ListRuleGroupsNamespacesCommandError = async (outp
|
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
|
-
export const
|
|
1055
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1056
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1057
|
-
return
|
|
1057
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1058
1058
|
}
|
|
1059
1059
|
const contents = map({
|
|
1060
1060
|
$metadata: deserializeMetadata(output),
|
|
1061
1061
|
});
|
|
1062
1062
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1063
1063
|
if (data.tags != null) {
|
|
1064
|
-
contents.tags =
|
|
1064
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1065
1065
|
}
|
|
1066
1066
|
return contents;
|
|
1067
1067
|
};
|
|
1068
|
-
const
|
|
1068
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1069
1069
|
const parsedOutput = {
|
|
1070
1070
|
...output,
|
|
1071
1071
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1074,19 +1074,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1074
1074
|
switch (errorCode) {
|
|
1075
1075
|
case "AccessDeniedException":
|
|
1076
1076
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1077
|
-
throw await
|
|
1077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1078
1078
|
case "InternalServerException":
|
|
1079
1079
|
case "com.amazonaws.amp#InternalServerException":
|
|
1080
|
-
throw await
|
|
1080
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1081
1081
|
case "ResourceNotFoundException":
|
|
1082
1082
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1083
|
-
throw await
|
|
1083
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1084
1084
|
case "ThrottlingException":
|
|
1085
1085
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1086
|
-
throw await
|
|
1086
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1087
1087
|
case "ValidationException":
|
|
1088
1088
|
case "com.amazonaws.amp#ValidationException":
|
|
1089
|
-
throw await
|
|
1089
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1090
1090
|
default:
|
|
1091
1091
|
const parsedBody = parsedOutput.body;
|
|
1092
1092
|
throwDefaultError({
|
|
@@ -1097,9 +1097,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
|
-
export const
|
|
1100
|
+
export const de_ListWorkspacesCommand = async (output, context) => {
|
|
1101
1101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1102
|
-
return
|
|
1102
|
+
return de_ListWorkspacesCommandError(output, context);
|
|
1103
1103
|
}
|
|
1104
1104
|
const contents = map({
|
|
1105
1105
|
$metadata: deserializeMetadata(output),
|
|
@@ -1109,11 +1109,11 @@ export const deserializeAws_restJson1ListWorkspacesCommand = async (output, cont
|
|
|
1109
1109
|
contents.nextToken = __expectString(data.nextToken);
|
|
1110
1110
|
}
|
|
1111
1111
|
if (data.workspaces != null) {
|
|
1112
|
-
contents.workspaces =
|
|
1112
|
+
contents.workspaces = de_WorkspaceSummaryList(data.workspaces, context);
|
|
1113
1113
|
}
|
|
1114
1114
|
return contents;
|
|
1115
1115
|
};
|
|
1116
|
-
const
|
|
1116
|
+
const de_ListWorkspacesCommandError = async (output, context) => {
|
|
1117
1117
|
const parsedOutput = {
|
|
1118
1118
|
...output,
|
|
1119
1119
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1122,16 +1122,16 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
1122
1122
|
switch (errorCode) {
|
|
1123
1123
|
case "AccessDeniedException":
|
|
1124
1124
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1125
|
-
throw await
|
|
1125
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1126
1126
|
case "InternalServerException":
|
|
1127
1127
|
case "com.amazonaws.amp#InternalServerException":
|
|
1128
|
-
throw await
|
|
1128
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1129
1129
|
case "ThrottlingException":
|
|
1130
1130
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1131
|
-
throw await
|
|
1131
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1132
1132
|
case "ValidationException":
|
|
1133
1133
|
case "com.amazonaws.amp#ValidationException":
|
|
1134
|
-
throw await
|
|
1134
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1135
1135
|
default:
|
|
1136
1136
|
const parsedBody = parsedOutput.body;
|
|
1137
1137
|
throwDefaultError({
|
|
@@ -1142,20 +1142,20 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
1144
|
};
|
|
1145
|
-
export const
|
|
1145
|
+
export const de_PutAlertManagerDefinitionCommand = async (output, context) => {
|
|
1146
1146
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
1147
|
+
return de_PutAlertManagerDefinitionCommandError(output, context);
|
|
1148
1148
|
}
|
|
1149
1149
|
const contents = map({
|
|
1150
1150
|
$metadata: deserializeMetadata(output),
|
|
1151
1151
|
});
|
|
1152
1152
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1153
1153
|
if (data.status != null) {
|
|
1154
|
-
contents.status =
|
|
1154
|
+
contents.status = de_AlertManagerDefinitionStatus(data.status, context);
|
|
1155
1155
|
}
|
|
1156
1156
|
return contents;
|
|
1157
1157
|
};
|
|
1158
|
-
const
|
|
1158
|
+
const de_PutAlertManagerDefinitionCommandError = async (output, context) => {
|
|
1159
1159
|
const parsedOutput = {
|
|
1160
1160
|
...output,
|
|
1161
1161
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1164,25 +1164,25 @@ const deserializeAws_restJson1PutAlertManagerDefinitionCommandError = async (out
|
|
|
1164
1164
|
switch (errorCode) {
|
|
1165
1165
|
case "AccessDeniedException":
|
|
1166
1166
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1167
|
-
throw await
|
|
1167
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1168
1168
|
case "ConflictException":
|
|
1169
1169
|
case "com.amazonaws.amp#ConflictException":
|
|
1170
|
-
throw await
|
|
1170
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1171
1171
|
case "InternalServerException":
|
|
1172
1172
|
case "com.amazonaws.amp#InternalServerException":
|
|
1173
|
-
throw await
|
|
1173
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1174
1174
|
case "ResourceNotFoundException":
|
|
1175
1175
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1176
|
-
throw await
|
|
1176
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1177
1177
|
case "ServiceQuotaExceededException":
|
|
1178
1178
|
case "com.amazonaws.amp#ServiceQuotaExceededException":
|
|
1179
|
-
throw await
|
|
1179
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1180
1180
|
case "ThrottlingException":
|
|
1181
1181
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1182
|
-
throw await
|
|
1182
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1183
1183
|
case "ValidationException":
|
|
1184
1184
|
case "com.amazonaws.amp#ValidationException":
|
|
1185
|
-
throw await
|
|
1185
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1186
1186
|
default:
|
|
1187
1187
|
const parsedBody = parsedOutput.body;
|
|
1188
1188
|
throwDefaultError({
|
|
@@ -1193,9 +1193,9 @@ const deserializeAws_restJson1PutAlertManagerDefinitionCommandError = async (out
|
|
|
1193
1193
|
});
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
|
-
export const
|
|
1196
|
+
export const de_PutRuleGroupsNamespaceCommand = async (output, context) => {
|
|
1197
1197
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1198
|
-
return
|
|
1198
|
+
return de_PutRuleGroupsNamespaceCommandError(output, context);
|
|
1199
1199
|
}
|
|
1200
1200
|
const contents = map({
|
|
1201
1201
|
$metadata: deserializeMetadata(output),
|
|
@@ -1208,14 +1208,14 @@ export const deserializeAws_restJson1PutRuleGroupsNamespaceCommand = async (outp
|
|
|
1208
1208
|
contents.name = __expectString(data.name);
|
|
1209
1209
|
}
|
|
1210
1210
|
if (data.status != null) {
|
|
1211
|
-
contents.status =
|
|
1211
|
+
contents.status = de_RuleGroupsNamespaceStatus(data.status, context);
|
|
1212
1212
|
}
|
|
1213
1213
|
if (data.tags != null) {
|
|
1214
|
-
contents.tags =
|
|
1214
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1215
1215
|
}
|
|
1216
1216
|
return contents;
|
|
1217
1217
|
};
|
|
1218
|
-
const
|
|
1218
|
+
const de_PutRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
1219
1219
|
const parsedOutput = {
|
|
1220
1220
|
...output,
|
|
1221
1221
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1224,25 +1224,25 @@ const deserializeAws_restJson1PutRuleGroupsNamespaceCommandError = async (output
|
|
|
1224
1224
|
switch (errorCode) {
|
|
1225
1225
|
case "AccessDeniedException":
|
|
1226
1226
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1227
|
-
throw await
|
|
1227
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1228
1228
|
case "ConflictException":
|
|
1229
1229
|
case "com.amazonaws.amp#ConflictException":
|
|
1230
|
-
throw await
|
|
1230
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1231
1231
|
case "InternalServerException":
|
|
1232
1232
|
case "com.amazonaws.amp#InternalServerException":
|
|
1233
|
-
throw await
|
|
1233
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1234
1234
|
case "ResourceNotFoundException":
|
|
1235
1235
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1236
|
-
throw await
|
|
1236
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1237
1237
|
case "ServiceQuotaExceededException":
|
|
1238
1238
|
case "com.amazonaws.amp#ServiceQuotaExceededException":
|
|
1239
|
-
throw await
|
|
1239
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1240
1240
|
case "ThrottlingException":
|
|
1241
1241
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1242
|
-
throw await
|
|
1242
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1243
1243
|
case "ValidationException":
|
|
1244
1244
|
case "com.amazonaws.amp#ValidationException":
|
|
1245
|
-
throw await
|
|
1245
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1246
1246
|
default:
|
|
1247
1247
|
const parsedBody = parsedOutput.body;
|
|
1248
1248
|
throwDefaultError({
|
|
@@ -1253,9 +1253,9 @@ const deserializeAws_restJson1PutRuleGroupsNamespaceCommandError = async (output
|
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
|
-
export const
|
|
1256
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1257
1257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1258
|
-
return
|
|
1258
|
+
return de_TagResourceCommandError(output, context);
|
|
1259
1259
|
}
|
|
1260
1260
|
const contents = map({
|
|
1261
1261
|
$metadata: deserializeMetadata(output),
|
|
@@ -1263,7 +1263,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1263
1263
|
await collectBody(output.body, context);
|
|
1264
1264
|
return contents;
|
|
1265
1265
|
};
|
|
1266
|
-
const
|
|
1266
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1267
1267
|
const parsedOutput = {
|
|
1268
1268
|
...output,
|
|
1269
1269
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1272,19 +1272,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1272
1272
|
switch (errorCode) {
|
|
1273
1273
|
case "AccessDeniedException":
|
|
1274
1274
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1275
|
-
throw await
|
|
1275
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1276
1276
|
case "InternalServerException":
|
|
1277
1277
|
case "com.amazonaws.amp#InternalServerException":
|
|
1278
|
-
throw await
|
|
1278
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1279
1279
|
case "ResourceNotFoundException":
|
|
1280
1280
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1281
|
-
throw await
|
|
1281
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1282
1282
|
case "ThrottlingException":
|
|
1283
1283
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1284
|
-
throw await
|
|
1284
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1285
1285
|
case "ValidationException":
|
|
1286
1286
|
case "com.amazonaws.amp#ValidationException":
|
|
1287
|
-
throw await
|
|
1287
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
1288
|
default:
|
|
1289
1289
|
const parsedBody = parsedOutput.body;
|
|
1290
1290
|
throwDefaultError({
|
|
@@ -1295,9 +1295,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
1297
1297
|
};
|
|
1298
|
-
export const
|
|
1298
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1299
1299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1300
|
-
return
|
|
1300
|
+
return de_UntagResourceCommandError(output, context);
|
|
1301
1301
|
}
|
|
1302
1302
|
const contents = map({
|
|
1303
1303
|
$metadata: deserializeMetadata(output),
|
|
@@ -1305,7 +1305,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1305
1305
|
await collectBody(output.body, context);
|
|
1306
1306
|
return contents;
|
|
1307
1307
|
};
|
|
1308
|
-
const
|
|
1308
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1309
1309
|
const parsedOutput = {
|
|
1310
1310
|
...output,
|
|
1311
1311
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1314,19 +1314,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1314
1314
|
switch (errorCode) {
|
|
1315
1315
|
case "AccessDeniedException":
|
|
1316
1316
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1317
|
-
throw await
|
|
1317
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1318
1318
|
case "InternalServerException":
|
|
1319
1319
|
case "com.amazonaws.amp#InternalServerException":
|
|
1320
|
-
throw await
|
|
1320
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1321
1321
|
case "ResourceNotFoundException":
|
|
1322
1322
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1323
|
-
throw await
|
|
1323
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1324
1324
|
case "ThrottlingException":
|
|
1325
1325
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1326
|
-
throw await
|
|
1326
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1327
1327
|
case "ValidationException":
|
|
1328
1328
|
case "com.amazonaws.amp#ValidationException":
|
|
1329
|
-
throw await
|
|
1329
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1330
1330
|
default:
|
|
1331
1331
|
const parsedBody = parsedOutput.body;
|
|
1332
1332
|
throwDefaultError({
|
|
@@ -1337,20 +1337,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1337
1337
|
});
|
|
1338
1338
|
}
|
|
1339
1339
|
};
|
|
1340
|
-
export const
|
|
1340
|
+
export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
1341
1341
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
1342
|
+
return de_UpdateLoggingConfigurationCommandError(output, context);
|
|
1343
1343
|
}
|
|
1344
1344
|
const contents = map({
|
|
1345
1345
|
$metadata: deserializeMetadata(output),
|
|
1346
1346
|
});
|
|
1347
1347
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1348
1348
|
if (data.status != null) {
|
|
1349
|
-
contents.status =
|
|
1349
|
+
contents.status = de_LoggingConfigurationStatus(data.status, context);
|
|
1350
1350
|
}
|
|
1351
1351
|
return contents;
|
|
1352
1352
|
};
|
|
1353
|
-
const
|
|
1353
|
+
const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
1354
1354
|
const parsedOutput = {
|
|
1355
1355
|
...output,
|
|
1356
1356
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1359,19 +1359,19 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
|
|
|
1359
1359
|
switch (errorCode) {
|
|
1360
1360
|
case "AccessDeniedException":
|
|
1361
1361
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1362
|
-
throw await
|
|
1362
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1363
1363
|
case "ConflictException":
|
|
1364
1364
|
case "com.amazonaws.amp#ConflictException":
|
|
1365
|
-
throw await
|
|
1365
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1366
1366
|
case "InternalServerException":
|
|
1367
1367
|
case "com.amazonaws.amp#InternalServerException":
|
|
1368
|
-
throw await
|
|
1368
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1369
1369
|
case "ResourceNotFoundException":
|
|
1370
1370
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1371
|
-
throw await
|
|
1371
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1372
1372
|
case "ValidationException":
|
|
1373
1373
|
case "com.amazonaws.amp#ValidationException":
|
|
1374
|
-
throw await
|
|
1374
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1375
1375
|
default:
|
|
1376
1376
|
const parsedBody = parsedOutput.body;
|
|
1377
1377
|
throwDefaultError({
|
|
@@ -1382,9 +1382,9 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
|
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
1384
1384
|
};
|
|
1385
|
-
export const
|
|
1385
|
+
export const de_UpdateWorkspaceAliasCommand = async (output, context) => {
|
|
1386
1386
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1387
|
-
return
|
|
1387
|
+
return de_UpdateWorkspaceAliasCommandError(output, context);
|
|
1388
1388
|
}
|
|
1389
1389
|
const contents = map({
|
|
1390
1390
|
$metadata: deserializeMetadata(output),
|
|
@@ -1392,7 +1392,7 @@ export const deserializeAws_restJson1UpdateWorkspaceAliasCommand = async (output
|
|
|
1392
1392
|
await collectBody(output.body, context);
|
|
1393
1393
|
return contents;
|
|
1394
1394
|
};
|
|
1395
|
-
const
|
|
1395
|
+
const de_UpdateWorkspaceAliasCommandError = async (output, context) => {
|
|
1396
1396
|
const parsedOutput = {
|
|
1397
1397
|
...output,
|
|
1398
1398
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1401,25 +1401,25 @@ const deserializeAws_restJson1UpdateWorkspaceAliasCommandError = async (output,
|
|
|
1401
1401
|
switch (errorCode) {
|
|
1402
1402
|
case "AccessDeniedException":
|
|
1403
1403
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
1404
|
-
throw await
|
|
1404
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1405
1405
|
case "ConflictException":
|
|
1406
1406
|
case "com.amazonaws.amp#ConflictException":
|
|
1407
|
-
throw await
|
|
1407
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1408
1408
|
case "InternalServerException":
|
|
1409
1409
|
case "com.amazonaws.amp#InternalServerException":
|
|
1410
|
-
throw await
|
|
1410
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1411
1411
|
case "ResourceNotFoundException":
|
|
1412
1412
|
case "com.amazonaws.amp#ResourceNotFoundException":
|
|
1413
|
-
throw await
|
|
1413
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1414
1414
|
case "ServiceQuotaExceededException":
|
|
1415
1415
|
case "com.amazonaws.amp#ServiceQuotaExceededException":
|
|
1416
|
-
throw await
|
|
1416
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1417
1417
|
case "ThrottlingException":
|
|
1418
1418
|
case "com.amazonaws.amp#ThrottlingException":
|
|
1419
|
-
throw await
|
|
1419
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1420
1420
|
case "ValidationException":
|
|
1421
1421
|
case "com.amazonaws.amp#ValidationException":
|
|
1422
|
-
throw await
|
|
1422
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1423
1423
|
default:
|
|
1424
1424
|
const parsedBody = parsedOutput.body;
|
|
1425
1425
|
throwDefaultError({
|
|
@@ -1431,7 +1431,7 @@ const deserializeAws_restJson1UpdateWorkspaceAliasCommandError = async (output,
|
|
|
1431
1431
|
}
|
|
1432
1432
|
};
|
|
1433
1433
|
const map = __map;
|
|
1434
|
-
const
|
|
1434
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1435
1435
|
const contents = map({});
|
|
1436
1436
|
const data = parsedOutput.body;
|
|
1437
1437
|
if (data.message != null) {
|
|
@@ -1443,7 +1443,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1443
1443
|
});
|
|
1444
1444
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1445
1445
|
};
|
|
1446
|
-
const
|
|
1446
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1447
1447
|
const contents = map({});
|
|
1448
1448
|
const data = parsedOutput.body;
|
|
1449
1449
|
if (data.message != null) {
|
|
@@ -1461,7 +1461,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1461
1461
|
});
|
|
1462
1462
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1463
1463
|
};
|
|
1464
|
-
const
|
|
1464
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1465
1465
|
const contents = map({
|
|
1466
1466
|
retryAfterSeconds: [
|
|
1467
1467
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -1478,7 +1478,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1478
1478
|
});
|
|
1479
1479
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1480
1480
|
};
|
|
1481
|
-
const
|
|
1481
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1482
1482
|
const contents = map({});
|
|
1483
1483
|
const data = parsedOutput.body;
|
|
1484
1484
|
if (data.message != null) {
|
|
@@ -1496,7 +1496,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1496
1496
|
});
|
|
1497
1497
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1498
1498
|
};
|
|
1499
|
-
const
|
|
1499
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1500
1500
|
const contents = map({});
|
|
1501
1501
|
const data = parsedOutput.body;
|
|
1502
1502
|
if (data.message != null) {
|
|
@@ -1520,7 +1520,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1520
1520
|
});
|
|
1521
1521
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1522
1522
|
};
|
|
1523
|
-
const
|
|
1523
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1524
1524
|
const contents = map({
|
|
1525
1525
|
retryAfterSeconds: [
|
|
1526
1526
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -1543,11 +1543,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1543
1543
|
});
|
|
1544
1544
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1545
1545
|
};
|
|
1546
|
-
const
|
|
1546
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1547
1547
|
const contents = map({});
|
|
1548
1548
|
const data = parsedOutput.body;
|
|
1549
1549
|
if (data.fieldList != null) {
|
|
1550
|
-
contents.fieldList =
|
|
1550
|
+
contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
|
|
1551
1551
|
}
|
|
1552
1552
|
if (data.message != null) {
|
|
1553
1553
|
contents.message = __expectString(data.message);
|
|
@@ -1561,7 +1561,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1561
1561
|
});
|
|
1562
1562
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1563
1563
|
};
|
|
1564
|
-
const
|
|
1564
|
+
const se_TagMap = (input, context) => {
|
|
1565
1565
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1566
1566
|
if (value === null) {
|
|
1567
1567
|
return acc;
|
|
@@ -1570,74 +1570,74 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1570
1570
|
return acc;
|
|
1571
1571
|
}, {});
|
|
1572
1572
|
};
|
|
1573
|
-
const
|
|
1573
|
+
const de_AlertManagerDefinitionDescription = (output, context) => {
|
|
1574
1574
|
return {
|
|
1575
1575
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1576
1576
|
data: output.data != null ? context.base64Decoder(output.data) : undefined,
|
|
1577
1577
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
|
|
1578
|
-
status: output.status != null ?
|
|
1578
|
+
status: output.status != null ? de_AlertManagerDefinitionStatus(output.status, context) : undefined,
|
|
1579
1579
|
};
|
|
1580
1580
|
};
|
|
1581
|
-
const
|
|
1581
|
+
const de_AlertManagerDefinitionStatus = (output, context) => {
|
|
1582
1582
|
return {
|
|
1583
1583
|
statusCode: __expectString(output.statusCode),
|
|
1584
1584
|
statusReason: __expectString(output.statusReason),
|
|
1585
1585
|
};
|
|
1586
1586
|
};
|
|
1587
|
-
const
|
|
1587
|
+
const de_LoggingConfigurationMetadata = (output, context) => {
|
|
1588
1588
|
return {
|
|
1589
1589
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1590
1590
|
logGroupArn: __expectString(output.logGroupArn),
|
|
1591
1591
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
|
|
1592
|
-
status: output.status != null ?
|
|
1592
|
+
status: output.status != null ? de_LoggingConfigurationStatus(output.status, context) : undefined,
|
|
1593
1593
|
workspace: __expectString(output.workspace),
|
|
1594
1594
|
};
|
|
1595
1595
|
};
|
|
1596
|
-
const
|
|
1596
|
+
const de_LoggingConfigurationStatus = (output, context) => {
|
|
1597
1597
|
return {
|
|
1598
1598
|
statusCode: __expectString(output.statusCode),
|
|
1599
1599
|
statusReason: __expectString(output.statusReason),
|
|
1600
1600
|
};
|
|
1601
1601
|
};
|
|
1602
|
-
const
|
|
1602
|
+
const de_RuleGroupsNamespaceDescription = (output, context) => {
|
|
1603
1603
|
return {
|
|
1604
1604
|
arn: __expectString(output.arn),
|
|
1605
1605
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1606
1606
|
data: output.data != null ? context.base64Decoder(output.data) : undefined,
|
|
1607
1607
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
|
|
1608
1608
|
name: __expectString(output.name),
|
|
1609
|
-
status: output.status != null ?
|
|
1610
|
-
tags: output.tags != null ?
|
|
1609
|
+
status: output.status != null ? de_RuleGroupsNamespaceStatus(output.status, context) : undefined,
|
|
1610
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1611
1611
|
};
|
|
1612
1612
|
};
|
|
1613
|
-
const
|
|
1613
|
+
const de_RuleGroupsNamespaceStatus = (output, context) => {
|
|
1614
1614
|
return {
|
|
1615
1615
|
statusCode: __expectString(output.statusCode),
|
|
1616
1616
|
statusReason: __expectString(output.statusReason),
|
|
1617
1617
|
};
|
|
1618
1618
|
};
|
|
1619
|
-
const
|
|
1619
|
+
const de_RuleGroupsNamespaceSummary = (output, context) => {
|
|
1620
1620
|
return {
|
|
1621
1621
|
arn: __expectString(output.arn),
|
|
1622
1622
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1623
1623
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
|
|
1624
1624
|
name: __expectString(output.name),
|
|
1625
|
-
status: output.status != null ?
|
|
1626
|
-
tags: output.tags != null ?
|
|
1625
|
+
status: output.status != null ? de_RuleGroupsNamespaceStatus(output.status, context) : undefined,
|
|
1626
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1627
1627
|
};
|
|
1628
1628
|
};
|
|
1629
|
-
const
|
|
1629
|
+
const de_RuleGroupsNamespaceSummaryList = (output, context) => {
|
|
1630
1630
|
const retVal = (output || [])
|
|
1631
1631
|
.filter((e) => e != null)
|
|
1632
1632
|
.map((entry) => {
|
|
1633
1633
|
if (entry === null) {
|
|
1634
1634
|
return null;
|
|
1635
1635
|
}
|
|
1636
|
-
return
|
|
1636
|
+
return de_RuleGroupsNamespaceSummary(entry, context);
|
|
1637
1637
|
});
|
|
1638
1638
|
return retVal;
|
|
1639
1639
|
};
|
|
1640
|
-
const
|
|
1640
|
+
const de_TagMap = (output, context) => {
|
|
1641
1641
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1642
1642
|
if (value === null) {
|
|
1643
1643
|
return acc;
|
|
@@ -1646,57 +1646,57 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1646
1646
|
return acc;
|
|
1647
1647
|
}, {});
|
|
1648
1648
|
};
|
|
1649
|
-
const
|
|
1649
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
1650
1650
|
return {
|
|
1651
1651
|
message: __expectString(output.message),
|
|
1652
1652
|
name: __expectString(output.name),
|
|
1653
1653
|
};
|
|
1654
1654
|
};
|
|
1655
|
-
const
|
|
1655
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1656
1656
|
const retVal = (output || [])
|
|
1657
1657
|
.filter((e) => e != null)
|
|
1658
1658
|
.map((entry) => {
|
|
1659
1659
|
if (entry === null) {
|
|
1660
1660
|
return null;
|
|
1661
1661
|
}
|
|
1662
|
-
return
|
|
1662
|
+
return de_ValidationExceptionField(entry, context);
|
|
1663
1663
|
});
|
|
1664
1664
|
return retVal;
|
|
1665
1665
|
};
|
|
1666
|
-
const
|
|
1666
|
+
const de_WorkspaceDescription = (output, context) => {
|
|
1667
1667
|
return {
|
|
1668
1668
|
alias: __expectString(output.alias),
|
|
1669
1669
|
arn: __expectString(output.arn),
|
|
1670
1670
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1671
1671
|
prometheusEndpoint: __expectString(output.prometheusEndpoint),
|
|
1672
|
-
status: output.status != null ?
|
|
1673
|
-
tags: output.tags != null ?
|
|
1672
|
+
status: output.status != null ? de_WorkspaceStatus(output.status, context) : undefined,
|
|
1673
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1674
1674
|
workspaceId: __expectString(output.workspaceId),
|
|
1675
1675
|
};
|
|
1676
1676
|
};
|
|
1677
|
-
const
|
|
1677
|
+
const de_WorkspaceStatus = (output, context) => {
|
|
1678
1678
|
return {
|
|
1679
1679
|
statusCode: __expectString(output.statusCode),
|
|
1680
1680
|
};
|
|
1681
1681
|
};
|
|
1682
|
-
const
|
|
1682
|
+
const de_WorkspaceSummary = (output, context) => {
|
|
1683
1683
|
return {
|
|
1684
1684
|
alias: __expectString(output.alias),
|
|
1685
1685
|
arn: __expectString(output.arn),
|
|
1686
1686
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1687
|
-
status: output.status != null ?
|
|
1688
|
-
tags: output.tags != null ?
|
|
1687
|
+
status: output.status != null ? de_WorkspaceStatus(output.status, context) : undefined,
|
|
1688
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1689
1689
|
workspaceId: __expectString(output.workspaceId),
|
|
1690
1690
|
};
|
|
1691
1691
|
};
|
|
1692
|
-
const
|
|
1692
|
+
const de_WorkspaceSummaryList = (output, context) => {
|
|
1693
1693
|
const retVal = (output || [])
|
|
1694
1694
|
.filter((e) => e != null)
|
|
1695
1695
|
.map((entry) => {
|
|
1696
1696
|
if (entry === null) {
|
|
1697
1697
|
return null;
|
|
1698
1698
|
}
|
|
1699
|
-
return
|
|
1699
|
+
return de_WorkspaceSummary(entry, context);
|
|
1700
1700
|
});
|
|
1701
1701
|
return retVal;
|
|
1702
1702
|
};
|