@aws-sdk/client-grafana 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/AssociateLicenseCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkspaceApiKeyCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkspaceApiKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/DescribeWorkspaceAuthenticationCommand.js +2 -2
- package/dist-cjs/commands/DescribeWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/DescribeWorkspaceConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DisassociateLicenseCommand.js +2 -2
- package/dist-cjs/commands/ListPermissionsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWorkspacesCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdatePermissionsCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkspaceAuthenticationCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkspaceConfigurationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +340 -366
- package/dist-es/commands/AssociateLicenseCommand.js +3 -3
- package/dist-es/commands/CreateWorkspaceApiKeyCommand.js +3 -3
- package/dist-es/commands/CreateWorkspaceCommand.js +3 -3
- package/dist-es/commands/DeleteWorkspaceApiKeyCommand.js +3 -3
- package/dist-es/commands/DeleteWorkspaceCommand.js +3 -3
- package/dist-es/commands/DescribeWorkspaceAuthenticationCommand.js +3 -3
- package/dist-es/commands/DescribeWorkspaceCommand.js +3 -3
- package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +3 -3
- package/dist-es/commands/DisassociateLicenseCommand.js +3 -3
- package/dist-es/commands/ListPermissionsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWorkspacesCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdatePermissionsCommand.js +3 -3
- package/dist-es/commands/UpdateWorkspaceAuthenticationCommand.js +3 -3
- package/dist-es/commands/UpdateWorkspaceCommand.js +3 -3
- package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +303 -329
- package/dist-types/protocols/Aws_restJson1.d.ts +144 -36
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -36
- 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 { GrafanaServiceException as __BaseException } from "../models/GrafanaServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, IdpMetadata, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateLicenseCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {};
|
|
9
9
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -21,7 +21,7 @@ export const serializeAws_restJson1AssociateLicenseCommand = async (input, conte
|
|
|
21
21
|
body,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
25
25
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
26
26
|
const headers = {
|
|
27
27
|
"content-type": "application/json",
|
|
@@ -31,30 +31,28 @@ export const serializeAws_restJson1CreateWorkspaceCommand = async (input, contex
|
|
|
31
31
|
body = JSON.stringify({
|
|
32
32
|
...(input.accountAccessType != null && { accountAccessType: input.accountAccessType }),
|
|
33
33
|
...(input.authenticationProviders != null && {
|
|
34
|
-
authenticationProviders:
|
|
34
|
+
authenticationProviders: se_AuthenticationProviders(input.authenticationProviders, context),
|
|
35
35
|
}),
|
|
36
36
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
37
37
|
...(input.configuration != null && { configuration: __LazyJsonString.fromObject(input.configuration) }),
|
|
38
38
|
...(input.networkAccessControl != null && {
|
|
39
|
-
networkAccessControl:
|
|
39
|
+
networkAccessControl: se_NetworkAccessConfiguration(input.networkAccessControl, context),
|
|
40
40
|
}),
|
|
41
41
|
...(input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName }),
|
|
42
42
|
...(input.permissionType != null && { permissionType: input.permissionType }),
|
|
43
43
|
...(input.stackSetName != null && { stackSetName: input.stackSetName }),
|
|
44
|
-
...(input.tags != null && { tags:
|
|
45
|
-
...(input.vpcConfiguration != null && {
|
|
46
|
-
vpcConfiguration: serializeAws_restJson1VpcConfiguration(input.vpcConfiguration, context),
|
|
47
|
-
}),
|
|
44
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
45
|
+
...(input.vpcConfiguration != null && { vpcConfiguration: se_VpcConfiguration(input.vpcConfiguration, context) }),
|
|
48
46
|
...(input.workspaceDataSources != null && {
|
|
49
|
-
workspaceDataSources:
|
|
47
|
+
workspaceDataSources: se_DataSourceTypesList(input.workspaceDataSources, context),
|
|
50
48
|
}),
|
|
51
49
|
...(input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription }),
|
|
52
50
|
...(input.workspaceName != null && { workspaceName: input.workspaceName }),
|
|
53
51
|
...(input.workspaceNotificationDestinations != null && {
|
|
54
|
-
workspaceNotificationDestinations:
|
|
52
|
+
workspaceNotificationDestinations: se_NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
55
53
|
}),
|
|
56
54
|
...(input.workspaceOrganizationalUnits != null && {
|
|
57
|
-
workspaceOrganizationalUnits:
|
|
55
|
+
workspaceOrganizationalUnits: se_OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
58
56
|
}),
|
|
59
57
|
...(input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
60
58
|
});
|
|
@@ -68,7 +66,7 @@ export const serializeAws_restJson1CreateWorkspaceCommand = async (input, contex
|
|
|
68
66
|
body,
|
|
69
67
|
});
|
|
70
68
|
};
|
|
71
|
-
export const
|
|
69
|
+
export const se_CreateWorkspaceApiKeyCommand = async (input, context) => {
|
|
72
70
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
73
71
|
const headers = {
|
|
74
72
|
"content-type": "application/json",
|
|
@@ -91,7 +89,7 @@ export const serializeAws_restJson1CreateWorkspaceApiKeyCommand = async (input,
|
|
|
91
89
|
body,
|
|
92
90
|
});
|
|
93
91
|
};
|
|
94
|
-
export const
|
|
92
|
+
export const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
95
93
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
94
|
const headers = {};
|
|
97
95
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
@@ -107,7 +105,7 @@ export const serializeAws_restJson1DeleteWorkspaceCommand = async (input, contex
|
|
|
107
105
|
body,
|
|
108
106
|
});
|
|
109
107
|
};
|
|
110
|
-
export const
|
|
108
|
+
export const se_DeleteWorkspaceApiKeyCommand = async (input, context) => {
|
|
111
109
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
110
|
const headers = {};
|
|
113
111
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -125,7 +123,7 @@ export const serializeAws_restJson1DeleteWorkspaceApiKeyCommand = async (input,
|
|
|
125
123
|
body,
|
|
126
124
|
});
|
|
127
125
|
};
|
|
128
|
-
export const
|
|
126
|
+
export const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
129
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
128
|
const headers = {};
|
|
131
129
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
@@ -141,7 +139,7 @@ export const serializeAws_restJson1DescribeWorkspaceCommand = async (input, cont
|
|
|
141
139
|
body,
|
|
142
140
|
});
|
|
143
141
|
};
|
|
144
|
-
export const
|
|
142
|
+
export const se_DescribeWorkspaceAuthenticationCommand = async (input, context) => {
|
|
145
143
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
146
144
|
const headers = {};
|
|
147
145
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/authentication";
|
|
@@ -157,7 +155,7 @@ export const serializeAws_restJson1DescribeWorkspaceAuthenticationCommand = asyn
|
|
|
157
155
|
body,
|
|
158
156
|
});
|
|
159
157
|
};
|
|
160
|
-
export const
|
|
158
|
+
export const se_DescribeWorkspaceConfigurationCommand = async (input, context) => {
|
|
161
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
162
160
|
const headers = {};
|
|
163
161
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration";
|
|
@@ -173,7 +171,7 @@ export const serializeAws_restJson1DescribeWorkspaceConfigurationCommand = async
|
|
|
173
171
|
body,
|
|
174
172
|
});
|
|
175
173
|
};
|
|
176
|
-
export const
|
|
174
|
+
export const se_DisassociateLicenseCommand = async (input, context) => {
|
|
177
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
178
176
|
const headers = {};
|
|
179
177
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -191,7 +189,7 @@ export const serializeAws_restJson1DisassociateLicenseCommand = async (input, co
|
|
|
191
189
|
body,
|
|
192
190
|
});
|
|
193
191
|
};
|
|
194
|
-
export const
|
|
192
|
+
export const se_ListPermissionsCommand = async (input, context) => {
|
|
195
193
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
194
|
const headers = {};
|
|
197
195
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/permissions";
|
|
@@ -215,7 +213,7 @@ export const serializeAws_restJson1ListPermissionsCommand = async (input, contex
|
|
|
215
213
|
body,
|
|
216
214
|
});
|
|
217
215
|
};
|
|
218
|
-
export const
|
|
216
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
219
217
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
220
218
|
const headers = {};
|
|
221
219
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -231,7 +229,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
231
229
|
body,
|
|
232
230
|
});
|
|
233
231
|
};
|
|
234
|
-
export const
|
|
232
|
+
export const se_ListWorkspacesCommand = async (input, context) => {
|
|
235
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
236
234
|
const headers = {};
|
|
237
235
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
|
|
@@ -251,7 +249,7 @@ export const serializeAws_restJson1ListWorkspacesCommand = async (input, context
|
|
|
251
249
|
body,
|
|
252
250
|
});
|
|
253
251
|
};
|
|
254
|
-
export const
|
|
252
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
255
253
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
256
254
|
const headers = {
|
|
257
255
|
"content-type": "application/json",
|
|
@@ -260,7 +258,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
260
258
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
261
259
|
let body;
|
|
262
260
|
body = JSON.stringify({
|
|
263
|
-
...(input.tags != null && { tags:
|
|
261
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
264
262
|
});
|
|
265
263
|
return new __HttpRequest({
|
|
266
264
|
protocol,
|
|
@@ -272,7 +270,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
272
270
|
body,
|
|
273
271
|
});
|
|
274
272
|
};
|
|
275
|
-
export const
|
|
273
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
276
274
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
277
275
|
const headers = {};
|
|
278
276
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -295,7 +293,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
295
293
|
body,
|
|
296
294
|
});
|
|
297
295
|
};
|
|
298
|
-
export const
|
|
296
|
+
export const se_UpdatePermissionsCommand = async (input, context) => {
|
|
299
297
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
300
298
|
const headers = {
|
|
301
299
|
"content-type": "application/json",
|
|
@@ -305,7 +303,7 @@ export const serializeAws_restJson1UpdatePermissionsCommand = async (input, cont
|
|
|
305
303
|
let body;
|
|
306
304
|
body = JSON.stringify({
|
|
307
305
|
...(input.updateInstructionBatch != null && {
|
|
308
|
-
updateInstructionBatch:
|
|
306
|
+
updateInstructionBatch: se_UpdateInstructionBatch(input.updateInstructionBatch, context),
|
|
309
307
|
}),
|
|
310
308
|
});
|
|
311
309
|
return new __HttpRequest({
|
|
@@ -318,7 +316,7 @@ export const serializeAws_restJson1UpdatePermissionsCommand = async (input, cont
|
|
|
318
316
|
body,
|
|
319
317
|
});
|
|
320
318
|
};
|
|
321
|
-
export const
|
|
319
|
+
export const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
322
320
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
323
321
|
const headers = {
|
|
324
322
|
"content-type": "application/json",
|
|
@@ -329,7 +327,7 @@ export const serializeAws_restJson1UpdateWorkspaceCommand = async (input, contex
|
|
|
329
327
|
body = JSON.stringify({
|
|
330
328
|
...(input.accountAccessType != null && { accountAccessType: input.accountAccessType }),
|
|
331
329
|
...(input.networkAccessControl != null && {
|
|
332
|
-
networkAccessControl:
|
|
330
|
+
networkAccessControl: se_NetworkAccessConfiguration(input.networkAccessControl, context),
|
|
333
331
|
}),
|
|
334
332
|
...(input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName }),
|
|
335
333
|
...(input.permissionType != null && { permissionType: input.permissionType }),
|
|
@@ -338,19 +336,17 @@ export const serializeAws_restJson1UpdateWorkspaceCommand = async (input, contex
|
|
|
338
336
|
}),
|
|
339
337
|
...(input.removeVpcConfiguration != null && { removeVpcConfiguration: input.removeVpcConfiguration }),
|
|
340
338
|
...(input.stackSetName != null && { stackSetName: input.stackSetName }),
|
|
341
|
-
...(input.vpcConfiguration != null && {
|
|
342
|
-
vpcConfiguration: serializeAws_restJson1VpcConfiguration(input.vpcConfiguration, context),
|
|
343
|
-
}),
|
|
339
|
+
...(input.vpcConfiguration != null && { vpcConfiguration: se_VpcConfiguration(input.vpcConfiguration, context) }),
|
|
344
340
|
...(input.workspaceDataSources != null && {
|
|
345
|
-
workspaceDataSources:
|
|
341
|
+
workspaceDataSources: se_DataSourceTypesList(input.workspaceDataSources, context),
|
|
346
342
|
}),
|
|
347
343
|
...(input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription }),
|
|
348
344
|
...(input.workspaceName != null && { workspaceName: input.workspaceName }),
|
|
349
345
|
...(input.workspaceNotificationDestinations != null && {
|
|
350
|
-
workspaceNotificationDestinations:
|
|
346
|
+
workspaceNotificationDestinations: se_NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
351
347
|
}),
|
|
352
348
|
...(input.workspaceOrganizationalUnits != null && {
|
|
353
|
-
workspaceOrganizationalUnits:
|
|
349
|
+
workspaceOrganizationalUnits: se_OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
354
350
|
}),
|
|
355
351
|
...(input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
356
352
|
});
|
|
@@ -364,7 +360,7 @@ export const serializeAws_restJson1UpdateWorkspaceCommand = async (input, contex
|
|
|
364
360
|
body,
|
|
365
361
|
});
|
|
366
362
|
};
|
|
367
|
-
export const
|
|
363
|
+
export const se_UpdateWorkspaceAuthenticationCommand = async (input, context) => {
|
|
368
364
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
365
|
const headers = {
|
|
370
366
|
"content-type": "application/json",
|
|
@@ -374,10 +370,10 @@ export const serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = async
|
|
|
374
370
|
let body;
|
|
375
371
|
body = JSON.stringify({
|
|
376
372
|
...(input.authenticationProviders != null && {
|
|
377
|
-
authenticationProviders:
|
|
373
|
+
authenticationProviders: se_AuthenticationProviders(input.authenticationProviders, context),
|
|
378
374
|
}),
|
|
379
375
|
...(input.samlConfiguration != null && {
|
|
380
|
-
samlConfiguration:
|
|
376
|
+
samlConfiguration: se_SamlConfiguration(input.samlConfiguration, context),
|
|
381
377
|
}),
|
|
382
378
|
});
|
|
383
379
|
return new __HttpRequest({
|
|
@@ -390,7 +386,7 @@ export const serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = async
|
|
|
390
386
|
body,
|
|
391
387
|
});
|
|
392
388
|
};
|
|
393
|
-
export const
|
|
389
|
+
export const se_UpdateWorkspaceConfigurationCommand = async (input, context) => {
|
|
394
390
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
395
391
|
const headers = {
|
|
396
392
|
"content-type": "application/json",
|
|
@@ -411,20 +407,20 @@ export const serializeAws_restJson1UpdateWorkspaceConfigurationCommand = async (
|
|
|
411
407
|
body,
|
|
412
408
|
});
|
|
413
409
|
};
|
|
414
|
-
export const
|
|
410
|
+
export const de_AssociateLicenseCommand = async (output, context) => {
|
|
415
411
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
416
|
-
return
|
|
412
|
+
return de_AssociateLicenseCommandError(output, context);
|
|
417
413
|
}
|
|
418
414
|
const contents = map({
|
|
419
415
|
$metadata: deserializeMetadata(output),
|
|
420
416
|
});
|
|
421
417
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
422
418
|
if (data.workspace != null) {
|
|
423
|
-
contents.workspace =
|
|
419
|
+
contents.workspace = de_WorkspaceDescription(data.workspace, context);
|
|
424
420
|
}
|
|
425
421
|
return contents;
|
|
426
422
|
};
|
|
427
|
-
const
|
|
423
|
+
const de_AssociateLicenseCommandError = async (output, context) => {
|
|
428
424
|
const parsedOutput = {
|
|
429
425
|
...output,
|
|
430
426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -433,19 +429,19 @@ const deserializeAws_restJson1AssociateLicenseCommandError = async (output, cont
|
|
|
433
429
|
switch (errorCode) {
|
|
434
430
|
case "AccessDeniedException":
|
|
435
431
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
436
|
-
throw await
|
|
432
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
437
433
|
case "InternalServerException":
|
|
438
434
|
case "com.amazonaws.grafana#InternalServerException":
|
|
439
|
-
throw await
|
|
435
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
440
436
|
case "ResourceNotFoundException":
|
|
441
437
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
442
|
-
throw await
|
|
438
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
443
439
|
case "ThrottlingException":
|
|
444
440
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
445
|
-
throw await
|
|
441
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
446
442
|
case "ValidationException":
|
|
447
443
|
case "com.amazonaws.grafana#ValidationException":
|
|
448
|
-
throw await
|
|
444
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
449
445
|
default:
|
|
450
446
|
const parsedBody = parsedOutput.body;
|
|
451
447
|
throwDefaultError({
|
|
@@ -456,20 +452,20 @@ const deserializeAws_restJson1AssociateLicenseCommandError = async (output, cont
|
|
|
456
452
|
});
|
|
457
453
|
}
|
|
458
454
|
};
|
|
459
|
-
export const
|
|
455
|
+
export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
460
456
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
461
|
-
return
|
|
457
|
+
return de_CreateWorkspaceCommandError(output, context);
|
|
462
458
|
}
|
|
463
459
|
const contents = map({
|
|
464
460
|
$metadata: deserializeMetadata(output),
|
|
465
461
|
});
|
|
466
462
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
467
463
|
if (data.workspace != null) {
|
|
468
|
-
contents.workspace =
|
|
464
|
+
contents.workspace = de_WorkspaceDescription(data.workspace, context);
|
|
469
465
|
}
|
|
470
466
|
return contents;
|
|
471
467
|
};
|
|
472
|
-
const
|
|
468
|
+
const de_CreateWorkspaceCommandError = async (output, context) => {
|
|
473
469
|
const parsedOutput = {
|
|
474
470
|
...output,
|
|
475
471
|
body: await parseErrorBody(output.body, context),
|
|
@@ -478,22 +474,22 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
478
474
|
switch (errorCode) {
|
|
479
475
|
case "AccessDeniedException":
|
|
480
476
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
481
|
-
throw await
|
|
477
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
482
478
|
case "ConflictException":
|
|
483
479
|
case "com.amazonaws.grafana#ConflictException":
|
|
484
|
-
throw await
|
|
480
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
485
481
|
case "InternalServerException":
|
|
486
482
|
case "com.amazonaws.grafana#InternalServerException":
|
|
487
|
-
throw await
|
|
483
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
488
484
|
case "ServiceQuotaExceededException":
|
|
489
485
|
case "com.amazonaws.grafana#ServiceQuotaExceededException":
|
|
490
|
-
throw await
|
|
486
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
491
487
|
case "ThrottlingException":
|
|
492
488
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
493
|
-
throw await
|
|
489
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
494
490
|
case "ValidationException":
|
|
495
491
|
case "com.amazonaws.grafana#ValidationException":
|
|
496
|
-
throw await
|
|
492
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
497
493
|
default:
|
|
498
494
|
const parsedBody = parsedOutput.body;
|
|
499
495
|
throwDefaultError({
|
|
@@ -504,9 +500,9 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
504
500
|
});
|
|
505
501
|
}
|
|
506
502
|
};
|
|
507
|
-
export const
|
|
503
|
+
export const de_CreateWorkspaceApiKeyCommand = async (output, context) => {
|
|
508
504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
509
|
-
return
|
|
505
|
+
return de_CreateWorkspaceApiKeyCommandError(output, context);
|
|
510
506
|
}
|
|
511
507
|
const contents = map({
|
|
512
508
|
$metadata: deserializeMetadata(output),
|
|
@@ -523,7 +519,7 @@ export const deserializeAws_restJson1CreateWorkspaceApiKeyCommand = async (outpu
|
|
|
523
519
|
}
|
|
524
520
|
return contents;
|
|
525
521
|
};
|
|
526
|
-
const
|
|
522
|
+
const de_CreateWorkspaceApiKeyCommandError = async (output, context) => {
|
|
527
523
|
const parsedOutput = {
|
|
528
524
|
...output,
|
|
529
525
|
body: await parseErrorBody(output.body, context),
|
|
@@ -532,25 +528,25 @@ const deserializeAws_restJson1CreateWorkspaceApiKeyCommandError = async (output,
|
|
|
532
528
|
switch (errorCode) {
|
|
533
529
|
case "AccessDeniedException":
|
|
534
530
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
535
|
-
throw await
|
|
531
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
536
532
|
case "ConflictException":
|
|
537
533
|
case "com.amazonaws.grafana#ConflictException":
|
|
538
|
-
throw await
|
|
534
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
539
535
|
case "InternalServerException":
|
|
540
536
|
case "com.amazonaws.grafana#InternalServerException":
|
|
541
|
-
throw await
|
|
537
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
542
538
|
case "ResourceNotFoundException":
|
|
543
539
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
544
|
-
throw await
|
|
540
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
545
541
|
case "ServiceQuotaExceededException":
|
|
546
542
|
case "com.amazonaws.grafana#ServiceQuotaExceededException":
|
|
547
|
-
throw await
|
|
543
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
548
544
|
case "ThrottlingException":
|
|
549
545
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
550
|
-
throw await
|
|
546
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
551
547
|
case "ValidationException":
|
|
552
548
|
case "com.amazonaws.grafana#ValidationException":
|
|
553
|
-
throw await
|
|
549
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
554
550
|
default:
|
|
555
551
|
const parsedBody = parsedOutput.body;
|
|
556
552
|
throwDefaultError({
|
|
@@ -561,20 +557,20 @@ const deserializeAws_restJson1CreateWorkspaceApiKeyCommandError = async (output,
|
|
|
561
557
|
});
|
|
562
558
|
}
|
|
563
559
|
};
|
|
564
|
-
export const
|
|
560
|
+
export const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
565
561
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
566
|
-
return
|
|
562
|
+
return de_DeleteWorkspaceCommandError(output, context);
|
|
567
563
|
}
|
|
568
564
|
const contents = map({
|
|
569
565
|
$metadata: deserializeMetadata(output),
|
|
570
566
|
});
|
|
571
567
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
572
568
|
if (data.workspace != null) {
|
|
573
|
-
contents.workspace =
|
|
569
|
+
contents.workspace = de_WorkspaceDescription(data.workspace, context);
|
|
574
570
|
}
|
|
575
571
|
return contents;
|
|
576
572
|
};
|
|
577
|
-
const
|
|
573
|
+
const de_DeleteWorkspaceCommandError = async (output, context) => {
|
|
578
574
|
const parsedOutput = {
|
|
579
575
|
...output,
|
|
580
576
|
body: await parseErrorBody(output.body, context),
|
|
@@ -583,22 +579,22 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
583
579
|
switch (errorCode) {
|
|
584
580
|
case "AccessDeniedException":
|
|
585
581
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
586
|
-
throw await
|
|
582
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
587
583
|
case "ConflictException":
|
|
588
584
|
case "com.amazonaws.grafana#ConflictException":
|
|
589
|
-
throw await
|
|
585
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
590
586
|
case "InternalServerException":
|
|
591
587
|
case "com.amazonaws.grafana#InternalServerException":
|
|
592
|
-
throw await
|
|
588
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
593
589
|
case "ResourceNotFoundException":
|
|
594
590
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
595
|
-
throw await
|
|
591
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
596
592
|
case "ThrottlingException":
|
|
597
593
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
598
|
-
throw await
|
|
594
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
599
595
|
case "ValidationException":
|
|
600
596
|
case "com.amazonaws.grafana#ValidationException":
|
|
601
|
-
throw await
|
|
597
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
602
598
|
default:
|
|
603
599
|
const parsedBody = parsedOutput.body;
|
|
604
600
|
throwDefaultError({
|
|
@@ -609,9 +605,9 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
609
605
|
});
|
|
610
606
|
}
|
|
611
607
|
};
|
|
612
|
-
export const
|
|
608
|
+
export const de_DeleteWorkspaceApiKeyCommand = async (output, context) => {
|
|
613
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
-
return
|
|
610
|
+
return de_DeleteWorkspaceApiKeyCommandError(output, context);
|
|
615
611
|
}
|
|
616
612
|
const contents = map({
|
|
617
613
|
$metadata: deserializeMetadata(output),
|
|
@@ -625,7 +621,7 @@ export const deserializeAws_restJson1DeleteWorkspaceApiKeyCommand = async (outpu
|
|
|
625
621
|
}
|
|
626
622
|
return contents;
|
|
627
623
|
};
|
|
628
|
-
const
|
|
624
|
+
const de_DeleteWorkspaceApiKeyCommandError = async (output, context) => {
|
|
629
625
|
const parsedOutput = {
|
|
630
626
|
...output,
|
|
631
627
|
body: await parseErrorBody(output.body, context),
|
|
@@ -634,22 +630,22 @@ const deserializeAws_restJson1DeleteWorkspaceApiKeyCommandError = async (output,
|
|
|
634
630
|
switch (errorCode) {
|
|
635
631
|
case "AccessDeniedException":
|
|
636
632
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
637
|
-
throw await
|
|
633
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
638
634
|
case "ConflictException":
|
|
639
635
|
case "com.amazonaws.grafana#ConflictException":
|
|
640
|
-
throw await
|
|
636
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
641
637
|
case "InternalServerException":
|
|
642
638
|
case "com.amazonaws.grafana#InternalServerException":
|
|
643
|
-
throw await
|
|
639
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
644
640
|
case "ResourceNotFoundException":
|
|
645
641
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
646
|
-
throw await
|
|
642
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
647
643
|
case "ThrottlingException":
|
|
648
644
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
649
|
-
throw await
|
|
645
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
650
646
|
case "ValidationException":
|
|
651
647
|
case "com.amazonaws.grafana#ValidationException":
|
|
652
|
-
throw await
|
|
648
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
653
649
|
default:
|
|
654
650
|
const parsedBody = parsedOutput.body;
|
|
655
651
|
throwDefaultError({
|
|
@@ -660,20 +656,20 @@ const deserializeAws_restJson1DeleteWorkspaceApiKeyCommandError = async (output,
|
|
|
660
656
|
});
|
|
661
657
|
}
|
|
662
658
|
};
|
|
663
|
-
export const
|
|
659
|
+
export const de_DescribeWorkspaceCommand = async (output, context) => {
|
|
664
660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
|
-
return
|
|
661
|
+
return de_DescribeWorkspaceCommandError(output, context);
|
|
666
662
|
}
|
|
667
663
|
const contents = map({
|
|
668
664
|
$metadata: deserializeMetadata(output),
|
|
669
665
|
});
|
|
670
666
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
671
667
|
if (data.workspace != null) {
|
|
672
|
-
contents.workspace =
|
|
668
|
+
contents.workspace = de_WorkspaceDescription(data.workspace, context);
|
|
673
669
|
}
|
|
674
670
|
return contents;
|
|
675
671
|
};
|
|
676
|
-
const
|
|
672
|
+
const de_DescribeWorkspaceCommandError = async (output, context) => {
|
|
677
673
|
const parsedOutput = {
|
|
678
674
|
...output,
|
|
679
675
|
body: await parseErrorBody(output.body, context),
|
|
@@ -682,19 +678,19 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
|
|
|
682
678
|
switch (errorCode) {
|
|
683
679
|
case "AccessDeniedException":
|
|
684
680
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
685
|
-
throw await
|
|
681
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
686
682
|
case "InternalServerException":
|
|
687
683
|
case "com.amazonaws.grafana#InternalServerException":
|
|
688
|
-
throw await
|
|
684
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
689
685
|
case "ResourceNotFoundException":
|
|
690
686
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
691
|
-
throw await
|
|
687
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
692
688
|
case "ThrottlingException":
|
|
693
689
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
694
|
-
throw await
|
|
690
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
695
691
|
case "ValidationException":
|
|
696
692
|
case "com.amazonaws.grafana#ValidationException":
|
|
697
|
-
throw await
|
|
693
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
698
694
|
default:
|
|
699
695
|
const parsedBody = parsedOutput.body;
|
|
700
696
|
throwDefaultError({
|
|
@@ -705,20 +701,20 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
|
|
|
705
701
|
});
|
|
706
702
|
}
|
|
707
703
|
};
|
|
708
|
-
export const
|
|
704
|
+
export const de_DescribeWorkspaceAuthenticationCommand = async (output, context) => {
|
|
709
705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
|
-
return
|
|
706
|
+
return de_DescribeWorkspaceAuthenticationCommandError(output, context);
|
|
711
707
|
}
|
|
712
708
|
const contents = map({
|
|
713
709
|
$metadata: deserializeMetadata(output),
|
|
714
710
|
});
|
|
715
711
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
716
712
|
if (data.authentication != null) {
|
|
717
|
-
contents.authentication =
|
|
713
|
+
contents.authentication = de_AuthenticationDescription(data.authentication, context);
|
|
718
714
|
}
|
|
719
715
|
return contents;
|
|
720
716
|
};
|
|
721
|
-
const
|
|
717
|
+
const de_DescribeWorkspaceAuthenticationCommandError = async (output, context) => {
|
|
722
718
|
const parsedOutput = {
|
|
723
719
|
...output,
|
|
724
720
|
body: await parseErrorBody(output.body, context),
|
|
@@ -727,19 +723,19 @@ const deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = asyn
|
|
|
727
723
|
switch (errorCode) {
|
|
728
724
|
case "AccessDeniedException":
|
|
729
725
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
730
|
-
throw await
|
|
726
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
731
727
|
case "InternalServerException":
|
|
732
728
|
case "com.amazonaws.grafana#InternalServerException":
|
|
733
|
-
throw await
|
|
729
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
734
730
|
case "ResourceNotFoundException":
|
|
735
731
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
736
|
-
throw await
|
|
732
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
737
733
|
case "ThrottlingException":
|
|
738
734
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
739
|
-
throw await
|
|
735
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
740
736
|
case "ValidationException":
|
|
741
737
|
case "com.amazonaws.grafana#ValidationException":
|
|
742
|
-
throw await
|
|
738
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
739
|
default:
|
|
744
740
|
const parsedBody = parsedOutput.body;
|
|
745
741
|
throwDefaultError({
|
|
@@ -750,9 +746,9 @@ const deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = asyn
|
|
|
750
746
|
});
|
|
751
747
|
}
|
|
752
748
|
};
|
|
753
|
-
export const
|
|
749
|
+
export const de_DescribeWorkspaceConfigurationCommand = async (output, context) => {
|
|
754
750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
751
|
+
return de_DescribeWorkspaceConfigurationCommandError(output, context);
|
|
756
752
|
}
|
|
757
753
|
const contents = map({
|
|
758
754
|
$metadata: deserializeMetadata(output),
|
|
@@ -763,7 +759,7 @@ export const deserializeAws_restJson1DescribeWorkspaceConfigurationCommand = asy
|
|
|
763
759
|
}
|
|
764
760
|
return contents;
|
|
765
761
|
};
|
|
766
|
-
const
|
|
762
|
+
const de_DescribeWorkspaceConfigurationCommandError = async (output, context) => {
|
|
767
763
|
const parsedOutput = {
|
|
768
764
|
...output,
|
|
769
765
|
body: await parseErrorBody(output.body, context),
|
|
@@ -772,16 +768,16 @@ const deserializeAws_restJson1DescribeWorkspaceConfigurationCommandError = async
|
|
|
772
768
|
switch (errorCode) {
|
|
773
769
|
case "AccessDeniedException":
|
|
774
770
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
775
|
-
throw await
|
|
771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
776
772
|
case "InternalServerException":
|
|
777
773
|
case "com.amazonaws.grafana#InternalServerException":
|
|
778
|
-
throw await
|
|
774
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
775
|
case "ResourceNotFoundException":
|
|
780
776
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
781
|
-
throw await
|
|
777
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
778
|
case "ThrottlingException":
|
|
783
779
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
784
|
-
throw await
|
|
780
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
785
781
|
default:
|
|
786
782
|
const parsedBody = parsedOutput.body;
|
|
787
783
|
throwDefaultError({
|
|
@@ -792,20 +788,20 @@ const deserializeAws_restJson1DescribeWorkspaceConfigurationCommandError = async
|
|
|
792
788
|
});
|
|
793
789
|
}
|
|
794
790
|
};
|
|
795
|
-
export const
|
|
791
|
+
export const de_DisassociateLicenseCommand = async (output, context) => {
|
|
796
792
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
797
|
-
return
|
|
793
|
+
return de_DisassociateLicenseCommandError(output, context);
|
|
798
794
|
}
|
|
799
795
|
const contents = map({
|
|
800
796
|
$metadata: deserializeMetadata(output),
|
|
801
797
|
});
|
|
802
798
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
803
799
|
if (data.workspace != null) {
|
|
804
|
-
contents.workspace =
|
|
800
|
+
contents.workspace = de_WorkspaceDescription(data.workspace, context);
|
|
805
801
|
}
|
|
806
802
|
return contents;
|
|
807
803
|
};
|
|
808
|
-
const
|
|
804
|
+
const de_DisassociateLicenseCommandError = async (output, context) => {
|
|
809
805
|
const parsedOutput = {
|
|
810
806
|
...output,
|
|
811
807
|
body: await parseErrorBody(output.body, context),
|
|
@@ -814,19 +810,19 @@ const deserializeAws_restJson1DisassociateLicenseCommandError = async (output, c
|
|
|
814
810
|
switch (errorCode) {
|
|
815
811
|
case "AccessDeniedException":
|
|
816
812
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
817
|
-
throw await
|
|
813
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
818
814
|
case "InternalServerException":
|
|
819
815
|
case "com.amazonaws.grafana#InternalServerException":
|
|
820
|
-
throw await
|
|
816
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
821
817
|
case "ResourceNotFoundException":
|
|
822
818
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
823
|
-
throw await
|
|
819
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
824
820
|
case "ThrottlingException":
|
|
825
821
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
826
|
-
throw await
|
|
822
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
827
823
|
case "ValidationException":
|
|
828
824
|
case "com.amazonaws.grafana#ValidationException":
|
|
829
|
-
throw await
|
|
825
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
826
|
default:
|
|
831
827
|
const parsedBody = parsedOutput.body;
|
|
832
828
|
throwDefaultError({
|
|
@@ -837,9 +833,9 @@ const deserializeAws_restJson1DisassociateLicenseCommandError = async (output, c
|
|
|
837
833
|
});
|
|
838
834
|
}
|
|
839
835
|
};
|
|
840
|
-
export const
|
|
836
|
+
export const de_ListPermissionsCommand = async (output, context) => {
|
|
841
837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return
|
|
838
|
+
return de_ListPermissionsCommandError(output, context);
|
|
843
839
|
}
|
|
844
840
|
const contents = map({
|
|
845
841
|
$metadata: deserializeMetadata(output),
|
|
@@ -849,11 +845,11 @@ export const deserializeAws_restJson1ListPermissionsCommand = async (output, con
|
|
|
849
845
|
contents.nextToken = __expectString(data.nextToken);
|
|
850
846
|
}
|
|
851
847
|
if (data.permissions != null) {
|
|
852
|
-
contents.permissions =
|
|
848
|
+
contents.permissions = de_PermissionEntryList(data.permissions, context);
|
|
853
849
|
}
|
|
854
850
|
return contents;
|
|
855
851
|
};
|
|
856
|
-
const
|
|
852
|
+
const de_ListPermissionsCommandError = async (output, context) => {
|
|
857
853
|
const parsedOutput = {
|
|
858
854
|
...output,
|
|
859
855
|
body: await parseErrorBody(output.body, context),
|
|
@@ -862,19 +858,19 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
|
|
|
862
858
|
switch (errorCode) {
|
|
863
859
|
case "AccessDeniedException":
|
|
864
860
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
865
|
-
throw await
|
|
861
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
866
862
|
case "InternalServerException":
|
|
867
863
|
case "com.amazonaws.grafana#InternalServerException":
|
|
868
|
-
throw await
|
|
864
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
869
865
|
case "ResourceNotFoundException":
|
|
870
866
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
871
|
-
throw await
|
|
867
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
872
868
|
case "ThrottlingException":
|
|
873
869
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
874
|
-
throw await
|
|
870
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
875
871
|
case "ValidationException":
|
|
876
872
|
case "com.amazonaws.grafana#ValidationException":
|
|
877
|
-
throw await
|
|
873
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
878
874
|
default:
|
|
879
875
|
const parsedBody = parsedOutput.body;
|
|
880
876
|
throwDefaultError({
|
|
@@ -885,20 +881,20 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
|
|
|
885
881
|
});
|
|
886
882
|
}
|
|
887
883
|
};
|
|
888
|
-
export const
|
|
884
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
889
885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return
|
|
886
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
891
887
|
}
|
|
892
888
|
const contents = map({
|
|
893
889
|
$metadata: deserializeMetadata(output),
|
|
894
890
|
});
|
|
895
891
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
896
892
|
if (data.tags != null) {
|
|
897
|
-
contents.tags =
|
|
893
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
898
894
|
}
|
|
899
895
|
return contents;
|
|
900
896
|
};
|
|
901
|
-
const
|
|
897
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
902
898
|
const parsedOutput = {
|
|
903
899
|
...output,
|
|
904
900
|
body: await parseErrorBody(output.body, context),
|
|
@@ -907,19 +903,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
907
903
|
switch (errorCode) {
|
|
908
904
|
case "AccessDeniedException":
|
|
909
905
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
910
|
-
throw await
|
|
906
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
911
907
|
case "InternalServerException":
|
|
912
908
|
case "com.amazonaws.grafana#InternalServerException":
|
|
913
|
-
throw await
|
|
909
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
914
910
|
case "ResourceNotFoundException":
|
|
915
911
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
916
|
-
throw await
|
|
912
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
917
913
|
case "ThrottlingException":
|
|
918
914
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
919
|
-
throw await
|
|
915
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
920
916
|
case "ValidationException":
|
|
921
917
|
case "com.amazonaws.grafana#ValidationException":
|
|
922
|
-
throw await
|
|
918
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
923
919
|
default:
|
|
924
920
|
const parsedBody = parsedOutput.body;
|
|
925
921
|
throwDefaultError({
|
|
@@ -930,9 +926,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
930
926
|
});
|
|
931
927
|
}
|
|
932
928
|
};
|
|
933
|
-
export const
|
|
929
|
+
export const de_ListWorkspacesCommand = async (output, context) => {
|
|
934
930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
|
-
return
|
|
931
|
+
return de_ListWorkspacesCommandError(output, context);
|
|
936
932
|
}
|
|
937
933
|
const contents = map({
|
|
938
934
|
$metadata: deserializeMetadata(output),
|
|
@@ -942,11 +938,11 @@ export const deserializeAws_restJson1ListWorkspacesCommand = async (output, cont
|
|
|
942
938
|
contents.nextToken = __expectString(data.nextToken);
|
|
943
939
|
}
|
|
944
940
|
if (data.workspaces != null) {
|
|
945
|
-
contents.workspaces =
|
|
941
|
+
contents.workspaces = de_WorkspaceList(data.workspaces, context);
|
|
946
942
|
}
|
|
947
943
|
return contents;
|
|
948
944
|
};
|
|
949
|
-
const
|
|
945
|
+
const de_ListWorkspacesCommandError = async (output, context) => {
|
|
950
946
|
const parsedOutput = {
|
|
951
947
|
...output,
|
|
952
948
|
body: await parseErrorBody(output.body, context),
|
|
@@ -955,13 +951,13 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
955
951
|
switch (errorCode) {
|
|
956
952
|
case "AccessDeniedException":
|
|
957
953
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
958
|
-
throw await
|
|
954
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
959
955
|
case "InternalServerException":
|
|
960
956
|
case "com.amazonaws.grafana#InternalServerException":
|
|
961
|
-
throw await
|
|
957
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
962
958
|
case "ThrottlingException":
|
|
963
959
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
964
|
-
throw await
|
|
960
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
965
961
|
default:
|
|
966
962
|
const parsedBody = parsedOutput.body;
|
|
967
963
|
throwDefaultError({
|
|
@@ -972,9 +968,9 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
972
968
|
});
|
|
973
969
|
}
|
|
974
970
|
};
|
|
975
|
-
export const
|
|
971
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
976
972
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
-
return
|
|
973
|
+
return de_TagResourceCommandError(output, context);
|
|
978
974
|
}
|
|
979
975
|
const contents = map({
|
|
980
976
|
$metadata: deserializeMetadata(output),
|
|
@@ -982,7 +978,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
982
978
|
await collectBody(output.body, context);
|
|
983
979
|
return contents;
|
|
984
980
|
};
|
|
985
|
-
const
|
|
981
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
986
982
|
const parsedOutput = {
|
|
987
983
|
...output,
|
|
988
984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -991,19 +987,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
991
987
|
switch (errorCode) {
|
|
992
988
|
case "AccessDeniedException":
|
|
993
989
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
994
|
-
throw await
|
|
990
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
995
991
|
case "InternalServerException":
|
|
996
992
|
case "com.amazonaws.grafana#InternalServerException":
|
|
997
|
-
throw await
|
|
993
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
998
994
|
case "ResourceNotFoundException":
|
|
999
995
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1000
|
-
throw await
|
|
996
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
997
|
case "ThrottlingException":
|
|
1002
998
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
1003
|
-
throw await
|
|
999
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1004
1000
|
case "ValidationException":
|
|
1005
1001
|
case "com.amazonaws.grafana#ValidationException":
|
|
1006
|
-
throw await
|
|
1002
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
1003
|
default:
|
|
1008
1004
|
const parsedBody = parsedOutput.body;
|
|
1009
1005
|
throwDefaultError({
|
|
@@ -1014,9 +1010,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1014
1010
|
});
|
|
1015
1011
|
}
|
|
1016
1012
|
};
|
|
1017
|
-
export const
|
|
1013
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1018
1014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
1015
|
+
return de_UntagResourceCommandError(output, context);
|
|
1020
1016
|
}
|
|
1021
1017
|
const contents = map({
|
|
1022
1018
|
$metadata: deserializeMetadata(output),
|
|
@@ -1024,7 +1020,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1024
1020
|
await collectBody(output.body, context);
|
|
1025
1021
|
return contents;
|
|
1026
1022
|
};
|
|
1027
|
-
const
|
|
1023
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1028
1024
|
const parsedOutput = {
|
|
1029
1025
|
...output,
|
|
1030
1026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1033,19 +1029,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1033
1029
|
switch (errorCode) {
|
|
1034
1030
|
case "AccessDeniedException":
|
|
1035
1031
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1036
|
-
throw await
|
|
1032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1037
1033
|
case "InternalServerException":
|
|
1038
1034
|
case "com.amazonaws.grafana#InternalServerException":
|
|
1039
|
-
throw await
|
|
1035
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1040
1036
|
case "ResourceNotFoundException":
|
|
1041
1037
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1042
|
-
throw await
|
|
1038
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1043
1039
|
case "ThrottlingException":
|
|
1044
1040
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
1045
|
-
throw await
|
|
1041
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1046
1042
|
case "ValidationException":
|
|
1047
1043
|
case "com.amazonaws.grafana#ValidationException":
|
|
1048
|
-
throw await
|
|
1044
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1049
1045
|
default:
|
|
1050
1046
|
const parsedBody = parsedOutput.body;
|
|
1051
1047
|
throwDefaultError({
|
|
@@ -1056,20 +1052,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1056
1052
|
});
|
|
1057
1053
|
}
|
|
1058
1054
|
};
|
|
1059
|
-
export const
|
|
1055
|
+
export const de_UpdatePermissionsCommand = async (output, context) => {
|
|
1060
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return
|
|
1057
|
+
return de_UpdatePermissionsCommandError(output, context);
|
|
1062
1058
|
}
|
|
1063
1059
|
const contents = map({
|
|
1064
1060
|
$metadata: deserializeMetadata(output),
|
|
1065
1061
|
});
|
|
1066
1062
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1067
1063
|
if (data.errors != null) {
|
|
1068
|
-
contents.errors =
|
|
1064
|
+
contents.errors = de_UpdateErrorList(data.errors, context);
|
|
1069
1065
|
}
|
|
1070
1066
|
return contents;
|
|
1071
1067
|
};
|
|
1072
|
-
const
|
|
1068
|
+
const de_UpdatePermissionsCommandError = async (output, context) => {
|
|
1073
1069
|
const parsedOutput = {
|
|
1074
1070
|
...output,
|
|
1075
1071
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1078,19 +1074,19 @@ const deserializeAws_restJson1UpdatePermissionsCommandError = async (output, con
|
|
|
1078
1074
|
switch (errorCode) {
|
|
1079
1075
|
case "AccessDeniedException":
|
|
1080
1076
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1081
|
-
throw await
|
|
1077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1082
1078
|
case "InternalServerException":
|
|
1083
1079
|
case "com.amazonaws.grafana#InternalServerException":
|
|
1084
|
-
throw await
|
|
1080
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1085
1081
|
case "ResourceNotFoundException":
|
|
1086
1082
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1087
|
-
throw await
|
|
1083
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1088
1084
|
case "ThrottlingException":
|
|
1089
1085
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
1090
|
-
throw await
|
|
1086
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1091
1087
|
case "ValidationException":
|
|
1092
1088
|
case "com.amazonaws.grafana#ValidationException":
|
|
1093
|
-
throw await
|
|
1089
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1094
1090
|
default:
|
|
1095
1091
|
const parsedBody = parsedOutput.body;
|
|
1096
1092
|
throwDefaultError({
|
|
@@ -1101,20 +1097,20 @@ const deserializeAws_restJson1UpdatePermissionsCommandError = async (output, con
|
|
|
1101
1097
|
});
|
|
1102
1098
|
}
|
|
1103
1099
|
};
|
|
1104
|
-
export const
|
|
1100
|
+
export const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
1105
1101
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1106
|
-
return
|
|
1102
|
+
return de_UpdateWorkspaceCommandError(output, context);
|
|
1107
1103
|
}
|
|
1108
1104
|
const contents = map({
|
|
1109
1105
|
$metadata: deserializeMetadata(output),
|
|
1110
1106
|
});
|
|
1111
1107
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1112
1108
|
if (data.workspace != null) {
|
|
1113
|
-
contents.workspace =
|
|
1109
|
+
contents.workspace = de_WorkspaceDescription(data.workspace, context);
|
|
1114
1110
|
}
|
|
1115
1111
|
return contents;
|
|
1116
1112
|
};
|
|
1117
|
-
const
|
|
1113
|
+
const de_UpdateWorkspaceCommandError = async (output, context) => {
|
|
1118
1114
|
const parsedOutput = {
|
|
1119
1115
|
...output,
|
|
1120
1116
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1123,22 +1119,22 @@ const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, conte
|
|
|
1123
1119
|
switch (errorCode) {
|
|
1124
1120
|
case "AccessDeniedException":
|
|
1125
1121
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1126
|
-
throw await
|
|
1122
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1127
1123
|
case "ConflictException":
|
|
1128
1124
|
case "com.amazonaws.grafana#ConflictException":
|
|
1129
|
-
throw await
|
|
1125
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1130
1126
|
case "InternalServerException":
|
|
1131
1127
|
case "com.amazonaws.grafana#InternalServerException":
|
|
1132
|
-
throw await
|
|
1128
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1133
1129
|
case "ResourceNotFoundException":
|
|
1134
1130
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1135
|
-
throw await
|
|
1131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1136
1132
|
case "ThrottlingException":
|
|
1137
1133
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
1138
|
-
throw await
|
|
1134
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1139
1135
|
case "ValidationException":
|
|
1140
1136
|
case "com.amazonaws.grafana#ValidationException":
|
|
1141
|
-
throw await
|
|
1137
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1142
1138
|
default:
|
|
1143
1139
|
const parsedBody = parsedOutput.body;
|
|
1144
1140
|
throwDefaultError({
|
|
@@ -1149,20 +1145,20 @@ const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, conte
|
|
|
1149
1145
|
});
|
|
1150
1146
|
}
|
|
1151
1147
|
};
|
|
1152
|
-
export const
|
|
1148
|
+
export const de_UpdateWorkspaceAuthenticationCommand = async (output, context) => {
|
|
1153
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
1150
|
+
return de_UpdateWorkspaceAuthenticationCommandError(output, context);
|
|
1155
1151
|
}
|
|
1156
1152
|
const contents = map({
|
|
1157
1153
|
$metadata: deserializeMetadata(output),
|
|
1158
1154
|
});
|
|
1159
1155
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1160
1156
|
if (data.authentication != null) {
|
|
1161
|
-
contents.authentication =
|
|
1157
|
+
contents.authentication = de_AuthenticationDescription(data.authentication, context);
|
|
1162
1158
|
}
|
|
1163
1159
|
return contents;
|
|
1164
1160
|
};
|
|
1165
|
-
const
|
|
1161
|
+
const de_UpdateWorkspaceAuthenticationCommandError = async (output, context) => {
|
|
1166
1162
|
const parsedOutput = {
|
|
1167
1163
|
...output,
|
|
1168
1164
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1171,22 +1167,22 @@ const deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = async
|
|
|
1171
1167
|
switch (errorCode) {
|
|
1172
1168
|
case "AccessDeniedException":
|
|
1173
1169
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1174
|
-
throw await
|
|
1170
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1175
1171
|
case "ConflictException":
|
|
1176
1172
|
case "com.amazonaws.grafana#ConflictException":
|
|
1177
|
-
throw await
|
|
1173
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
1174
|
case "InternalServerException":
|
|
1179
1175
|
case "com.amazonaws.grafana#InternalServerException":
|
|
1180
|
-
throw await
|
|
1176
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1181
1177
|
case "ResourceNotFoundException":
|
|
1182
1178
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1183
|
-
throw await
|
|
1179
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1184
1180
|
case "ThrottlingException":
|
|
1185
1181
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
1186
|
-
throw await
|
|
1182
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1187
1183
|
case "ValidationException":
|
|
1188
1184
|
case "com.amazonaws.grafana#ValidationException":
|
|
1189
|
-
throw await
|
|
1185
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1190
1186
|
default:
|
|
1191
1187
|
const parsedBody = parsedOutput.body;
|
|
1192
1188
|
throwDefaultError({
|
|
@@ -1197,9 +1193,9 @@ const deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = async
|
|
|
1197
1193
|
});
|
|
1198
1194
|
}
|
|
1199
1195
|
};
|
|
1200
|
-
export const
|
|
1196
|
+
export const de_UpdateWorkspaceConfigurationCommand = async (output, context) => {
|
|
1201
1197
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
1198
|
+
return de_UpdateWorkspaceConfigurationCommandError(output, context);
|
|
1203
1199
|
}
|
|
1204
1200
|
const contents = map({
|
|
1205
1201
|
$metadata: deserializeMetadata(output),
|
|
@@ -1207,7 +1203,7 @@ export const deserializeAws_restJson1UpdateWorkspaceConfigurationCommand = async
|
|
|
1207
1203
|
await collectBody(output.body, context);
|
|
1208
1204
|
return contents;
|
|
1209
1205
|
};
|
|
1210
|
-
const
|
|
1206
|
+
const de_UpdateWorkspaceConfigurationCommandError = async (output, context) => {
|
|
1211
1207
|
const parsedOutput = {
|
|
1212
1208
|
...output,
|
|
1213
1209
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1216,22 +1212,22 @@ const deserializeAws_restJson1UpdateWorkspaceConfigurationCommandError = async (
|
|
|
1216
1212
|
switch (errorCode) {
|
|
1217
1213
|
case "AccessDeniedException":
|
|
1218
1214
|
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1219
|
-
throw await
|
|
1215
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1220
1216
|
case "ConflictException":
|
|
1221
1217
|
case "com.amazonaws.grafana#ConflictException":
|
|
1222
|
-
throw await
|
|
1218
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1223
1219
|
case "InternalServerException":
|
|
1224
1220
|
case "com.amazonaws.grafana#InternalServerException":
|
|
1225
|
-
throw await
|
|
1221
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1226
1222
|
case "ResourceNotFoundException":
|
|
1227
1223
|
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1228
|
-
throw await
|
|
1224
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1229
1225
|
case "ThrottlingException":
|
|
1230
1226
|
case "com.amazonaws.grafana#ThrottlingException":
|
|
1231
|
-
throw await
|
|
1227
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1232
1228
|
case "ValidationException":
|
|
1233
1229
|
case "com.amazonaws.grafana#ValidationException":
|
|
1234
|
-
throw await
|
|
1230
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1235
1231
|
default:
|
|
1236
1232
|
const parsedBody = parsedOutput.body;
|
|
1237
1233
|
throwDefaultError({
|
|
@@ -1243,7 +1239,7 @@ const deserializeAws_restJson1UpdateWorkspaceConfigurationCommandError = async (
|
|
|
1243
1239
|
}
|
|
1244
1240
|
};
|
|
1245
1241
|
const map = __map;
|
|
1246
|
-
const
|
|
1242
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1247
1243
|
const contents = map({});
|
|
1248
1244
|
const data = parsedOutput.body;
|
|
1249
1245
|
if (data.message != null) {
|
|
@@ -1255,7 +1251,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1255
1251
|
});
|
|
1256
1252
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1257
1253
|
};
|
|
1258
|
-
const
|
|
1254
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1259
1255
|
const contents = map({});
|
|
1260
1256
|
const data = parsedOutput.body;
|
|
1261
1257
|
if (data.message != null) {
|
|
@@ -1273,7 +1269,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1273
1269
|
});
|
|
1274
1270
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1275
1271
|
};
|
|
1276
|
-
const
|
|
1272
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1277
1273
|
const contents = map({
|
|
1278
1274
|
retryAfterSeconds: [
|
|
1279
1275
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -1290,7 +1286,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1290
1286
|
});
|
|
1291
1287
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1292
1288
|
};
|
|
1293
|
-
const
|
|
1289
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1294
1290
|
const contents = map({});
|
|
1295
1291
|
const data = parsedOutput.body;
|
|
1296
1292
|
if (data.message != null) {
|
|
@@ -1308,7 +1304,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1308
1304
|
});
|
|
1309
1305
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1310
1306
|
};
|
|
1311
|
-
const
|
|
1307
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1312
1308
|
const contents = map({});
|
|
1313
1309
|
const data = parsedOutput.body;
|
|
1314
1310
|
if (data.message != null) {
|
|
@@ -1332,7 +1328,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1332
1328
|
});
|
|
1333
1329
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1334
1330
|
};
|
|
1335
|
-
const
|
|
1331
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1336
1332
|
const contents = map({
|
|
1337
1333
|
retryAfterSeconds: [
|
|
1338
1334
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -1355,11 +1351,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1355
1351
|
});
|
|
1356
1352
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1357
1353
|
};
|
|
1358
|
-
const
|
|
1354
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1359
1355
|
const contents = map({});
|
|
1360
1356
|
const data = parsedOutput.body;
|
|
1361
1357
|
if (data.fieldList != null) {
|
|
1362
|
-
contents.fieldList =
|
|
1358
|
+
contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
|
|
1363
1359
|
}
|
|
1364
1360
|
if (data.message != null) {
|
|
1365
1361
|
contents.message = __expectString(data.message);
|
|
@@ -1373,14 +1369,14 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1373
1369
|
});
|
|
1374
1370
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1375
1371
|
};
|
|
1376
|
-
const
|
|
1372
|
+
const se_AllowedOrganizations = (input, context) => {
|
|
1377
1373
|
return input
|
|
1378
1374
|
.filter((e) => e != null)
|
|
1379
1375
|
.map((entry) => {
|
|
1380
1376
|
return entry;
|
|
1381
1377
|
});
|
|
1382
1378
|
};
|
|
1383
|
-
const
|
|
1379
|
+
const se_AssertionAttributes = (input, context) => {
|
|
1384
1380
|
return {
|
|
1385
1381
|
...(input.email != null && { email: input.email }),
|
|
1386
1382
|
...(input.groups != null && { groups: input.groups }),
|
|
@@ -1390,97 +1386,95 @@ const serializeAws_restJson1AssertionAttributes = (input, context) => {
|
|
|
1390
1386
|
...(input.role != null && { role: input.role }),
|
|
1391
1387
|
};
|
|
1392
1388
|
};
|
|
1393
|
-
const
|
|
1389
|
+
const se_AuthenticationProviders = (input, context) => {
|
|
1394
1390
|
return input
|
|
1395
1391
|
.filter((e) => e != null)
|
|
1396
1392
|
.map((entry) => {
|
|
1397
1393
|
return entry;
|
|
1398
1394
|
});
|
|
1399
1395
|
};
|
|
1400
|
-
const
|
|
1396
|
+
const se_DataSourceTypesList = (input, context) => {
|
|
1401
1397
|
return input
|
|
1402
1398
|
.filter((e) => e != null)
|
|
1403
1399
|
.map((entry) => {
|
|
1404
1400
|
return entry;
|
|
1405
1401
|
});
|
|
1406
1402
|
};
|
|
1407
|
-
const
|
|
1403
|
+
const se_IdpMetadata = (input, context) => {
|
|
1408
1404
|
return IdpMetadata.visit(input, {
|
|
1409
1405
|
url: (value) => ({ url: value }),
|
|
1410
1406
|
xml: (value) => ({ xml: value }),
|
|
1411
1407
|
_: (name, value) => ({ name: value }),
|
|
1412
1408
|
});
|
|
1413
1409
|
};
|
|
1414
|
-
const
|
|
1410
|
+
const se_NetworkAccessConfiguration = (input, context) => {
|
|
1415
1411
|
return {
|
|
1416
|
-
...(input.prefixListIds != null && {
|
|
1417
|
-
|
|
1418
|
-
}),
|
|
1419
|
-
...(input.vpceIds != null && { vpceIds: serializeAws_restJson1VpceIds(input.vpceIds, context) }),
|
|
1412
|
+
...(input.prefixListIds != null && { prefixListIds: se_PrefixListIds(input.prefixListIds, context) }),
|
|
1413
|
+
...(input.vpceIds != null && { vpceIds: se_VpceIds(input.vpceIds, context) }),
|
|
1420
1414
|
};
|
|
1421
1415
|
};
|
|
1422
|
-
const
|
|
1416
|
+
const se_NotificationDestinationsList = (input, context) => {
|
|
1423
1417
|
return input
|
|
1424
1418
|
.filter((e) => e != null)
|
|
1425
1419
|
.map((entry) => {
|
|
1426
1420
|
return entry;
|
|
1427
1421
|
});
|
|
1428
1422
|
};
|
|
1429
|
-
const
|
|
1423
|
+
const se_OrganizationalUnitList = (input, context) => {
|
|
1430
1424
|
return input
|
|
1431
1425
|
.filter((e) => e != null)
|
|
1432
1426
|
.map((entry) => {
|
|
1433
1427
|
return entry;
|
|
1434
1428
|
});
|
|
1435
1429
|
};
|
|
1436
|
-
const
|
|
1430
|
+
const se_PrefixListIds = (input, context) => {
|
|
1437
1431
|
return input
|
|
1438
1432
|
.filter((e) => e != null)
|
|
1439
1433
|
.map((entry) => {
|
|
1440
1434
|
return entry;
|
|
1441
1435
|
});
|
|
1442
1436
|
};
|
|
1443
|
-
const
|
|
1437
|
+
const se_RoleValueList = (input, context) => {
|
|
1444
1438
|
return input
|
|
1445
1439
|
.filter((e) => e != null)
|
|
1446
1440
|
.map((entry) => {
|
|
1447
1441
|
return entry;
|
|
1448
1442
|
});
|
|
1449
1443
|
};
|
|
1450
|
-
const
|
|
1444
|
+
const se_RoleValues = (input, context) => {
|
|
1451
1445
|
return {
|
|
1452
|
-
...(input.admin != null && { admin:
|
|
1453
|
-
...(input.editor != null && { editor:
|
|
1446
|
+
...(input.admin != null && { admin: se_RoleValueList(input.admin, context) }),
|
|
1447
|
+
...(input.editor != null && { editor: se_RoleValueList(input.editor, context) }),
|
|
1454
1448
|
};
|
|
1455
1449
|
};
|
|
1456
|
-
const
|
|
1450
|
+
const se_SamlConfiguration = (input, context) => {
|
|
1457
1451
|
return {
|
|
1458
1452
|
...(input.allowedOrganizations != null && {
|
|
1459
|
-
allowedOrganizations:
|
|
1453
|
+
allowedOrganizations: se_AllowedOrganizations(input.allowedOrganizations, context),
|
|
1460
1454
|
}),
|
|
1461
1455
|
...(input.assertionAttributes != null && {
|
|
1462
|
-
assertionAttributes:
|
|
1456
|
+
assertionAttributes: se_AssertionAttributes(input.assertionAttributes, context),
|
|
1463
1457
|
}),
|
|
1464
|
-
...(input.idpMetadata != null && { idpMetadata:
|
|
1458
|
+
...(input.idpMetadata != null && { idpMetadata: se_IdpMetadata(input.idpMetadata, context) }),
|
|
1465
1459
|
...(input.loginValidityDuration != null && { loginValidityDuration: input.loginValidityDuration }),
|
|
1466
|
-
...(input.roleValues != null && { roleValues:
|
|
1460
|
+
...(input.roleValues != null && { roleValues: se_RoleValues(input.roleValues, context) }),
|
|
1467
1461
|
};
|
|
1468
1462
|
};
|
|
1469
|
-
const
|
|
1463
|
+
const se_SecurityGroupIds = (input, context) => {
|
|
1470
1464
|
return input
|
|
1471
1465
|
.filter((e) => e != null)
|
|
1472
1466
|
.map((entry) => {
|
|
1473
1467
|
return entry;
|
|
1474
1468
|
});
|
|
1475
1469
|
};
|
|
1476
|
-
const
|
|
1470
|
+
const se_SubnetIds = (input, context) => {
|
|
1477
1471
|
return input
|
|
1478
1472
|
.filter((e) => e != null)
|
|
1479
1473
|
.map((entry) => {
|
|
1480
1474
|
return entry;
|
|
1481
1475
|
});
|
|
1482
1476
|
};
|
|
1483
|
-
const
|
|
1477
|
+
const se_TagMap = (input, context) => {
|
|
1484
1478
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1485
1479
|
if (value === null) {
|
|
1486
1480
|
return acc;
|
|
@@ -1489,49 +1483,47 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1489
1483
|
return acc;
|
|
1490
1484
|
}, {});
|
|
1491
1485
|
};
|
|
1492
|
-
const
|
|
1486
|
+
const se_UpdateInstruction = (input, context) => {
|
|
1493
1487
|
return {
|
|
1494
1488
|
...(input.action != null && { action: input.action }),
|
|
1495
1489
|
...(input.role != null && { role: input.role }),
|
|
1496
|
-
...(input.users != null && { users:
|
|
1490
|
+
...(input.users != null && { users: se_UserList(input.users, context) }),
|
|
1497
1491
|
};
|
|
1498
1492
|
};
|
|
1499
|
-
const
|
|
1493
|
+
const se_UpdateInstructionBatch = (input, context) => {
|
|
1500
1494
|
return input
|
|
1501
1495
|
.filter((e) => e != null)
|
|
1502
1496
|
.map((entry) => {
|
|
1503
|
-
return
|
|
1497
|
+
return se_UpdateInstruction(entry, context);
|
|
1504
1498
|
});
|
|
1505
1499
|
};
|
|
1506
|
-
const
|
|
1500
|
+
const se_User = (input, context) => {
|
|
1507
1501
|
return {
|
|
1508
1502
|
...(input.id != null && { id: input.id }),
|
|
1509
1503
|
...(input.type != null && { type: input.type }),
|
|
1510
1504
|
};
|
|
1511
1505
|
};
|
|
1512
|
-
const
|
|
1506
|
+
const se_UserList = (input, context) => {
|
|
1513
1507
|
return input
|
|
1514
1508
|
.filter((e) => e != null)
|
|
1515
1509
|
.map((entry) => {
|
|
1516
|
-
return
|
|
1510
|
+
return se_User(entry, context);
|
|
1517
1511
|
});
|
|
1518
1512
|
};
|
|
1519
|
-
const
|
|
1513
|
+
const se_VpcConfiguration = (input, context) => {
|
|
1520
1514
|
return {
|
|
1521
|
-
...(input.securityGroupIds != null && {
|
|
1522
|
-
|
|
1523
|
-
}),
|
|
1524
|
-
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
|
|
1515
|
+
...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
|
|
1516
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIds(input.subnetIds, context) }),
|
|
1525
1517
|
};
|
|
1526
1518
|
};
|
|
1527
|
-
const
|
|
1519
|
+
const se_VpceIds = (input, context) => {
|
|
1528
1520
|
return input
|
|
1529
1521
|
.filter((e) => e != null)
|
|
1530
1522
|
.map((entry) => {
|
|
1531
1523
|
return entry;
|
|
1532
1524
|
});
|
|
1533
1525
|
};
|
|
1534
|
-
const
|
|
1526
|
+
const de_AllowedOrganizations = (output, context) => {
|
|
1535
1527
|
const retVal = (output || [])
|
|
1536
1528
|
.filter((e) => e != null)
|
|
1537
1529
|
.map((entry) => {
|
|
@@ -1542,7 +1534,7 @@ const deserializeAws_restJson1AllowedOrganizations = (output, context) => {
|
|
|
1542
1534
|
});
|
|
1543
1535
|
return retVal;
|
|
1544
1536
|
};
|
|
1545
|
-
const
|
|
1537
|
+
const de_AssertionAttributes = (output, context) => {
|
|
1546
1538
|
return {
|
|
1547
1539
|
email: __expectString(output.email),
|
|
1548
1540
|
groups: __expectString(output.groups),
|
|
@@ -1552,14 +1544,14 @@ const deserializeAws_restJson1AssertionAttributes = (output, context) => {
|
|
|
1552
1544
|
role: __expectString(output.role),
|
|
1553
1545
|
};
|
|
1554
1546
|
};
|
|
1555
|
-
const
|
|
1547
|
+
const de_AuthenticationDescription = (output, context) => {
|
|
1556
1548
|
return {
|
|
1557
|
-
awsSso: output.awsSso != null ?
|
|
1558
|
-
providers: output.providers != null ?
|
|
1559
|
-
saml: output.saml != null ?
|
|
1549
|
+
awsSso: output.awsSso != null ? de_AwsSsoAuthentication(output.awsSso, context) : undefined,
|
|
1550
|
+
providers: output.providers != null ? de_AuthenticationProviders(output.providers, context) : undefined,
|
|
1551
|
+
saml: output.saml != null ? de_SamlAuthentication(output.saml, context) : undefined,
|
|
1560
1552
|
};
|
|
1561
1553
|
};
|
|
1562
|
-
const
|
|
1554
|
+
const de_AuthenticationProviders = (output, context) => {
|
|
1563
1555
|
const retVal = (output || [])
|
|
1564
1556
|
.filter((e) => e != null)
|
|
1565
1557
|
.map((entry) => {
|
|
@@ -1570,18 +1562,18 @@ const deserializeAws_restJson1AuthenticationProviders = (output, context) => {
|
|
|
1570
1562
|
});
|
|
1571
1563
|
return retVal;
|
|
1572
1564
|
};
|
|
1573
|
-
const
|
|
1565
|
+
const de_AuthenticationSummary = (output, context) => {
|
|
1574
1566
|
return {
|
|
1575
|
-
providers: output.providers != null ?
|
|
1567
|
+
providers: output.providers != null ? de_AuthenticationProviders(output.providers, context) : undefined,
|
|
1576
1568
|
samlConfigurationStatus: __expectString(output.samlConfigurationStatus),
|
|
1577
1569
|
};
|
|
1578
1570
|
};
|
|
1579
|
-
const
|
|
1571
|
+
const de_AwsSsoAuthentication = (output, context) => {
|
|
1580
1572
|
return {
|
|
1581
1573
|
ssoClientId: __expectString(output.ssoClientId),
|
|
1582
1574
|
};
|
|
1583
1575
|
};
|
|
1584
|
-
const
|
|
1576
|
+
const de_DataSourceTypesList = (output, context) => {
|
|
1585
1577
|
const retVal = (output || [])
|
|
1586
1578
|
.filter((e) => e != null)
|
|
1587
1579
|
.map((entry) => {
|
|
@@ -1592,7 +1584,7 @@ const deserializeAws_restJson1DataSourceTypesList = (output, context) => {
|
|
|
1592
1584
|
});
|
|
1593
1585
|
return retVal;
|
|
1594
1586
|
};
|
|
1595
|
-
const
|
|
1587
|
+
const de_IdpMetadata = (output, context) => {
|
|
1596
1588
|
if (__expectString(output.url) !== undefined) {
|
|
1597
1589
|
return { url: __expectString(output.url) };
|
|
1598
1590
|
}
|
|
@@ -1601,13 +1593,13 @@ const deserializeAws_restJson1IdpMetadata = (output, context) => {
|
|
|
1601
1593
|
}
|
|
1602
1594
|
return { $unknown: Object.entries(output)[0] };
|
|
1603
1595
|
};
|
|
1604
|
-
const
|
|
1596
|
+
const de_NetworkAccessConfiguration = (output, context) => {
|
|
1605
1597
|
return {
|
|
1606
|
-
prefixListIds: output.prefixListIds != null ?
|
|
1607
|
-
vpceIds: output.vpceIds != null ?
|
|
1598
|
+
prefixListIds: output.prefixListIds != null ? de_PrefixListIds(output.prefixListIds, context) : undefined,
|
|
1599
|
+
vpceIds: output.vpceIds != null ? de_VpceIds(output.vpceIds, context) : undefined,
|
|
1608
1600
|
};
|
|
1609
1601
|
};
|
|
1610
|
-
const
|
|
1602
|
+
const de_NotificationDestinationsList = (output, context) => {
|
|
1611
1603
|
const retVal = (output || [])
|
|
1612
1604
|
.filter((e) => e != null)
|
|
1613
1605
|
.map((entry) => {
|
|
@@ -1618,7 +1610,7 @@ const deserializeAws_restJson1NotificationDestinationsList = (output, context) =
|
|
|
1618
1610
|
});
|
|
1619
1611
|
return retVal;
|
|
1620
1612
|
};
|
|
1621
|
-
const
|
|
1613
|
+
const de_OrganizationalUnitList = (output, context) => {
|
|
1622
1614
|
const retVal = (output || [])
|
|
1623
1615
|
.filter((e) => e != null)
|
|
1624
1616
|
.map((entry) => {
|
|
@@ -1629,24 +1621,24 @@ const deserializeAws_restJson1OrganizationalUnitList = (output, context) => {
|
|
|
1629
1621
|
});
|
|
1630
1622
|
return retVal;
|
|
1631
1623
|
};
|
|
1632
|
-
const
|
|
1624
|
+
const de_PermissionEntry = (output, context) => {
|
|
1633
1625
|
return {
|
|
1634
1626
|
role: __expectString(output.role),
|
|
1635
|
-
user: output.user != null ?
|
|
1627
|
+
user: output.user != null ? de_User(output.user, context) : undefined,
|
|
1636
1628
|
};
|
|
1637
1629
|
};
|
|
1638
|
-
const
|
|
1630
|
+
const de_PermissionEntryList = (output, context) => {
|
|
1639
1631
|
const retVal = (output || [])
|
|
1640
1632
|
.filter((e) => e != null)
|
|
1641
1633
|
.map((entry) => {
|
|
1642
1634
|
if (entry === null) {
|
|
1643
1635
|
return null;
|
|
1644
1636
|
}
|
|
1645
|
-
return
|
|
1637
|
+
return de_PermissionEntry(entry, context);
|
|
1646
1638
|
});
|
|
1647
1639
|
return retVal;
|
|
1648
1640
|
};
|
|
1649
|
-
const
|
|
1641
|
+
const de_PrefixListIds = (output, context) => {
|
|
1650
1642
|
const retVal = (output || [])
|
|
1651
1643
|
.filter((e) => e != null)
|
|
1652
1644
|
.map((entry) => {
|
|
@@ -1657,7 +1649,7 @@ const deserializeAws_restJson1PrefixListIds = (output, context) => {
|
|
|
1657
1649
|
});
|
|
1658
1650
|
return retVal;
|
|
1659
1651
|
};
|
|
1660
|
-
const
|
|
1652
|
+
const de_RoleValueList = (output, context) => {
|
|
1661
1653
|
const retVal = (output || [])
|
|
1662
1654
|
.filter((e) => e != null)
|
|
1663
1655
|
.map((entry) => {
|
|
@@ -1668,36 +1660,28 @@ const deserializeAws_restJson1RoleValueList = (output, context) => {
|
|
|
1668
1660
|
});
|
|
1669
1661
|
return retVal;
|
|
1670
1662
|
};
|
|
1671
|
-
const
|
|
1663
|
+
const de_RoleValues = (output, context) => {
|
|
1672
1664
|
return {
|
|
1673
|
-
admin: output.admin != null ?
|
|
1674
|
-
editor: output.editor != null ?
|
|
1665
|
+
admin: output.admin != null ? de_RoleValueList(output.admin, context) : undefined,
|
|
1666
|
+
editor: output.editor != null ? de_RoleValueList(output.editor, context) : undefined,
|
|
1675
1667
|
};
|
|
1676
1668
|
};
|
|
1677
|
-
const
|
|
1669
|
+
const de_SamlAuthentication = (output, context) => {
|
|
1678
1670
|
return {
|
|
1679
|
-
configuration: output.configuration != null
|
|
1680
|
-
? deserializeAws_restJson1SamlConfiguration(output.configuration, context)
|
|
1681
|
-
: undefined,
|
|
1671
|
+
configuration: output.configuration != null ? de_SamlConfiguration(output.configuration, context) : undefined,
|
|
1682
1672
|
status: __expectString(output.status),
|
|
1683
1673
|
};
|
|
1684
1674
|
};
|
|
1685
|
-
const
|
|
1675
|
+
const de_SamlConfiguration = (output, context) => {
|
|
1686
1676
|
return {
|
|
1687
|
-
allowedOrganizations: output.allowedOrganizations != null
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
assertionAttributes: output.assertionAttributes != null
|
|
1691
|
-
? deserializeAws_restJson1AssertionAttributes(output.assertionAttributes, context)
|
|
1692
|
-
: undefined,
|
|
1693
|
-
idpMetadata: output.idpMetadata != null
|
|
1694
|
-
? deserializeAws_restJson1IdpMetadata(__expectUnion(output.idpMetadata), context)
|
|
1695
|
-
: undefined,
|
|
1677
|
+
allowedOrganizations: output.allowedOrganizations != null ? de_AllowedOrganizations(output.allowedOrganizations, context) : undefined,
|
|
1678
|
+
assertionAttributes: output.assertionAttributes != null ? de_AssertionAttributes(output.assertionAttributes, context) : undefined,
|
|
1679
|
+
idpMetadata: output.idpMetadata != null ? de_IdpMetadata(__expectUnion(output.idpMetadata), context) : undefined,
|
|
1696
1680
|
loginValidityDuration: __expectInt32(output.loginValidityDuration),
|
|
1697
|
-
roleValues: output.roleValues != null ?
|
|
1681
|
+
roleValues: output.roleValues != null ? de_RoleValues(output.roleValues, context) : undefined,
|
|
1698
1682
|
};
|
|
1699
1683
|
};
|
|
1700
|
-
const
|
|
1684
|
+
const de_SecurityGroupIds = (output, context) => {
|
|
1701
1685
|
const retVal = (output || [])
|
|
1702
1686
|
.filter((e) => e != null)
|
|
1703
1687
|
.map((entry) => {
|
|
@@ -1708,7 +1692,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
|
1708
1692
|
});
|
|
1709
1693
|
return retVal;
|
|
1710
1694
|
};
|
|
1711
|
-
const
|
|
1695
|
+
const de_SubnetIds = (output, context) => {
|
|
1712
1696
|
const retVal = (output || [])
|
|
1713
1697
|
.filter((e) => e != null)
|
|
1714
1698
|
.map((entry) => {
|
|
@@ -1719,7 +1703,7 @@ const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
|
1719
1703
|
});
|
|
1720
1704
|
return retVal;
|
|
1721
1705
|
};
|
|
1722
|
-
const
|
|
1706
|
+
const de_TagMap = (output, context) => {
|
|
1723
1707
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1724
1708
|
if (value === null) {
|
|
1725
1709
|
return acc;
|
|
@@ -1728,74 +1712,72 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1728
1712
|
return acc;
|
|
1729
1713
|
}, {});
|
|
1730
1714
|
};
|
|
1731
|
-
const
|
|
1715
|
+
const de_UpdateError = (output, context) => {
|
|
1732
1716
|
return {
|
|
1733
|
-
causedBy: output.causedBy != null ?
|
|
1717
|
+
causedBy: output.causedBy != null ? de_UpdateInstruction(output.causedBy, context) : undefined,
|
|
1734
1718
|
code: __expectInt32(output.code),
|
|
1735
1719
|
message: __expectString(output.message),
|
|
1736
1720
|
};
|
|
1737
1721
|
};
|
|
1738
|
-
const
|
|
1722
|
+
const de_UpdateErrorList = (output, context) => {
|
|
1739
1723
|
const retVal = (output || [])
|
|
1740
1724
|
.filter((e) => e != null)
|
|
1741
1725
|
.map((entry) => {
|
|
1742
1726
|
if (entry === null) {
|
|
1743
1727
|
return null;
|
|
1744
1728
|
}
|
|
1745
|
-
return
|
|
1729
|
+
return de_UpdateError(entry, context);
|
|
1746
1730
|
});
|
|
1747
1731
|
return retVal;
|
|
1748
1732
|
};
|
|
1749
|
-
const
|
|
1733
|
+
const de_UpdateInstruction = (output, context) => {
|
|
1750
1734
|
return {
|
|
1751
1735
|
action: __expectString(output.action),
|
|
1752
1736
|
role: __expectString(output.role),
|
|
1753
|
-
users: output.users != null ?
|
|
1737
|
+
users: output.users != null ? de_UserList(output.users, context) : undefined,
|
|
1754
1738
|
};
|
|
1755
1739
|
};
|
|
1756
|
-
const
|
|
1740
|
+
const de_User = (output, context) => {
|
|
1757
1741
|
return {
|
|
1758
1742
|
id: __expectString(output.id),
|
|
1759
1743
|
type: __expectString(output.type),
|
|
1760
1744
|
};
|
|
1761
1745
|
};
|
|
1762
|
-
const
|
|
1746
|
+
const de_UserList = (output, context) => {
|
|
1763
1747
|
const retVal = (output || [])
|
|
1764
1748
|
.filter((e) => e != null)
|
|
1765
1749
|
.map((entry) => {
|
|
1766
1750
|
if (entry === null) {
|
|
1767
1751
|
return null;
|
|
1768
1752
|
}
|
|
1769
|
-
return
|
|
1753
|
+
return de_User(entry, context);
|
|
1770
1754
|
});
|
|
1771
1755
|
return retVal;
|
|
1772
1756
|
};
|
|
1773
|
-
const
|
|
1757
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
1774
1758
|
return {
|
|
1775
1759
|
message: __expectString(output.message),
|
|
1776
1760
|
name: __expectString(output.name),
|
|
1777
1761
|
};
|
|
1778
1762
|
};
|
|
1779
|
-
const
|
|
1763
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1780
1764
|
const retVal = (output || [])
|
|
1781
1765
|
.filter((e) => e != null)
|
|
1782
1766
|
.map((entry) => {
|
|
1783
1767
|
if (entry === null) {
|
|
1784
1768
|
return null;
|
|
1785
1769
|
}
|
|
1786
|
-
return
|
|
1770
|
+
return de_ValidationExceptionField(entry, context);
|
|
1787
1771
|
});
|
|
1788
1772
|
return retVal;
|
|
1789
1773
|
};
|
|
1790
|
-
const
|
|
1774
|
+
const de_VpcConfiguration = (output, context) => {
|
|
1791
1775
|
return {
|
|
1792
|
-
securityGroupIds: output.securityGroupIds != null
|
|
1793
|
-
|
|
1794
|
-
: undefined,
|
|
1795
|
-
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
|
|
1776
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
1777
|
+
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
1796
1778
|
};
|
|
1797
1779
|
};
|
|
1798
|
-
const
|
|
1780
|
+
const de_VpceIds = (output, context) => {
|
|
1799
1781
|
const retVal = (output || [])
|
|
1800
1782
|
.filter((e) => e != null)
|
|
1801
1783
|
.map((entry) => {
|
|
@@ -1806,14 +1788,12 @@ const deserializeAws_restJson1VpceIds = (output, context) => {
|
|
|
1806
1788
|
});
|
|
1807
1789
|
return retVal;
|
|
1808
1790
|
};
|
|
1809
|
-
const
|
|
1791
|
+
const de_WorkspaceDescription = (output, context) => {
|
|
1810
1792
|
return {
|
|
1811
1793
|
accountAccessType: __expectString(output.accountAccessType),
|
|
1812
|
-
authentication: output.authentication != null
|
|
1813
|
-
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
1814
|
-
: undefined,
|
|
1794
|
+
authentication: output.authentication != null ? de_AuthenticationSummary(output.authentication, context) : undefined,
|
|
1815
1795
|
created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
|
|
1816
|
-
dataSources: output.dataSources != null ?
|
|
1796
|
+
dataSources: output.dataSources != null ? de_DataSourceTypesList(output.dataSources, context) : undefined,
|
|
1817
1797
|
description: __expectString(output.description),
|
|
1818
1798
|
endpoint: __expectString(output.endpoint),
|
|
1819
1799
|
freeTrialConsumed: __expectBoolean(output.freeTrialConsumed),
|
|
@@ -1829,41 +1809,35 @@ const deserializeAws_restJson1WorkspaceDescription = (output, context) => {
|
|
|
1829
1809
|
modified: output.modified != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified))) : undefined,
|
|
1830
1810
|
name: __expectString(output.name),
|
|
1831
1811
|
networkAccessControl: output.networkAccessControl != null
|
|
1832
|
-
?
|
|
1812
|
+
? de_NetworkAccessConfiguration(output.networkAccessControl, context)
|
|
1833
1813
|
: undefined,
|
|
1834
1814
|
notificationDestinations: output.notificationDestinations != null
|
|
1835
|
-
?
|
|
1815
|
+
? de_NotificationDestinationsList(output.notificationDestinations, context)
|
|
1836
1816
|
: undefined,
|
|
1837
1817
|
organizationRoleName: __expectString(output.organizationRoleName),
|
|
1838
|
-
organizationalUnits: output.organizationalUnits != null
|
|
1839
|
-
? deserializeAws_restJson1OrganizationalUnitList(output.organizationalUnits, context)
|
|
1840
|
-
: undefined,
|
|
1818
|
+
organizationalUnits: output.organizationalUnits != null ? de_OrganizationalUnitList(output.organizationalUnits, context) : undefined,
|
|
1841
1819
|
permissionType: __expectString(output.permissionType),
|
|
1842
1820
|
stackSetName: __expectString(output.stackSetName),
|
|
1843
1821
|
status: __expectString(output.status),
|
|
1844
|
-
tags: output.tags != null ?
|
|
1845
|
-
vpcConfiguration: output.vpcConfiguration != null
|
|
1846
|
-
? deserializeAws_restJson1VpcConfiguration(output.vpcConfiguration, context)
|
|
1847
|
-
: undefined,
|
|
1822
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1823
|
+
vpcConfiguration: output.vpcConfiguration != null ? de_VpcConfiguration(output.vpcConfiguration, context) : undefined,
|
|
1848
1824
|
workspaceRoleArn: __expectString(output.workspaceRoleArn),
|
|
1849
1825
|
};
|
|
1850
1826
|
};
|
|
1851
|
-
const
|
|
1827
|
+
const de_WorkspaceList = (output, context) => {
|
|
1852
1828
|
const retVal = (output || [])
|
|
1853
1829
|
.filter((e) => e != null)
|
|
1854
1830
|
.map((entry) => {
|
|
1855
1831
|
if (entry === null) {
|
|
1856
1832
|
return null;
|
|
1857
1833
|
}
|
|
1858
|
-
return
|
|
1834
|
+
return de_WorkspaceSummary(entry, context);
|
|
1859
1835
|
});
|
|
1860
1836
|
return retVal;
|
|
1861
1837
|
};
|
|
1862
|
-
const
|
|
1838
|
+
const de_WorkspaceSummary = (output, context) => {
|
|
1863
1839
|
return {
|
|
1864
|
-
authentication: output.authentication != null
|
|
1865
|
-
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
1866
|
-
: undefined,
|
|
1840
|
+
authentication: output.authentication != null ? de_AuthenticationSummary(output.authentication, context) : undefined,
|
|
1867
1841
|
created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
|
|
1868
1842
|
description: __expectString(output.description),
|
|
1869
1843
|
endpoint: __expectString(output.endpoint),
|
|
@@ -1872,10 +1846,10 @@ const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
|
|
|
1872
1846
|
modified: output.modified != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified))) : undefined,
|
|
1873
1847
|
name: __expectString(output.name),
|
|
1874
1848
|
notificationDestinations: output.notificationDestinations != null
|
|
1875
|
-
?
|
|
1849
|
+
? de_NotificationDestinationsList(output.notificationDestinations, context)
|
|
1876
1850
|
: undefined,
|
|
1877
1851
|
status: __expectString(output.status),
|
|
1878
|
-
tags: output.tags != null ?
|
|
1852
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1879
1853
|
};
|
|
1880
1854
|
};
|
|
1881
1855
|
const deserializeMetadata = (output) => ({
|