@aws-sdk/client-grafana 3.53.0 → 3.55.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/CHANGELOG.md +24 -0
- package/dist-cjs/GrafanaClient.js +13 -13
- package/dist-cjs/commands/AssociateLicenseCommand.js +3 -3
- package/dist-cjs/commands/CreateWorkspaceCommand.js +3 -3
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +3 -3
- package/dist-cjs/commands/DescribeWorkspaceAuthenticationCommand.js +3 -3
- package/dist-cjs/commands/DescribeWorkspaceCommand.js +3 -3
- package/dist-cjs/commands/DisassociateLicenseCommand.js +3 -3
- package/dist-cjs/commands/ListPermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListWorkspacesCommand.js +3 -3
- package/dist-cjs/commands/UpdatePermissionsCommand.js +3 -3
- package/dist-cjs/commands/UpdateWorkspaceAuthenticationCommand.js +3 -3
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +118 -118
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Grafana.js +11 -11
- package/dist-es/pagination/ListPermissionsPaginator.js +4 -4
- package/dist-es/pagination/ListWorkspacesPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +11 -11
- package/dist-types/GrafanaClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/GrafanaClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1AssociateLicenseCommand = async (input, context) =>
|
|
|
16
16
|
if (labelValue.length <= 0) {
|
|
17
17
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
18
18
|
}
|
|
19
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
19
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -26,7 +26,7 @@ const serializeAws_restJson1AssociateLicenseCommand = async (input, context) =>
|
|
|
26
26
|
if (labelValue.length <= 0) {
|
|
27
27
|
throw new Error("Empty value provided for input HTTP label: licenseType.");
|
|
28
28
|
}
|
|
29
|
-
resolvedPath = resolvedPath.replace("{licenseType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
29
|
+
resolvedPath = resolvedPath.replace("{licenseType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
32
|
throw new Error("No value provided for input HTTP label: licenseType.");
|
|
@@ -58,7 +58,7 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
|
|
|
58
58
|
input.authenticationProviders !== null && {
|
|
59
59
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
60
60
|
}),
|
|
61
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
61
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
62
62
|
...(input.organizationRoleName !== undefined &&
|
|
63
63
|
input.organizationRoleName !== null && { organizationRoleName: input.organizationRoleName }),
|
|
64
64
|
...(input.permissionType !== undefined &&
|
|
@@ -102,7 +102,7 @@ const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
|
|
|
102
102
|
if (labelValue.length <= 0) {
|
|
103
103
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
104
104
|
}
|
|
105
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
105
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
108
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -128,7 +128,7 @@ const serializeAws_restJson1DescribeWorkspaceCommand = async (input, context) =>
|
|
|
128
128
|
if (labelValue.length <= 0) {
|
|
129
129
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
130
130
|
}
|
|
131
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
131
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
132
132
|
}
|
|
133
133
|
else {
|
|
134
134
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -154,7 +154,7 @@ const serializeAws_restJson1DescribeWorkspaceAuthenticationCommand = async (inpu
|
|
|
154
154
|
if (labelValue.length <= 0) {
|
|
155
155
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
156
156
|
}
|
|
157
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
157
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
160
160
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -181,7 +181,7 @@ const serializeAws_restJson1DisassociateLicenseCommand = async (input, context)
|
|
|
181
181
|
if (labelValue.length <= 0) {
|
|
182
182
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
183
183
|
}
|
|
184
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
184
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
185
185
|
}
|
|
186
186
|
else {
|
|
187
187
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -191,7 +191,7 @@ const serializeAws_restJson1DisassociateLicenseCommand = async (input, context)
|
|
|
191
191
|
if (labelValue.length <= 0) {
|
|
192
192
|
throw new Error("Empty value provided for input HTTP label: licenseType.");
|
|
193
193
|
}
|
|
194
|
-
resolvedPath = resolvedPath.replace("{licenseType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
194
|
+
resolvedPath = resolvedPath.replace("{licenseType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
195
195
|
}
|
|
196
196
|
else {
|
|
197
197
|
throw new Error("No value provided for input HTTP label: licenseType.");
|
|
@@ -217,7 +217,7 @@ const serializeAws_restJson1ListPermissionsCommand = async (input, context) => {
|
|
|
217
217
|
if (labelValue.length <= 0) {
|
|
218
218
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
219
219
|
}
|
|
220
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
220
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
221
221
|
}
|
|
222
222
|
else {
|
|
223
223
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -274,7 +274,7 @@ const serializeAws_restJson1UpdatePermissionsCommand = async (input, context) =>
|
|
|
274
274
|
if (labelValue.length <= 0) {
|
|
275
275
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
276
276
|
}
|
|
277
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
277
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
278
278
|
}
|
|
279
279
|
else {
|
|
280
280
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -308,7 +308,7 @@ const serializeAws_restJson1UpdateWorkspaceCommand = async (input, context) => {
|
|
|
308
308
|
if (labelValue.length <= 0) {
|
|
309
309
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
310
310
|
}
|
|
311
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
311
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
312
312
|
}
|
|
313
313
|
else {
|
|
314
314
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -362,7 +362,7 @@ const serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = async (input,
|
|
|
362
362
|
if (labelValue.length <= 0) {
|
|
363
363
|
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
364
364
|
}
|
|
365
|
-
resolvedPath = resolvedPath.replace("{workspaceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
365
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
366
366
|
}
|
|
367
367
|
else {
|
|
368
368
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
@@ -397,7 +397,7 @@ const deserializeAws_restJson1AssociateLicenseCommand = async (output, context)
|
|
|
397
397
|
$metadata: deserializeMetadata(output),
|
|
398
398
|
workspace: undefined,
|
|
399
399
|
};
|
|
400
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
400
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
401
401
|
if (data.workspace !== undefined && data.workspace !== null) {
|
|
402
402
|
contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
|
|
403
403
|
}
|
|
@@ -435,7 +435,7 @@ const deserializeAws_restJson1AssociateLicenseCommandError = async (output, cont
|
|
|
435
435
|
$fault: "client",
|
|
436
436
|
$metadata: deserializeMetadata(output),
|
|
437
437
|
});
|
|
438
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
438
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
441
|
const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) => {
|
|
@@ -446,7 +446,7 @@ const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) =
|
|
|
446
446
|
$metadata: deserializeMetadata(output),
|
|
447
447
|
workspace: undefined,
|
|
448
448
|
};
|
|
449
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
449
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
450
450
|
if (data.workspace !== undefined && data.workspace !== null) {
|
|
451
451
|
contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
|
|
452
452
|
}
|
|
@@ -487,7 +487,7 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
487
487
|
$fault: "client",
|
|
488
488
|
$metadata: deserializeMetadata(output),
|
|
489
489
|
});
|
|
490
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
490
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
493
|
const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, context) => {
|
|
@@ -498,7 +498,7 @@ const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, context) =
|
|
|
498
498
|
$metadata: deserializeMetadata(output),
|
|
499
499
|
workspace: undefined,
|
|
500
500
|
};
|
|
501
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
501
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
502
502
|
if (data.workspace !== undefined && data.workspace !== null) {
|
|
503
503
|
contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
|
|
504
504
|
}
|
|
@@ -539,7 +539,7 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
539
539
|
$fault: "client",
|
|
540
540
|
$metadata: deserializeMetadata(output),
|
|
541
541
|
});
|
|
542
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
542
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
545
|
const deserializeAws_restJson1DescribeWorkspaceCommand = async (output, context) => {
|
|
@@ -550,7 +550,7 @@ const deserializeAws_restJson1DescribeWorkspaceCommand = async (output, context)
|
|
|
550
550
|
$metadata: deserializeMetadata(output),
|
|
551
551
|
workspace: undefined,
|
|
552
552
|
};
|
|
553
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
553
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
554
554
|
if (data.workspace !== undefined && data.workspace !== null) {
|
|
555
555
|
contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
|
|
556
556
|
}
|
|
@@ -588,7 +588,7 @@ const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, con
|
|
|
588
588
|
$fault: "client",
|
|
589
589
|
$metadata: deserializeMetadata(output),
|
|
590
590
|
});
|
|
591
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
591
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
592
592
|
}
|
|
593
593
|
};
|
|
594
594
|
const deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand = async (output, context) => {
|
|
@@ -599,7 +599,7 @@ const deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand = async (ou
|
|
|
599
599
|
$metadata: deserializeMetadata(output),
|
|
600
600
|
authentication: undefined,
|
|
601
601
|
};
|
|
602
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
602
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
603
603
|
if (data.authentication !== undefined && data.authentication !== null) {
|
|
604
604
|
contents.authentication = deserializeAws_restJson1AuthenticationDescription(data.authentication, context);
|
|
605
605
|
}
|
|
@@ -637,7 +637,7 @@ const deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = asyn
|
|
|
637
637
|
$fault: "client",
|
|
638
638
|
$metadata: deserializeMetadata(output),
|
|
639
639
|
});
|
|
640
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
640
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
643
|
const deserializeAws_restJson1DisassociateLicenseCommand = async (output, context) => {
|
|
@@ -648,7 +648,7 @@ const deserializeAws_restJson1DisassociateLicenseCommand = async (output, contex
|
|
|
648
648
|
$metadata: deserializeMetadata(output),
|
|
649
649
|
workspace: undefined,
|
|
650
650
|
};
|
|
651
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
651
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
652
652
|
if (data.workspace !== undefined && data.workspace !== null) {
|
|
653
653
|
contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
|
|
654
654
|
}
|
|
@@ -686,7 +686,7 @@ const deserializeAws_restJson1DisassociateLicenseCommandError = async (output, c
|
|
|
686
686
|
$fault: "client",
|
|
687
687
|
$metadata: deserializeMetadata(output),
|
|
688
688
|
});
|
|
689
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
689
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
692
|
const deserializeAws_restJson1ListPermissionsCommand = async (output, context) => {
|
|
@@ -698,9 +698,9 @@ const deserializeAws_restJson1ListPermissionsCommand = async (output, context) =
|
|
|
698
698
|
nextToken: undefined,
|
|
699
699
|
permissions: undefined,
|
|
700
700
|
};
|
|
701
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
701
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
702
702
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
703
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
703
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
704
704
|
}
|
|
705
705
|
if (data.permissions !== undefined && data.permissions !== null) {
|
|
706
706
|
contents.permissions = deserializeAws_restJson1PermissionEntryList(data.permissions, context);
|
|
@@ -739,7 +739,7 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
|
|
|
739
739
|
$fault: "client",
|
|
740
740
|
$metadata: deserializeMetadata(output),
|
|
741
741
|
});
|
|
742
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
742
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
const deserializeAws_restJson1ListWorkspacesCommand = async (output, context) => {
|
|
@@ -751,9 +751,9 @@ const deserializeAws_restJson1ListWorkspacesCommand = async (output, context) =>
|
|
|
751
751
|
nextToken: undefined,
|
|
752
752
|
workspaces: undefined,
|
|
753
753
|
};
|
|
754
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
754
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
755
755
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
756
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
756
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
757
757
|
}
|
|
758
758
|
if (data.workspaces !== undefined && data.workspaces !== null) {
|
|
759
759
|
contents.workspaces = deserializeAws_restJson1WorkspaceList(data.workspaces, context);
|
|
@@ -786,7 +786,7 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
786
786
|
$fault: "client",
|
|
787
787
|
$metadata: deserializeMetadata(output),
|
|
788
788
|
});
|
|
789
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
789
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
792
|
const deserializeAws_restJson1UpdatePermissionsCommand = async (output, context) => {
|
|
@@ -797,7 +797,7 @@ const deserializeAws_restJson1UpdatePermissionsCommand = async (output, context)
|
|
|
797
797
|
$metadata: deserializeMetadata(output),
|
|
798
798
|
errors: undefined,
|
|
799
799
|
};
|
|
800
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
800
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
801
801
|
if (data.errors !== undefined && data.errors !== null) {
|
|
802
802
|
contents.errors = deserializeAws_restJson1UpdateErrorList(data.errors, context);
|
|
803
803
|
}
|
|
@@ -835,7 +835,7 @@ const deserializeAws_restJson1UpdatePermissionsCommandError = async (output, con
|
|
|
835
835
|
$fault: "client",
|
|
836
836
|
$metadata: deserializeMetadata(output),
|
|
837
837
|
});
|
|
838
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
838
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
839
839
|
}
|
|
840
840
|
};
|
|
841
841
|
const deserializeAws_restJson1UpdateWorkspaceCommand = async (output, context) => {
|
|
@@ -846,7 +846,7 @@ const deserializeAws_restJson1UpdateWorkspaceCommand = async (output, context) =
|
|
|
846
846
|
$metadata: deserializeMetadata(output),
|
|
847
847
|
workspace: undefined,
|
|
848
848
|
};
|
|
849
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
849
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
850
850
|
if (data.workspace !== undefined && data.workspace !== null) {
|
|
851
851
|
contents.workspace = deserializeAws_restJson1WorkspaceDescription(data.workspace, context);
|
|
852
852
|
}
|
|
@@ -887,7 +887,7 @@ const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, conte
|
|
|
887
887
|
$fault: "client",
|
|
888
888
|
$metadata: deserializeMetadata(output),
|
|
889
889
|
});
|
|
890
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
890
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
891
891
|
}
|
|
892
892
|
};
|
|
893
893
|
const deserializeAws_restJson1UpdateWorkspaceAuthenticationCommand = async (output, context) => {
|
|
@@ -898,7 +898,7 @@ const deserializeAws_restJson1UpdateWorkspaceAuthenticationCommand = async (outp
|
|
|
898
898
|
$metadata: deserializeMetadata(output),
|
|
899
899
|
authentication: undefined,
|
|
900
900
|
};
|
|
901
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
901
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
902
902
|
if (data.authentication !== undefined && data.authentication !== null) {
|
|
903
903
|
contents.authentication = deserializeAws_restJson1AuthenticationDescription(data.authentication, context);
|
|
904
904
|
}
|
|
@@ -939,116 +939,116 @@ const deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = async
|
|
|
939
939
|
$fault: "client",
|
|
940
940
|
$metadata: deserializeMetadata(output),
|
|
941
941
|
});
|
|
942
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
942
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
945
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
946
946
|
const contents = {};
|
|
947
947
|
const data = parsedOutput.body;
|
|
948
948
|
if (data.message !== undefined && data.message !== null) {
|
|
949
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
949
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
950
950
|
}
|
|
951
951
|
const exception = new models_0_1.AccessDeniedException({
|
|
952
952
|
$metadata: deserializeMetadata(parsedOutput),
|
|
953
953
|
...contents,
|
|
954
954
|
});
|
|
955
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
955
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
956
956
|
};
|
|
957
957
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
958
958
|
const contents = {};
|
|
959
959
|
const data = parsedOutput.body;
|
|
960
960
|
if (data.message !== undefined && data.message !== null) {
|
|
961
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
961
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
962
962
|
}
|
|
963
963
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
964
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
964
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
965
965
|
}
|
|
966
966
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
967
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
967
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
968
968
|
}
|
|
969
969
|
const exception = new models_0_1.ConflictException({
|
|
970
970
|
$metadata: deserializeMetadata(parsedOutput),
|
|
971
971
|
...contents,
|
|
972
972
|
});
|
|
973
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
973
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
974
974
|
};
|
|
975
975
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
976
976
|
const contents = {};
|
|
977
977
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
978
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
978
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
979
979
|
}
|
|
980
980
|
const data = parsedOutput.body;
|
|
981
981
|
if (data.message !== undefined && data.message !== null) {
|
|
982
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
982
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
983
983
|
}
|
|
984
984
|
const exception = new models_0_1.InternalServerException({
|
|
985
985
|
$metadata: deserializeMetadata(parsedOutput),
|
|
986
986
|
...contents,
|
|
987
987
|
});
|
|
988
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
988
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
989
989
|
};
|
|
990
990
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
991
991
|
const contents = {};
|
|
992
992
|
const data = parsedOutput.body;
|
|
993
993
|
if (data.message !== undefined && data.message !== null) {
|
|
994
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
994
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
995
995
|
}
|
|
996
996
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
997
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
997
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
998
998
|
}
|
|
999
999
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
1000
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
1000
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
1001
1001
|
}
|
|
1002
1002
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1003
1003
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1004
1004
|
...contents,
|
|
1005
1005
|
});
|
|
1006
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1006
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1007
1007
|
};
|
|
1008
1008
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1009
1009
|
const contents = {};
|
|
1010
1010
|
const data = parsedOutput.body;
|
|
1011
1011
|
if (data.message !== undefined && data.message !== null) {
|
|
1012
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1012
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1013
1013
|
}
|
|
1014
1014
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
1015
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
1015
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
1016
1016
|
}
|
|
1017
1017
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
1018
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
1018
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
1019
1019
|
}
|
|
1020
1020
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
1021
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
1021
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
1022
1022
|
}
|
|
1023
1023
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
1024
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
1024
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
1025
1025
|
}
|
|
1026
1026
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1027
1027
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1028
1028
|
...contents,
|
|
1029
1029
|
});
|
|
1030
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1030
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1031
1031
|
};
|
|
1032
1032
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1033
1033
|
const contents = {};
|
|
1034
1034
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
1035
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
1035
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
1036
1036
|
}
|
|
1037
1037
|
const data = parsedOutput.body;
|
|
1038
1038
|
if (data.message !== undefined && data.message !== null) {
|
|
1039
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1039
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1040
1040
|
}
|
|
1041
1041
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
1042
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
1042
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
1043
1043
|
}
|
|
1044
1044
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
1045
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
1045
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
1046
1046
|
}
|
|
1047
1047
|
const exception = new models_0_1.ThrottlingException({
|
|
1048
1048
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
1049
|
...contents,
|
|
1050
1050
|
});
|
|
1051
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1051
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1052
1052
|
};
|
|
1053
1053
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1054
1054
|
const contents = {};
|
|
@@ -1057,16 +1057,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1057
1057
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
1058
1058
|
}
|
|
1059
1059
|
if (data.message !== undefined && data.message !== null) {
|
|
1060
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1060
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1061
1061
|
}
|
|
1062
1062
|
if (data.reason !== undefined && data.reason !== null) {
|
|
1063
|
-
contents.reason = smithy_client_1.expectString(data.reason);
|
|
1063
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
1064
1064
|
}
|
|
1065
1065
|
const exception = new models_0_1.ValidationException({
|
|
1066
1066
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1067
1067
|
...contents,
|
|
1068
1068
|
});
|
|
1069
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1069
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1070
1070
|
};
|
|
1071
1071
|
const serializeAws_restJson1AllowedOrganizations = (input, context) => {
|
|
1072
1072
|
return input
|
|
@@ -1212,18 +1212,18 @@ const deserializeAws_restJson1AllowedOrganizations = (output, context) => {
|
|
|
1212
1212
|
if (entry === null) {
|
|
1213
1213
|
return null;
|
|
1214
1214
|
}
|
|
1215
|
-
return smithy_client_1.expectString(entry);
|
|
1215
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1216
1216
|
});
|
|
1217
1217
|
return retVal;
|
|
1218
1218
|
};
|
|
1219
1219
|
const deserializeAws_restJson1AssertionAttributes = (output, context) => {
|
|
1220
1220
|
return {
|
|
1221
|
-
email: smithy_client_1.expectString(output.email),
|
|
1222
|
-
groups: smithy_client_1.expectString(output.groups),
|
|
1223
|
-
login: smithy_client_1.expectString(output.login),
|
|
1224
|
-
name: smithy_client_1.expectString(output.name),
|
|
1225
|
-
org: smithy_client_1.expectString(output.org),
|
|
1226
|
-
role: smithy_client_1.expectString(output.role),
|
|
1221
|
+
email: (0, smithy_client_1.expectString)(output.email),
|
|
1222
|
+
groups: (0, smithy_client_1.expectString)(output.groups),
|
|
1223
|
+
login: (0, smithy_client_1.expectString)(output.login),
|
|
1224
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1225
|
+
org: (0, smithy_client_1.expectString)(output.org),
|
|
1226
|
+
role: (0, smithy_client_1.expectString)(output.role),
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
1229
|
const deserializeAws_restJson1AuthenticationDescription = (output, context) => {
|
|
@@ -1246,7 +1246,7 @@ const deserializeAws_restJson1AuthenticationProviders = (output, context) => {
|
|
|
1246
1246
|
if (entry === null) {
|
|
1247
1247
|
return null;
|
|
1248
1248
|
}
|
|
1249
|
-
return smithy_client_1.expectString(entry);
|
|
1249
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1250
1250
|
});
|
|
1251
1251
|
return retVal;
|
|
1252
1252
|
};
|
|
@@ -1255,12 +1255,12 @@ const deserializeAws_restJson1AuthenticationSummary = (output, context) => {
|
|
|
1255
1255
|
providers: output.providers !== undefined && output.providers !== null
|
|
1256
1256
|
? deserializeAws_restJson1AuthenticationProviders(output.providers, context)
|
|
1257
1257
|
: undefined,
|
|
1258
|
-
samlConfigurationStatus: smithy_client_1.expectString(output.samlConfigurationStatus),
|
|
1258
|
+
samlConfigurationStatus: (0, smithy_client_1.expectString)(output.samlConfigurationStatus),
|
|
1259
1259
|
};
|
|
1260
1260
|
};
|
|
1261
1261
|
const deserializeAws_restJson1AwsSsoAuthentication = (output, context) => {
|
|
1262
1262
|
return {
|
|
1263
|
-
ssoClientId: smithy_client_1.expectString(output.ssoClientId),
|
|
1263
|
+
ssoClientId: (0, smithy_client_1.expectString)(output.ssoClientId),
|
|
1264
1264
|
};
|
|
1265
1265
|
};
|
|
1266
1266
|
const deserializeAws_restJson1DataSourceTypesList = (output, context) => {
|
|
@@ -1270,16 +1270,16 @@ const deserializeAws_restJson1DataSourceTypesList = (output, context) => {
|
|
|
1270
1270
|
if (entry === null) {
|
|
1271
1271
|
return null;
|
|
1272
1272
|
}
|
|
1273
|
-
return smithy_client_1.expectString(entry);
|
|
1273
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1274
1274
|
});
|
|
1275
1275
|
return retVal;
|
|
1276
1276
|
};
|
|
1277
1277
|
const deserializeAws_restJson1IdpMetadata = (output, context) => {
|
|
1278
|
-
if (smithy_client_1.expectString(output.url) !== undefined) {
|
|
1279
|
-
return { url: smithy_client_1.expectString(output.url) };
|
|
1278
|
+
if ((0, smithy_client_1.expectString)(output.url) !== undefined) {
|
|
1279
|
+
return { url: (0, smithy_client_1.expectString)(output.url) };
|
|
1280
1280
|
}
|
|
1281
|
-
if (smithy_client_1.expectString(output.xml) !== undefined) {
|
|
1282
|
-
return { xml: smithy_client_1.expectString(output.xml) };
|
|
1281
|
+
if ((0, smithy_client_1.expectString)(output.xml) !== undefined) {
|
|
1282
|
+
return { xml: (0, smithy_client_1.expectString)(output.xml) };
|
|
1283
1283
|
}
|
|
1284
1284
|
return { $unknown: Object.entries(output)[0] };
|
|
1285
1285
|
};
|
|
@@ -1290,7 +1290,7 @@ const deserializeAws_restJson1NotificationDestinationsList = (output, context) =
|
|
|
1290
1290
|
if (entry === null) {
|
|
1291
1291
|
return null;
|
|
1292
1292
|
}
|
|
1293
|
-
return smithy_client_1.expectString(entry);
|
|
1293
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1294
1294
|
});
|
|
1295
1295
|
return retVal;
|
|
1296
1296
|
};
|
|
@@ -1301,13 +1301,13 @@ const deserializeAws_restJson1OrganizationalUnitList = (output, context) => {
|
|
|
1301
1301
|
if (entry === null) {
|
|
1302
1302
|
return null;
|
|
1303
1303
|
}
|
|
1304
|
-
return smithy_client_1.expectString(entry);
|
|
1304
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1305
1305
|
});
|
|
1306
1306
|
return retVal;
|
|
1307
1307
|
};
|
|
1308
1308
|
const deserializeAws_restJson1PermissionEntry = (output, context) => {
|
|
1309
1309
|
return {
|
|
1310
|
-
role: smithy_client_1.expectString(output.role),
|
|
1310
|
+
role: (0, smithy_client_1.expectString)(output.role),
|
|
1311
1311
|
user: output.user !== undefined && output.user !== null
|
|
1312
1312
|
? deserializeAws_restJson1User(output.user, context)
|
|
1313
1313
|
: undefined,
|
|
@@ -1331,7 +1331,7 @@ const deserializeAws_restJson1RoleValueList = (output, context) => {
|
|
|
1331
1331
|
if (entry === null) {
|
|
1332
1332
|
return null;
|
|
1333
1333
|
}
|
|
1334
|
-
return smithy_client_1.expectString(entry);
|
|
1334
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1335
1335
|
});
|
|
1336
1336
|
return retVal;
|
|
1337
1337
|
};
|
|
@@ -1350,7 +1350,7 @@ const deserializeAws_restJson1SamlAuthentication = (output, context) => {
|
|
|
1350
1350
|
configuration: output.configuration !== undefined && output.configuration !== null
|
|
1351
1351
|
? deserializeAws_restJson1SamlConfiguration(output.configuration, context)
|
|
1352
1352
|
: undefined,
|
|
1353
|
-
status: smithy_client_1.expectString(output.status),
|
|
1353
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1354
1354
|
};
|
|
1355
1355
|
};
|
|
1356
1356
|
const deserializeAws_restJson1SamlConfiguration = (output, context) => {
|
|
@@ -1362,9 +1362,9 @@ const deserializeAws_restJson1SamlConfiguration = (output, context) => {
|
|
|
1362
1362
|
? deserializeAws_restJson1AssertionAttributes(output.assertionAttributes, context)
|
|
1363
1363
|
: undefined,
|
|
1364
1364
|
idpMetadata: output.idpMetadata !== undefined && output.idpMetadata !== null
|
|
1365
|
-
? deserializeAws_restJson1IdpMetadata(smithy_client_1.expectUnion(output.idpMetadata), context)
|
|
1365
|
+
? deserializeAws_restJson1IdpMetadata((0, smithy_client_1.expectUnion)(output.idpMetadata), context)
|
|
1366
1366
|
: undefined,
|
|
1367
|
-
loginValidityDuration: smithy_client_1.expectInt32(output.loginValidityDuration),
|
|
1367
|
+
loginValidityDuration: (0, smithy_client_1.expectInt32)(output.loginValidityDuration),
|
|
1368
1368
|
roleValues: output.roleValues !== undefined && output.roleValues !== null
|
|
1369
1369
|
? deserializeAws_restJson1RoleValues(output.roleValues, context)
|
|
1370
1370
|
: undefined,
|
|
@@ -1375,8 +1375,8 @@ const deserializeAws_restJson1UpdateError = (output, context) => {
|
|
|
1375
1375
|
causedBy: output.causedBy !== undefined && output.causedBy !== null
|
|
1376
1376
|
? deserializeAws_restJson1UpdateInstruction(output.causedBy, context)
|
|
1377
1377
|
: undefined,
|
|
1378
|
-
code: smithy_client_1.expectInt32(output.code),
|
|
1379
|
-
message: smithy_client_1.expectString(output.message),
|
|
1378
|
+
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
1379
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1380
1380
|
};
|
|
1381
1381
|
};
|
|
1382
1382
|
const deserializeAws_restJson1UpdateErrorList = (output, context) => {
|
|
@@ -1392,8 +1392,8 @@ const deserializeAws_restJson1UpdateErrorList = (output, context) => {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
const deserializeAws_restJson1UpdateInstruction = (output, context) => {
|
|
1394
1394
|
return {
|
|
1395
|
-
action: smithy_client_1.expectString(output.action),
|
|
1396
|
-
role: smithy_client_1.expectString(output.role),
|
|
1395
|
+
action: (0, smithy_client_1.expectString)(output.action),
|
|
1396
|
+
role: (0, smithy_client_1.expectString)(output.role),
|
|
1397
1397
|
users: output.users !== undefined && output.users !== null
|
|
1398
1398
|
? deserializeAws_restJson1UserList(output.users, context)
|
|
1399
1399
|
: undefined,
|
|
@@ -1401,8 +1401,8 @@ const deserializeAws_restJson1UpdateInstruction = (output, context) => {
|
|
|
1401
1401
|
};
|
|
1402
1402
|
const deserializeAws_restJson1User = (output, context) => {
|
|
1403
1403
|
return {
|
|
1404
|
-
id: smithy_client_1.expectString(output.id),
|
|
1405
|
-
type: smithy_client_1.expectString(output.type),
|
|
1404
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1405
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1406
1406
|
};
|
|
1407
1407
|
};
|
|
1408
1408
|
const deserializeAws_restJson1UserList = (output, context) => {
|
|
@@ -1418,8 +1418,8 @@ const deserializeAws_restJson1UserList = (output, context) => {
|
|
|
1418
1418
|
};
|
|
1419
1419
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
1420
1420
|
return {
|
|
1421
|
-
message: smithy_client_1.expectString(output.message),
|
|
1422
|
-
name: smithy_client_1.expectString(output.name),
|
|
1421
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1422
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1423
1423
|
};
|
|
1424
1424
|
};
|
|
1425
1425
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
@@ -1435,43 +1435,43 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
1435
1435
|
};
|
|
1436
1436
|
const deserializeAws_restJson1WorkspaceDescription = (output, context) => {
|
|
1437
1437
|
return {
|
|
1438
|
-
accountAccessType: smithy_client_1.expectString(output.accountAccessType),
|
|
1438
|
+
accountAccessType: (0, smithy_client_1.expectString)(output.accountAccessType),
|
|
1439
1439
|
authentication: output.authentication !== undefined && output.authentication !== null
|
|
1440
1440
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
1441
1441
|
: undefined,
|
|
1442
1442
|
created: output.created !== undefined && output.created !== null
|
|
1443
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.created)))
|
|
1443
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
|
|
1444
1444
|
: undefined,
|
|
1445
1445
|
dataSources: output.dataSources !== undefined && output.dataSources !== null
|
|
1446
1446
|
? deserializeAws_restJson1DataSourceTypesList(output.dataSources, context)
|
|
1447
1447
|
: undefined,
|
|
1448
|
-
description: smithy_client_1.expectString(output.description),
|
|
1449
|
-
endpoint: smithy_client_1.expectString(output.endpoint),
|
|
1450
|
-
freeTrialConsumed: smithy_client_1.expectBoolean(output.freeTrialConsumed),
|
|
1448
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1449
|
+
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
1450
|
+
freeTrialConsumed: (0, smithy_client_1.expectBoolean)(output.freeTrialConsumed),
|
|
1451
1451
|
freeTrialExpiration: output.freeTrialExpiration !== undefined && output.freeTrialExpiration !== null
|
|
1452
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.freeTrialExpiration)))
|
|
1452
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.freeTrialExpiration)))
|
|
1453
1453
|
: undefined,
|
|
1454
|
-
grafanaVersion: smithy_client_1.expectString(output.grafanaVersion),
|
|
1455
|
-
id: smithy_client_1.expectString(output.id),
|
|
1454
|
+
grafanaVersion: (0, smithy_client_1.expectString)(output.grafanaVersion),
|
|
1455
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1456
1456
|
licenseExpiration: output.licenseExpiration !== undefined && output.licenseExpiration !== null
|
|
1457
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.licenseExpiration)))
|
|
1457
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.licenseExpiration)))
|
|
1458
1458
|
: undefined,
|
|
1459
|
-
licenseType: smithy_client_1.expectString(output.licenseType),
|
|
1459
|
+
licenseType: (0, smithy_client_1.expectString)(output.licenseType),
|
|
1460
1460
|
modified: output.modified !== undefined && output.modified !== null
|
|
1461
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modified)))
|
|
1461
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modified)))
|
|
1462
1462
|
: undefined,
|
|
1463
|
-
name: smithy_client_1.expectString(output.name),
|
|
1463
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1464
1464
|
notificationDestinations: output.notificationDestinations !== undefined && output.notificationDestinations !== null
|
|
1465
1465
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
1466
1466
|
: undefined,
|
|
1467
|
-
organizationRoleName: smithy_client_1.expectString(output.organizationRoleName),
|
|
1467
|
+
organizationRoleName: (0, smithy_client_1.expectString)(output.organizationRoleName),
|
|
1468
1468
|
organizationalUnits: output.organizationalUnits !== undefined && output.organizationalUnits !== null
|
|
1469
1469
|
? deserializeAws_restJson1OrganizationalUnitList(output.organizationalUnits, context)
|
|
1470
1470
|
: undefined,
|
|
1471
|
-
permissionType: smithy_client_1.expectString(output.permissionType),
|
|
1472
|
-
stackSetName: smithy_client_1.expectString(output.stackSetName),
|
|
1473
|
-
status: smithy_client_1.expectString(output.status),
|
|
1474
|
-
workspaceRoleArn: smithy_client_1.expectString(output.workspaceRoleArn),
|
|
1471
|
+
permissionType: (0, smithy_client_1.expectString)(output.permissionType),
|
|
1472
|
+
stackSetName: (0, smithy_client_1.expectString)(output.stackSetName),
|
|
1473
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1474
|
+
workspaceRoleArn: (0, smithy_client_1.expectString)(output.workspaceRoleArn),
|
|
1475
1475
|
};
|
|
1476
1476
|
};
|
|
1477
1477
|
const deserializeAws_restJson1WorkspaceList = (output, context) => {
|
|
@@ -1491,20 +1491,20 @@ const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
|
|
|
1491
1491
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
1492
1492
|
: undefined,
|
|
1493
1493
|
created: output.created !== undefined && output.created !== null
|
|
1494
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.created)))
|
|
1494
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
|
|
1495
1495
|
: undefined,
|
|
1496
|
-
description: smithy_client_1.expectString(output.description),
|
|
1497
|
-
endpoint: smithy_client_1.expectString(output.endpoint),
|
|
1498
|
-
grafanaVersion: smithy_client_1.expectString(output.grafanaVersion),
|
|
1499
|
-
id: smithy_client_1.expectString(output.id),
|
|
1496
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1497
|
+
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
1498
|
+
grafanaVersion: (0, smithy_client_1.expectString)(output.grafanaVersion),
|
|
1499
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1500
1500
|
modified: output.modified !== undefined && output.modified !== null
|
|
1501
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modified)))
|
|
1501
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modified)))
|
|
1502
1502
|
: undefined,
|
|
1503
|
-
name: smithy_client_1.expectString(output.name),
|
|
1503
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1504
1504
|
notificationDestinations: output.notificationDestinations !== undefined && output.notificationDestinations !== null
|
|
1505
1505
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
1506
1506
|
: undefined,
|
|
1507
|
-
status: smithy_client_1.expectString(output.status),
|
|
1507
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1508
1508
|
};
|
|
1509
1509
|
};
|
|
1510
1510
|
const deserializeMetadata = (output) => {
|