@aws-sdk/client-greengrassv2 3.54.1 → 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 +8 -0
- package/dist-cjs/GreengrassV2Client.js +13 -13
- package/dist-cjs/commands/AssociateServiceRoleToAccountCommand.js +3 -3
- package/dist-cjs/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +3 -3
- package/dist-cjs/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +3 -3
- package/dist-cjs/commands/CancelDeploymentCommand.js +3 -3
- package/dist-cjs/commands/CreateComponentVersionCommand.js +3 -3
- package/dist-cjs/commands/CreateDeploymentCommand.js +3 -3
- package/dist-cjs/commands/DeleteComponentCommand.js +3 -3
- package/dist-cjs/commands/DeleteCoreDeviceCommand.js +3 -3
- package/dist-cjs/commands/DescribeComponentCommand.js +3 -3
- package/dist-cjs/commands/DisassociateServiceRoleFromAccountCommand.js +3 -3
- package/dist-cjs/commands/GetComponentCommand.js +3 -3
- package/dist-cjs/commands/GetComponentVersionArtifactCommand.js +3 -3
- package/dist-cjs/commands/GetConnectivityInfoCommand.js +3 -3
- package/dist-cjs/commands/GetCoreDeviceCommand.js +3 -3
- package/dist-cjs/commands/GetDeploymentCommand.js +3 -3
- package/dist-cjs/commands/GetServiceRoleForAccountCommand.js +3 -3
- package/dist-cjs/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +3 -3
- package/dist-cjs/commands/ListComponentVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListComponentsCommand.js +3 -3
- package/dist-cjs/commands/ListCoreDevicesCommand.js +3 -3
- package/dist-cjs/commands/ListDeploymentsCommand.js +3 -3
- package/dist-cjs/commands/ListEffectiveDeploymentsCommand.js +3 -3
- package/dist-cjs/commands/ListInstalledComponentsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ResolveComponentCandidatesCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateConnectivityInfoCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +230 -230
- 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/GreengrassV2.js +28 -28
- package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +4 -4
- package/dist-es/pagination/ListComponentVersionsPaginator.js +4 -4
- package/dist-es/pagination/ListComponentsPaginator.js +4 -4
- package/dist-es/pagination/ListCoreDevicesPaginator.js +4 -4
- package/dist-es/pagination/ListDeploymentsPaginator.js +4 -4
- package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +4 -4
- package/dist-es/pagination/ListInstalledComponentsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +28 -28
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -40,7 +40,7 @@ const serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = as
|
|
|
40
40
|
if (labelValue.length <= 0) {
|
|
41
41
|
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
42
42
|
}
|
|
43
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
43
|
+
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
@@ -75,7 +75,7 @@ const serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand =
|
|
|
75
75
|
if (labelValue.length <= 0) {
|
|
76
76
|
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
77
77
|
}
|
|
78
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
78
|
+
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
81
81
|
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
@@ -108,7 +108,7 @@ const serializeAws_restJson1CancelDeploymentCommand = async (input, context) =>
|
|
|
108
108
|
if (labelValue.length <= 0) {
|
|
109
109
|
throw new Error("Empty value provided for input HTTP label: deploymentId.");
|
|
110
110
|
}
|
|
111
|
-
resolvedPath = resolvedPath.replace("{deploymentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
111
|
+
resolvedPath = resolvedPath.replace("{deploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
114
114
|
throw new Error("No value provided for input HTTP label: deploymentId.");
|
|
@@ -134,7 +134,7 @@ const serializeAws_restJson1CreateComponentVersionCommand = async (input, contex
|
|
|
134
134
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/createComponentVersion";
|
|
135
135
|
let body;
|
|
136
136
|
body = JSON.stringify({
|
|
137
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
137
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
138
138
|
...(input.inlineRecipe !== undefined &&
|
|
139
139
|
input.inlineRecipe !== null && { inlineRecipe: context.base64Encoder(input.inlineRecipe) }),
|
|
140
140
|
...(input.lambdaFunction !== undefined &&
|
|
@@ -163,7 +163,7 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
|
|
|
163
163
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments";
|
|
164
164
|
let body;
|
|
165
165
|
body = JSON.stringify({
|
|
166
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
166
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
167
167
|
...(input.components !== undefined &&
|
|
168
168
|
input.components !== null && {
|
|
169
169
|
components: serializeAws_restJson1ComponentDeploymentSpecifications(input.components, context),
|
|
@@ -201,7 +201,7 @@ const serializeAws_restJson1DeleteComponentCommand = async (input, context) => {
|
|
|
201
201
|
if (labelValue.length <= 0) {
|
|
202
202
|
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
203
203
|
}
|
|
204
|
-
resolvedPath = resolvedPath.replace("{arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
204
|
+
resolvedPath = resolvedPath.replace("{arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
205
205
|
}
|
|
206
206
|
else {
|
|
207
207
|
throw new Error("No value provided for input HTTP label: arn.");
|
|
@@ -228,7 +228,7 @@ const serializeAws_restJson1DeleteCoreDeviceCommand = async (input, context) =>
|
|
|
228
228
|
if (labelValue.length <= 0) {
|
|
229
229
|
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
230
230
|
}
|
|
231
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
231
|
+
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
232
232
|
}
|
|
233
233
|
else {
|
|
234
234
|
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
@@ -254,7 +254,7 @@ const serializeAws_restJson1DescribeComponentCommand = async (input, context) =>
|
|
|
254
254
|
if (labelValue.length <= 0) {
|
|
255
255
|
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
256
256
|
}
|
|
257
|
-
resolvedPath = resolvedPath.replace("{arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
257
|
+
resolvedPath = resolvedPath.replace("{arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
258
258
|
}
|
|
259
259
|
else {
|
|
260
260
|
throw new Error("No value provided for input HTTP label: arn.");
|
|
@@ -299,7 +299,7 @@ const serializeAws_restJson1GetComponentCommand = async (input, context) => {
|
|
|
299
299
|
if (labelValue.length <= 0) {
|
|
300
300
|
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
301
301
|
}
|
|
302
|
-
resolvedPath = resolvedPath.replace("{arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
302
|
+
resolvedPath = resolvedPath.replace("{arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
303
303
|
}
|
|
304
304
|
else {
|
|
305
305
|
throw new Error("No value provided for input HTTP label: arn.");
|
|
@@ -330,7 +330,7 @@ const serializeAws_restJson1GetComponentVersionArtifactCommand = async (input, c
|
|
|
330
330
|
if (labelValue.length <= 0) {
|
|
331
331
|
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
332
332
|
}
|
|
333
|
-
resolvedPath = resolvedPath.replace("{arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
333
|
+
resolvedPath = resolvedPath.replace("{arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
334
334
|
}
|
|
335
335
|
else {
|
|
336
336
|
throw new Error("No value provided for input HTTP label: arn.");
|
|
@@ -342,7 +342,7 @@ const serializeAws_restJson1GetComponentVersionArtifactCommand = async (input, c
|
|
|
342
342
|
}
|
|
343
343
|
resolvedPath = resolvedPath.replace("{artifactName+}", labelValue
|
|
344
344
|
.split("/")
|
|
345
|
-
.map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
|
|
345
|
+
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
346
346
|
.join("/"));
|
|
347
347
|
}
|
|
348
348
|
else {
|
|
@@ -370,7 +370,7 @@ const serializeAws_restJson1GetConnectivityInfoCommand = async (input, context)
|
|
|
370
370
|
if (labelValue.length <= 0) {
|
|
371
371
|
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
372
372
|
}
|
|
373
|
-
resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
373
|
+
resolvedPath = resolvedPath.replace("{thingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
374
374
|
}
|
|
375
375
|
else {
|
|
376
376
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
@@ -397,7 +397,7 @@ const serializeAws_restJson1GetCoreDeviceCommand = async (input, context) => {
|
|
|
397
397
|
if (labelValue.length <= 0) {
|
|
398
398
|
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
399
399
|
}
|
|
400
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
400
|
+
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
401
401
|
}
|
|
402
402
|
else {
|
|
403
403
|
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
@@ -423,7 +423,7 @@ const serializeAws_restJson1GetDeploymentCommand = async (input, context) => {
|
|
|
423
423
|
if (labelValue.length <= 0) {
|
|
424
424
|
throw new Error("Empty value provided for input HTTP label: deploymentId.");
|
|
425
425
|
}
|
|
426
|
-
resolvedPath = resolvedPath.replace("{deploymentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
426
|
+
resolvedPath = resolvedPath.replace("{deploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
427
427
|
}
|
|
428
428
|
else {
|
|
429
429
|
throw new Error("No value provided for input HTTP label: deploymentId.");
|
|
@@ -469,7 +469,7 @@ const serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = a
|
|
|
469
469
|
if (labelValue.length <= 0) {
|
|
470
470
|
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
471
471
|
}
|
|
472
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
472
|
+
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
473
473
|
}
|
|
474
474
|
else {
|
|
475
475
|
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
@@ -522,7 +522,7 @@ const serializeAws_restJson1ListComponentVersionsCommand = async (input, context
|
|
|
522
522
|
if (labelValue.length <= 0) {
|
|
523
523
|
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
524
524
|
}
|
|
525
|
-
resolvedPath = resolvedPath.replace("{arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
525
|
+
resolvedPath = resolvedPath.replace("{arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
526
526
|
}
|
|
527
527
|
else {
|
|
528
528
|
throw new Error("No value provided for input HTTP label: arn.");
|
|
@@ -600,7 +600,7 @@ const serializeAws_restJson1ListEffectiveDeploymentsCommand = async (input, cont
|
|
|
600
600
|
if (labelValue.length <= 0) {
|
|
601
601
|
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
602
602
|
}
|
|
603
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
603
|
+
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
604
604
|
}
|
|
605
605
|
else {
|
|
606
606
|
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
@@ -632,7 +632,7 @@ const serializeAws_restJson1ListInstalledComponentsCommand = async (input, conte
|
|
|
632
632
|
if (labelValue.length <= 0) {
|
|
633
633
|
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
634
634
|
}
|
|
635
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
635
|
+
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
636
636
|
}
|
|
637
637
|
else {
|
|
638
638
|
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
@@ -663,7 +663,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
663
663
|
if (labelValue.length <= 0) {
|
|
664
664
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
665
665
|
}
|
|
666
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
666
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
667
667
|
}
|
|
668
668
|
else {
|
|
669
669
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -717,7 +717,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
717
717
|
if (labelValue.length <= 0) {
|
|
718
718
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
719
719
|
}
|
|
720
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
720
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
721
721
|
}
|
|
722
722
|
else {
|
|
723
723
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -746,7 +746,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
746
746
|
if (labelValue.length <= 0) {
|
|
747
747
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
748
748
|
}
|
|
749
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
749
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
750
750
|
}
|
|
751
751
|
else {
|
|
752
752
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -779,7 +779,7 @@ const serializeAws_restJson1UpdateConnectivityInfoCommand = async (input, contex
|
|
|
779
779
|
if (labelValue.length <= 0) {
|
|
780
780
|
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
781
781
|
}
|
|
782
|
-
resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
782
|
+
resolvedPath = resolvedPath.replace("{thingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
783
783
|
}
|
|
784
784
|
else {
|
|
785
785
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
@@ -810,9 +810,9 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommand = async (outp
|
|
|
810
810
|
$metadata: deserializeMetadata(output),
|
|
811
811
|
associatedAt: undefined,
|
|
812
812
|
};
|
|
813
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
813
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
814
814
|
if (data.AssociatedAt !== undefined && data.AssociatedAt !== null) {
|
|
815
|
-
contents.associatedAt = smithy_client_1.expectString(data.AssociatedAt);
|
|
815
|
+
contents.associatedAt = (0, smithy_client_1.expectString)(data.AssociatedAt);
|
|
816
816
|
}
|
|
817
817
|
return Promise.resolve(contents);
|
|
818
818
|
};
|
|
@@ -839,7 +839,7 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async
|
|
|
839
839
|
$fault: "client",
|
|
840
840
|
$metadata: deserializeMetadata(output),
|
|
841
841
|
});
|
|
842
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
842
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
845
|
const deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = async (output, context) => {
|
|
@@ -850,7 +850,7 @@ const deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand =
|
|
|
850
850
|
$metadata: deserializeMetadata(output),
|
|
851
851
|
errorEntries: undefined,
|
|
852
852
|
};
|
|
853
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
853
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
854
854
|
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
855
855
|
contents.errorEntries = deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList(data.errorEntries, context);
|
|
856
856
|
}
|
|
@@ -888,7 +888,7 @@ const deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommandErr
|
|
|
888
888
|
$fault: "client",
|
|
889
889
|
$metadata: deserializeMetadata(output),
|
|
890
890
|
});
|
|
891
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
891
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
894
|
const deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand = async (output, context) => {
|
|
@@ -899,7 +899,7 @@ const deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand
|
|
|
899
899
|
$metadata: deserializeMetadata(output),
|
|
900
900
|
errorEntries: undefined,
|
|
901
901
|
};
|
|
902
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
902
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
903
903
|
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
904
904
|
contents.errorEntries = deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList(data.errorEntries, context);
|
|
905
905
|
}
|
|
@@ -937,7 +937,7 @@ const deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand
|
|
|
937
937
|
$fault: "client",
|
|
938
938
|
$metadata: deserializeMetadata(output),
|
|
939
939
|
});
|
|
940
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
940
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
941
941
|
}
|
|
942
942
|
};
|
|
943
943
|
const deserializeAws_restJson1CancelDeploymentCommand = async (output, context) => {
|
|
@@ -948,9 +948,9 @@ const deserializeAws_restJson1CancelDeploymentCommand = async (output, context)
|
|
|
948
948
|
$metadata: deserializeMetadata(output),
|
|
949
949
|
message: undefined,
|
|
950
950
|
};
|
|
951
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
951
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
952
952
|
if (data.message !== undefined && data.message !== null) {
|
|
953
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
953
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
954
954
|
}
|
|
955
955
|
return Promise.resolve(contents);
|
|
956
956
|
};
|
|
@@ -989,7 +989,7 @@ const deserializeAws_restJson1CancelDeploymentCommandError = async (output, cont
|
|
|
989
989
|
$fault: "client",
|
|
990
990
|
$metadata: deserializeMetadata(output),
|
|
991
991
|
});
|
|
992
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
992
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
993
993
|
}
|
|
994
994
|
};
|
|
995
995
|
const deserializeAws_restJson1CreateComponentVersionCommand = async (output, context) => {
|
|
@@ -1004,18 +1004,18 @@ const deserializeAws_restJson1CreateComponentVersionCommand = async (output, con
|
|
|
1004
1004
|
creationTimestamp: undefined,
|
|
1005
1005
|
status: undefined,
|
|
1006
1006
|
};
|
|
1007
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1007
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1008
1008
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1009
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1009
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1010
1010
|
}
|
|
1011
1011
|
if (data.componentName !== undefined && data.componentName !== null) {
|
|
1012
|
-
contents.componentName = smithy_client_1.expectString(data.componentName);
|
|
1012
|
+
contents.componentName = (0, smithy_client_1.expectString)(data.componentName);
|
|
1013
1013
|
}
|
|
1014
1014
|
if (data.componentVersion !== undefined && data.componentVersion !== null) {
|
|
1015
|
-
contents.componentVersion = smithy_client_1.expectString(data.componentVersion);
|
|
1015
|
+
contents.componentVersion = (0, smithy_client_1.expectString)(data.componentVersion);
|
|
1016
1016
|
}
|
|
1017
1017
|
if (data.creationTimestamp !== undefined && data.creationTimestamp !== null) {
|
|
1018
|
-
contents.creationTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationTimestamp)));
|
|
1018
|
+
contents.creationTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTimestamp)));
|
|
1019
1019
|
}
|
|
1020
1020
|
if (data.status !== undefined && data.status !== null) {
|
|
1021
1021
|
contents.status = deserializeAws_restJson1CloudComponentStatus(data.status, context);
|
|
@@ -1060,7 +1060,7 @@ const deserializeAws_restJson1CreateComponentVersionCommandError = async (output
|
|
|
1060
1060
|
$fault: "client",
|
|
1061
1061
|
$metadata: deserializeMetadata(output),
|
|
1062
1062
|
});
|
|
1063
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1063
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
1066
|
const deserializeAws_restJson1CreateDeploymentCommand = async (output, context) => {
|
|
@@ -1073,15 +1073,15 @@ const deserializeAws_restJson1CreateDeploymentCommand = async (output, context)
|
|
|
1073
1073
|
iotJobArn: undefined,
|
|
1074
1074
|
iotJobId: undefined,
|
|
1075
1075
|
};
|
|
1076
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1076
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1077
1077
|
if (data.deploymentId !== undefined && data.deploymentId !== null) {
|
|
1078
|
-
contents.deploymentId = smithy_client_1.expectString(data.deploymentId);
|
|
1078
|
+
contents.deploymentId = (0, smithy_client_1.expectString)(data.deploymentId);
|
|
1079
1079
|
}
|
|
1080
1080
|
if (data.iotJobArn !== undefined && data.iotJobArn !== null) {
|
|
1081
|
-
contents.iotJobArn = smithy_client_1.expectString(data.iotJobArn);
|
|
1081
|
+
contents.iotJobArn = (0, smithy_client_1.expectString)(data.iotJobArn);
|
|
1082
1082
|
}
|
|
1083
1083
|
if (data.iotJobId !== undefined && data.iotJobId !== null) {
|
|
1084
|
-
contents.iotJobId = smithy_client_1.expectString(data.iotJobId);
|
|
1084
|
+
contents.iotJobId = (0, smithy_client_1.expectString)(data.iotJobId);
|
|
1085
1085
|
}
|
|
1086
1086
|
return Promise.resolve(contents);
|
|
1087
1087
|
};
|
|
@@ -1120,7 +1120,7 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1120
1120
|
$fault: "client",
|
|
1121
1121
|
$metadata: deserializeMetadata(output),
|
|
1122
1122
|
});
|
|
1123
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1123
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1124
1124
|
}
|
|
1125
1125
|
};
|
|
1126
1126
|
const deserializeAws_restJson1DeleteComponentCommand = async (output, context) => {
|
|
@@ -1168,7 +1168,7 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
1168
1168
|
$fault: "client",
|
|
1169
1169
|
$metadata: deserializeMetadata(output),
|
|
1170
1170
|
});
|
|
1171
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1171
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1172
1172
|
}
|
|
1173
1173
|
};
|
|
1174
1174
|
const deserializeAws_restJson1DeleteCoreDeviceCommand = async (output, context) => {
|
|
@@ -1216,7 +1216,7 @@ const deserializeAws_restJson1DeleteCoreDeviceCommandError = async (output, cont
|
|
|
1216
1216
|
$fault: "client",
|
|
1217
1217
|
$metadata: deserializeMetadata(output),
|
|
1218
1218
|
});
|
|
1219
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1219
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1220
1220
|
}
|
|
1221
1221
|
};
|
|
1222
1222
|
const deserializeAws_restJson1DescribeComponentCommand = async (output, context) => {
|
|
@@ -1235,27 +1235,27 @@ const deserializeAws_restJson1DescribeComponentCommand = async (output, context)
|
|
|
1235
1235
|
status: undefined,
|
|
1236
1236
|
tags: undefined,
|
|
1237
1237
|
};
|
|
1238
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1238
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1239
1239
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1240
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1240
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1241
1241
|
}
|
|
1242
1242
|
if (data.componentName !== undefined && data.componentName !== null) {
|
|
1243
|
-
contents.componentName = smithy_client_1.expectString(data.componentName);
|
|
1243
|
+
contents.componentName = (0, smithy_client_1.expectString)(data.componentName);
|
|
1244
1244
|
}
|
|
1245
1245
|
if (data.componentVersion !== undefined && data.componentVersion !== null) {
|
|
1246
|
-
contents.componentVersion = smithy_client_1.expectString(data.componentVersion);
|
|
1246
|
+
contents.componentVersion = (0, smithy_client_1.expectString)(data.componentVersion);
|
|
1247
1247
|
}
|
|
1248
1248
|
if (data.creationTimestamp !== undefined && data.creationTimestamp !== null) {
|
|
1249
|
-
contents.creationTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationTimestamp)));
|
|
1249
|
+
contents.creationTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTimestamp)));
|
|
1250
1250
|
}
|
|
1251
1251
|
if (data.description !== undefined && data.description !== null) {
|
|
1252
|
-
contents.description = smithy_client_1.expectString(data.description);
|
|
1252
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1253
1253
|
}
|
|
1254
1254
|
if (data.platforms !== undefined && data.platforms !== null) {
|
|
1255
1255
|
contents.platforms = deserializeAws_restJson1ComponentPlatformList(data.platforms, context);
|
|
1256
1256
|
}
|
|
1257
1257
|
if (data.publisher !== undefined && data.publisher !== null) {
|
|
1258
|
-
contents.publisher = smithy_client_1.expectString(data.publisher);
|
|
1258
|
+
contents.publisher = (0, smithy_client_1.expectString)(data.publisher);
|
|
1259
1259
|
}
|
|
1260
1260
|
if (data.status !== undefined && data.status !== null) {
|
|
1261
1261
|
contents.status = deserializeAws_restJson1CloudComponentStatus(data.status, context);
|
|
@@ -1297,7 +1297,7 @@ const deserializeAws_restJson1DescribeComponentCommandError = async (output, con
|
|
|
1297
1297
|
$fault: "client",
|
|
1298
1298
|
$metadata: deserializeMetadata(output),
|
|
1299
1299
|
});
|
|
1300
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1300
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1301
1301
|
}
|
|
1302
1302
|
};
|
|
1303
1303
|
const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = async (output, context) => {
|
|
@@ -1308,9 +1308,9 @@ const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = async
|
|
|
1308
1308
|
$metadata: deserializeMetadata(output),
|
|
1309
1309
|
disassociatedAt: undefined,
|
|
1310
1310
|
};
|
|
1311
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1311
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1312
1312
|
if (data.DisassociatedAt !== undefined && data.DisassociatedAt !== null) {
|
|
1313
|
-
contents.disassociatedAt = smithy_client_1.expectString(data.DisassociatedAt);
|
|
1313
|
+
contents.disassociatedAt = (0, smithy_client_1.expectString)(data.DisassociatedAt);
|
|
1314
1314
|
}
|
|
1315
1315
|
return Promise.resolve(contents);
|
|
1316
1316
|
};
|
|
@@ -1334,7 +1334,7 @@ const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = a
|
|
|
1334
1334
|
$fault: "client",
|
|
1335
1335
|
$metadata: deserializeMetadata(output),
|
|
1336
1336
|
});
|
|
1337
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1337
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1338
1338
|
}
|
|
1339
1339
|
};
|
|
1340
1340
|
const deserializeAws_restJson1GetComponentCommand = async (output, context) => {
|
|
@@ -1347,12 +1347,12 @@ const deserializeAws_restJson1GetComponentCommand = async (output, context) => {
|
|
|
1347
1347
|
recipeOutputFormat: undefined,
|
|
1348
1348
|
tags: undefined,
|
|
1349
1349
|
};
|
|
1350
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1350
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1351
1351
|
if (data.recipe !== undefined && data.recipe !== null) {
|
|
1352
1352
|
contents.recipe = context.base64Decoder(data.recipe);
|
|
1353
1353
|
}
|
|
1354
1354
|
if (data.recipeOutputFormat !== undefined && data.recipeOutputFormat !== null) {
|
|
1355
|
-
contents.recipeOutputFormat = smithy_client_1.expectString(data.recipeOutputFormat);
|
|
1355
|
+
contents.recipeOutputFormat = (0, smithy_client_1.expectString)(data.recipeOutputFormat);
|
|
1356
1356
|
}
|
|
1357
1357
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1358
1358
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -1391,7 +1391,7 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
1391
1391
|
$fault: "client",
|
|
1392
1392
|
$metadata: deserializeMetadata(output),
|
|
1393
1393
|
});
|
|
1394
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1394
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1395
1395
|
}
|
|
1396
1396
|
};
|
|
1397
1397
|
const deserializeAws_restJson1GetComponentVersionArtifactCommand = async (output, context) => {
|
|
@@ -1402,9 +1402,9 @@ const deserializeAws_restJson1GetComponentVersionArtifactCommand = async (output
|
|
|
1402
1402
|
$metadata: deserializeMetadata(output),
|
|
1403
1403
|
preSignedUrl: undefined,
|
|
1404
1404
|
};
|
|
1405
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1405
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1406
1406
|
if (data.preSignedUrl !== undefined && data.preSignedUrl !== null) {
|
|
1407
|
-
contents.preSignedUrl = smithy_client_1.expectString(data.preSignedUrl);
|
|
1407
|
+
contents.preSignedUrl = (0, smithy_client_1.expectString)(data.preSignedUrl);
|
|
1408
1408
|
}
|
|
1409
1409
|
return Promise.resolve(contents);
|
|
1410
1410
|
};
|
|
@@ -1440,7 +1440,7 @@ const deserializeAws_restJson1GetComponentVersionArtifactCommandError = async (o
|
|
|
1440
1440
|
$fault: "client",
|
|
1441
1441
|
$metadata: deserializeMetadata(output),
|
|
1442
1442
|
});
|
|
1443
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1443
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
1446
|
const deserializeAws_restJson1GetConnectivityInfoCommand = async (output, context) => {
|
|
@@ -1452,12 +1452,12 @@ const deserializeAws_restJson1GetConnectivityInfoCommand = async (output, contex
|
|
|
1452
1452
|
connectivityInfo: undefined,
|
|
1453
1453
|
message: undefined,
|
|
1454
1454
|
};
|
|
1455
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1455
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1456
1456
|
if (data.ConnectivityInfo !== undefined && data.ConnectivityInfo !== null) {
|
|
1457
1457
|
contents.connectivityInfo = deserializeAws_restJson1connectivityInfoList(data.ConnectivityInfo, context);
|
|
1458
1458
|
}
|
|
1459
1459
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1460
|
-
contents.message = smithy_client_1.expectString(data.Message);
|
|
1460
|
+
contents.message = (0, smithy_client_1.expectString)(data.Message);
|
|
1461
1461
|
}
|
|
1462
1462
|
return Promise.resolve(contents);
|
|
1463
1463
|
};
|
|
@@ -1484,7 +1484,7 @@ const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, c
|
|
|
1484
1484
|
$fault: "client",
|
|
1485
1485
|
$metadata: deserializeMetadata(output),
|
|
1486
1486
|
});
|
|
1487
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1487
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1488
1488
|
}
|
|
1489
1489
|
};
|
|
1490
1490
|
const deserializeAws_restJson1GetCoreDeviceCommand = async (output, context) => {
|
|
@@ -1501,24 +1501,24 @@ const deserializeAws_restJson1GetCoreDeviceCommand = async (output, context) =>
|
|
|
1501
1501
|
status: undefined,
|
|
1502
1502
|
tags: undefined,
|
|
1503
1503
|
};
|
|
1504
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1504
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1505
1505
|
if (data.architecture !== undefined && data.architecture !== null) {
|
|
1506
|
-
contents.architecture = smithy_client_1.expectString(data.architecture);
|
|
1506
|
+
contents.architecture = (0, smithy_client_1.expectString)(data.architecture);
|
|
1507
1507
|
}
|
|
1508
1508
|
if (data.coreDeviceThingName !== undefined && data.coreDeviceThingName !== null) {
|
|
1509
|
-
contents.coreDeviceThingName = smithy_client_1.expectString(data.coreDeviceThingName);
|
|
1509
|
+
contents.coreDeviceThingName = (0, smithy_client_1.expectString)(data.coreDeviceThingName);
|
|
1510
1510
|
}
|
|
1511
1511
|
if (data.coreVersion !== undefined && data.coreVersion !== null) {
|
|
1512
|
-
contents.coreVersion = smithy_client_1.expectString(data.coreVersion);
|
|
1512
|
+
contents.coreVersion = (0, smithy_client_1.expectString)(data.coreVersion);
|
|
1513
1513
|
}
|
|
1514
1514
|
if (data.lastStatusUpdateTimestamp !== undefined && data.lastStatusUpdateTimestamp !== null) {
|
|
1515
|
-
contents.lastStatusUpdateTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastStatusUpdateTimestamp)));
|
|
1515
|
+
contents.lastStatusUpdateTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastStatusUpdateTimestamp)));
|
|
1516
1516
|
}
|
|
1517
1517
|
if (data.platform !== undefined && data.platform !== null) {
|
|
1518
|
-
contents.platform = smithy_client_1.expectString(data.platform);
|
|
1518
|
+
contents.platform = (0, smithy_client_1.expectString)(data.platform);
|
|
1519
1519
|
}
|
|
1520
1520
|
if (data.status !== undefined && data.status !== null) {
|
|
1521
|
-
contents.status = smithy_client_1.expectString(data.status);
|
|
1521
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1522
1522
|
}
|
|
1523
1523
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1524
1524
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -1557,7 +1557,7 @@ const deserializeAws_restJson1GetCoreDeviceCommandError = async (output, context
|
|
|
1557
1557
|
$fault: "client",
|
|
1558
1558
|
$metadata: deserializeMetadata(output),
|
|
1559
1559
|
});
|
|
1560
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1560
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1561
1561
|
}
|
|
1562
1562
|
};
|
|
1563
1563
|
const deserializeAws_restJson1GetDeploymentCommand = async (output, context) => {
|
|
@@ -1580,45 +1580,45 @@ const deserializeAws_restJson1GetDeploymentCommand = async (output, context) =>
|
|
|
1580
1580
|
tags: undefined,
|
|
1581
1581
|
targetArn: undefined,
|
|
1582
1582
|
};
|
|
1583
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1583
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1584
1584
|
if (data.components !== undefined && data.components !== null) {
|
|
1585
1585
|
contents.components = deserializeAws_restJson1ComponentDeploymentSpecifications(data.components, context);
|
|
1586
1586
|
}
|
|
1587
1587
|
if (data.creationTimestamp !== undefined && data.creationTimestamp !== null) {
|
|
1588
|
-
contents.creationTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationTimestamp)));
|
|
1588
|
+
contents.creationTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTimestamp)));
|
|
1589
1589
|
}
|
|
1590
1590
|
if (data.deploymentId !== undefined && data.deploymentId !== null) {
|
|
1591
|
-
contents.deploymentId = smithy_client_1.expectString(data.deploymentId);
|
|
1591
|
+
contents.deploymentId = (0, smithy_client_1.expectString)(data.deploymentId);
|
|
1592
1592
|
}
|
|
1593
1593
|
if (data.deploymentName !== undefined && data.deploymentName !== null) {
|
|
1594
|
-
contents.deploymentName = smithy_client_1.expectString(data.deploymentName);
|
|
1594
|
+
contents.deploymentName = (0, smithy_client_1.expectString)(data.deploymentName);
|
|
1595
1595
|
}
|
|
1596
1596
|
if (data.deploymentPolicies !== undefined && data.deploymentPolicies !== null) {
|
|
1597
1597
|
contents.deploymentPolicies = deserializeAws_restJson1DeploymentPolicies(data.deploymentPolicies, context);
|
|
1598
1598
|
}
|
|
1599
1599
|
if (data.deploymentStatus !== undefined && data.deploymentStatus !== null) {
|
|
1600
|
-
contents.deploymentStatus = smithy_client_1.expectString(data.deploymentStatus);
|
|
1600
|
+
contents.deploymentStatus = (0, smithy_client_1.expectString)(data.deploymentStatus);
|
|
1601
1601
|
}
|
|
1602
1602
|
if (data.iotJobArn !== undefined && data.iotJobArn !== null) {
|
|
1603
|
-
contents.iotJobArn = smithy_client_1.expectString(data.iotJobArn);
|
|
1603
|
+
contents.iotJobArn = (0, smithy_client_1.expectString)(data.iotJobArn);
|
|
1604
1604
|
}
|
|
1605
1605
|
if (data.iotJobConfiguration !== undefined && data.iotJobConfiguration !== null) {
|
|
1606
1606
|
contents.iotJobConfiguration = deserializeAws_restJson1DeploymentIoTJobConfiguration(data.iotJobConfiguration, context);
|
|
1607
1607
|
}
|
|
1608
1608
|
if (data.iotJobId !== undefined && data.iotJobId !== null) {
|
|
1609
|
-
contents.iotJobId = smithy_client_1.expectString(data.iotJobId);
|
|
1609
|
+
contents.iotJobId = (0, smithy_client_1.expectString)(data.iotJobId);
|
|
1610
1610
|
}
|
|
1611
1611
|
if (data.isLatestForTarget !== undefined && data.isLatestForTarget !== null) {
|
|
1612
|
-
contents.isLatestForTarget = smithy_client_1.expectBoolean(data.isLatestForTarget);
|
|
1612
|
+
contents.isLatestForTarget = (0, smithy_client_1.expectBoolean)(data.isLatestForTarget);
|
|
1613
1613
|
}
|
|
1614
1614
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
1615
|
-
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
1615
|
+
contents.revisionId = (0, smithy_client_1.expectString)(data.revisionId);
|
|
1616
1616
|
}
|
|
1617
1617
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1618
1618
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1619
1619
|
}
|
|
1620
1620
|
if (data.targetArn !== undefined && data.targetArn !== null) {
|
|
1621
|
-
contents.targetArn = smithy_client_1.expectString(data.targetArn);
|
|
1621
|
+
contents.targetArn = (0, smithy_client_1.expectString)(data.targetArn);
|
|
1622
1622
|
}
|
|
1623
1623
|
return Promise.resolve(contents);
|
|
1624
1624
|
};
|
|
@@ -1654,7 +1654,7 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1654
1654
|
$fault: "client",
|
|
1655
1655
|
$metadata: deserializeMetadata(output),
|
|
1656
1656
|
});
|
|
1657
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1657
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1658
1658
|
}
|
|
1659
1659
|
};
|
|
1660
1660
|
const deserializeAws_restJson1GetServiceRoleForAccountCommand = async (output, context) => {
|
|
@@ -1666,12 +1666,12 @@ const deserializeAws_restJson1GetServiceRoleForAccountCommand = async (output, c
|
|
|
1666
1666
|
associatedAt: undefined,
|
|
1667
1667
|
roleArn: undefined,
|
|
1668
1668
|
};
|
|
1669
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1669
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1670
1670
|
if (data.AssociatedAt !== undefined && data.AssociatedAt !== null) {
|
|
1671
|
-
contents.associatedAt = smithy_client_1.expectString(data.AssociatedAt);
|
|
1671
|
+
contents.associatedAt = (0, smithy_client_1.expectString)(data.AssociatedAt);
|
|
1672
1672
|
}
|
|
1673
1673
|
if (data.RoleArn !== undefined && data.RoleArn !== null) {
|
|
1674
|
-
contents.roleArn = smithy_client_1.expectString(data.RoleArn);
|
|
1674
|
+
contents.roleArn = (0, smithy_client_1.expectString)(data.RoleArn);
|
|
1675
1675
|
}
|
|
1676
1676
|
return Promise.resolve(contents);
|
|
1677
1677
|
};
|
|
@@ -1695,7 +1695,7 @@ const deserializeAws_restJson1GetServiceRoleForAccountCommandError = async (outp
|
|
|
1695
1695
|
$fault: "client",
|
|
1696
1696
|
$metadata: deserializeMetadata(output),
|
|
1697
1697
|
});
|
|
1698
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1698
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1699
|
}
|
|
1700
1700
|
};
|
|
1701
1701
|
const deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = async (output, context) => {
|
|
@@ -1707,12 +1707,12 @@ const deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand =
|
|
|
1707
1707
|
associatedClientDevices: undefined,
|
|
1708
1708
|
nextToken: undefined,
|
|
1709
1709
|
};
|
|
1710
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1710
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1711
1711
|
if (data.associatedClientDevices !== undefined && data.associatedClientDevices !== null) {
|
|
1712
1712
|
contents.associatedClientDevices = deserializeAws_restJson1AssociatedClientDeviceList(data.associatedClientDevices, context);
|
|
1713
1713
|
}
|
|
1714
1714
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1715
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1715
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1716
1716
|
}
|
|
1717
1717
|
return Promise.resolve(contents);
|
|
1718
1718
|
};
|
|
@@ -1748,7 +1748,7 @@ const deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommandEr
|
|
|
1748
1748
|
$fault: "client",
|
|
1749
1749
|
$metadata: deserializeMetadata(output),
|
|
1750
1750
|
});
|
|
1751
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1751
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1752
1752
|
}
|
|
1753
1753
|
};
|
|
1754
1754
|
const deserializeAws_restJson1ListComponentsCommand = async (output, context) => {
|
|
@@ -1760,12 +1760,12 @@ const deserializeAws_restJson1ListComponentsCommand = async (output, context) =>
|
|
|
1760
1760
|
components: undefined,
|
|
1761
1761
|
nextToken: undefined,
|
|
1762
1762
|
};
|
|
1763
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1763
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1764
1764
|
if (data.components !== undefined && data.components !== null) {
|
|
1765
1765
|
contents.components = deserializeAws_restJson1ComponentList(data.components, context);
|
|
1766
1766
|
}
|
|
1767
1767
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1768
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1768
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1769
1769
|
}
|
|
1770
1770
|
return Promise.resolve(contents);
|
|
1771
1771
|
};
|
|
@@ -1798,7 +1798,7 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
1798
1798
|
$fault: "client",
|
|
1799
1799
|
$metadata: deserializeMetadata(output),
|
|
1800
1800
|
});
|
|
1801
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1801
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1802
1802
|
}
|
|
1803
1803
|
};
|
|
1804
1804
|
const deserializeAws_restJson1ListComponentVersionsCommand = async (output, context) => {
|
|
@@ -1810,12 +1810,12 @@ const deserializeAws_restJson1ListComponentVersionsCommand = async (output, cont
|
|
|
1810
1810
|
componentVersions: undefined,
|
|
1811
1811
|
nextToken: undefined,
|
|
1812
1812
|
};
|
|
1813
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1813
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1814
1814
|
if (data.componentVersions !== undefined && data.componentVersions !== null) {
|
|
1815
1815
|
contents.componentVersions = deserializeAws_restJson1ComponentVersionList(data.componentVersions, context);
|
|
1816
1816
|
}
|
|
1817
1817
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1818
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1818
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1819
1819
|
}
|
|
1820
1820
|
return Promise.resolve(contents);
|
|
1821
1821
|
};
|
|
@@ -1851,7 +1851,7 @@ const deserializeAws_restJson1ListComponentVersionsCommandError = async (output,
|
|
|
1851
1851
|
$fault: "client",
|
|
1852
1852
|
$metadata: deserializeMetadata(output),
|
|
1853
1853
|
});
|
|
1854
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1854
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1855
1855
|
}
|
|
1856
1856
|
};
|
|
1857
1857
|
const deserializeAws_restJson1ListCoreDevicesCommand = async (output, context) => {
|
|
@@ -1863,12 +1863,12 @@ const deserializeAws_restJson1ListCoreDevicesCommand = async (output, context) =
|
|
|
1863
1863
|
coreDevices: undefined,
|
|
1864
1864
|
nextToken: undefined,
|
|
1865
1865
|
};
|
|
1866
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1866
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1867
1867
|
if (data.coreDevices !== undefined && data.coreDevices !== null) {
|
|
1868
1868
|
contents.coreDevices = deserializeAws_restJson1CoreDevicesList(data.coreDevices, context);
|
|
1869
1869
|
}
|
|
1870
1870
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1871
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1871
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1872
1872
|
}
|
|
1873
1873
|
return Promise.resolve(contents);
|
|
1874
1874
|
};
|
|
@@ -1901,7 +1901,7 @@ const deserializeAws_restJson1ListCoreDevicesCommandError = async (output, conte
|
|
|
1901
1901
|
$fault: "client",
|
|
1902
1902
|
$metadata: deserializeMetadata(output),
|
|
1903
1903
|
});
|
|
1904
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1904
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1905
1905
|
}
|
|
1906
1906
|
};
|
|
1907
1907
|
const deserializeAws_restJson1ListDeploymentsCommand = async (output, context) => {
|
|
@@ -1913,12 +1913,12 @@ const deserializeAws_restJson1ListDeploymentsCommand = async (output, context) =
|
|
|
1913
1913
|
deployments: undefined,
|
|
1914
1914
|
nextToken: undefined,
|
|
1915
1915
|
};
|
|
1916
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1916
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1917
1917
|
if (data.deployments !== undefined && data.deployments !== null) {
|
|
1918
1918
|
contents.deployments = deserializeAws_restJson1DeploymentList(data.deployments, context);
|
|
1919
1919
|
}
|
|
1920
1920
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1921
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1921
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1922
1922
|
}
|
|
1923
1923
|
return Promise.resolve(contents);
|
|
1924
1924
|
};
|
|
@@ -1951,7 +1951,7 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
1951
1951
|
$fault: "client",
|
|
1952
1952
|
$metadata: deserializeMetadata(output),
|
|
1953
1953
|
});
|
|
1954
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1954
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1955
1955
|
}
|
|
1956
1956
|
};
|
|
1957
1957
|
const deserializeAws_restJson1ListEffectiveDeploymentsCommand = async (output, context) => {
|
|
@@ -1963,12 +1963,12 @@ const deserializeAws_restJson1ListEffectiveDeploymentsCommand = async (output, c
|
|
|
1963
1963
|
effectiveDeployments: undefined,
|
|
1964
1964
|
nextToken: undefined,
|
|
1965
1965
|
};
|
|
1966
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1966
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1967
1967
|
if (data.effectiveDeployments !== undefined && data.effectiveDeployments !== null) {
|
|
1968
1968
|
contents.effectiveDeployments = deserializeAws_restJson1EffectiveDeploymentsList(data.effectiveDeployments, context);
|
|
1969
1969
|
}
|
|
1970
1970
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1971
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1971
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1972
1972
|
}
|
|
1973
1973
|
return Promise.resolve(contents);
|
|
1974
1974
|
};
|
|
@@ -2004,7 +2004,7 @@ const deserializeAws_restJson1ListEffectiveDeploymentsCommandError = async (outp
|
|
|
2004
2004
|
$fault: "client",
|
|
2005
2005
|
$metadata: deserializeMetadata(output),
|
|
2006
2006
|
});
|
|
2007
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2007
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2008
2008
|
}
|
|
2009
2009
|
};
|
|
2010
2010
|
const deserializeAws_restJson1ListInstalledComponentsCommand = async (output, context) => {
|
|
@@ -2016,12 +2016,12 @@ const deserializeAws_restJson1ListInstalledComponentsCommand = async (output, co
|
|
|
2016
2016
|
installedComponents: undefined,
|
|
2017
2017
|
nextToken: undefined,
|
|
2018
2018
|
};
|
|
2019
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2019
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2020
2020
|
if (data.installedComponents !== undefined && data.installedComponents !== null) {
|
|
2021
2021
|
contents.installedComponents = deserializeAws_restJson1InstalledComponentList(data.installedComponents, context);
|
|
2022
2022
|
}
|
|
2023
2023
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2024
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2024
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2025
2025
|
}
|
|
2026
2026
|
return Promise.resolve(contents);
|
|
2027
2027
|
};
|
|
@@ -2057,7 +2057,7 @@ const deserializeAws_restJson1ListInstalledComponentsCommandError = async (outpu
|
|
|
2057
2057
|
$fault: "client",
|
|
2058
2058
|
$metadata: deserializeMetadata(output),
|
|
2059
2059
|
});
|
|
2060
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2060
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2061
2061
|
}
|
|
2062
2062
|
};
|
|
2063
2063
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2068,7 +2068,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2068
2068
|
$metadata: deserializeMetadata(output),
|
|
2069
2069
|
tags: undefined,
|
|
2070
2070
|
};
|
|
2071
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2071
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2072
2072
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2073
2073
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2074
2074
|
}
|
|
@@ -2100,7 +2100,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2100
2100
|
$fault: "client",
|
|
2101
2101
|
$metadata: deserializeMetadata(output),
|
|
2102
2102
|
});
|
|
2103
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2103
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2104
2104
|
}
|
|
2105
2105
|
};
|
|
2106
2106
|
const deserializeAws_restJson1ResolveComponentCandidatesCommand = async (output, context) => {
|
|
@@ -2111,7 +2111,7 @@ const deserializeAws_restJson1ResolveComponentCandidatesCommand = async (output,
|
|
|
2111
2111
|
$metadata: deserializeMetadata(output),
|
|
2112
2112
|
resolvedComponentVersions: undefined,
|
|
2113
2113
|
};
|
|
2114
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2114
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2115
2115
|
if (data.resolvedComponentVersions !== undefined && data.resolvedComponentVersions !== null) {
|
|
2116
2116
|
contents.resolvedComponentVersions = deserializeAws_restJson1ResolvedComponentVersionsList(data.resolvedComponentVersions, context);
|
|
2117
2117
|
}
|
|
@@ -2152,7 +2152,7 @@ const deserializeAws_restJson1ResolveComponentCandidatesCommandError = async (ou
|
|
|
2152
2152
|
$fault: "client",
|
|
2153
2153
|
$metadata: deserializeMetadata(output),
|
|
2154
2154
|
});
|
|
2155
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2155
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2156
2156
|
}
|
|
2157
2157
|
};
|
|
2158
2158
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -2191,7 +2191,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2191
2191
|
$fault: "client",
|
|
2192
2192
|
$metadata: deserializeMetadata(output),
|
|
2193
2193
|
});
|
|
2194
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2194
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2195
2195
|
}
|
|
2196
2196
|
};
|
|
2197
2197
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -2230,7 +2230,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2230
2230
|
$fault: "client",
|
|
2231
2231
|
$metadata: deserializeMetadata(output),
|
|
2232
2232
|
});
|
|
2233
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2233
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2234
2234
|
}
|
|
2235
2235
|
};
|
|
2236
2236
|
const deserializeAws_restJson1UpdateConnectivityInfoCommand = async (output, context) => {
|
|
@@ -2242,12 +2242,12 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommand = async (output, con
|
|
|
2242
2242
|
message: undefined,
|
|
2243
2243
|
version: undefined,
|
|
2244
2244
|
};
|
|
2245
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2245
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2246
2246
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2247
|
-
contents.message = smithy_client_1.expectString(data.Message);
|
|
2247
|
+
contents.message = (0, smithy_client_1.expectString)(data.Message);
|
|
2248
2248
|
}
|
|
2249
2249
|
if (data.Version !== undefined && data.Version !== null) {
|
|
2250
|
-
contents.version = smithy_client_1.expectString(data.Version);
|
|
2250
|
+
contents.version = (0, smithy_client_1.expectString)(data.Version);
|
|
2251
2251
|
}
|
|
2252
2252
|
return Promise.resolve(contents);
|
|
2253
2253
|
};
|
|
@@ -2274,128 +2274,128 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output
|
|
|
2274
2274
|
$fault: "client",
|
|
2275
2275
|
$metadata: deserializeMetadata(output),
|
|
2276
2276
|
});
|
|
2277
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2277
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2278
2278
|
}
|
|
2279
2279
|
};
|
|
2280
2280
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2281
2281
|
const contents = {};
|
|
2282
2282
|
const data = parsedOutput.body;
|
|
2283
2283
|
if (data.message !== undefined && data.message !== null) {
|
|
2284
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2284
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2285
2285
|
}
|
|
2286
2286
|
const exception = new models_0_1.AccessDeniedException({
|
|
2287
2287
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2288
2288
|
...contents,
|
|
2289
2289
|
});
|
|
2290
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2290
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2291
2291
|
};
|
|
2292
2292
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2293
2293
|
const contents = {};
|
|
2294
2294
|
const data = parsedOutput.body;
|
|
2295
2295
|
if (data.message !== undefined && data.message !== null) {
|
|
2296
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2296
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2297
2297
|
}
|
|
2298
2298
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2299
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2299
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2300
2300
|
}
|
|
2301
2301
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2302
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2302
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2303
2303
|
}
|
|
2304
2304
|
const exception = new models_0_1.ConflictException({
|
|
2305
2305
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2306
2306
|
...contents,
|
|
2307
2307
|
});
|
|
2308
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2308
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2309
2309
|
};
|
|
2310
2310
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2311
2311
|
const contents = {};
|
|
2312
2312
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2313
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
2313
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
2314
2314
|
}
|
|
2315
2315
|
const data = parsedOutput.body;
|
|
2316
2316
|
if (data.message !== undefined && data.message !== null) {
|
|
2317
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2317
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2318
2318
|
}
|
|
2319
2319
|
const exception = new models_0_1.InternalServerException({
|
|
2320
2320
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2321
2321
|
...contents,
|
|
2322
2322
|
});
|
|
2323
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2323
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2324
2324
|
};
|
|
2325
2325
|
const deserializeAws_restJson1RequestAlreadyInProgressExceptionResponse = async (parsedOutput, context) => {
|
|
2326
2326
|
const contents = {};
|
|
2327
2327
|
const data = parsedOutput.body;
|
|
2328
2328
|
if (data.message !== undefined && data.message !== null) {
|
|
2329
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2329
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2330
2330
|
}
|
|
2331
2331
|
const exception = new models_0_1.RequestAlreadyInProgressException({
|
|
2332
2332
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2333
2333
|
...contents,
|
|
2334
2334
|
});
|
|
2335
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2335
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2336
2336
|
};
|
|
2337
2337
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2338
2338
|
const contents = {};
|
|
2339
2339
|
const data = parsedOutput.body;
|
|
2340
2340
|
if (data.message !== undefined && data.message !== null) {
|
|
2341
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2341
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2342
2342
|
}
|
|
2343
2343
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2344
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2344
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2345
2345
|
}
|
|
2346
2346
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2347
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2347
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2348
2348
|
}
|
|
2349
2349
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2350
2350
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2351
2351
|
...contents,
|
|
2352
2352
|
});
|
|
2353
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2353
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2354
2354
|
};
|
|
2355
2355
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2356
2356
|
const contents = {};
|
|
2357
2357
|
const data = parsedOutput.body;
|
|
2358
2358
|
if (data.message !== undefined && data.message !== null) {
|
|
2359
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2359
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2360
2360
|
}
|
|
2361
2361
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2362
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2362
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2363
2363
|
}
|
|
2364
2364
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2365
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2365
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2366
2366
|
}
|
|
2367
2367
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2368
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2368
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2369
2369
|
}
|
|
2370
2370
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2371
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2371
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2372
2372
|
}
|
|
2373
2373
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2374
2374
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2375
2375
|
...contents,
|
|
2376
2376
|
});
|
|
2377
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2377
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2378
2378
|
};
|
|
2379
2379
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2380
2380
|
const contents = {};
|
|
2381
2381
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2382
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
2382
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
2383
2383
|
}
|
|
2384
2384
|
const data = parsedOutput.body;
|
|
2385
2385
|
if (data.message !== undefined && data.message !== null) {
|
|
2386
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2386
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2387
2387
|
}
|
|
2388
2388
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2389
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2389
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2390
2390
|
}
|
|
2391
2391
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2392
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2392
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2393
2393
|
}
|
|
2394
2394
|
const exception = new models_0_1.ThrottlingException({
|
|
2395
2395
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2396
2396
|
...contents,
|
|
2397
2397
|
});
|
|
2398
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2398
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2399
2399
|
};
|
|
2400
2400
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2401
2401
|
const contents = {};
|
|
@@ -2404,16 +2404,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2404
2404
|
contents.fields = deserializeAws_restJson1ValidationExceptionFieldList(data.fields, context);
|
|
2405
2405
|
}
|
|
2406
2406
|
if (data.message !== undefined && data.message !== null) {
|
|
2407
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2407
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2408
2408
|
}
|
|
2409
2409
|
if (data.reason !== undefined && data.reason !== null) {
|
|
2410
|
-
contents.reason = smithy_client_1.expectString(data.reason);
|
|
2410
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2411
2411
|
}
|
|
2412
2412
|
const exception = new models_0_1.ValidationException({
|
|
2413
2413
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2414
2414
|
...contents,
|
|
2415
2415
|
});
|
|
2416
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2416
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2417
2417
|
};
|
|
2418
2418
|
const serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntry = (input, context) => {
|
|
2419
2419
|
return {
|
|
@@ -2641,7 +2641,7 @@ const serializeAws_restJson1IoTJobAbortCriteria = (input, context) => {
|
|
|
2641
2641
|
...(input.minNumberOfExecutedThings !== undefined &&
|
|
2642
2642
|
input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
|
|
2643
2643
|
...(input.thresholdPercentage !== undefined &&
|
|
2644
|
-
input.thresholdPercentage !== null && { thresholdPercentage: smithy_client_1.serializeFloat(input.thresholdPercentage) }),
|
|
2644
|
+
input.thresholdPercentage !== null && { thresholdPercentage: (0, smithy_client_1.serializeFloat)(input.thresholdPercentage) }),
|
|
2645
2645
|
};
|
|
2646
2646
|
};
|
|
2647
2647
|
const serializeAws_restJson1IoTJobAbortCriteriaList = (input, context) => {
|
|
@@ -2669,7 +2669,7 @@ const serializeAws_restJson1IoTJobExponentialRolloutRate = (input, context) => {
|
|
|
2669
2669
|
...(input.baseRatePerMinute !== undefined &&
|
|
2670
2670
|
input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute }),
|
|
2671
2671
|
...(input.incrementFactor !== undefined &&
|
|
2672
|
-
input.incrementFactor !== null && { incrementFactor: smithy_client_1.serializeFloat(input.incrementFactor) }),
|
|
2672
|
+
input.incrementFactor !== null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
|
|
2673
2673
|
...(input.rateIncreaseCriteria !== undefined &&
|
|
2674
2674
|
input.rateIncreaseCriteria !== null && {
|
|
2675
2675
|
rateIncreaseCriteria: serializeAws_restJson1IoTJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
|
|
@@ -2846,7 +2846,7 @@ const serializeAws_restJson1PlatformAttributesMap = (input, context) => {
|
|
|
2846
2846
|
};
|
|
2847
2847
|
const serializeAws_restJson1SystemResourceLimits = (input, context) => {
|
|
2848
2848
|
return {
|
|
2849
|
-
...(input.cpus !== undefined && input.cpus !== null && { cpus: smithy_client_1.serializeFloat(input.cpus) }),
|
|
2849
|
+
...(input.cpus !== undefined && input.cpus !== null && { cpus: (0, smithy_client_1.serializeFloat)(input.cpus) }),
|
|
2850
2850
|
...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
|
|
2851
2851
|
};
|
|
2852
2852
|
};
|
|
@@ -2863,9 +2863,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2863
2863
|
};
|
|
2864
2864
|
const deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorEntry = (output, context) => {
|
|
2865
2865
|
return {
|
|
2866
|
-
code: smithy_client_1.expectString(output.code),
|
|
2867
|
-
message: smithy_client_1.expectString(output.message),
|
|
2868
|
-
thingName: smithy_client_1.expectString(output.thingName),
|
|
2866
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
2867
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2868
|
+
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
2869
2869
|
};
|
|
2870
2870
|
};
|
|
2871
2871
|
const deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList = (output, context) => {
|
|
@@ -2882,9 +2882,9 @@ const deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList = (ou
|
|
|
2882
2882
|
const deserializeAws_restJson1AssociatedClientDevice = (output, context) => {
|
|
2883
2883
|
return {
|
|
2884
2884
|
associationTimestamp: output.associationTimestamp !== undefined && output.associationTimestamp !== null
|
|
2885
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.associationTimestamp)))
|
|
2885
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.associationTimestamp)))
|
|
2886
2886
|
: undefined,
|
|
2887
|
-
thingName: smithy_client_1.expectString(output.thingName),
|
|
2887
|
+
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
2888
2888
|
};
|
|
2889
2889
|
};
|
|
2890
2890
|
const deserializeAws_restJson1AssociatedClientDeviceList = (output, context) => {
|
|
@@ -2900,17 +2900,17 @@ const deserializeAws_restJson1AssociatedClientDeviceList = (output, context) =>
|
|
|
2900
2900
|
};
|
|
2901
2901
|
const deserializeAws_restJson1CloudComponentStatus = (output, context) => {
|
|
2902
2902
|
return {
|
|
2903
|
-
componentState: smithy_client_1.expectString(output.componentState),
|
|
2903
|
+
componentState: (0, smithy_client_1.expectString)(output.componentState),
|
|
2904
2904
|
errors: output.errors !== undefined && output.errors !== null
|
|
2905
2905
|
? deserializeAws_restJson1StringMap(output.errors, context)
|
|
2906
2906
|
: undefined,
|
|
2907
|
-
message: smithy_client_1.expectString(output.message),
|
|
2907
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2908
2908
|
};
|
|
2909
2909
|
};
|
|
2910
2910
|
const deserializeAws_restJson1Component = (output, context) => {
|
|
2911
2911
|
return {
|
|
2912
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
2913
|
-
componentName: smithy_client_1.expectString(output.componentName),
|
|
2912
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2913
|
+
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
2914
2914
|
latestVersion: output.latestVersion !== undefined && output.latestVersion !== null
|
|
2915
2915
|
? deserializeAws_restJson1ComponentLatestVersion(output.latestVersion, context)
|
|
2916
2916
|
: undefined,
|
|
@@ -2923,13 +2923,13 @@ const deserializeAws_restJson1ComponentConfigurationPathList = (output, context)
|
|
|
2923
2923
|
if (entry === null) {
|
|
2924
2924
|
return null;
|
|
2925
2925
|
}
|
|
2926
|
-
return smithy_client_1.expectString(entry);
|
|
2926
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2927
2927
|
});
|
|
2928
2928
|
return retVal;
|
|
2929
2929
|
};
|
|
2930
2930
|
const deserializeAws_restJson1ComponentConfigurationUpdate = (output, context) => {
|
|
2931
2931
|
return {
|
|
2932
|
-
merge: smithy_client_1.expectString(output.merge),
|
|
2932
|
+
merge: (0, smithy_client_1.expectString)(output.merge),
|
|
2933
2933
|
reset: output.reset !== undefined && output.reset !== null
|
|
2934
2934
|
? deserializeAws_restJson1ComponentConfigurationPathList(output.reset, context)
|
|
2935
2935
|
: undefined,
|
|
@@ -2937,7 +2937,7 @@ const deserializeAws_restJson1ComponentConfigurationUpdate = (output, context) =
|
|
|
2937
2937
|
};
|
|
2938
2938
|
const deserializeAws_restJson1ComponentDeploymentSpecification = (output, context) => {
|
|
2939
2939
|
return {
|
|
2940
|
-
componentVersion: smithy_client_1.expectString(output.componentVersion),
|
|
2940
|
+
componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
|
|
2941
2941
|
configurationUpdate: output.configurationUpdate !== undefined && output.configurationUpdate !== null
|
|
2942
2942
|
? deserializeAws_restJson1ComponentConfigurationUpdate(output.configurationUpdate, context)
|
|
2943
2943
|
: undefined,
|
|
@@ -2959,16 +2959,16 @@ const deserializeAws_restJson1ComponentDeploymentSpecifications = (output, conte
|
|
|
2959
2959
|
};
|
|
2960
2960
|
const deserializeAws_restJson1ComponentLatestVersion = (output, context) => {
|
|
2961
2961
|
return {
|
|
2962
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
2963
|
-
componentVersion: smithy_client_1.expectString(output.componentVersion),
|
|
2962
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2963
|
+
componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
|
|
2964
2964
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
2965
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTimestamp)))
|
|
2965
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
|
|
2966
2966
|
: undefined,
|
|
2967
|
-
description: smithy_client_1.expectString(output.description),
|
|
2967
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2968
2968
|
platforms: output.platforms !== undefined && output.platforms !== null
|
|
2969
2969
|
? deserializeAws_restJson1ComponentPlatformList(output.platforms, context)
|
|
2970
2970
|
: undefined,
|
|
2971
|
-
publisher: smithy_client_1.expectString(output.publisher),
|
|
2971
|
+
publisher: (0, smithy_client_1.expectString)(output.publisher),
|
|
2972
2972
|
};
|
|
2973
2973
|
};
|
|
2974
2974
|
const deserializeAws_restJson1ComponentList = (output, context) => {
|
|
@@ -2987,7 +2987,7 @@ const deserializeAws_restJson1ComponentPlatform = (output, context) => {
|
|
|
2987
2987
|
attributes: output.attributes !== undefined && output.attributes !== null
|
|
2988
2988
|
? deserializeAws_restJson1PlatformAttributesMap(output.attributes, context)
|
|
2989
2989
|
: undefined,
|
|
2990
|
-
name: smithy_client_1.expectString(output.name),
|
|
2990
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2991
2991
|
};
|
|
2992
2992
|
};
|
|
2993
2993
|
const deserializeAws_restJson1ComponentPlatformList = (output, context) => {
|
|
@@ -3003,11 +3003,11 @@ const deserializeAws_restJson1ComponentPlatformList = (output, context) => {
|
|
|
3003
3003
|
};
|
|
3004
3004
|
const deserializeAws_restJson1ComponentRunWith = (output, context) => {
|
|
3005
3005
|
return {
|
|
3006
|
-
posixUser: smithy_client_1.expectString(output.posixUser),
|
|
3006
|
+
posixUser: (0, smithy_client_1.expectString)(output.posixUser),
|
|
3007
3007
|
systemResourceLimits: output.systemResourceLimits !== undefined && output.systemResourceLimits !== null
|
|
3008
3008
|
? deserializeAws_restJson1SystemResourceLimits(output.systemResourceLimits, context)
|
|
3009
3009
|
: undefined,
|
|
3010
|
-
windowsUser: smithy_client_1.expectString(output.windowsUser),
|
|
3010
|
+
windowsUser: (0, smithy_client_1.expectString)(output.windowsUser),
|
|
3011
3011
|
};
|
|
3012
3012
|
};
|
|
3013
3013
|
const deserializeAws_restJson1ComponentVersionList = (output, context) => {
|
|
@@ -3023,17 +3023,17 @@ const deserializeAws_restJson1ComponentVersionList = (output, context) => {
|
|
|
3023
3023
|
};
|
|
3024
3024
|
const deserializeAws_restJson1ComponentVersionListItem = (output, context) => {
|
|
3025
3025
|
return {
|
|
3026
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3027
|
-
componentName: smithy_client_1.expectString(output.componentName),
|
|
3028
|
-
componentVersion: smithy_client_1.expectString(output.componentVersion),
|
|
3026
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3027
|
+
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
3028
|
+
componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
|
|
3029
3029
|
};
|
|
3030
3030
|
};
|
|
3031
3031
|
const deserializeAws_restJson1ConnectivityInfo = (output, context) => {
|
|
3032
3032
|
return {
|
|
3033
|
-
hostAddress: smithy_client_1.expectString(output.HostAddress),
|
|
3034
|
-
id: smithy_client_1.expectString(output.Id),
|
|
3035
|
-
metadata: smithy_client_1.expectString(output.Metadata),
|
|
3036
|
-
portNumber: smithy_client_1.expectInt32(output.PortNumber),
|
|
3033
|
+
hostAddress: (0, smithy_client_1.expectString)(output.HostAddress),
|
|
3034
|
+
id: (0, smithy_client_1.expectString)(output.Id),
|
|
3035
|
+
metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
3036
|
+
portNumber: (0, smithy_client_1.expectInt32)(output.PortNumber),
|
|
3037
3037
|
};
|
|
3038
3038
|
};
|
|
3039
3039
|
const deserializeAws_restJson1connectivityInfoList = (output, context) => {
|
|
@@ -3049,11 +3049,11 @@ const deserializeAws_restJson1connectivityInfoList = (output, context) => {
|
|
|
3049
3049
|
};
|
|
3050
3050
|
const deserializeAws_restJson1CoreDevice = (output, context) => {
|
|
3051
3051
|
return {
|
|
3052
|
-
coreDeviceThingName: smithy_client_1.expectString(output.coreDeviceThingName),
|
|
3052
|
+
coreDeviceThingName: (0, smithy_client_1.expectString)(output.coreDeviceThingName),
|
|
3053
3053
|
lastStatusUpdateTimestamp: output.lastStatusUpdateTimestamp !== undefined && output.lastStatusUpdateTimestamp !== null
|
|
3054
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastStatusUpdateTimestamp)))
|
|
3054
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStatusUpdateTimestamp)))
|
|
3055
3055
|
: undefined,
|
|
3056
|
-
status: smithy_client_1.expectString(output.status),
|
|
3056
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3057
3057
|
};
|
|
3058
3058
|
};
|
|
3059
3059
|
const deserializeAws_restJson1CoreDevicesList = (output, context) => {
|
|
@@ -3070,25 +3070,25 @@ const deserializeAws_restJson1CoreDevicesList = (output, context) => {
|
|
|
3070
3070
|
const deserializeAws_restJson1Deployment = (output, context) => {
|
|
3071
3071
|
return {
|
|
3072
3072
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
3073
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTimestamp)))
|
|
3073
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
|
|
3074
3074
|
: undefined,
|
|
3075
|
-
deploymentId: smithy_client_1.expectString(output.deploymentId),
|
|
3076
|
-
deploymentName: smithy_client_1.expectString(output.deploymentName),
|
|
3077
|
-
deploymentStatus: smithy_client_1.expectString(output.deploymentStatus),
|
|
3078
|
-
isLatestForTarget: smithy_client_1.expectBoolean(output.isLatestForTarget),
|
|
3079
|
-
revisionId: smithy_client_1.expectString(output.revisionId),
|
|
3080
|
-
targetArn: smithy_client_1.expectString(output.targetArn),
|
|
3075
|
+
deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
|
|
3076
|
+
deploymentName: (0, smithy_client_1.expectString)(output.deploymentName),
|
|
3077
|
+
deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
|
|
3078
|
+
isLatestForTarget: (0, smithy_client_1.expectBoolean)(output.isLatestForTarget),
|
|
3079
|
+
revisionId: (0, smithy_client_1.expectString)(output.revisionId),
|
|
3080
|
+
targetArn: (0, smithy_client_1.expectString)(output.targetArn),
|
|
3081
3081
|
};
|
|
3082
3082
|
};
|
|
3083
3083
|
const deserializeAws_restJson1DeploymentComponentUpdatePolicy = (output, context) => {
|
|
3084
3084
|
return {
|
|
3085
|
-
action: smithy_client_1.expectString(output.action),
|
|
3086
|
-
timeoutInSeconds: smithy_client_1.expectInt32(output.timeoutInSeconds),
|
|
3085
|
+
action: (0, smithy_client_1.expectString)(output.action),
|
|
3086
|
+
timeoutInSeconds: (0, smithy_client_1.expectInt32)(output.timeoutInSeconds),
|
|
3087
3087
|
};
|
|
3088
3088
|
};
|
|
3089
3089
|
const deserializeAws_restJson1DeploymentConfigurationValidationPolicy = (output, context) => {
|
|
3090
3090
|
return {
|
|
3091
|
-
timeoutInSeconds: smithy_client_1.expectInt32(output.timeoutInSeconds),
|
|
3091
|
+
timeoutInSeconds: (0, smithy_client_1.expectInt32)(output.timeoutInSeconds),
|
|
3092
3092
|
};
|
|
3093
3093
|
};
|
|
3094
3094
|
const deserializeAws_restJson1DeploymentIoTJobConfiguration = (output, context) => {
|
|
@@ -3123,14 +3123,14 @@ const deserializeAws_restJson1DeploymentPolicies = (output, context) => {
|
|
|
3123
3123
|
configurationValidationPolicy: output.configurationValidationPolicy !== undefined && output.configurationValidationPolicy !== null
|
|
3124
3124
|
? deserializeAws_restJson1DeploymentConfigurationValidationPolicy(output.configurationValidationPolicy, context)
|
|
3125
3125
|
: undefined,
|
|
3126
|
-
failureHandlingPolicy: smithy_client_1.expectString(output.failureHandlingPolicy),
|
|
3126
|
+
failureHandlingPolicy: (0, smithy_client_1.expectString)(output.failureHandlingPolicy),
|
|
3127
3127
|
};
|
|
3128
3128
|
};
|
|
3129
3129
|
const deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorEntry = (output, context) => {
|
|
3130
3130
|
return {
|
|
3131
|
-
code: smithy_client_1.expectString(output.code),
|
|
3132
|
-
message: smithy_client_1.expectString(output.message),
|
|
3133
|
-
thingName: smithy_client_1.expectString(output.thingName),
|
|
3131
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
3132
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3133
|
+
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
3134
3134
|
};
|
|
3135
3135
|
};
|
|
3136
3136
|
const deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList = (output, context) => {
|
|
@@ -3146,20 +3146,20 @@ const deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList =
|
|
|
3146
3146
|
};
|
|
3147
3147
|
const deserializeAws_restJson1EffectiveDeployment = (output, context) => {
|
|
3148
3148
|
return {
|
|
3149
|
-
coreDeviceExecutionStatus: smithy_client_1.expectString(output.coreDeviceExecutionStatus),
|
|
3149
|
+
coreDeviceExecutionStatus: (0, smithy_client_1.expectString)(output.coreDeviceExecutionStatus),
|
|
3150
3150
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
3151
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTimestamp)))
|
|
3151
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
|
|
3152
3152
|
: undefined,
|
|
3153
|
-
deploymentId: smithy_client_1.expectString(output.deploymentId),
|
|
3154
|
-
deploymentName: smithy_client_1.expectString(output.deploymentName),
|
|
3155
|
-
description: smithy_client_1.expectString(output.description),
|
|
3156
|
-
iotJobArn: smithy_client_1.expectString(output.iotJobArn),
|
|
3157
|
-
iotJobId: smithy_client_1.expectString(output.iotJobId),
|
|
3153
|
+
deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
|
|
3154
|
+
deploymentName: (0, smithy_client_1.expectString)(output.deploymentName),
|
|
3155
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
3156
|
+
iotJobArn: (0, smithy_client_1.expectString)(output.iotJobArn),
|
|
3157
|
+
iotJobId: (0, smithy_client_1.expectString)(output.iotJobId),
|
|
3158
3158
|
modifiedTimestamp: output.modifiedTimestamp !== undefined && output.modifiedTimestamp !== null
|
|
3159
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedTimestamp)))
|
|
3159
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedTimestamp)))
|
|
3160
3160
|
: undefined,
|
|
3161
|
-
reason: smithy_client_1.expectString(output.reason),
|
|
3162
|
-
targetArn: smithy_client_1.expectString(output.targetArn),
|
|
3161
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
3162
|
+
targetArn: (0, smithy_client_1.expectString)(output.targetArn),
|
|
3163
3163
|
};
|
|
3164
3164
|
};
|
|
3165
3165
|
const deserializeAws_restJson1EffectiveDeploymentsList = (output, context) => {
|
|
@@ -3175,11 +3175,11 @@ const deserializeAws_restJson1EffectiveDeploymentsList = (output, context) => {
|
|
|
3175
3175
|
};
|
|
3176
3176
|
const deserializeAws_restJson1InstalledComponent = (output, context) => {
|
|
3177
3177
|
return {
|
|
3178
|
-
componentName: smithy_client_1.expectString(output.componentName),
|
|
3179
|
-
componentVersion: smithy_client_1.expectString(output.componentVersion),
|
|
3180
|
-
isRoot: smithy_client_1.expectBoolean(output.isRoot),
|
|
3181
|
-
lifecycleState: smithy_client_1.expectString(output.lifecycleState),
|
|
3182
|
-
lifecycleStateDetails: smithy_client_1.expectString(output.lifecycleStateDetails),
|
|
3178
|
+
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
3179
|
+
componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
|
|
3180
|
+
isRoot: (0, smithy_client_1.expectBoolean)(output.isRoot),
|
|
3181
|
+
lifecycleState: (0, smithy_client_1.expectString)(output.lifecycleState),
|
|
3182
|
+
lifecycleStateDetails: (0, smithy_client_1.expectString)(output.lifecycleStateDetails),
|
|
3183
3183
|
};
|
|
3184
3184
|
};
|
|
3185
3185
|
const deserializeAws_restJson1InstalledComponentList = (output, context) => {
|
|
@@ -3202,10 +3202,10 @@ const deserializeAws_restJson1IoTJobAbortConfig = (output, context) => {
|
|
|
3202
3202
|
};
|
|
3203
3203
|
const deserializeAws_restJson1IoTJobAbortCriteria = (output, context) => {
|
|
3204
3204
|
return {
|
|
3205
|
-
action: smithy_client_1.expectString(output.action),
|
|
3206
|
-
failureType: smithy_client_1.expectString(output.failureType),
|
|
3207
|
-
minNumberOfExecutedThings: smithy_client_1.expectInt32(output.minNumberOfExecutedThings),
|
|
3208
|
-
thresholdPercentage: smithy_client_1.limitedParseDouble(output.thresholdPercentage),
|
|
3205
|
+
action: (0, smithy_client_1.expectString)(output.action),
|
|
3206
|
+
failureType: (0, smithy_client_1.expectString)(output.failureType),
|
|
3207
|
+
minNumberOfExecutedThings: (0, smithy_client_1.expectInt32)(output.minNumberOfExecutedThings),
|
|
3208
|
+
thresholdPercentage: (0, smithy_client_1.limitedParseDouble)(output.thresholdPercentage),
|
|
3209
3209
|
};
|
|
3210
3210
|
};
|
|
3211
3211
|
const deserializeAws_restJson1IoTJobAbortCriteriaList = (output, context) => {
|
|
@@ -3224,13 +3224,13 @@ const deserializeAws_restJson1IoTJobExecutionsRolloutConfig = (output, context)
|
|
|
3224
3224
|
exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
|
|
3225
3225
|
? deserializeAws_restJson1IoTJobExponentialRolloutRate(output.exponentialRate, context)
|
|
3226
3226
|
: undefined,
|
|
3227
|
-
maximumPerMinute: smithy_client_1.expectInt32(output.maximumPerMinute),
|
|
3227
|
+
maximumPerMinute: (0, smithy_client_1.expectInt32)(output.maximumPerMinute),
|
|
3228
3228
|
};
|
|
3229
3229
|
};
|
|
3230
3230
|
const deserializeAws_restJson1IoTJobExponentialRolloutRate = (output, context) => {
|
|
3231
3231
|
return {
|
|
3232
|
-
baseRatePerMinute: smithy_client_1.expectInt32(output.baseRatePerMinute),
|
|
3233
|
-
incrementFactor: smithy_client_1.limitedParseDouble(output.incrementFactor),
|
|
3232
|
+
baseRatePerMinute: (0, smithy_client_1.expectInt32)(output.baseRatePerMinute),
|
|
3233
|
+
incrementFactor: (0, smithy_client_1.limitedParseDouble)(output.incrementFactor),
|
|
3234
3234
|
rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null
|
|
3235
3235
|
? deserializeAws_restJson1IoTJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
|
|
3236
3236
|
: undefined,
|
|
@@ -3238,13 +3238,13 @@ const deserializeAws_restJson1IoTJobExponentialRolloutRate = (output, context) =
|
|
|
3238
3238
|
};
|
|
3239
3239
|
const deserializeAws_restJson1IoTJobRateIncreaseCriteria = (output, context) => {
|
|
3240
3240
|
return {
|
|
3241
|
-
numberOfNotifiedThings: smithy_client_1.expectInt32(output.numberOfNotifiedThings),
|
|
3242
|
-
numberOfSucceededThings: smithy_client_1.expectInt32(output.numberOfSucceededThings),
|
|
3241
|
+
numberOfNotifiedThings: (0, smithy_client_1.expectInt32)(output.numberOfNotifiedThings),
|
|
3242
|
+
numberOfSucceededThings: (0, smithy_client_1.expectInt32)(output.numberOfSucceededThings),
|
|
3243
3243
|
};
|
|
3244
3244
|
};
|
|
3245
3245
|
const deserializeAws_restJson1IoTJobTimeoutConfig = (output, context) => {
|
|
3246
3246
|
return {
|
|
3247
|
-
inProgressTimeoutInMinutes: smithy_client_1.expectLong(output.inProgressTimeoutInMinutes),
|
|
3247
|
+
inProgressTimeoutInMinutes: (0, smithy_client_1.expectLong)(output.inProgressTimeoutInMinutes),
|
|
3248
3248
|
};
|
|
3249
3249
|
};
|
|
3250
3250
|
const deserializeAws_restJson1PlatformAttributesMap = (output, context) => {
|
|
@@ -3254,15 +3254,15 @@ const deserializeAws_restJson1PlatformAttributesMap = (output, context) => {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
return {
|
|
3256
3256
|
...acc,
|
|
3257
|
-
[key]: smithy_client_1.expectString(value),
|
|
3257
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3258
3258
|
};
|
|
3259
3259
|
}, {});
|
|
3260
3260
|
};
|
|
3261
3261
|
const deserializeAws_restJson1ResolvedComponentVersion = (output, context) => {
|
|
3262
3262
|
return {
|
|
3263
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3264
|
-
componentName: smithy_client_1.expectString(output.componentName),
|
|
3265
|
-
componentVersion: smithy_client_1.expectString(output.componentVersion),
|
|
3263
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3264
|
+
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
3265
|
+
componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
|
|
3266
3266
|
recipe: output.recipe !== undefined && output.recipe !== null ? context.base64Decoder(output.recipe) : undefined,
|
|
3267
3267
|
};
|
|
3268
3268
|
};
|
|
@@ -3284,14 +3284,14 @@ const deserializeAws_restJson1StringMap = (output, context) => {
|
|
|
3284
3284
|
}
|
|
3285
3285
|
return {
|
|
3286
3286
|
...acc,
|
|
3287
|
-
[key]: smithy_client_1.expectString(value),
|
|
3287
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3288
3288
|
};
|
|
3289
3289
|
}, {});
|
|
3290
3290
|
};
|
|
3291
3291
|
const deserializeAws_restJson1SystemResourceLimits = (output, context) => {
|
|
3292
3292
|
return {
|
|
3293
|
-
cpus: smithy_client_1.limitedParseDouble(output.cpus),
|
|
3294
|
-
memory: smithy_client_1.expectLong(output.memory),
|
|
3293
|
+
cpus: (0, smithy_client_1.limitedParseDouble)(output.cpus),
|
|
3294
|
+
memory: (0, smithy_client_1.expectLong)(output.memory),
|
|
3295
3295
|
};
|
|
3296
3296
|
};
|
|
3297
3297
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -3301,14 +3301,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3301
3301
|
}
|
|
3302
3302
|
return {
|
|
3303
3303
|
...acc,
|
|
3304
|
-
[key]: smithy_client_1.expectString(value),
|
|
3304
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3305
3305
|
};
|
|
3306
3306
|
}, {});
|
|
3307
3307
|
};
|
|
3308
3308
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3309
3309
|
return {
|
|
3310
|
-
message: smithy_client_1.expectString(output.message),
|
|
3311
|
-
name: smithy_client_1.expectString(output.name),
|
|
3310
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3311
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3312
3312
|
};
|
|
3313
3313
|
};
|
|
3314
3314
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|