@aws-sdk/client-greengrassv2 3.308.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AssociateServiceRoleToAccountCommand.js +2 -2
- package/dist-cjs/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +2 -2
- package/dist-cjs/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +2 -2
- package/dist-cjs/commands/CancelDeploymentCommand.js +2 -2
- package/dist-cjs/commands/CreateComponentVersionCommand.js +2 -2
- package/dist-cjs/commands/CreateDeploymentCommand.js +2 -2
- package/dist-cjs/commands/DeleteComponentCommand.js +2 -2
- package/dist-cjs/commands/DeleteCoreDeviceCommand.js +2 -2
- package/dist-cjs/commands/DeleteDeploymentCommand.js +2 -2
- package/dist-cjs/commands/DescribeComponentCommand.js +2 -2
- package/dist-cjs/commands/DisassociateServiceRoleFromAccountCommand.js +2 -2
- package/dist-cjs/commands/GetComponentCommand.js +2 -2
- package/dist-cjs/commands/GetComponentVersionArtifactCommand.js +2 -2
- package/dist-cjs/commands/GetConnectivityInfoCommand.js +2 -2
- package/dist-cjs/commands/GetCoreDeviceCommand.js +2 -2
- package/dist-cjs/commands/GetDeploymentCommand.js +2 -2
- package/dist-cjs/commands/GetServiceRoleForAccountCommand.js +2 -2
- package/dist-cjs/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +2 -2
- package/dist-cjs/commands/ListComponentVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListComponentsCommand.js +2 -2
- package/dist-cjs/commands/ListCoreDevicesCommand.js +2 -2
- package/dist-cjs/commands/ListDeploymentsCommand.js +2 -2
- package/dist-cjs/commands/ListEffectiveDeploymentsCommand.js +2 -2
- package/dist-cjs/commands/ListInstalledComponentsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ResolveComponentCandidatesCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateConnectivityInfoCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +514 -546
- package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +3 -3
- package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +3 -3
- package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +3 -3
- package/dist-es/commands/CancelDeploymentCommand.js +3 -3
- package/dist-es/commands/CreateComponentVersionCommand.js +3 -3
- package/dist-es/commands/CreateDeploymentCommand.js +3 -3
- package/dist-es/commands/DeleteComponentCommand.js +3 -3
- package/dist-es/commands/DeleteCoreDeviceCommand.js +3 -3
- package/dist-es/commands/DeleteDeploymentCommand.js +3 -3
- package/dist-es/commands/DescribeComponentCommand.js +3 -3
- package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +3 -3
- package/dist-es/commands/GetComponentCommand.js +3 -3
- package/dist-es/commands/GetComponentVersionArtifactCommand.js +3 -3
- package/dist-es/commands/GetConnectivityInfoCommand.js +3 -3
- package/dist-es/commands/GetCoreDeviceCommand.js +3 -3
- package/dist-es/commands/GetDeploymentCommand.js +3 -3
- package/dist-es/commands/GetServiceRoleForAccountCommand.js +3 -3
- package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +3 -3
- package/dist-es/commands/ListComponentVersionsCommand.js +3 -3
- package/dist-es/commands/ListComponentsCommand.js +3 -3
- package/dist-es/commands/ListCoreDevicesCommand.js +3 -3
- package/dist-es/commands/ListDeploymentsCommand.js +3 -3
- package/dist-es/commands/ListEffectiveDeploymentsCommand.js +3 -3
- package/dist-es/commands/ListInstalledComponentsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ResolveComponentCandidatesCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateConnectivityInfoCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +454 -486
- package/dist-types/protocols/Aws_restJson1.d.ts +232 -58
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +58 -58
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { GreengrassV2ServiceException as __BaseException } from "../models/GreengrassV2ServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, RequestAlreadyInProgressException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateServiceRoleToAccountCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -23,7 +23,7 @@ export const serializeAws_restJson1AssociateServiceRoleToAccountCommand = async
|
|
|
23
23
|
body,
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
export const
|
|
26
|
+
export const se_BatchAssociateClientDeviceWithCoreDeviceCommand = async (input, context) => {
|
|
27
27
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
28
|
const headers = {
|
|
29
29
|
"content-type": "application/json",
|
|
@@ -33,9 +33,7 @@ export const serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceComma
|
|
|
33
33
|
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
34
34
|
let body;
|
|
35
35
|
body = JSON.stringify({
|
|
36
|
-
...(input.entries != null && {
|
|
37
|
-
entries: serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntryList(input.entries, context),
|
|
38
|
-
}),
|
|
36
|
+
...(input.entries != null && { entries: se_AssociateClientDeviceWithCoreDeviceEntryList(input.entries, context) }),
|
|
39
37
|
});
|
|
40
38
|
return new __HttpRequest({
|
|
41
39
|
protocol,
|
|
@@ -47,7 +45,7 @@ export const serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceComma
|
|
|
47
45
|
body,
|
|
48
46
|
});
|
|
49
47
|
};
|
|
50
|
-
export const
|
|
48
|
+
export const se_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (input, context) => {
|
|
51
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
52
50
|
const headers = {
|
|
53
51
|
"content-type": "application/json",
|
|
@@ -58,7 +56,7 @@ export const serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCo
|
|
|
58
56
|
let body;
|
|
59
57
|
body = JSON.stringify({
|
|
60
58
|
...(input.entries != null && {
|
|
61
|
-
entries:
|
|
59
|
+
entries: se_DisassociateClientDeviceFromCoreDeviceEntryList(input.entries, context),
|
|
62
60
|
}),
|
|
63
61
|
});
|
|
64
62
|
return new __HttpRequest({
|
|
@@ -71,7 +69,7 @@ export const serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCo
|
|
|
71
69
|
body,
|
|
72
70
|
});
|
|
73
71
|
};
|
|
74
|
-
export const
|
|
72
|
+
export const se_CancelDeploymentCommand = async (input, context) => {
|
|
75
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
76
74
|
const headers = {};
|
|
77
75
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -88,7 +86,7 @@ export const serializeAws_restJson1CancelDeploymentCommand = async (input, conte
|
|
|
88
86
|
body,
|
|
89
87
|
});
|
|
90
88
|
};
|
|
91
|
-
export const
|
|
89
|
+
export const se_CreateComponentVersionCommand = async (input, context) => {
|
|
92
90
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
91
|
const headers = {
|
|
94
92
|
"content-type": "application/json",
|
|
@@ -99,9 +97,9 @@ export const serializeAws_restJson1CreateComponentVersionCommand = async (input,
|
|
|
99
97
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
100
98
|
...(input.inlineRecipe != null && { inlineRecipe: context.base64Encoder(input.inlineRecipe) }),
|
|
101
99
|
...(input.lambdaFunction != null && {
|
|
102
|
-
lambdaFunction:
|
|
100
|
+
lambdaFunction: se_LambdaFunctionRecipeSource(input.lambdaFunction, context),
|
|
103
101
|
}),
|
|
104
|
-
...(input.tags != null && { tags:
|
|
102
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
105
103
|
});
|
|
106
104
|
return new __HttpRequest({
|
|
107
105
|
protocol,
|
|
@@ -113,7 +111,7 @@ export const serializeAws_restJson1CreateComponentVersionCommand = async (input,
|
|
|
113
111
|
body,
|
|
114
112
|
});
|
|
115
113
|
};
|
|
116
|
-
export const
|
|
114
|
+
export const se_CreateDeploymentCommand = async (input, context) => {
|
|
117
115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
118
116
|
const headers = {
|
|
119
117
|
"content-type": "application/json",
|
|
@@ -122,18 +120,16 @@ export const serializeAws_restJson1CreateDeploymentCommand = async (input, conte
|
|
|
122
120
|
let body;
|
|
123
121
|
body = JSON.stringify({
|
|
124
122
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
125
|
-
...(input.components != null && {
|
|
126
|
-
components: serializeAws_restJson1ComponentDeploymentSpecifications(input.components, context),
|
|
127
|
-
}),
|
|
123
|
+
...(input.components != null && { components: se_ComponentDeploymentSpecifications(input.components, context) }),
|
|
128
124
|
...(input.deploymentName != null && { deploymentName: input.deploymentName }),
|
|
129
125
|
...(input.deploymentPolicies != null && {
|
|
130
|
-
deploymentPolicies:
|
|
126
|
+
deploymentPolicies: se_DeploymentPolicies(input.deploymentPolicies, context),
|
|
131
127
|
}),
|
|
132
128
|
...(input.iotJobConfiguration != null && {
|
|
133
|
-
iotJobConfiguration:
|
|
129
|
+
iotJobConfiguration: se_DeploymentIoTJobConfiguration(input.iotJobConfiguration, context),
|
|
134
130
|
}),
|
|
135
131
|
...(input.parentTargetArn != null && { parentTargetArn: input.parentTargetArn }),
|
|
136
|
-
...(input.tags != null && { tags:
|
|
132
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
137
133
|
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
138
134
|
});
|
|
139
135
|
return new __HttpRequest({
|
|
@@ -146,7 +142,7 @@ export const serializeAws_restJson1CreateDeploymentCommand = async (input, conte
|
|
|
146
142
|
body,
|
|
147
143
|
});
|
|
148
144
|
};
|
|
149
|
-
export const
|
|
145
|
+
export const se_DeleteComponentCommand = async (input, context) => {
|
|
150
146
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
151
147
|
const headers = {};
|
|
152
148
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}";
|
|
@@ -162,7 +158,7 @@ export const serializeAws_restJson1DeleteComponentCommand = async (input, contex
|
|
|
162
158
|
body,
|
|
163
159
|
});
|
|
164
160
|
};
|
|
165
|
-
export const
|
|
161
|
+
export const se_DeleteCoreDeviceCommand = async (input, context) => {
|
|
166
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
163
|
const headers = {};
|
|
168
164
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -179,7 +175,7 @@ export const serializeAws_restJson1DeleteCoreDeviceCommand = async (input, conte
|
|
|
179
175
|
body,
|
|
180
176
|
});
|
|
181
177
|
};
|
|
182
|
-
export const
|
|
178
|
+
export const se_DeleteDeploymentCommand = async (input, context) => {
|
|
183
179
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
184
180
|
const headers = {};
|
|
185
181
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments/{deploymentId}";
|
|
@@ -195,7 +191,7 @@ export const serializeAws_restJson1DeleteDeploymentCommand = async (input, conte
|
|
|
195
191
|
body,
|
|
196
192
|
});
|
|
197
193
|
};
|
|
198
|
-
export const
|
|
194
|
+
export const se_DescribeComponentCommand = async (input, context) => {
|
|
199
195
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
200
196
|
const headers = {};
|
|
201
197
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}/metadata";
|
|
@@ -211,7 +207,7 @@ export const serializeAws_restJson1DescribeComponentCommand = async (input, cont
|
|
|
211
207
|
body,
|
|
212
208
|
});
|
|
213
209
|
};
|
|
214
|
-
export const
|
|
210
|
+
export const se_DisassociateServiceRoleFromAccountCommand = async (input, context) => {
|
|
215
211
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
212
|
const headers = {
|
|
217
213
|
"content-type": "application/json",
|
|
@@ -229,7 +225,7 @@ export const serializeAws_restJson1DisassociateServiceRoleFromAccountCommand = a
|
|
|
229
225
|
body,
|
|
230
226
|
});
|
|
231
227
|
};
|
|
232
|
-
export const
|
|
228
|
+
export const se_GetComponentCommand = async (input, context) => {
|
|
233
229
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
230
|
const headers = {};
|
|
235
231
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}";
|
|
@@ -249,7 +245,7 @@ export const serializeAws_restJson1GetComponentCommand = async (input, context)
|
|
|
249
245
|
body,
|
|
250
246
|
});
|
|
251
247
|
};
|
|
252
|
-
export const
|
|
248
|
+
export const se_GetComponentVersionArtifactCommand = async (input, context) => {
|
|
253
249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
254
250
|
const headers = {};
|
|
255
251
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -267,7 +263,7 @@ export const serializeAws_restJson1GetComponentVersionArtifactCommand = async (i
|
|
|
267
263
|
body,
|
|
268
264
|
});
|
|
269
265
|
};
|
|
270
|
-
export const
|
|
266
|
+
export const se_GetConnectivityInfoCommand = async (input, context) => {
|
|
271
267
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
272
268
|
const headers = {};
|
|
273
269
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -284,7 +280,7 @@ export const serializeAws_restJson1GetConnectivityInfoCommand = async (input, co
|
|
|
284
280
|
body,
|
|
285
281
|
});
|
|
286
282
|
};
|
|
287
|
-
export const
|
|
283
|
+
export const se_GetCoreDeviceCommand = async (input, context) => {
|
|
288
284
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
285
|
const headers = {};
|
|
290
286
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -301,7 +297,7 @@ export const serializeAws_restJson1GetCoreDeviceCommand = async (input, context)
|
|
|
301
297
|
body,
|
|
302
298
|
});
|
|
303
299
|
};
|
|
304
|
-
export const
|
|
300
|
+
export const se_GetDeploymentCommand = async (input, context) => {
|
|
305
301
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
302
|
const headers = {};
|
|
307
303
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments/{deploymentId}";
|
|
@@ -317,7 +313,7 @@ export const serializeAws_restJson1GetDeploymentCommand = async (input, context)
|
|
|
317
313
|
body,
|
|
318
314
|
});
|
|
319
315
|
};
|
|
320
|
-
export const
|
|
316
|
+
export const se_GetServiceRoleForAccountCommand = async (input, context) => {
|
|
321
317
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
322
318
|
const headers = {
|
|
323
319
|
"content-type": "application/json",
|
|
@@ -335,7 +331,7 @@ export const serializeAws_restJson1GetServiceRoleForAccountCommand = async (inpu
|
|
|
335
331
|
body,
|
|
336
332
|
});
|
|
337
333
|
};
|
|
338
|
-
export const
|
|
334
|
+
export const se_ListClientDevicesAssociatedWithCoreDeviceCommand = async (input, context) => {
|
|
339
335
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
336
|
const headers = {};
|
|
341
337
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -357,7 +353,7 @@ export const serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceComm
|
|
|
357
353
|
body,
|
|
358
354
|
});
|
|
359
355
|
};
|
|
360
|
-
export const
|
|
356
|
+
export const se_ListComponentsCommand = async (input, context) => {
|
|
361
357
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
358
|
const headers = {};
|
|
363
359
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components";
|
|
@@ -378,7 +374,7 @@ export const serializeAws_restJson1ListComponentsCommand = async (input, context
|
|
|
378
374
|
body,
|
|
379
375
|
});
|
|
380
376
|
};
|
|
381
|
-
export const
|
|
377
|
+
export const se_ListComponentVersionsCommand = async (input, context) => {
|
|
382
378
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
379
|
const headers = {};
|
|
384
380
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}/versions";
|
|
@@ -399,7 +395,7 @@ export const serializeAws_restJson1ListComponentVersionsCommand = async (input,
|
|
|
399
395
|
body,
|
|
400
396
|
});
|
|
401
397
|
};
|
|
402
|
-
export const
|
|
398
|
+
export const se_ListCoreDevicesCommand = async (input, context) => {
|
|
403
399
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
404
400
|
const headers = {};
|
|
405
401
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/coreDevices";
|
|
@@ -421,7 +417,7 @@ export const serializeAws_restJson1ListCoreDevicesCommand = async (input, contex
|
|
|
421
417
|
body,
|
|
422
418
|
});
|
|
423
419
|
};
|
|
424
|
-
export const
|
|
420
|
+
export const se_ListDeploymentsCommand = async (input, context) => {
|
|
425
421
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
426
422
|
const headers = {};
|
|
427
423
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments";
|
|
@@ -444,7 +440,7 @@ export const serializeAws_restJson1ListDeploymentsCommand = async (input, contex
|
|
|
444
440
|
body,
|
|
445
441
|
});
|
|
446
442
|
};
|
|
447
|
-
export const
|
|
443
|
+
export const se_ListEffectiveDeploymentsCommand = async (input, context) => {
|
|
448
444
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
449
445
|
const headers = {};
|
|
450
446
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -466,7 +462,7 @@ export const serializeAws_restJson1ListEffectiveDeploymentsCommand = async (inpu
|
|
|
466
462
|
body,
|
|
467
463
|
});
|
|
468
464
|
};
|
|
469
|
-
export const
|
|
465
|
+
export const se_ListInstalledComponentsCommand = async (input, context) => {
|
|
470
466
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
467
|
const headers = {};
|
|
472
468
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -489,7 +485,7 @@ export const serializeAws_restJson1ListInstalledComponentsCommand = async (input
|
|
|
489
485
|
body,
|
|
490
486
|
});
|
|
491
487
|
};
|
|
492
|
-
export const
|
|
488
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
493
489
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
494
490
|
const headers = {};
|
|
495
491
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -505,7 +501,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
505
501
|
body,
|
|
506
502
|
});
|
|
507
503
|
};
|
|
508
|
-
export const
|
|
504
|
+
export const se_ResolveComponentCandidatesCommand = async (input, context) => {
|
|
509
505
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
506
|
const headers = {
|
|
511
507
|
"content-type": "application/json",
|
|
@@ -514,9 +510,9 @@ export const serializeAws_restJson1ResolveComponentCandidatesCommand = async (in
|
|
|
514
510
|
let body;
|
|
515
511
|
body = JSON.stringify({
|
|
516
512
|
...(input.componentCandidates != null && {
|
|
517
|
-
componentCandidates:
|
|
513
|
+
componentCandidates: se_ComponentCandidateList(input.componentCandidates, context),
|
|
518
514
|
}),
|
|
519
|
-
...(input.platform != null && { platform:
|
|
515
|
+
...(input.platform != null && { platform: se_ComponentPlatform(input.platform, context) }),
|
|
520
516
|
});
|
|
521
517
|
return new __HttpRequest({
|
|
522
518
|
protocol,
|
|
@@ -528,7 +524,7 @@ export const serializeAws_restJson1ResolveComponentCandidatesCommand = async (in
|
|
|
528
524
|
body,
|
|
529
525
|
});
|
|
530
526
|
};
|
|
531
|
-
export const
|
|
527
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
532
528
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
533
529
|
const headers = {
|
|
534
530
|
"content-type": "application/json",
|
|
@@ -537,7 +533,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
537
533
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
538
534
|
let body;
|
|
539
535
|
body = JSON.stringify({
|
|
540
|
-
...(input.tags != null && { tags:
|
|
536
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
541
537
|
});
|
|
542
538
|
return new __HttpRequest({
|
|
543
539
|
protocol,
|
|
@@ -549,7 +545,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
549
545
|
body,
|
|
550
546
|
});
|
|
551
547
|
};
|
|
552
|
-
export const
|
|
548
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
553
549
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
554
550
|
const headers = {};
|
|
555
551
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -572,7 +568,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
572
568
|
body,
|
|
573
569
|
});
|
|
574
570
|
};
|
|
575
|
-
export const
|
|
571
|
+
export const se_UpdateConnectivityInfoCommand = async (input, context) => {
|
|
576
572
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
577
573
|
const headers = {
|
|
578
574
|
"content-type": "application/json",
|
|
@@ -583,7 +579,7 @@ export const serializeAws_restJson1UpdateConnectivityInfoCommand = async (input,
|
|
|
583
579
|
let body;
|
|
584
580
|
body = JSON.stringify({
|
|
585
581
|
...(input.connectivityInfo != null && {
|
|
586
|
-
ConnectivityInfo:
|
|
582
|
+
ConnectivityInfo: se_connectivityInfoList(input.connectivityInfo, context),
|
|
587
583
|
}),
|
|
588
584
|
});
|
|
589
585
|
return new __HttpRequest({
|
|
@@ -596,9 +592,9 @@ export const serializeAws_restJson1UpdateConnectivityInfoCommand = async (input,
|
|
|
596
592
|
body,
|
|
597
593
|
});
|
|
598
594
|
};
|
|
599
|
-
export const
|
|
595
|
+
export const de_AssociateServiceRoleToAccountCommand = async (output, context) => {
|
|
600
596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return
|
|
597
|
+
return de_AssociateServiceRoleToAccountCommandError(output, context);
|
|
602
598
|
}
|
|
603
599
|
const contents = map({
|
|
604
600
|
$metadata: deserializeMetadata(output),
|
|
@@ -609,7 +605,7 @@ export const deserializeAws_restJson1AssociateServiceRoleToAccountCommand = asyn
|
|
|
609
605
|
}
|
|
610
606
|
return contents;
|
|
611
607
|
};
|
|
612
|
-
const
|
|
608
|
+
const de_AssociateServiceRoleToAccountCommandError = async (output, context) => {
|
|
613
609
|
const parsedOutput = {
|
|
614
610
|
...output,
|
|
615
611
|
body: await parseErrorBody(output.body, context),
|
|
@@ -618,10 +614,10 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async
|
|
|
618
614
|
switch (errorCode) {
|
|
619
615
|
case "InternalServerException":
|
|
620
616
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
621
|
-
throw await
|
|
617
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
622
618
|
case "ValidationException":
|
|
623
619
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
624
|
-
throw await
|
|
620
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
625
621
|
default:
|
|
626
622
|
const parsedBody = parsedOutput.body;
|
|
627
623
|
throwDefaultError({
|
|
@@ -632,20 +628,20 @@ const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async
|
|
|
632
628
|
});
|
|
633
629
|
}
|
|
634
630
|
};
|
|
635
|
-
export const
|
|
631
|
+
export const de_BatchAssociateClientDeviceWithCoreDeviceCommand = async (output, context) => {
|
|
636
632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
637
|
-
return
|
|
633
|
+
return de_BatchAssociateClientDeviceWithCoreDeviceCommandError(output, context);
|
|
638
634
|
}
|
|
639
635
|
const contents = map({
|
|
640
636
|
$metadata: deserializeMetadata(output),
|
|
641
637
|
});
|
|
642
638
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
643
639
|
if (data.errorEntries != null) {
|
|
644
|
-
contents.errorEntries =
|
|
640
|
+
contents.errorEntries = de_AssociateClientDeviceWithCoreDeviceErrorList(data.errorEntries, context);
|
|
645
641
|
}
|
|
646
642
|
return contents;
|
|
647
643
|
};
|
|
648
|
-
const
|
|
644
|
+
const de_BatchAssociateClientDeviceWithCoreDeviceCommandError = async (output, context) => {
|
|
649
645
|
const parsedOutput = {
|
|
650
646
|
...output,
|
|
651
647
|
body: await parseErrorBody(output.body, context),
|
|
@@ -654,19 +650,19 @@ const deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommandErr
|
|
|
654
650
|
switch (errorCode) {
|
|
655
651
|
case "AccessDeniedException":
|
|
656
652
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
657
|
-
throw await
|
|
653
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
658
654
|
case "InternalServerException":
|
|
659
655
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
660
|
-
throw await
|
|
656
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
661
657
|
case "ResourceNotFoundException":
|
|
662
658
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
663
|
-
throw await
|
|
659
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
664
660
|
case "ThrottlingException":
|
|
665
661
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
666
|
-
throw await
|
|
662
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
667
663
|
case "ValidationException":
|
|
668
664
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
669
|
-
throw await
|
|
665
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
670
666
|
default:
|
|
671
667
|
const parsedBody = parsedOutput.body;
|
|
672
668
|
throwDefaultError({
|
|
@@ -677,20 +673,20 @@ const deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommandErr
|
|
|
677
673
|
});
|
|
678
674
|
}
|
|
679
675
|
};
|
|
680
|
-
export const
|
|
676
|
+
export const de_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (output, context) => {
|
|
681
677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
678
|
+
return de_BatchDisassociateClientDeviceFromCoreDeviceCommandError(output, context);
|
|
683
679
|
}
|
|
684
680
|
const contents = map({
|
|
685
681
|
$metadata: deserializeMetadata(output),
|
|
686
682
|
});
|
|
687
683
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
688
684
|
if (data.errorEntries != null) {
|
|
689
|
-
contents.errorEntries =
|
|
685
|
+
contents.errorEntries = de_DisassociateClientDeviceFromCoreDeviceErrorList(data.errorEntries, context);
|
|
690
686
|
}
|
|
691
687
|
return contents;
|
|
692
688
|
};
|
|
693
|
-
const
|
|
689
|
+
const de_BatchDisassociateClientDeviceFromCoreDeviceCommandError = async (output, context) => {
|
|
694
690
|
const parsedOutput = {
|
|
695
691
|
...output,
|
|
696
692
|
body: await parseErrorBody(output.body, context),
|
|
@@ -699,19 +695,19 @@ const deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand
|
|
|
699
695
|
switch (errorCode) {
|
|
700
696
|
case "AccessDeniedException":
|
|
701
697
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
702
|
-
throw await
|
|
698
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
703
699
|
case "InternalServerException":
|
|
704
700
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
705
|
-
throw await
|
|
701
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
706
702
|
case "ResourceNotFoundException":
|
|
707
703
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
708
|
-
throw await
|
|
704
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
709
705
|
case "ThrottlingException":
|
|
710
706
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
711
|
-
throw await
|
|
707
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
712
708
|
case "ValidationException":
|
|
713
709
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
714
|
-
throw await
|
|
710
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
715
711
|
default:
|
|
716
712
|
const parsedBody = parsedOutput.body;
|
|
717
713
|
throwDefaultError({
|
|
@@ -722,9 +718,9 @@ const deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand
|
|
|
722
718
|
});
|
|
723
719
|
}
|
|
724
720
|
};
|
|
725
|
-
export const
|
|
721
|
+
export const de_CancelDeploymentCommand = async (output, context) => {
|
|
726
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
-
return
|
|
723
|
+
return de_CancelDeploymentCommandError(output, context);
|
|
728
724
|
}
|
|
729
725
|
const contents = map({
|
|
730
726
|
$metadata: deserializeMetadata(output),
|
|
@@ -735,7 +731,7 @@ export const deserializeAws_restJson1CancelDeploymentCommand = async (output, co
|
|
|
735
731
|
}
|
|
736
732
|
return contents;
|
|
737
733
|
};
|
|
738
|
-
const
|
|
734
|
+
const de_CancelDeploymentCommandError = async (output, context) => {
|
|
739
735
|
const parsedOutput = {
|
|
740
736
|
...output,
|
|
741
737
|
body: await parseErrorBody(output.body, context),
|
|
@@ -744,22 +740,22 @@ const deserializeAws_restJson1CancelDeploymentCommandError = async (output, cont
|
|
|
744
740
|
switch (errorCode) {
|
|
745
741
|
case "AccessDeniedException":
|
|
746
742
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
747
|
-
throw await
|
|
743
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
748
744
|
case "ConflictException":
|
|
749
745
|
case "com.amazonaws.greengrassv2#ConflictException":
|
|
750
|
-
throw await
|
|
746
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
751
747
|
case "InternalServerException":
|
|
752
748
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
753
|
-
throw await
|
|
749
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
754
750
|
case "ResourceNotFoundException":
|
|
755
751
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
756
|
-
throw await
|
|
752
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
757
753
|
case "ThrottlingException":
|
|
758
754
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
759
|
-
throw await
|
|
755
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
760
756
|
case "ValidationException":
|
|
761
757
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
762
|
-
throw await
|
|
758
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
763
759
|
default:
|
|
764
760
|
const parsedBody = parsedOutput.body;
|
|
765
761
|
throwDefaultError({
|
|
@@ -770,9 +766,9 @@ const deserializeAws_restJson1CancelDeploymentCommandError = async (output, cont
|
|
|
770
766
|
});
|
|
771
767
|
}
|
|
772
768
|
};
|
|
773
|
-
export const
|
|
769
|
+
export const de_CreateComponentVersionCommand = async (output, context) => {
|
|
774
770
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
775
|
-
return
|
|
771
|
+
return de_CreateComponentVersionCommandError(output, context);
|
|
776
772
|
}
|
|
777
773
|
const contents = map({
|
|
778
774
|
$metadata: deserializeMetadata(output),
|
|
@@ -791,11 +787,11 @@ export const deserializeAws_restJson1CreateComponentVersionCommand = async (outp
|
|
|
791
787
|
contents.creationTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTimestamp)));
|
|
792
788
|
}
|
|
793
789
|
if (data.status != null) {
|
|
794
|
-
contents.status =
|
|
790
|
+
contents.status = de_CloudComponentStatus(data.status, context);
|
|
795
791
|
}
|
|
796
792
|
return contents;
|
|
797
793
|
};
|
|
798
|
-
const
|
|
794
|
+
const de_CreateComponentVersionCommandError = async (output, context) => {
|
|
799
795
|
const parsedOutput = {
|
|
800
796
|
...output,
|
|
801
797
|
body: await parseErrorBody(output.body, context),
|
|
@@ -804,25 +800,25 @@ const deserializeAws_restJson1CreateComponentVersionCommandError = async (output
|
|
|
804
800
|
switch (errorCode) {
|
|
805
801
|
case "AccessDeniedException":
|
|
806
802
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
807
|
-
throw await
|
|
803
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
808
804
|
case "ConflictException":
|
|
809
805
|
case "com.amazonaws.greengrassv2#ConflictException":
|
|
810
|
-
throw await
|
|
806
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
811
807
|
case "InternalServerException":
|
|
812
808
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
813
|
-
throw await
|
|
809
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
814
810
|
case "RequestAlreadyInProgressException":
|
|
815
811
|
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
816
|
-
throw await
|
|
812
|
+
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
817
813
|
case "ServiceQuotaExceededException":
|
|
818
814
|
case "com.amazonaws.greengrassv2#ServiceQuotaExceededException":
|
|
819
|
-
throw await
|
|
815
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
820
816
|
case "ThrottlingException":
|
|
821
817
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
822
|
-
throw await
|
|
818
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
819
|
case "ValidationException":
|
|
824
820
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
825
|
-
throw await
|
|
821
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
822
|
default:
|
|
827
823
|
const parsedBody = parsedOutput.body;
|
|
828
824
|
throwDefaultError({
|
|
@@ -833,9 +829,9 @@ const deserializeAws_restJson1CreateComponentVersionCommandError = async (output
|
|
|
833
829
|
});
|
|
834
830
|
}
|
|
835
831
|
};
|
|
836
|
-
export const
|
|
832
|
+
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
837
833
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
838
|
-
return
|
|
834
|
+
return de_CreateDeploymentCommandError(output, context);
|
|
839
835
|
}
|
|
840
836
|
const contents = map({
|
|
841
837
|
$metadata: deserializeMetadata(output),
|
|
@@ -852,7 +848,7 @@ export const deserializeAws_restJson1CreateDeploymentCommand = async (output, co
|
|
|
852
848
|
}
|
|
853
849
|
return contents;
|
|
854
850
|
};
|
|
855
|
-
const
|
|
851
|
+
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
856
852
|
const parsedOutput = {
|
|
857
853
|
...output,
|
|
858
854
|
body: await parseErrorBody(output.body, context),
|
|
@@ -861,25 +857,25 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
861
857
|
switch (errorCode) {
|
|
862
858
|
case "AccessDeniedException":
|
|
863
859
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
864
|
-
throw await
|
|
860
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
865
861
|
case "ConflictException":
|
|
866
862
|
case "com.amazonaws.greengrassv2#ConflictException":
|
|
867
|
-
throw await
|
|
863
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
868
864
|
case "InternalServerException":
|
|
869
865
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
870
|
-
throw await
|
|
866
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
871
867
|
case "RequestAlreadyInProgressException":
|
|
872
868
|
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
873
|
-
throw await
|
|
869
|
+
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
874
870
|
case "ResourceNotFoundException":
|
|
875
871
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
876
|
-
throw await
|
|
872
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
877
873
|
case "ThrottlingException":
|
|
878
874
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
879
|
-
throw await
|
|
875
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
880
876
|
case "ValidationException":
|
|
881
877
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
882
|
-
throw await
|
|
878
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
883
879
|
default:
|
|
884
880
|
const parsedBody = parsedOutput.body;
|
|
885
881
|
throwDefaultError({
|
|
@@ -890,9 +886,9 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
890
886
|
});
|
|
891
887
|
}
|
|
892
888
|
};
|
|
893
|
-
export const
|
|
889
|
+
export const de_DeleteComponentCommand = async (output, context) => {
|
|
894
890
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
895
|
-
return
|
|
891
|
+
return de_DeleteComponentCommandError(output, context);
|
|
896
892
|
}
|
|
897
893
|
const contents = map({
|
|
898
894
|
$metadata: deserializeMetadata(output),
|
|
@@ -900,7 +896,7 @@ export const deserializeAws_restJson1DeleteComponentCommand = async (output, con
|
|
|
900
896
|
await collectBody(output.body, context);
|
|
901
897
|
return contents;
|
|
902
898
|
};
|
|
903
|
-
const
|
|
899
|
+
const de_DeleteComponentCommandError = async (output, context) => {
|
|
904
900
|
const parsedOutput = {
|
|
905
901
|
...output,
|
|
906
902
|
body: await parseErrorBody(output.body, context),
|
|
@@ -909,22 +905,22 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
909
905
|
switch (errorCode) {
|
|
910
906
|
case "AccessDeniedException":
|
|
911
907
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
912
|
-
throw await
|
|
908
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
913
909
|
case "ConflictException":
|
|
914
910
|
case "com.amazonaws.greengrassv2#ConflictException":
|
|
915
|
-
throw await
|
|
911
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
916
912
|
case "InternalServerException":
|
|
917
913
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
918
|
-
throw await
|
|
914
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
919
915
|
case "ResourceNotFoundException":
|
|
920
916
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
921
|
-
throw await
|
|
917
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
922
918
|
case "ThrottlingException":
|
|
923
919
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
924
|
-
throw await
|
|
920
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
925
921
|
case "ValidationException":
|
|
926
922
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
927
|
-
throw await
|
|
923
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
928
924
|
default:
|
|
929
925
|
const parsedBody = parsedOutput.body;
|
|
930
926
|
throwDefaultError({
|
|
@@ -935,9 +931,9 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
935
931
|
});
|
|
936
932
|
}
|
|
937
933
|
};
|
|
938
|
-
export const
|
|
934
|
+
export const de_DeleteCoreDeviceCommand = async (output, context) => {
|
|
939
935
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
940
|
-
return
|
|
936
|
+
return de_DeleteCoreDeviceCommandError(output, context);
|
|
941
937
|
}
|
|
942
938
|
const contents = map({
|
|
943
939
|
$metadata: deserializeMetadata(output),
|
|
@@ -945,7 +941,7 @@ export const deserializeAws_restJson1DeleteCoreDeviceCommand = async (output, co
|
|
|
945
941
|
await collectBody(output.body, context);
|
|
946
942
|
return contents;
|
|
947
943
|
};
|
|
948
|
-
const
|
|
944
|
+
const de_DeleteCoreDeviceCommandError = async (output, context) => {
|
|
949
945
|
const parsedOutput = {
|
|
950
946
|
...output,
|
|
951
947
|
body: await parseErrorBody(output.body, context),
|
|
@@ -954,22 +950,22 @@ const deserializeAws_restJson1DeleteCoreDeviceCommandError = async (output, cont
|
|
|
954
950
|
switch (errorCode) {
|
|
955
951
|
case "AccessDeniedException":
|
|
956
952
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
957
|
-
throw await
|
|
953
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
958
954
|
case "ConflictException":
|
|
959
955
|
case "com.amazonaws.greengrassv2#ConflictException":
|
|
960
|
-
throw await
|
|
956
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
961
957
|
case "InternalServerException":
|
|
962
958
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
963
|
-
throw await
|
|
959
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
964
960
|
case "ResourceNotFoundException":
|
|
965
961
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
966
|
-
throw await
|
|
962
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
967
963
|
case "ThrottlingException":
|
|
968
964
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
969
|
-
throw await
|
|
965
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
970
966
|
case "ValidationException":
|
|
971
967
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
972
|
-
throw await
|
|
968
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
969
|
default:
|
|
974
970
|
const parsedBody = parsedOutput.body;
|
|
975
971
|
throwDefaultError({
|
|
@@ -980,9 +976,9 @@ const deserializeAws_restJson1DeleteCoreDeviceCommandError = async (output, cont
|
|
|
980
976
|
});
|
|
981
977
|
}
|
|
982
978
|
};
|
|
983
|
-
export const
|
|
979
|
+
export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
984
980
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
985
|
-
return
|
|
981
|
+
return de_DeleteDeploymentCommandError(output, context);
|
|
986
982
|
}
|
|
987
983
|
const contents = map({
|
|
988
984
|
$metadata: deserializeMetadata(output),
|
|
@@ -990,7 +986,7 @@ export const deserializeAws_restJson1DeleteDeploymentCommand = async (output, co
|
|
|
990
986
|
await collectBody(output.body, context);
|
|
991
987
|
return contents;
|
|
992
988
|
};
|
|
993
|
-
const
|
|
989
|
+
const de_DeleteDeploymentCommandError = async (output, context) => {
|
|
994
990
|
const parsedOutput = {
|
|
995
991
|
...output,
|
|
996
992
|
body: await parseErrorBody(output.body, context),
|
|
@@ -999,22 +995,22 @@ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, cont
|
|
|
999
995
|
switch (errorCode) {
|
|
1000
996
|
case "AccessDeniedException":
|
|
1001
997
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1002
|
-
throw await
|
|
998
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1003
999
|
case "ConflictException":
|
|
1004
1000
|
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1005
|
-
throw await
|
|
1001
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1006
1002
|
case "InternalServerException":
|
|
1007
1003
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1008
|
-
throw await
|
|
1004
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1009
1005
|
case "ResourceNotFoundException":
|
|
1010
1006
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1011
|
-
throw await
|
|
1007
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1012
1008
|
case "ThrottlingException":
|
|
1013
1009
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1014
|
-
throw await
|
|
1010
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1015
1011
|
case "ValidationException":
|
|
1016
1012
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1017
|
-
throw await
|
|
1013
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1018
1014
|
default:
|
|
1019
1015
|
const parsedBody = parsedOutput.body;
|
|
1020
1016
|
throwDefaultError({
|
|
@@ -1025,9 +1021,9 @@ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, cont
|
|
|
1025
1021
|
});
|
|
1026
1022
|
}
|
|
1027
1023
|
};
|
|
1028
|
-
export const
|
|
1024
|
+
export const de_DescribeComponentCommand = async (output, context) => {
|
|
1029
1025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
1026
|
+
return de_DescribeComponentCommandError(output, context);
|
|
1031
1027
|
}
|
|
1032
1028
|
const contents = map({
|
|
1033
1029
|
$metadata: deserializeMetadata(output),
|
|
@@ -1049,20 +1045,20 @@ export const deserializeAws_restJson1DescribeComponentCommand = async (output, c
|
|
|
1049
1045
|
contents.description = __expectString(data.description);
|
|
1050
1046
|
}
|
|
1051
1047
|
if (data.platforms != null) {
|
|
1052
|
-
contents.platforms =
|
|
1048
|
+
contents.platforms = de_ComponentPlatformList(data.platforms, context);
|
|
1053
1049
|
}
|
|
1054
1050
|
if (data.publisher != null) {
|
|
1055
1051
|
contents.publisher = __expectString(data.publisher);
|
|
1056
1052
|
}
|
|
1057
1053
|
if (data.status != null) {
|
|
1058
|
-
contents.status =
|
|
1054
|
+
contents.status = de_CloudComponentStatus(data.status, context);
|
|
1059
1055
|
}
|
|
1060
1056
|
if (data.tags != null) {
|
|
1061
|
-
contents.tags =
|
|
1057
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1062
1058
|
}
|
|
1063
1059
|
return contents;
|
|
1064
1060
|
};
|
|
1065
|
-
const
|
|
1061
|
+
const de_DescribeComponentCommandError = async (output, context) => {
|
|
1066
1062
|
const parsedOutput = {
|
|
1067
1063
|
...output,
|
|
1068
1064
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1071,19 +1067,19 @@ const deserializeAws_restJson1DescribeComponentCommandError = async (output, con
|
|
|
1071
1067
|
switch (errorCode) {
|
|
1072
1068
|
case "AccessDeniedException":
|
|
1073
1069
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1074
|
-
throw await
|
|
1070
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1075
1071
|
case "InternalServerException":
|
|
1076
1072
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1077
|
-
throw await
|
|
1073
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1078
1074
|
case "ResourceNotFoundException":
|
|
1079
1075
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1080
|
-
throw await
|
|
1076
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1081
1077
|
case "ThrottlingException":
|
|
1082
1078
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1083
|
-
throw await
|
|
1079
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1084
1080
|
case "ValidationException":
|
|
1085
1081
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1086
|
-
throw await
|
|
1082
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1087
1083
|
default:
|
|
1088
1084
|
const parsedBody = parsedOutput.body;
|
|
1089
1085
|
throwDefaultError({
|
|
@@ -1094,9 +1090,9 @@ const deserializeAws_restJson1DescribeComponentCommandError = async (output, con
|
|
|
1094
1090
|
});
|
|
1095
1091
|
}
|
|
1096
1092
|
};
|
|
1097
|
-
export const
|
|
1093
|
+
export const de_DisassociateServiceRoleFromAccountCommand = async (output, context) => {
|
|
1098
1094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
1095
|
+
return de_DisassociateServiceRoleFromAccountCommandError(output, context);
|
|
1100
1096
|
}
|
|
1101
1097
|
const contents = map({
|
|
1102
1098
|
$metadata: deserializeMetadata(output),
|
|
@@ -1107,7 +1103,7 @@ export const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand =
|
|
|
1107
1103
|
}
|
|
1108
1104
|
return contents;
|
|
1109
1105
|
};
|
|
1110
|
-
const
|
|
1106
|
+
const de_DisassociateServiceRoleFromAccountCommandError = async (output, context) => {
|
|
1111
1107
|
const parsedOutput = {
|
|
1112
1108
|
...output,
|
|
1113
1109
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1116,7 +1112,7 @@ const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = a
|
|
|
1116
1112
|
switch (errorCode) {
|
|
1117
1113
|
case "InternalServerException":
|
|
1118
1114
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1119
|
-
throw await
|
|
1115
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1120
1116
|
default:
|
|
1121
1117
|
const parsedBody = parsedOutput.body;
|
|
1122
1118
|
throwDefaultError({
|
|
@@ -1127,9 +1123,9 @@ const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = a
|
|
|
1127
1123
|
});
|
|
1128
1124
|
}
|
|
1129
1125
|
};
|
|
1130
|
-
export const
|
|
1126
|
+
export const de_GetComponentCommand = async (output, context) => {
|
|
1131
1127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1132
|
-
return
|
|
1128
|
+
return de_GetComponentCommandError(output, context);
|
|
1133
1129
|
}
|
|
1134
1130
|
const contents = map({
|
|
1135
1131
|
$metadata: deserializeMetadata(output),
|
|
@@ -1142,11 +1138,11 @@ export const deserializeAws_restJson1GetComponentCommand = async (output, contex
|
|
|
1142
1138
|
contents.recipeOutputFormat = __expectString(data.recipeOutputFormat);
|
|
1143
1139
|
}
|
|
1144
1140
|
if (data.tags != null) {
|
|
1145
|
-
contents.tags =
|
|
1141
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1146
1142
|
}
|
|
1147
1143
|
return contents;
|
|
1148
1144
|
};
|
|
1149
|
-
const
|
|
1145
|
+
const de_GetComponentCommandError = async (output, context) => {
|
|
1150
1146
|
const parsedOutput = {
|
|
1151
1147
|
...output,
|
|
1152
1148
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1155,19 +1151,19 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
1155
1151
|
switch (errorCode) {
|
|
1156
1152
|
case "AccessDeniedException":
|
|
1157
1153
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1158
|
-
throw await
|
|
1154
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1159
1155
|
case "InternalServerException":
|
|
1160
1156
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1161
|
-
throw await
|
|
1157
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1162
1158
|
case "ResourceNotFoundException":
|
|
1163
1159
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1164
|
-
throw await
|
|
1160
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1165
1161
|
case "ThrottlingException":
|
|
1166
1162
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1167
|
-
throw await
|
|
1163
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1168
1164
|
case "ValidationException":
|
|
1169
1165
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1170
|
-
throw await
|
|
1166
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1171
1167
|
default:
|
|
1172
1168
|
const parsedBody = parsedOutput.body;
|
|
1173
1169
|
throwDefaultError({
|
|
@@ -1178,9 +1174,9 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
1178
1174
|
});
|
|
1179
1175
|
}
|
|
1180
1176
|
};
|
|
1181
|
-
export const
|
|
1177
|
+
export const de_GetComponentVersionArtifactCommand = async (output, context) => {
|
|
1182
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1183
|
-
return
|
|
1179
|
+
return de_GetComponentVersionArtifactCommandError(output, context);
|
|
1184
1180
|
}
|
|
1185
1181
|
const contents = map({
|
|
1186
1182
|
$metadata: deserializeMetadata(output),
|
|
@@ -1191,7 +1187,7 @@ export const deserializeAws_restJson1GetComponentVersionArtifactCommand = async
|
|
|
1191
1187
|
}
|
|
1192
1188
|
return contents;
|
|
1193
1189
|
};
|
|
1194
|
-
const
|
|
1190
|
+
const de_GetComponentVersionArtifactCommandError = async (output, context) => {
|
|
1195
1191
|
const parsedOutput = {
|
|
1196
1192
|
...output,
|
|
1197
1193
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1200,19 +1196,19 @@ const deserializeAws_restJson1GetComponentVersionArtifactCommandError = async (o
|
|
|
1200
1196
|
switch (errorCode) {
|
|
1201
1197
|
case "AccessDeniedException":
|
|
1202
1198
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1203
|
-
throw await
|
|
1199
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1204
1200
|
case "InternalServerException":
|
|
1205
1201
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1206
|
-
throw await
|
|
1202
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1207
1203
|
case "ResourceNotFoundException":
|
|
1208
1204
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1209
|
-
throw await
|
|
1205
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1210
1206
|
case "ThrottlingException":
|
|
1211
1207
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1212
|
-
throw await
|
|
1208
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1213
1209
|
case "ValidationException":
|
|
1214
1210
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1215
|
-
throw await
|
|
1211
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1216
1212
|
default:
|
|
1217
1213
|
const parsedBody = parsedOutput.body;
|
|
1218
1214
|
throwDefaultError({
|
|
@@ -1223,23 +1219,23 @@ const deserializeAws_restJson1GetComponentVersionArtifactCommandError = async (o
|
|
|
1223
1219
|
});
|
|
1224
1220
|
}
|
|
1225
1221
|
};
|
|
1226
|
-
export const
|
|
1222
|
+
export const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
1227
1223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
-
return
|
|
1224
|
+
return de_GetConnectivityInfoCommandError(output, context);
|
|
1229
1225
|
}
|
|
1230
1226
|
const contents = map({
|
|
1231
1227
|
$metadata: deserializeMetadata(output),
|
|
1232
1228
|
});
|
|
1233
1229
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1234
1230
|
if (data.ConnectivityInfo != null) {
|
|
1235
|
-
contents.connectivityInfo =
|
|
1231
|
+
contents.connectivityInfo = de_connectivityInfoList(data.ConnectivityInfo, context);
|
|
1236
1232
|
}
|
|
1237
1233
|
if (data.Message != null) {
|
|
1238
1234
|
contents.message = __expectString(data.Message);
|
|
1239
1235
|
}
|
|
1240
1236
|
return contents;
|
|
1241
1237
|
};
|
|
1242
|
-
const
|
|
1238
|
+
const de_GetConnectivityInfoCommandError = async (output, context) => {
|
|
1243
1239
|
const parsedOutput = {
|
|
1244
1240
|
...output,
|
|
1245
1241
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1248,10 +1244,10 @@ const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, c
|
|
|
1248
1244
|
switch (errorCode) {
|
|
1249
1245
|
case "InternalServerException":
|
|
1250
1246
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1251
|
-
throw await
|
|
1247
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1252
1248
|
case "ValidationException":
|
|
1253
1249
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1254
|
-
throw await
|
|
1250
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1255
1251
|
default:
|
|
1256
1252
|
const parsedBody = parsedOutput.body;
|
|
1257
1253
|
throwDefaultError({
|
|
@@ -1262,9 +1258,9 @@ const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, c
|
|
|
1262
1258
|
});
|
|
1263
1259
|
}
|
|
1264
1260
|
};
|
|
1265
|
-
export const
|
|
1261
|
+
export const de_GetCoreDeviceCommand = async (output, context) => {
|
|
1266
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
1263
|
+
return de_GetCoreDeviceCommandError(output, context);
|
|
1268
1264
|
}
|
|
1269
1265
|
const contents = map({
|
|
1270
1266
|
$metadata: deserializeMetadata(output),
|
|
@@ -1289,11 +1285,11 @@ export const deserializeAws_restJson1GetCoreDeviceCommand = async (output, conte
|
|
|
1289
1285
|
contents.status = __expectString(data.status);
|
|
1290
1286
|
}
|
|
1291
1287
|
if (data.tags != null) {
|
|
1292
|
-
contents.tags =
|
|
1288
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1293
1289
|
}
|
|
1294
1290
|
return contents;
|
|
1295
1291
|
};
|
|
1296
|
-
const
|
|
1292
|
+
const de_GetCoreDeviceCommandError = async (output, context) => {
|
|
1297
1293
|
const parsedOutput = {
|
|
1298
1294
|
...output,
|
|
1299
1295
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1302,19 +1298,19 @@ const deserializeAws_restJson1GetCoreDeviceCommandError = async (output, context
|
|
|
1302
1298
|
switch (errorCode) {
|
|
1303
1299
|
case "AccessDeniedException":
|
|
1304
1300
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1305
|
-
throw await
|
|
1301
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1306
1302
|
case "InternalServerException":
|
|
1307
1303
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1308
|
-
throw await
|
|
1304
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1309
1305
|
case "ResourceNotFoundException":
|
|
1310
1306
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1311
|
-
throw await
|
|
1307
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1312
1308
|
case "ThrottlingException":
|
|
1313
1309
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1314
|
-
throw await
|
|
1310
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1315
1311
|
case "ValidationException":
|
|
1316
1312
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1317
|
-
throw await
|
|
1313
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1318
1314
|
default:
|
|
1319
1315
|
const parsedBody = parsedOutput.body;
|
|
1320
1316
|
throwDefaultError({
|
|
@@ -1325,16 +1321,16 @@ const deserializeAws_restJson1GetCoreDeviceCommandError = async (output, context
|
|
|
1325
1321
|
});
|
|
1326
1322
|
}
|
|
1327
1323
|
};
|
|
1328
|
-
export const
|
|
1324
|
+
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1329
1325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
1326
|
+
return de_GetDeploymentCommandError(output, context);
|
|
1331
1327
|
}
|
|
1332
1328
|
const contents = map({
|
|
1333
1329
|
$metadata: deserializeMetadata(output),
|
|
1334
1330
|
});
|
|
1335
1331
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1336
1332
|
if (data.components != null) {
|
|
1337
|
-
contents.components =
|
|
1333
|
+
contents.components = de_ComponentDeploymentSpecifications(data.components, context);
|
|
1338
1334
|
}
|
|
1339
1335
|
if (data.creationTimestamp != null) {
|
|
1340
1336
|
contents.creationTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTimestamp)));
|
|
@@ -1346,7 +1342,7 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
|
|
|
1346
1342
|
contents.deploymentName = __expectString(data.deploymentName);
|
|
1347
1343
|
}
|
|
1348
1344
|
if (data.deploymentPolicies != null) {
|
|
1349
|
-
contents.deploymentPolicies =
|
|
1345
|
+
contents.deploymentPolicies = de_DeploymentPolicies(data.deploymentPolicies, context);
|
|
1350
1346
|
}
|
|
1351
1347
|
if (data.deploymentStatus != null) {
|
|
1352
1348
|
contents.deploymentStatus = __expectString(data.deploymentStatus);
|
|
@@ -1355,7 +1351,7 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
|
|
|
1355
1351
|
contents.iotJobArn = __expectString(data.iotJobArn);
|
|
1356
1352
|
}
|
|
1357
1353
|
if (data.iotJobConfiguration != null) {
|
|
1358
|
-
contents.iotJobConfiguration =
|
|
1354
|
+
contents.iotJobConfiguration = de_DeploymentIoTJobConfiguration(data.iotJobConfiguration, context);
|
|
1359
1355
|
}
|
|
1360
1356
|
if (data.iotJobId != null) {
|
|
1361
1357
|
contents.iotJobId = __expectString(data.iotJobId);
|
|
@@ -1370,14 +1366,14 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
|
|
|
1370
1366
|
contents.revisionId = __expectString(data.revisionId);
|
|
1371
1367
|
}
|
|
1372
1368
|
if (data.tags != null) {
|
|
1373
|
-
contents.tags =
|
|
1369
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1374
1370
|
}
|
|
1375
1371
|
if (data.targetArn != null) {
|
|
1376
1372
|
contents.targetArn = __expectString(data.targetArn);
|
|
1377
1373
|
}
|
|
1378
1374
|
return contents;
|
|
1379
1375
|
};
|
|
1380
|
-
const
|
|
1376
|
+
const de_GetDeploymentCommandError = async (output, context) => {
|
|
1381
1377
|
const parsedOutput = {
|
|
1382
1378
|
...output,
|
|
1383
1379
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1386,19 +1382,19 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1386
1382
|
switch (errorCode) {
|
|
1387
1383
|
case "AccessDeniedException":
|
|
1388
1384
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1389
|
-
throw await
|
|
1385
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1390
1386
|
case "InternalServerException":
|
|
1391
1387
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1392
|
-
throw await
|
|
1388
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1393
1389
|
case "ResourceNotFoundException":
|
|
1394
1390
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1395
|
-
throw await
|
|
1391
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1396
1392
|
case "ThrottlingException":
|
|
1397
1393
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1398
|
-
throw await
|
|
1394
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1399
1395
|
case "ValidationException":
|
|
1400
1396
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1401
|
-
throw await
|
|
1397
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1402
1398
|
default:
|
|
1403
1399
|
const parsedBody = parsedOutput.body;
|
|
1404
1400
|
throwDefaultError({
|
|
@@ -1409,9 +1405,9 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1409
1405
|
});
|
|
1410
1406
|
}
|
|
1411
1407
|
};
|
|
1412
|
-
export const
|
|
1408
|
+
export const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
1413
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1414
|
-
return
|
|
1410
|
+
return de_GetServiceRoleForAccountCommandError(output, context);
|
|
1415
1411
|
}
|
|
1416
1412
|
const contents = map({
|
|
1417
1413
|
$metadata: deserializeMetadata(output),
|
|
@@ -1425,7 +1421,7 @@ export const deserializeAws_restJson1GetServiceRoleForAccountCommand = async (ou
|
|
|
1425
1421
|
}
|
|
1426
1422
|
return contents;
|
|
1427
1423
|
};
|
|
1428
|
-
const
|
|
1424
|
+
const de_GetServiceRoleForAccountCommandError = async (output, context) => {
|
|
1429
1425
|
const parsedOutput = {
|
|
1430
1426
|
...output,
|
|
1431
1427
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1434,7 +1430,7 @@ const deserializeAws_restJson1GetServiceRoleForAccountCommandError = async (outp
|
|
|
1434
1430
|
switch (errorCode) {
|
|
1435
1431
|
case "InternalServerException":
|
|
1436
1432
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1437
|
-
throw await
|
|
1433
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1438
1434
|
default:
|
|
1439
1435
|
const parsedBody = parsedOutput.body;
|
|
1440
1436
|
throwDefaultError({
|
|
@@ -1445,23 +1441,23 @@ const deserializeAws_restJson1GetServiceRoleForAccountCommandError = async (outp
|
|
|
1445
1441
|
});
|
|
1446
1442
|
}
|
|
1447
1443
|
};
|
|
1448
|
-
export const
|
|
1444
|
+
export const de_ListClientDevicesAssociatedWithCoreDeviceCommand = async (output, context) => {
|
|
1449
1445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
-
return
|
|
1446
|
+
return de_ListClientDevicesAssociatedWithCoreDeviceCommandError(output, context);
|
|
1451
1447
|
}
|
|
1452
1448
|
const contents = map({
|
|
1453
1449
|
$metadata: deserializeMetadata(output),
|
|
1454
1450
|
});
|
|
1455
1451
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1456
1452
|
if (data.associatedClientDevices != null) {
|
|
1457
|
-
contents.associatedClientDevices =
|
|
1453
|
+
contents.associatedClientDevices = de_AssociatedClientDeviceList(data.associatedClientDevices, context);
|
|
1458
1454
|
}
|
|
1459
1455
|
if (data.nextToken != null) {
|
|
1460
1456
|
contents.nextToken = __expectString(data.nextToken);
|
|
1461
1457
|
}
|
|
1462
1458
|
return contents;
|
|
1463
1459
|
};
|
|
1464
|
-
const
|
|
1460
|
+
const de_ListClientDevicesAssociatedWithCoreDeviceCommandError = async (output, context) => {
|
|
1465
1461
|
const parsedOutput = {
|
|
1466
1462
|
...output,
|
|
1467
1463
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1470,19 +1466,19 @@ const deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommandEr
|
|
|
1470
1466
|
switch (errorCode) {
|
|
1471
1467
|
case "AccessDeniedException":
|
|
1472
1468
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1473
|
-
throw await
|
|
1469
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1474
1470
|
case "InternalServerException":
|
|
1475
1471
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1476
|
-
throw await
|
|
1472
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1477
1473
|
case "ResourceNotFoundException":
|
|
1478
1474
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1479
|
-
throw await
|
|
1475
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1480
1476
|
case "ThrottlingException":
|
|
1481
1477
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1482
|
-
throw await
|
|
1478
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1483
1479
|
case "ValidationException":
|
|
1484
1480
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1485
|
-
throw await
|
|
1481
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1486
1482
|
default:
|
|
1487
1483
|
const parsedBody = parsedOutput.body;
|
|
1488
1484
|
throwDefaultError({
|
|
@@ -1493,23 +1489,23 @@ const deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommandEr
|
|
|
1493
1489
|
});
|
|
1494
1490
|
}
|
|
1495
1491
|
};
|
|
1496
|
-
export const
|
|
1492
|
+
export const de_ListComponentsCommand = async (output, context) => {
|
|
1497
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
-
return
|
|
1494
|
+
return de_ListComponentsCommandError(output, context);
|
|
1499
1495
|
}
|
|
1500
1496
|
const contents = map({
|
|
1501
1497
|
$metadata: deserializeMetadata(output),
|
|
1502
1498
|
});
|
|
1503
1499
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1504
1500
|
if (data.components != null) {
|
|
1505
|
-
contents.components =
|
|
1501
|
+
contents.components = de_ComponentList(data.components, context);
|
|
1506
1502
|
}
|
|
1507
1503
|
if (data.nextToken != null) {
|
|
1508
1504
|
contents.nextToken = __expectString(data.nextToken);
|
|
1509
1505
|
}
|
|
1510
1506
|
return contents;
|
|
1511
1507
|
};
|
|
1512
|
-
const
|
|
1508
|
+
const de_ListComponentsCommandError = async (output, context) => {
|
|
1513
1509
|
const parsedOutput = {
|
|
1514
1510
|
...output,
|
|
1515
1511
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1518,19 +1514,19 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
1518
1514
|
switch (errorCode) {
|
|
1519
1515
|
case "AccessDeniedException":
|
|
1520
1516
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1521
|
-
throw await
|
|
1517
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1522
1518
|
case "InternalServerException":
|
|
1523
1519
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1524
|
-
throw await
|
|
1520
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1525
1521
|
case "ResourceNotFoundException":
|
|
1526
1522
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1527
|
-
throw await
|
|
1523
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1528
1524
|
case "ThrottlingException":
|
|
1529
1525
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1530
|
-
throw await
|
|
1526
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1531
1527
|
case "ValidationException":
|
|
1532
1528
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1533
|
-
throw await
|
|
1529
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1534
1530
|
default:
|
|
1535
1531
|
const parsedBody = parsedOutput.body;
|
|
1536
1532
|
throwDefaultError({
|
|
@@ -1541,23 +1537,23 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
1541
1537
|
});
|
|
1542
1538
|
}
|
|
1543
1539
|
};
|
|
1544
|
-
export const
|
|
1540
|
+
export const de_ListComponentVersionsCommand = async (output, context) => {
|
|
1545
1541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
1542
|
+
return de_ListComponentVersionsCommandError(output, context);
|
|
1547
1543
|
}
|
|
1548
1544
|
const contents = map({
|
|
1549
1545
|
$metadata: deserializeMetadata(output),
|
|
1550
1546
|
});
|
|
1551
1547
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1552
1548
|
if (data.componentVersions != null) {
|
|
1553
|
-
contents.componentVersions =
|
|
1549
|
+
contents.componentVersions = de_ComponentVersionList(data.componentVersions, context);
|
|
1554
1550
|
}
|
|
1555
1551
|
if (data.nextToken != null) {
|
|
1556
1552
|
contents.nextToken = __expectString(data.nextToken);
|
|
1557
1553
|
}
|
|
1558
1554
|
return contents;
|
|
1559
1555
|
};
|
|
1560
|
-
const
|
|
1556
|
+
const de_ListComponentVersionsCommandError = async (output, context) => {
|
|
1561
1557
|
const parsedOutput = {
|
|
1562
1558
|
...output,
|
|
1563
1559
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1566,19 +1562,19 @@ const deserializeAws_restJson1ListComponentVersionsCommandError = async (output,
|
|
|
1566
1562
|
switch (errorCode) {
|
|
1567
1563
|
case "AccessDeniedException":
|
|
1568
1564
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1569
|
-
throw await
|
|
1565
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1570
1566
|
case "InternalServerException":
|
|
1571
1567
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1572
|
-
throw await
|
|
1568
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1573
1569
|
case "ResourceNotFoundException":
|
|
1574
1570
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1575
|
-
throw await
|
|
1571
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1576
1572
|
case "ThrottlingException":
|
|
1577
1573
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1578
|
-
throw await
|
|
1574
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1579
1575
|
case "ValidationException":
|
|
1580
1576
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1581
|
-
throw await
|
|
1577
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1582
1578
|
default:
|
|
1583
1579
|
const parsedBody = parsedOutput.body;
|
|
1584
1580
|
throwDefaultError({
|
|
@@ -1589,23 +1585,23 @@ const deserializeAws_restJson1ListComponentVersionsCommandError = async (output,
|
|
|
1589
1585
|
});
|
|
1590
1586
|
}
|
|
1591
1587
|
};
|
|
1592
|
-
export const
|
|
1588
|
+
export const de_ListCoreDevicesCommand = async (output, context) => {
|
|
1593
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1594
|
-
return
|
|
1590
|
+
return de_ListCoreDevicesCommandError(output, context);
|
|
1595
1591
|
}
|
|
1596
1592
|
const contents = map({
|
|
1597
1593
|
$metadata: deserializeMetadata(output),
|
|
1598
1594
|
});
|
|
1599
1595
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1600
1596
|
if (data.coreDevices != null) {
|
|
1601
|
-
contents.coreDevices =
|
|
1597
|
+
contents.coreDevices = de_CoreDevicesList(data.coreDevices, context);
|
|
1602
1598
|
}
|
|
1603
1599
|
if (data.nextToken != null) {
|
|
1604
1600
|
contents.nextToken = __expectString(data.nextToken);
|
|
1605
1601
|
}
|
|
1606
1602
|
return contents;
|
|
1607
1603
|
};
|
|
1608
|
-
const
|
|
1604
|
+
const de_ListCoreDevicesCommandError = async (output, context) => {
|
|
1609
1605
|
const parsedOutput = {
|
|
1610
1606
|
...output,
|
|
1611
1607
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1614,16 +1610,16 @@ const deserializeAws_restJson1ListCoreDevicesCommandError = async (output, conte
|
|
|
1614
1610
|
switch (errorCode) {
|
|
1615
1611
|
case "AccessDeniedException":
|
|
1616
1612
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1617
|
-
throw await
|
|
1613
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1618
1614
|
case "InternalServerException":
|
|
1619
1615
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1620
|
-
throw await
|
|
1616
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1621
1617
|
case "ThrottlingException":
|
|
1622
1618
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1623
|
-
throw await
|
|
1619
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1624
1620
|
case "ValidationException":
|
|
1625
1621
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1626
|
-
throw await
|
|
1622
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1627
1623
|
default:
|
|
1628
1624
|
const parsedBody = parsedOutput.body;
|
|
1629
1625
|
throwDefaultError({
|
|
@@ -1634,23 +1630,23 @@ const deserializeAws_restJson1ListCoreDevicesCommandError = async (output, conte
|
|
|
1634
1630
|
});
|
|
1635
1631
|
}
|
|
1636
1632
|
};
|
|
1637
|
-
export const
|
|
1633
|
+
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
1638
1634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1639
|
-
return
|
|
1635
|
+
return de_ListDeploymentsCommandError(output, context);
|
|
1640
1636
|
}
|
|
1641
1637
|
const contents = map({
|
|
1642
1638
|
$metadata: deserializeMetadata(output),
|
|
1643
1639
|
});
|
|
1644
1640
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1645
1641
|
if (data.deployments != null) {
|
|
1646
|
-
contents.deployments =
|
|
1642
|
+
contents.deployments = de_DeploymentList(data.deployments, context);
|
|
1647
1643
|
}
|
|
1648
1644
|
if (data.nextToken != null) {
|
|
1649
1645
|
contents.nextToken = __expectString(data.nextToken);
|
|
1650
1646
|
}
|
|
1651
1647
|
return contents;
|
|
1652
1648
|
};
|
|
1653
|
-
const
|
|
1649
|
+
const de_ListDeploymentsCommandError = async (output, context) => {
|
|
1654
1650
|
const parsedOutput = {
|
|
1655
1651
|
...output,
|
|
1656
1652
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1659,16 +1655,16 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
1659
1655
|
switch (errorCode) {
|
|
1660
1656
|
case "AccessDeniedException":
|
|
1661
1657
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1662
|
-
throw await
|
|
1658
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1663
1659
|
case "InternalServerException":
|
|
1664
1660
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1665
|
-
throw await
|
|
1661
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1666
1662
|
case "ThrottlingException":
|
|
1667
1663
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1668
|
-
throw await
|
|
1664
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1669
1665
|
case "ValidationException":
|
|
1670
1666
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1671
|
-
throw await
|
|
1667
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1672
1668
|
default:
|
|
1673
1669
|
const parsedBody = parsedOutput.body;
|
|
1674
1670
|
throwDefaultError({
|
|
@@ -1679,23 +1675,23 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
1679
1675
|
});
|
|
1680
1676
|
}
|
|
1681
1677
|
};
|
|
1682
|
-
export const
|
|
1678
|
+
export const de_ListEffectiveDeploymentsCommand = async (output, context) => {
|
|
1683
1679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1684
|
-
return
|
|
1680
|
+
return de_ListEffectiveDeploymentsCommandError(output, context);
|
|
1685
1681
|
}
|
|
1686
1682
|
const contents = map({
|
|
1687
1683
|
$metadata: deserializeMetadata(output),
|
|
1688
1684
|
});
|
|
1689
1685
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1690
1686
|
if (data.effectiveDeployments != null) {
|
|
1691
|
-
contents.effectiveDeployments =
|
|
1687
|
+
contents.effectiveDeployments = de_EffectiveDeploymentsList(data.effectiveDeployments, context);
|
|
1692
1688
|
}
|
|
1693
1689
|
if (data.nextToken != null) {
|
|
1694
1690
|
contents.nextToken = __expectString(data.nextToken);
|
|
1695
1691
|
}
|
|
1696
1692
|
return contents;
|
|
1697
1693
|
};
|
|
1698
|
-
const
|
|
1694
|
+
const de_ListEffectiveDeploymentsCommandError = async (output, context) => {
|
|
1699
1695
|
const parsedOutput = {
|
|
1700
1696
|
...output,
|
|
1701
1697
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1704,19 +1700,19 @@ const deserializeAws_restJson1ListEffectiveDeploymentsCommandError = async (outp
|
|
|
1704
1700
|
switch (errorCode) {
|
|
1705
1701
|
case "AccessDeniedException":
|
|
1706
1702
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1707
|
-
throw await
|
|
1703
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1708
1704
|
case "InternalServerException":
|
|
1709
1705
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1710
|
-
throw await
|
|
1706
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1711
1707
|
case "ResourceNotFoundException":
|
|
1712
1708
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1713
|
-
throw await
|
|
1709
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
1710
|
case "ThrottlingException":
|
|
1715
1711
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1716
|
-
throw await
|
|
1712
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1717
1713
|
case "ValidationException":
|
|
1718
1714
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1719
|
-
throw await
|
|
1715
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1720
1716
|
default:
|
|
1721
1717
|
const parsedBody = parsedOutput.body;
|
|
1722
1718
|
throwDefaultError({
|
|
@@ -1727,23 +1723,23 @@ const deserializeAws_restJson1ListEffectiveDeploymentsCommandError = async (outp
|
|
|
1727
1723
|
});
|
|
1728
1724
|
}
|
|
1729
1725
|
};
|
|
1730
|
-
export const
|
|
1726
|
+
export const de_ListInstalledComponentsCommand = async (output, context) => {
|
|
1731
1727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1732
|
-
return
|
|
1728
|
+
return de_ListInstalledComponentsCommandError(output, context);
|
|
1733
1729
|
}
|
|
1734
1730
|
const contents = map({
|
|
1735
1731
|
$metadata: deserializeMetadata(output),
|
|
1736
1732
|
});
|
|
1737
1733
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1738
1734
|
if (data.installedComponents != null) {
|
|
1739
|
-
contents.installedComponents =
|
|
1735
|
+
contents.installedComponents = de_InstalledComponentList(data.installedComponents, context);
|
|
1740
1736
|
}
|
|
1741
1737
|
if (data.nextToken != null) {
|
|
1742
1738
|
contents.nextToken = __expectString(data.nextToken);
|
|
1743
1739
|
}
|
|
1744
1740
|
return contents;
|
|
1745
1741
|
};
|
|
1746
|
-
const
|
|
1742
|
+
const de_ListInstalledComponentsCommandError = async (output, context) => {
|
|
1747
1743
|
const parsedOutput = {
|
|
1748
1744
|
...output,
|
|
1749
1745
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1752,19 +1748,19 @@ const deserializeAws_restJson1ListInstalledComponentsCommandError = async (outpu
|
|
|
1752
1748
|
switch (errorCode) {
|
|
1753
1749
|
case "AccessDeniedException":
|
|
1754
1750
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1755
|
-
throw await
|
|
1751
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1756
1752
|
case "InternalServerException":
|
|
1757
1753
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1758
|
-
throw await
|
|
1754
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1759
1755
|
case "ResourceNotFoundException":
|
|
1760
1756
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1761
|
-
throw await
|
|
1757
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1762
1758
|
case "ThrottlingException":
|
|
1763
1759
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1764
|
-
throw await
|
|
1760
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1765
1761
|
case "ValidationException":
|
|
1766
1762
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1767
|
-
throw await
|
|
1763
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1768
1764
|
default:
|
|
1769
1765
|
const parsedBody = parsedOutput.body;
|
|
1770
1766
|
throwDefaultError({
|
|
@@ -1775,20 +1771,20 @@ const deserializeAws_restJson1ListInstalledComponentsCommandError = async (outpu
|
|
|
1775
1771
|
});
|
|
1776
1772
|
}
|
|
1777
1773
|
};
|
|
1778
|
-
export const
|
|
1774
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1779
1775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
1776
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1781
1777
|
}
|
|
1782
1778
|
const contents = map({
|
|
1783
1779
|
$metadata: deserializeMetadata(output),
|
|
1784
1780
|
});
|
|
1785
1781
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1786
1782
|
if (data.tags != null) {
|
|
1787
|
-
contents.tags =
|
|
1783
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1788
1784
|
}
|
|
1789
1785
|
return contents;
|
|
1790
1786
|
};
|
|
1791
|
-
const
|
|
1787
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1792
1788
|
const parsedOutput = {
|
|
1793
1789
|
...output,
|
|
1794
1790
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1797,13 +1793,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1797
1793
|
switch (errorCode) {
|
|
1798
1794
|
case "InternalServerException":
|
|
1799
1795
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1800
|
-
throw await
|
|
1796
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1801
1797
|
case "ResourceNotFoundException":
|
|
1802
1798
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1803
|
-
throw await
|
|
1799
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1804
1800
|
case "ValidationException":
|
|
1805
1801
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1806
|
-
throw await
|
|
1802
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1807
1803
|
default:
|
|
1808
1804
|
const parsedBody = parsedOutput.body;
|
|
1809
1805
|
throwDefaultError({
|
|
@@ -1814,20 +1810,20 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1814
1810
|
});
|
|
1815
1811
|
}
|
|
1816
1812
|
};
|
|
1817
|
-
export const
|
|
1813
|
+
export const de_ResolveComponentCandidatesCommand = async (output, context) => {
|
|
1818
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1819
|
-
return
|
|
1815
|
+
return de_ResolveComponentCandidatesCommandError(output, context);
|
|
1820
1816
|
}
|
|
1821
1817
|
const contents = map({
|
|
1822
1818
|
$metadata: deserializeMetadata(output),
|
|
1823
1819
|
});
|
|
1824
1820
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1825
1821
|
if (data.resolvedComponentVersions != null) {
|
|
1826
|
-
contents.resolvedComponentVersions =
|
|
1822
|
+
contents.resolvedComponentVersions = de_ResolvedComponentVersionsList(data.resolvedComponentVersions, context);
|
|
1827
1823
|
}
|
|
1828
1824
|
return contents;
|
|
1829
1825
|
};
|
|
1830
|
-
const
|
|
1826
|
+
const de_ResolveComponentCandidatesCommandError = async (output, context) => {
|
|
1831
1827
|
const parsedOutput = {
|
|
1832
1828
|
...output,
|
|
1833
1829
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1836,22 +1832,22 @@ const deserializeAws_restJson1ResolveComponentCandidatesCommandError = async (ou
|
|
|
1836
1832
|
switch (errorCode) {
|
|
1837
1833
|
case "AccessDeniedException":
|
|
1838
1834
|
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1839
|
-
throw await
|
|
1835
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1840
1836
|
case "ConflictException":
|
|
1841
1837
|
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1842
|
-
throw await
|
|
1838
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1843
1839
|
case "InternalServerException":
|
|
1844
1840
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1845
|
-
throw await
|
|
1841
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1846
1842
|
case "ResourceNotFoundException":
|
|
1847
1843
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1848
|
-
throw await
|
|
1844
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1849
1845
|
case "ThrottlingException":
|
|
1850
1846
|
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1851
|
-
throw await
|
|
1847
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1852
1848
|
case "ValidationException":
|
|
1853
1849
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1854
|
-
throw await
|
|
1850
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1855
1851
|
default:
|
|
1856
1852
|
const parsedBody = parsedOutput.body;
|
|
1857
1853
|
throwDefaultError({
|
|
@@ -1862,9 +1858,9 @@ const deserializeAws_restJson1ResolveComponentCandidatesCommandError = async (ou
|
|
|
1862
1858
|
});
|
|
1863
1859
|
}
|
|
1864
1860
|
};
|
|
1865
|
-
export const
|
|
1861
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1866
1862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1867
|
-
return
|
|
1863
|
+
return de_TagResourceCommandError(output, context);
|
|
1868
1864
|
}
|
|
1869
1865
|
const contents = map({
|
|
1870
1866
|
$metadata: deserializeMetadata(output),
|
|
@@ -1872,7 +1868,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1872
1868
|
await collectBody(output.body, context);
|
|
1873
1869
|
return contents;
|
|
1874
1870
|
};
|
|
1875
|
-
const
|
|
1871
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1876
1872
|
const parsedOutput = {
|
|
1877
1873
|
...output,
|
|
1878
1874
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1881,13 +1877,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1881
1877
|
switch (errorCode) {
|
|
1882
1878
|
case "InternalServerException":
|
|
1883
1879
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1884
|
-
throw await
|
|
1880
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1885
1881
|
case "ResourceNotFoundException":
|
|
1886
1882
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1887
|
-
throw await
|
|
1883
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1888
1884
|
case "ValidationException":
|
|
1889
1885
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1890
|
-
throw await
|
|
1886
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1891
1887
|
default:
|
|
1892
1888
|
const parsedBody = parsedOutput.body;
|
|
1893
1889
|
throwDefaultError({
|
|
@@ -1898,9 +1894,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1898
1894
|
});
|
|
1899
1895
|
}
|
|
1900
1896
|
};
|
|
1901
|
-
export const
|
|
1897
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1902
1898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1903
|
-
return
|
|
1899
|
+
return de_UntagResourceCommandError(output, context);
|
|
1904
1900
|
}
|
|
1905
1901
|
const contents = map({
|
|
1906
1902
|
$metadata: deserializeMetadata(output),
|
|
@@ -1908,7 +1904,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1908
1904
|
await collectBody(output.body, context);
|
|
1909
1905
|
return contents;
|
|
1910
1906
|
};
|
|
1911
|
-
const
|
|
1907
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1912
1908
|
const parsedOutput = {
|
|
1913
1909
|
...output,
|
|
1914
1910
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1917,13 +1913,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1917
1913
|
switch (errorCode) {
|
|
1918
1914
|
case "InternalServerException":
|
|
1919
1915
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1920
|
-
throw await
|
|
1916
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1921
1917
|
case "ResourceNotFoundException":
|
|
1922
1918
|
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1923
|
-
throw await
|
|
1919
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1924
1920
|
case "ValidationException":
|
|
1925
1921
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1926
|
-
throw await
|
|
1922
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1927
1923
|
default:
|
|
1928
1924
|
const parsedBody = parsedOutput.body;
|
|
1929
1925
|
throwDefaultError({
|
|
@@ -1934,9 +1930,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1934
1930
|
});
|
|
1935
1931
|
}
|
|
1936
1932
|
};
|
|
1937
|
-
export const
|
|
1933
|
+
export const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
1938
1934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
1935
|
+
return de_UpdateConnectivityInfoCommandError(output, context);
|
|
1940
1936
|
}
|
|
1941
1937
|
const contents = map({
|
|
1942
1938
|
$metadata: deserializeMetadata(output),
|
|
@@ -1950,7 +1946,7 @@ export const deserializeAws_restJson1UpdateConnectivityInfoCommand = async (outp
|
|
|
1950
1946
|
}
|
|
1951
1947
|
return contents;
|
|
1952
1948
|
};
|
|
1953
|
-
const
|
|
1949
|
+
const de_UpdateConnectivityInfoCommandError = async (output, context) => {
|
|
1954
1950
|
const parsedOutput = {
|
|
1955
1951
|
...output,
|
|
1956
1952
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1959,10 +1955,10 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output
|
|
|
1959
1955
|
switch (errorCode) {
|
|
1960
1956
|
case "InternalServerException":
|
|
1961
1957
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1962
|
-
throw await
|
|
1958
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1963
1959
|
case "ValidationException":
|
|
1964
1960
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1965
|
-
throw await
|
|
1961
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1966
1962
|
default:
|
|
1967
1963
|
const parsedBody = parsedOutput.body;
|
|
1968
1964
|
throwDefaultError({
|
|
@@ -1974,7 +1970,7 @@ const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output
|
|
|
1974
1970
|
}
|
|
1975
1971
|
};
|
|
1976
1972
|
const map = __map;
|
|
1977
|
-
const
|
|
1973
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1978
1974
|
const contents = map({});
|
|
1979
1975
|
const data = parsedOutput.body;
|
|
1980
1976
|
if (data.message != null) {
|
|
@@ -1986,7 +1982,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1986
1982
|
});
|
|
1987
1983
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1988
1984
|
};
|
|
1989
|
-
const
|
|
1985
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1990
1986
|
const contents = map({});
|
|
1991
1987
|
const data = parsedOutput.body;
|
|
1992
1988
|
if (data.message != null) {
|
|
@@ -2004,7 +2000,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2004
2000
|
});
|
|
2005
2001
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2006
2002
|
};
|
|
2007
|
-
const
|
|
2003
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2008
2004
|
const contents = map({
|
|
2009
2005
|
retryAfterSeconds: [
|
|
2010
2006
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2021,7 +2017,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2021
2017
|
});
|
|
2022
2018
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2023
2019
|
};
|
|
2024
|
-
const
|
|
2020
|
+
const de_RequestAlreadyInProgressExceptionRes = async (parsedOutput, context) => {
|
|
2025
2021
|
const contents = map({});
|
|
2026
2022
|
const data = parsedOutput.body;
|
|
2027
2023
|
if (data.message != null) {
|
|
@@ -2033,7 +2029,7 @@ const deserializeAws_restJson1RequestAlreadyInProgressExceptionResponse = async
|
|
|
2033
2029
|
});
|
|
2034
2030
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2035
2031
|
};
|
|
2036
|
-
const
|
|
2032
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2037
2033
|
const contents = map({});
|
|
2038
2034
|
const data = parsedOutput.body;
|
|
2039
2035
|
if (data.message != null) {
|
|
@@ -2051,7 +2047,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2051
2047
|
});
|
|
2052
2048
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2053
2049
|
};
|
|
2054
|
-
const
|
|
2050
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2055
2051
|
const contents = map({});
|
|
2056
2052
|
const data = parsedOutput.body;
|
|
2057
2053
|
if (data.message != null) {
|
|
@@ -2075,7 +2071,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2075
2071
|
});
|
|
2076
2072
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2077
2073
|
};
|
|
2078
|
-
const
|
|
2074
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2079
2075
|
const contents = map({
|
|
2080
2076
|
retryAfterSeconds: [
|
|
2081
2077
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2098,11 +2094,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2098
2094
|
});
|
|
2099
2095
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2100
2096
|
};
|
|
2101
|
-
const
|
|
2097
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2102
2098
|
const contents = map({});
|
|
2103
2099
|
const data = parsedOutput.body;
|
|
2104
2100
|
if (data.fields != null) {
|
|
2105
|
-
contents.fields =
|
|
2101
|
+
contents.fields = de_ValidationExceptionFieldList(data.fields, context);
|
|
2106
2102
|
}
|
|
2107
2103
|
if (data.message != null) {
|
|
2108
2104
|
contents.message = __expectString(data.message);
|
|
@@ -2116,105 +2112,103 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2116
2112
|
});
|
|
2117
2113
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2118
2114
|
};
|
|
2119
|
-
const
|
|
2115
|
+
const se_AssociateClientDeviceWithCoreDeviceEntry = (input, context) => {
|
|
2120
2116
|
return {
|
|
2121
2117
|
...(input.thingName != null && { thingName: input.thingName }),
|
|
2122
2118
|
};
|
|
2123
2119
|
};
|
|
2124
|
-
const
|
|
2120
|
+
const se_AssociateClientDeviceWithCoreDeviceEntryList = (input, context) => {
|
|
2125
2121
|
return input
|
|
2126
2122
|
.filter((e) => e != null)
|
|
2127
2123
|
.map((entry) => {
|
|
2128
|
-
return
|
|
2124
|
+
return se_AssociateClientDeviceWithCoreDeviceEntry(entry, context);
|
|
2129
2125
|
});
|
|
2130
2126
|
};
|
|
2131
|
-
const
|
|
2127
|
+
const se_ComponentCandidate = (input, context) => {
|
|
2132
2128
|
return {
|
|
2133
2129
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
2134
2130
|
...(input.componentVersion != null && { componentVersion: input.componentVersion }),
|
|
2135
2131
|
...(input.versionRequirements != null && {
|
|
2136
|
-
versionRequirements:
|
|
2132
|
+
versionRequirements: se_ComponentVersionRequirementMap(input.versionRequirements, context),
|
|
2137
2133
|
}),
|
|
2138
2134
|
};
|
|
2139
2135
|
};
|
|
2140
|
-
const
|
|
2136
|
+
const se_ComponentCandidateList = (input, context) => {
|
|
2141
2137
|
return input
|
|
2142
2138
|
.filter((e) => e != null)
|
|
2143
2139
|
.map((entry) => {
|
|
2144
|
-
return
|
|
2140
|
+
return se_ComponentCandidate(entry, context);
|
|
2145
2141
|
});
|
|
2146
2142
|
};
|
|
2147
|
-
const
|
|
2143
|
+
const se_ComponentConfigurationPathList = (input, context) => {
|
|
2148
2144
|
return input
|
|
2149
2145
|
.filter((e) => e != null)
|
|
2150
2146
|
.map((entry) => {
|
|
2151
2147
|
return entry;
|
|
2152
2148
|
});
|
|
2153
2149
|
};
|
|
2154
|
-
const
|
|
2150
|
+
const se_ComponentConfigurationUpdate = (input, context) => {
|
|
2155
2151
|
return {
|
|
2156
2152
|
...(input.merge != null && { merge: input.merge }),
|
|
2157
|
-
...(input.reset != null && { reset:
|
|
2153
|
+
...(input.reset != null && { reset: se_ComponentConfigurationPathList(input.reset, context) }),
|
|
2158
2154
|
};
|
|
2159
2155
|
};
|
|
2160
|
-
const
|
|
2156
|
+
const se_ComponentDependencyMap = (input, context) => {
|
|
2161
2157
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2162
2158
|
if (value === null) {
|
|
2163
2159
|
return acc;
|
|
2164
2160
|
}
|
|
2165
|
-
acc[key] =
|
|
2161
|
+
acc[key] = se_ComponentDependencyRequirement(value, context);
|
|
2166
2162
|
return acc;
|
|
2167
2163
|
}, {});
|
|
2168
2164
|
};
|
|
2169
|
-
const
|
|
2165
|
+
const se_ComponentDependencyRequirement = (input, context) => {
|
|
2170
2166
|
return {
|
|
2171
2167
|
...(input.dependencyType != null && { dependencyType: input.dependencyType }),
|
|
2172
2168
|
...(input.versionRequirement != null && { versionRequirement: input.versionRequirement }),
|
|
2173
2169
|
};
|
|
2174
2170
|
};
|
|
2175
|
-
const
|
|
2171
|
+
const se_ComponentDeploymentSpecification = (input, context) => {
|
|
2176
2172
|
return {
|
|
2177
2173
|
...(input.componentVersion != null && { componentVersion: input.componentVersion }),
|
|
2178
2174
|
...(input.configurationUpdate != null && {
|
|
2179
|
-
configurationUpdate:
|
|
2175
|
+
configurationUpdate: se_ComponentConfigurationUpdate(input.configurationUpdate, context),
|
|
2180
2176
|
}),
|
|
2181
|
-
...(input.runWith != null && { runWith:
|
|
2177
|
+
...(input.runWith != null && { runWith: se_ComponentRunWith(input.runWith, context) }),
|
|
2182
2178
|
};
|
|
2183
2179
|
};
|
|
2184
|
-
const
|
|
2180
|
+
const se_ComponentDeploymentSpecifications = (input, context) => {
|
|
2185
2181
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2186
2182
|
if (value === null) {
|
|
2187
2183
|
return acc;
|
|
2188
2184
|
}
|
|
2189
|
-
acc[key] =
|
|
2185
|
+
acc[key] = se_ComponentDeploymentSpecification(value, context);
|
|
2190
2186
|
return acc;
|
|
2191
2187
|
}, {});
|
|
2192
2188
|
};
|
|
2193
|
-
const
|
|
2189
|
+
const se_ComponentPlatform = (input, context) => {
|
|
2194
2190
|
return {
|
|
2195
|
-
...(input.attributes != null && {
|
|
2196
|
-
attributes: serializeAws_restJson1PlatformAttributesMap(input.attributes, context),
|
|
2197
|
-
}),
|
|
2191
|
+
...(input.attributes != null && { attributes: se_PlatformAttributesMap(input.attributes, context) }),
|
|
2198
2192
|
...(input.name != null && { name: input.name }),
|
|
2199
2193
|
};
|
|
2200
2194
|
};
|
|
2201
|
-
const
|
|
2195
|
+
const se_ComponentPlatformList = (input, context) => {
|
|
2202
2196
|
return input
|
|
2203
2197
|
.filter((e) => e != null)
|
|
2204
2198
|
.map((entry) => {
|
|
2205
|
-
return
|
|
2199
|
+
return se_ComponentPlatform(entry, context);
|
|
2206
2200
|
});
|
|
2207
2201
|
};
|
|
2208
|
-
const
|
|
2202
|
+
const se_ComponentRunWith = (input, context) => {
|
|
2209
2203
|
return {
|
|
2210
2204
|
...(input.posixUser != null && { posixUser: input.posixUser }),
|
|
2211
2205
|
...(input.systemResourceLimits != null && {
|
|
2212
|
-
systemResourceLimits:
|
|
2206
|
+
systemResourceLimits: se_SystemResourceLimits(input.systemResourceLimits, context),
|
|
2213
2207
|
}),
|
|
2214
2208
|
...(input.windowsUser != null && { windowsUser: input.windowsUser }),
|
|
2215
2209
|
};
|
|
2216
2210
|
};
|
|
2217
|
-
const
|
|
2211
|
+
const se_ComponentVersionRequirementMap = (input, context) => {
|
|
2218
2212
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2219
2213
|
if (value === null) {
|
|
2220
2214
|
return acc;
|
|
@@ -2223,7 +2217,7 @@ const serializeAws_restJson1ComponentVersionRequirementMap = (input, context) =>
|
|
|
2223
2217
|
return acc;
|
|
2224
2218
|
}, {});
|
|
2225
2219
|
};
|
|
2226
|
-
const
|
|
2220
|
+
const se_ConnectivityInfo = (input, context) => {
|
|
2227
2221
|
return {
|
|
2228
2222
|
...(input.hostAddress != null && { HostAddress: input.hostAddress }),
|
|
2229
2223
|
...(input.id != null && { Id: input.id }),
|
|
@@ -2231,68 +2225,62 @@ const serializeAws_restJson1ConnectivityInfo = (input, context) => {
|
|
|
2231
2225
|
...(input.portNumber != null && { PortNumber: input.portNumber }),
|
|
2232
2226
|
};
|
|
2233
2227
|
};
|
|
2234
|
-
const
|
|
2228
|
+
const se_connectivityInfoList = (input, context) => {
|
|
2235
2229
|
return input
|
|
2236
2230
|
.filter((e) => e != null)
|
|
2237
2231
|
.map((entry) => {
|
|
2238
|
-
return
|
|
2232
|
+
return se_ConnectivityInfo(entry, context);
|
|
2239
2233
|
});
|
|
2240
2234
|
};
|
|
2241
|
-
const
|
|
2235
|
+
const se_DeploymentComponentUpdatePolicy = (input, context) => {
|
|
2242
2236
|
return {
|
|
2243
2237
|
...(input.action != null && { action: input.action }),
|
|
2244
2238
|
...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
|
|
2245
2239
|
};
|
|
2246
2240
|
};
|
|
2247
|
-
const
|
|
2241
|
+
const se_DeploymentConfigurationValidationPolicy = (input, context) => {
|
|
2248
2242
|
return {
|
|
2249
2243
|
...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
|
|
2250
2244
|
};
|
|
2251
2245
|
};
|
|
2252
|
-
const
|
|
2246
|
+
const se_DeploymentIoTJobConfiguration = (input, context) => {
|
|
2253
2247
|
return {
|
|
2254
|
-
...(input.abortConfig != null && {
|
|
2255
|
-
abortConfig: serializeAws_restJson1IoTJobAbortConfig(input.abortConfig, context),
|
|
2256
|
-
}),
|
|
2248
|
+
...(input.abortConfig != null && { abortConfig: se_IoTJobAbortConfig(input.abortConfig, context) }),
|
|
2257
2249
|
...(input.jobExecutionsRolloutConfig != null && {
|
|
2258
|
-
jobExecutionsRolloutConfig:
|
|
2259
|
-
}),
|
|
2260
|
-
...(input.timeoutConfig != null && {
|
|
2261
|
-
timeoutConfig: serializeAws_restJson1IoTJobTimeoutConfig(input.timeoutConfig, context),
|
|
2250
|
+
jobExecutionsRolloutConfig: se_IoTJobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
2262
2251
|
}),
|
|
2252
|
+
...(input.timeoutConfig != null && { timeoutConfig: se_IoTJobTimeoutConfig(input.timeoutConfig, context) }),
|
|
2263
2253
|
};
|
|
2264
2254
|
};
|
|
2265
|
-
const
|
|
2255
|
+
const se_DeploymentPolicies = (input, context) => {
|
|
2266
2256
|
return {
|
|
2267
2257
|
...(input.componentUpdatePolicy != null && {
|
|
2268
|
-
componentUpdatePolicy:
|
|
2258
|
+
componentUpdatePolicy: se_DeploymentComponentUpdatePolicy(input.componentUpdatePolicy, context),
|
|
2269
2259
|
}),
|
|
2270
2260
|
...(input.configurationValidationPolicy != null && {
|
|
2271
|
-
configurationValidationPolicy:
|
|
2261
|
+
configurationValidationPolicy: se_DeploymentConfigurationValidationPolicy(input.configurationValidationPolicy, context),
|
|
2272
2262
|
}),
|
|
2273
2263
|
...(input.failureHandlingPolicy != null && { failureHandlingPolicy: input.failureHandlingPolicy }),
|
|
2274
2264
|
};
|
|
2275
2265
|
};
|
|
2276
|
-
const
|
|
2266
|
+
const se_DisassociateClientDeviceFromCoreDeviceEntry = (input, context) => {
|
|
2277
2267
|
return {
|
|
2278
2268
|
...(input.thingName != null && { thingName: input.thingName }),
|
|
2279
2269
|
};
|
|
2280
2270
|
};
|
|
2281
|
-
const
|
|
2271
|
+
const se_DisassociateClientDeviceFromCoreDeviceEntryList = (input, context) => {
|
|
2282
2272
|
return input
|
|
2283
2273
|
.filter((e) => e != null)
|
|
2284
2274
|
.map((entry) => {
|
|
2285
|
-
return
|
|
2275
|
+
return se_DisassociateClientDeviceFromCoreDeviceEntry(entry, context);
|
|
2286
2276
|
});
|
|
2287
2277
|
};
|
|
2288
|
-
const
|
|
2278
|
+
const se_IoTJobAbortConfig = (input, context) => {
|
|
2289
2279
|
return {
|
|
2290
|
-
...(input.criteriaList != null && {
|
|
2291
|
-
criteriaList: serializeAws_restJson1IoTJobAbortCriteriaList(input.criteriaList, context),
|
|
2292
|
-
}),
|
|
2280
|
+
...(input.criteriaList != null && { criteriaList: se_IoTJobAbortCriteriaList(input.criteriaList, context) }),
|
|
2293
2281
|
};
|
|
2294
2282
|
};
|
|
2295
|
-
const
|
|
2283
|
+
const se_IoTJobAbortCriteria = (input, context) => {
|
|
2296
2284
|
return {
|
|
2297
2285
|
...(input.action != null && { action: input.action }),
|
|
2298
2286
|
...(input.failureType != null && { failureType: input.failureType }),
|
|
@@ -2300,64 +2288,64 @@ const serializeAws_restJson1IoTJobAbortCriteria = (input, context) => {
|
|
|
2300
2288
|
...(input.thresholdPercentage != null && { thresholdPercentage: __serializeFloat(input.thresholdPercentage) }),
|
|
2301
2289
|
};
|
|
2302
2290
|
};
|
|
2303
|
-
const
|
|
2291
|
+
const se_IoTJobAbortCriteriaList = (input, context) => {
|
|
2304
2292
|
return input
|
|
2305
2293
|
.filter((e) => e != null)
|
|
2306
2294
|
.map((entry) => {
|
|
2307
|
-
return
|
|
2295
|
+
return se_IoTJobAbortCriteria(entry, context);
|
|
2308
2296
|
});
|
|
2309
2297
|
};
|
|
2310
|
-
const
|
|
2298
|
+
const se_IoTJobExecutionsRolloutConfig = (input, context) => {
|
|
2311
2299
|
return {
|
|
2312
2300
|
...(input.exponentialRate != null && {
|
|
2313
|
-
exponentialRate:
|
|
2301
|
+
exponentialRate: se_IoTJobExponentialRolloutRate(input.exponentialRate, context),
|
|
2314
2302
|
}),
|
|
2315
2303
|
...(input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }),
|
|
2316
2304
|
};
|
|
2317
2305
|
};
|
|
2318
|
-
const
|
|
2306
|
+
const se_IoTJobExponentialRolloutRate = (input, context) => {
|
|
2319
2307
|
return {
|
|
2320
2308
|
...(input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute }),
|
|
2321
2309
|
...(input.incrementFactor != null && { incrementFactor: __serializeFloat(input.incrementFactor) }),
|
|
2322
2310
|
...(input.rateIncreaseCriteria != null && {
|
|
2323
|
-
rateIncreaseCriteria:
|
|
2311
|
+
rateIncreaseCriteria: se_IoTJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
|
|
2324
2312
|
}),
|
|
2325
2313
|
};
|
|
2326
2314
|
};
|
|
2327
|
-
const
|
|
2315
|
+
const se_IoTJobRateIncreaseCriteria = (input, context) => {
|
|
2328
2316
|
return {
|
|
2329
2317
|
...(input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
|
|
2330
2318
|
...(input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }),
|
|
2331
2319
|
};
|
|
2332
2320
|
};
|
|
2333
|
-
const
|
|
2321
|
+
const se_IoTJobTimeoutConfig = (input, context) => {
|
|
2334
2322
|
return {
|
|
2335
2323
|
...(input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
|
|
2336
2324
|
};
|
|
2337
2325
|
};
|
|
2338
|
-
const
|
|
2326
|
+
const se_LambdaContainerParams = (input, context) => {
|
|
2339
2327
|
return {
|
|
2340
|
-
...(input.devices != null && { devices:
|
|
2328
|
+
...(input.devices != null && { devices: se_LambdaDeviceList(input.devices, context) }),
|
|
2341
2329
|
...(input.memorySizeInKB != null && { memorySizeInKB: input.memorySizeInKB }),
|
|
2342
2330
|
...(input.mountROSysfs != null && { mountROSysfs: input.mountROSysfs }),
|
|
2343
|
-
...(input.volumes != null && { volumes:
|
|
2331
|
+
...(input.volumes != null && { volumes: se_LambdaVolumeList(input.volumes, context) }),
|
|
2344
2332
|
};
|
|
2345
2333
|
};
|
|
2346
|
-
const
|
|
2334
|
+
const se_LambdaDeviceList = (input, context) => {
|
|
2347
2335
|
return input
|
|
2348
2336
|
.filter((e) => e != null)
|
|
2349
2337
|
.map((entry) => {
|
|
2350
|
-
return
|
|
2338
|
+
return se_LambdaDeviceMount(entry, context);
|
|
2351
2339
|
});
|
|
2352
2340
|
};
|
|
2353
|
-
const
|
|
2341
|
+
const se_LambdaDeviceMount = (input, context) => {
|
|
2354
2342
|
return {
|
|
2355
2343
|
...(input.addGroupOwner != null && { addGroupOwner: input.addGroupOwner }),
|
|
2356
2344
|
...(input.path != null && { path: input.path }),
|
|
2357
2345
|
...(input.permission != null && { permission: input.permission }),
|
|
2358
2346
|
};
|
|
2359
2347
|
};
|
|
2360
|
-
const
|
|
2348
|
+
const se_LambdaEnvironmentVariables = (input, context) => {
|
|
2361
2349
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2362
2350
|
if (value === null) {
|
|
2363
2351
|
return acc;
|
|
@@ -2366,38 +2354,36 @@ const serializeAws_restJson1LambdaEnvironmentVariables = (input, context) => {
|
|
|
2366
2354
|
return acc;
|
|
2367
2355
|
}, {});
|
|
2368
2356
|
};
|
|
2369
|
-
const
|
|
2357
|
+
const se_LambdaEventSource = (input, context) => {
|
|
2370
2358
|
return {
|
|
2371
2359
|
...(input.topic != null && { topic: input.topic }),
|
|
2372
2360
|
...(input.type != null && { type: input.type }),
|
|
2373
2361
|
};
|
|
2374
2362
|
};
|
|
2375
|
-
const
|
|
2363
|
+
const se_LambdaEventSourceList = (input, context) => {
|
|
2376
2364
|
return input
|
|
2377
2365
|
.filter((e) => e != null)
|
|
2378
2366
|
.map((entry) => {
|
|
2379
|
-
return
|
|
2367
|
+
return se_LambdaEventSource(entry, context);
|
|
2380
2368
|
});
|
|
2381
2369
|
};
|
|
2382
|
-
const
|
|
2370
|
+
const se_LambdaExecArgsList = (input, context) => {
|
|
2383
2371
|
return input
|
|
2384
2372
|
.filter((e) => e != null)
|
|
2385
2373
|
.map((entry) => {
|
|
2386
2374
|
return entry;
|
|
2387
2375
|
});
|
|
2388
2376
|
};
|
|
2389
|
-
const
|
|
2377
|
+
const se_LambdaExecutionParameters = (input, context) => {
|
|
2390
2378
|
return {
|
|
2391
2379
|
...(input.environmentVariables != null && {
|
|
2392
|
-
environmentVariables:
|
|
2380
|
+
environmentVariables: se_LambdaEnvironmentVariables(input.environmentVariables, context),
|
|
2393
2381
|
}),
|
|
2394
|
-
...(input.eventSources != null && {
|
|
2395
|
-
|
|
2396
|
-
}),
|
|
2397
|
-
...(input.execArgs != null && { execArgs: serializeAws_restJson1LambdaExecArgsList(input.execArgs, context) }),
|
|
2382
|
+
...(input.eventSources != null && { eventSources: se_LambdaEventSourceList(input.eventSources, context) }),
|
|
2383
|
+
...(input.execArgs != null && { execArgs: se_LambdaExecArgsList(input.execArgs, context) }),
|
|
2398
2384
|
...(input.inputPayloadEncodingType != null && { inputPayloadEncodingType: input.inputPayloadEncodingType }),
|
|
2399
2385
|
...(input.linuxProcessParams != null && {
|
|
2400
|
-
linuxProcessParams:
|
|
2386
|
+
linuxProcessParams: se_LambdaLinuxProcessParams(input.linuxProcessParams, context),
|
|
2401
2387
|
}),
|
|
2402
2388
|
...(input.maxIdleTimeInSeconds != null && { maxIdleTimeInSeconds: input.maxIdleTimeInSeconds }),
|
|
2403
2389
|
...(input.maxInstancesCount != null && { maxInstancesCount: input.maxInstancesCount }),
|
|
@@ -2407,38 +2393,36 @@ const serializeAws_restJson1LambdaExecutionParameters = (input, context) => {
|
|
|
2407
2393
|
...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
|
|
2408
2394
|
};
|
|
2409
2395
|
};
|
|
2410
|
-
const
|
|
2396
|
+
const se_LambdaFunctionRecipeSource = (input, context) => {
|
|
2411
2397
|
return {
|
|
2412
2398
|
...(input.componentDependencies != null && {
|
|
2413
|
-
componentDependencies:
|
|
2399
|
+
componentDependencies: se_ComponentDependencyMap(input.componentDependencies, context),
|
|
2414
2400
|
}),
|
|
2415
2401
|
...(input.componentLambdaParameters != null && {
|
|
2416
|
-
componentLambdaParameters:
|
|
2402
|
+
componentLambdaParameters: se_LambdaExecutionParameters(input.componentLambdaParameters, context),
|
|
2417
2403
|
}),
|
|
2418
2404
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
2419
2405
|
...(input.componentPlatforms != null && {
|
|
2420
|
-
componentPlatforms:
|
|
2406
|
+
componentPlatforms: se_ComponentPlatformList(input.componentPlatforms, context),
|
|
2421
2407
|
}),
|
|
2422
2408
|
...(input.componentVersion != null && { componentVersion: input.componentVersion }),
|
|
2423
2409
|
...(input.lambdaArn != null && { lambdaArn: input.lambdaArn }),
|
|
2424
2410
|
};
|
|
2425
2411
|
};
|
|
2426
|
-
const
|
|
2412
|
+
const se_LambdaLinuxProcessParams = (input, context) => {
|
|
2427
2413
|
return {
|
|
2428
|
-
...(input.containerParams != null && {
|
|
2429
|
-
containerParams: serializeAws_restJson1LambdaContainerParams(input.containerParams, context),
|
|
2430
|
-
}),
|
|
2414
|
+
...(input.containerParams != null && { containerParams: se_LambdaContainerParams(input.containerParams, context) }),
|
|
2431
2415
|
...(input.isolationMode != null && { isolationMode: input.isolationMode }),
|
|
2432
2416
|
};
|
|
2433
2417
|
};
|
|
2434
|
-
const
|
|
2418
|
+
const se_LambdaVolumeList = (input, context) => {
|
|
2435
2419
|
return input
|
|
2436
2420
|
.filter((e) => e != null)
|
|
2437
2421
|
.map((entry) => {
|
|
2438
|
-
return
|
|
2422
|
+
return se_LambdaVolumeMount(entry, context);
|
|
2439
2423
|
});
|
|
2440
2424
|
};
|
|
2441
|
-
const
|
|
2425
|
+
const se_LambdaVolumeMount = (input, context) => {
|
|
2442
2426
|
return {
|
|
2443
2427
|
...(input.addGroupOwner != null && { addGroupOwner: input.addGroupOwner }),
|
|
2444
2428
|
...(input.destinationPath != null && { destinationPath: input.destinationPath }),
|
|
@@ -2446,7 +2430,7 @@ const serializeAws_restJson1LambdaVolumeMount = (input, context) => {
|
|
|
2446
2430
|
...(input.sourcePath != null && { sourcePath: input.sourcePath }),
|
|
2447
2431
|
};
|
|
2448
2432
|
};
|
|
2449
|
-
const
|
|
2433
|
+
const se_PlatformAttributesMap = (input, context) => {
|
|
2450
2434
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2451
2435
|
if (value === null) {
|
|
2452
2436
|
return acc;
|
|
@@ -2455,13 +2439,13 @@ const serializeAws_restJson1PlatformAttributesMap = (input, context) => {
|
|
|
2455
2439
|
return acc;
|
|
2456
2440
|
}, {});
|
|
2457
2441
|
};
|
|
2458
|
-
const
|
|
2442
|
+
const se_SystemResourceLimits = (input, context) => {
|
|
2459
2443
|
return {
|
|
2460
2444
|
...(input.cpus != null && { cpus: __serializeFloat(input.cpus) }),
|
|
2461
2445
|
...(input.memory != null && { memory: input.memory }),
|
|
2462
2446
|
};
|
|
2463
2447
|
};
|
|
2464
|
-
const
|
|
2448
|
+
const se_TagMap = (input, context) => {
|
|
2465
2449
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2466
2450
|
if (value === null) {
|
|
2467
2451
|
return acc;
|
|
@@ -2470,25 +2454,25 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2470
2454
|
return acc;
|
|
2471
2455
|
}, {});
|
|
2472
2456
|
};
|
|
2473
|
-
const
|
|
2457
|
+
const de_AssociateClientDeviceWithCoreDeviceErrorEntry = (output, context) => {
|
|
2474
2458
|
return {
|
|
2475
2459
|
code: __expectString(output.code),
|
|
2476
2460
|
message: __expectString(output.message),
|
|
2477
2461
|
thingName: __expectString(output.thingName),
|
|
2478
2462
|
};
|
|
2479
2463
|
};
|
|
2480
|
-
const
|
|
2464
|
+
const de_AssociateClientDeviceWithCoreDeviceErrorList = (output, context) => {
|
|
2481
2465
|
const retVal = (output || [])
|
|
2482
2466
|
.filter((e) => e != null)
|
|
2483
2467
|
.map((entry) => {
|
|
2484
2468
|
if (entry === null) {
|
|
2485
2469
|
return null;
|
|
2486
2470
|
}
|
|
2487
|
-
return
|
|
2471
|
+
return de_AssociateClientDeviceWithCoreDeviceErrorEntry(entry, context);
|
|
2488
2472
|
});
|
|
2489
2473
|
return retVal;
|
|
2490
2474
|
};
|
|
2491
|
-
const
|
|
2475
|
+
const de_AssociatedClientDevice = (output, context) => {
|
|
2492
2476
|
return {
|
|
2493
2477
|
associationTimestamp: output.associationTimestamp != null
|
|
2494
2478
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.associationTimestamp)))
|
|
@@ -2496,36 +2480,34 @@ const deserializeAws_restJson1AssociatedClientDevice = (output, context) => {
|
|
|
2496
2480
|
thingName: __expectString(output.thingName),
|
|
2497
2481
|
};
|
|
2498
2482
|
};
|
|
2499
|
-
const
|
|
2483
|
+
const de_AssociatedClientDeviceList = (output, context) => {
|
|
2500
2484
|
const retVal = (output || [])
|
|
2501
2485
|
.filter((e) => e != null)
|
|
2502
2486
|
.map((entry) => {
|
|
2503
2487
|
if (entry === null) {
|
|
2504
2488
|
return null;
|
|
2505
2489
|
}
|
|
2506
|
-
return
|
|
2490
|
+
return de_AssociatedClientDevice(entry, context);
|
|
2507
2491
|
});
|
|
2508
2492
|
return retVal;
|
|
2509
2493
|
};
|
|
2510
|
-
const
|
|
2494
|
+
const de_CloudComponentStatus = (output, context) => {
|
|
2511
2495
|
return {
|
|
2512
2496
|
componentState: __expectString(output.componentState),
|
|
2513
|
-
errors: output.errors != null ?
|
|
2497
|
+
errors: output.errors != null ? de_StringMap(output.errors, context) : undefined,
|
|
2514
2498
|
message: __expectString(output.message),
|
|
2515
2499
|
vendorGuidance: __expectString(output.vendorGuidance),
|
|
2516
2500
|
vendorGuidanceMessage: __expectString(output.vendorGuidanceMessage),
|
|
2517
2501
|
};
|
|
2518
2502
|
};
|
|
2519
|
-
const
|
|
2503
|
+
const de_Component = (output, context) => {
|
|
2520
2504
|
return {
|
|
2521
2505
|
arn: __expectString(output.arn),
|
|
2522
2506
|
componentName: __expectString(output.componentName),
|
|
2523
|
-
latestVersion: output.latestVersion != null
|
|
2524
|
-
? deserializeAws_restJson1ComponentLatestVersion(output.latestVersion, context)
|
|
2525
|
-
: undefined,
|
|
2507
|
+
latestVersion: output.latestVersion != null ? de_ComponentLatestVersion(output.latestVersion, context) : undefined,
|
|
2526
2508
|
};
|
|
2527
2509
|
};
|
|
2528
|
-
const
|
|
2510
|
+
const de_ComponentConfigurationPathList = (output, context) => {
|
|
2529
2511
|
const retVal = (output || [])
|
|
2530
2512
|
.filter((e) => e != null)
|
|
2531
2513
|
.map((entry) => {
|
|
@@ -2536,31 +2518,31 @@ const deserializeAws_restJson1ComponentConfigurationPathList = (output, context)
|
|
|
2536
2518
|
});
|
|
2537
2519
|
return retVal;
|
|
2538
2520
|
};
|
|
2539
|
-
const
|
|
2521
|
+
const de_ComponentConfigurationUpdate = (output, context) => {
|
|
2540
2522
|
return {
|
|
2541
2523
|
merge: __expectString(output.merge),
|
|
2542
|
-
reset: output.reset != null ?
|
|
2524
|
+
reset: output.reset != null ? de_ComponentConfigurationPathList(output.reset, context) : undefined,
|
|
2543
2525
|
};
|
|
2544
2526
|
};
|
|
2545
|
-
const
|
|
2527
|
+
const de_ComponentDeploymentSpecification = (output, context) => {
|
|
2546
2528
|
return {
|
|
2547
2529
|
componentVersion: __expectString(output.componentVersion),
|
|
2548
2530
|
configurationUpdate: output.configurationUpdate != null
|
|
2549
|
-
?
|
|
2531
|
+
? de_ComponentConfigurationUpdate(output.configurationUpdate, context)
|
|
2550
2532
|
: undefined,
|
|
2551
|
-
runWith: output.runWith != null ?
|
|
2533
|
+
runWith: output.runWith != null ? de_ComponentRunWith(output.runWith, context) : undefined,
|
|
2552
2534
|
};
|
|
2553
2535
|
};
|
|
2554
|
-
const
|
|
2536
|
+
const de_ComponentDeploymentSpecifications = (output, context) => {
|
|
2555
2537
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2556
2538
|
if (value === null) {
|
|
2557
2539
|
return acc;
|
|
2558
2540
|
}
|
|
2559
|
-
acc[key] =
|
|
2541
|
+
acc[key] = de_ComponentDeploymentSpecification(value, context);
|
|
2560
2542
|
return acc;
|
|
2561
2543
|
}, {});
|
|
2562
2544
|
};
|
|
2563
|
-
const
|
|
2545
|
+
const de_ComponentLatestVersion = (output, context) => {
|
|
2564
2546
|
return {
|
|
2565
2547
|
arn: __expectString(output.arn),
|
|
2566
2548
|
componentVersion: __expectString(output.componentVersion),
|
|
@@ -2568,66 +2550,64 @@ const deserializeAws_restJson1ComponentLatestVersion = (output, context) => {
|
|
|
2568
2550
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
2569
2551
|
: undefined,
|
|
2570
2552
|
description: __expectString(output.description),
|
|
2571
|
-
platforms: output.platforms != null ?
|
|
2553
|
+
platforms: output.platforms != null ? de_ComponentPlatformList(output.platforms, context) : undefined,
|
|
2572
2554
|
publisher: __expectString(output.publisher),
|
|
2573
2555
|
};
|
|
2574
2556
|
};
|
|
2575
|
-
const
|
|
2557
|
+
const de_ComponentList = (output, context) => {
|
|
2576
2558
|
const retVal = (output || [])
|
|
2577
2559
|
.filter((e) => e != null)
|
|
2578
2560
|
.map((entry) => {
|
|
2579
2561
|
if (entry === null) {
|
|
2580
2562
|
return null;
|
|
2581
2563
|
}
|
|
2582
|
-
return
|
|
2564
|
+
return de_Component(entry, context);
|
|
2583
2565
|
});
|
|
2584
2566
|
return retVal;
|
|
2585
2567
|
};
|
|
2586
|
-
const
|
|
2568
|
+
const de_ComponentPlatform = (output, context) => {
|
|
2587
2569
|
return {
|
|
2588
|
-
attributes: output.attributes != null ?
|
|
2570
|
+
attributes: output.attributes != null ? de_PlatformAttributesMap(output.attributes, context) : undefined,
|
|
2589
2571
|
name: __expectString(output.name),
|
|
2590
2572
|
};
|
|
2591
2573
|
};
|
|
2592
|
-
const
|
|
2574
|
+
const de_ComponentPlatformList = (output, context) => {
|
|
2593
2575
|
const retVal = (output || [])
|
|
2594
2576
|
.filter((e) => e != null)
|
|
2595
2577
|
.map((entry) => {
|
|
2596
2578
|
if (entry === null) {
|
|
2597
2579
|
return null;
|
|
2598
2580
|
}
|
|
2599
|
-
return
|
|
2581
|
+
return de_ComponentPlatform(entry, context);
|
|
2600
2582
|
});
|
|
2601
2583
|
return retVal;
|
|
2602
2584
|
};
|
|
2603
|
-
const
|
|
2585
|
+
const de_ComponentRunWith = (output, context) => {
|
|
2604
2586
|
return {
|
|
2605
2587
|
posixUser: __expectString(output.posixUser),
|
|
2606
|
-
systemResourceLimits: output.systemResourceLimits != null
|
|
2607
|
-
? deserializeAws_restJson1SystemResourceLimits(output.systemResourceLimits, context)
|
|
2608
|
-
: undefined,
|
|
2588
|
+
systemResourceLimits: output.systemResourceLimits != null ? de_SystemResourceLimits(output.systemResourceLimits, context) : undefined,
|
|
2609
2589
|
windowsUser: __expectString(output.windowsUser),
|
|
2610
2590
|
};
|
|
2611
2591
|
};
|
|
2612
|
-
const
|
|
2592
|
+
const de_ComponentVersionList = (output, context) => {
|
|
2613
2593
|
const retVal = (output || [])
|
|
2614
2594
|
.filter((e) => e != null)
|
|
2615
2595
|
.map((entry) => {
|
|
2616
2596
|
if (entry === null) {
|
|
2617
2597
|
return null;
|
|
2618
2598
|
}
|
|
2619
|
-
return
|
|
2599
|
+
return de_ComponentVersionListItem(entry, context);
|
|
2620
2600
|
});
|
|
2621
2601
|
return retVal;
|
|
2622
2602
|
};
|
|
2623
|
-
const
|
|
2603
|
+
const de_ComponentVersionListItem = (output, context) => {
|
|
2624
2604
|
return {
|
|
2625
2605
|
arn: __expectString(output.arn),
|
|
2626
2606
|
componentName: __expectString(output.componentName),
|
|
2627
2607
|
componentVersion: __expectString(output.componentVersion),
|
|
2628
2608
|
};
|
|
2629
2609
|
};
|
|
2630
|
-
const
|
|
2610
|
+
const de_ConnectivityInfo = (output, context) => {
|
|
2631
2611
|
return {
|
|
2632
2612
|
hostAddress: __expectString(output.HostAddress),
|
|
2633
2613
|
id: __expectString(output.Id),
|
|
@@ -2635,18 +2615,18 @@ const deserializeAws_restJson1ConnectivityInfo = (output, context) => {
|
|
|
2635
2615
|
portNumber: __expectInt32(output.PortNumber),
|
|
2636
2616
|
};
|
|
2637
2617
|
};
|
|
2638
|
-
const
|
|
2618
|
+
const de_connectivityInfoList = (output, context) => {
|
|
2639
2619
|
const retVal = (output || [])
|
|
2640
2620
|
.filter((e) => e != null)
|
|
2641
2621
|
.map((entry) => {
|
|
2642
2622
|
if (entry === null) {
|
|
2643
2623
|
return null;
|
|
2644
2624
|
}
|
|
2645
|
-
return
|
|
2625
|
+
return de_ConnectivityInfo(entry, context);
|
|
2646
2626
|
});
|
|
2647
2627
|
return retVal;
|
|
2648
2628
|
};
|
|
2649
|
-
const
|
|
2629
|
+
const de_CoreDevice = (output, context) => {
|
|
2650
2630
|
return {
|
|
2651
2631
|
coreDeviceThingName: __expectString(output.coreDeviceThingName),
|
|
2652
2632
|
lastStatusUpdateTimestamp: output.lastStatusUpdateTimestamp != null
|
|
@@ -2655,18 +2635,18 @@ const deserializeAws_restJson1CoreDevice = (output, context) => {
|
|
|
2655
2635
|
status: __expectString(output.status),
|
|
2656
2636
|
};
|
|
2657
2637
|
};
|
|
2658
|
-
const
|
|
2638
|
+
const de_CoreDevicesList = (output, context) => {
|
|
2659
2639
|
const retVal = (output || [])
|
|
2660
2640
|
.filter((e) => e != null)
|
|
2661
2641
|
.map((entry) => {
|
|
2662
2642
|
if (entry === null) {
|
|
2663
2643
|
return null;
|
|
2664
2644
|
}
|
|
2665
|
-
return
|
|
2645
|
+
return de_CoreDevice(entry, context);
|
|
2666
2646
|
});
|
|
2667
2647
|
return retVal;
|
|
2668
2648
|
};
|
|
2669
|
-
const
|
|
2649
|
+
const de_Deployment = (output, context) => {
|
|
2670
2650
|
return {
|
|
2671
2651
|
creationTimestamp: output.creationTimestamp != null
|
|
2672
2652
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
@@ -2680,69 +2660,67 @@ const deserializeAws_restJson1Deployment = (output, context) => {
|
|
|
2680
2660
|
targetArn: __expectString(output.targetArn),
|
|
2681
2661
|
};
|
|
2682
2662
|
};
|
|
2683
|
-
const
|
|
2663
|
+
const de_DeploymentComponentUpdatePolicy = (output, context) => {
|
|
2684
2664
|
return {
|
|
2685
2665
|
action: __expectString(output.action),
|
|
2686
2666
|
timeoutInSeconds: __expectInt32(output.timeoutInSeconds),
|
|
2687
2667
|
};
|
|
2688
2668
|
};
|
|
2689
|
-
const
|
|
2669
|
+
const de_DeploymentConfigurationValidationPolicy = (output, context) => {
|
|
2690
2670
|
return {
|
|
2691
2671
|
timeoutInSeconds: __expectInt32(output.timeoutInSeconds),
|
|
2692
2672
|
};
|
|
2693
2673
|
};
|
|
2694
|
-
const
|
|
2674
|
+
const de_DeploymentIoTJobConfiguration = (output, context) => {
|
|
2695
2675
|
return {
|
|
2696
|
-
abortConfig: output.abortConfig != null ?
|
|
2676
|
+
abortConfig: output.abortConfig != null ? de_IoTJobAbortConfig(output.abortConfig, context) : undefined,
|
|
2697
2677
|
jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig != null
|
|
2698
|
-
?
|
|
2699
|
-
: undefined,
|
|
2700
|
-
timeoutConfig: output.timeoutConfig != null
|
|
2701
|
-
? deserializeAws_restJson1IoTJobTimeoutConfig(output.timeoutConfig, context)
|
|
2678
|
+
? de_IoTJobExecutionsRolloutConfig(output.jobExecutionsRolloutConfig, context)
|
|
2702
2679
|
: undefined,
|
|
2680
|
+
timeoutConfig: output.timeoutConfig != null ? de_IoTJobTimeoutConfig(output.timeoutConfig, context) : undefined,
|
|
2703
2681
|
};
|
|
2704
2682
|
};
|
|
2705
|
-
const
|
|
2683
|
+
const de_DeploymentList = (output, context) => {
|
|
2706
2684
|
const retVal = (output || [])
|
|
2707
2685
|
.filter((e) => e != null)
|
|
2708
2686
|
.map((entry) => {
|
|
2709
2687
|
if (entry === null) {
|
|
2710
2688
|
return null;
|
|
2711
2689
|
}
|
|
2712
|
-
return
|
|
2690
|
+
return de_Deployment(entry, context);
|
|
2713
2691
|
});
|
|
2714
2692
|
return retVal;
|
|
2715
2693
|
};
|
|
2716
|
-
const
|
|
2694
|
+
const de_DeploymentPolicies = (output, context) => {
|
|
2717
2695
|
return {
|
|
2718
2696
|
componentUpdatePolicy: output.componentUpdatePolicy != null
|
|
2719
|
-
?
|
|
2697
|
+
? de_DeploymentComponentUpdatePolicy(output.componentUpdatePolicy, context)
|
|
2720
2698
|
: undefined,
|
|
2721
2699
|
configurationValidationPolicy: output.configurationValidationPolicy != null
|
|
2722
|
-
?
|
|
2700
|
+
? de_DeploymentConfigurationValidationPolicy(output.configurationValidationPolicy, context)
|
|
2723
2701
|
: undefined,
|
|
2724
2702
|
failureHandlingPolicy: __expectString(output.failureHandlingPolicy),
|
|
2725
2703
|
};
|
|
2726
2704
|
};
|
|
2727
|
-
const
|
|
2705
|
+
const de_DisassociateClientDeviceFromCoreDeviceErrorEntry = (output, context) => {
|
|
2728
2706
|
return {
|
|
2729
2707
|
code: __expectString(output.code),
|
|
2730
2708
|
message: __expectString(output.message),
|
|
2731
2709
|
thingName: __expectString(output.thingName),
|
|
2732
2710
|
};
|
|
2733
2711
|
};
|
|
2734
|
-
const
|
|
2712
|
+
const de_DisassociateClientDeviceFromCoreDeviceErrorList = (output, context) => {
|
|
2735
2713
|
const retVal = (output || [])
|
|
2736
2714
|
.filter((e) => e != null)
|
|
2737
2715
|
.map((entry) => {
|
|
2738
2716
|
if (entry === null) {
|
|
2739
2717
|
return null;
|
|
2740
2718
|
}
|
|
2741
|
-
return
|
|
2719
|
+
return de_DisassociateClientDeviceFromCoreDeviceErrorEntry(entry, context);
|
|
2742
2720
|
});
|
|
2743
2721
|
return retVal;
|
|
2744
2722
|
};
|
|
2745
|
-
const
|
|
2723
|
+
const de_EffectiveDeployment = (output, context) => {
|
|
2746
2724
|
return {
|
|
2747
2725
|
coreDeviceExecutionStatus: __expectString(output.coreDeviceExecutionStatus),
|
|
2748
2726
|
creationTimestamp: output.creationTimestamp != null
|
|
@@ -2757,13 +2735,11 @@ const deserializeAws_restJson1EffectiveDeployment = (output, context) => {
|
|
|
2757
2735
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedTimestamp)))
|
|
2758
2736
|
: undefined,
|
|
2759
2737
|
reason: __expectString(output.reason),
|
|
2760
|
-
statusDetails: output.statusDetails != null
|
|
2761
|
-
? deserializeAws_restJson1EffectiveDeploymentStatusDetails(output.statusDetails, context)
|
|
2762
|
-
: undefined,
|
|
2738
|
+
statusDetails: output.statusDetails != null ? de_EffectiveDeploymentStatusDetails(output.statusDetails, context) : undefined,
|
|
2763
2739
|
targetArn: __expectString(output.targetArn),
|
|
2764
2740
|
};
|
|
2765
2741
|
};
|
|
2766
|
-
const
|
|
2742
|
+
const de_EffectiveDeploymentErrorStack = (output, context) => {
|
|
2767
2743
|
const retVal = (output || [])
|
|
2768
2744
|
.filter((e) => e != null)
|
|
2769
2745
|
.map((entry) => {
|
|
@@ -2774,7 +2750,7 @@ const deserializeAws_restJson1EffectiveDeploymentErrorStack = (output, context)
|
|
|
2774
2750
|
});
|
|
2775
2751
|
return retVal;
|
|
2776
2752
|
};
|
|
2777
|
-
const
|
|
2753
|
+
const de_EffectiveDeploymentErrorTypeList = (output, context) => {
|
|
2778
2754
|
const retVal = (output || [])
|
|
2779
2755
|
.filter((e) => e != null)
|
|
2780
2756
|
.map((entry) => {
|
|
@@ -2785,28 +2761,24 @@ const deserializeAws_restJson1EffectiveDeploymentErrorTypeList = (output, contex
|
|
|
2785
2761
|
});
|
|
2786
2762
|
return retVal;
|
|
2787
2763
|
};
|
|
2788
|
-
const
|
|
2764
|
+
const de_EffectiveDeploymentsList = (output, context) => {
|
|
2789
2765
|
const retVal = (output || [])
|
|
2790
2766
|
.filter((e) => e != null)
|
|
2791
2767
|
.map((entry) => {
|
|
2792
2768
|
if (entry === null) {
|
|
2793
2769
|
return null;
|
|
2794
2770
|
}
|
|
2795
|
-
return
|
|
2771
|
+
return de_EffectiveDeployment(entry, context);
|
|
2796
2772
|
});
|
|
2797
2773
|
return retVal;
|
|
2798
2774
|
};
|
|
2799
|
-
const
|
|
2775
|
+
const de_EffectiveDeploymentStatusDetails = (output, context) => {
|
|
2800
2776
|
return {
|
|
2801
|
-
errorStack: output.errorStack != null
|
|
2802
|
-
|
|
2803
|
-
: undefined,
|
|
2804
|
-
errorTypes: output.errorTypes != null
|
|
2805
|
-
? deserializeAws_restJson1EffectiveDeploymentErrorTypeList(output.errorTypes, context)
|
|
2806
|
-
: undefined,
|
|
2777
|
+
errorStack: output.errorStack != null ? de_EffectiveDeploymentErrorStack(output.errorStack, context) : undefined,
|
|
2778
|
+
errorTypes: output.errorTypes != null ? de_EffectiveDeploymentErrorTypeList(output.errorTypes, context) : undefined,
|
|
2807
2779
|
};
|
|
2808
2780
|
};
|
|
2809
|
-
const
|
|
2781
|
+
const de_InstalledComponent = (output, context) => {
|
|
2810
2782
|
return {
|
|
2811
2783
|
componentName: __expectString(output.componentName),
|
|
2812
2784
|
componentVersion: __expectString(output.componentVersion),
|
|
@@ -2821,11 +2793,11 @@ const deserializeAws_restJson1InstalledComponent = (output, context) => {
|
|
|
2821
2793
|
lifecycleState: __expectString(output.lifecycleState),
|
|
2822
2794
|
lifecycleStateDetails: __expectString(output.lifecycleStateDetails),
|
|
2823
2795
|
lifecycleStatusCodes: output.lifecycleStatusCodes != null
|
|
2824
|
-
?
|
|
2796
|
+
? de_InstalledComponentLifecycleStatusCodeList(output.lifecycleStatusCodes, context)
|
|
2825
2797
|
: undefined,
|
|
2826
2798
|
};
|
|
2827
2799
|
};
|
|
2828
|
-
const
|
|
2800
|
+
const de_InstalledComponentLifecycleStatusCodeList = (output, context) => {
|
|
2829
2801
|
const retVal = (output || [])
|
|
2830
2802
|
.filter((e) => e != null)
|
|
2831
2803
|
.map((entry) => {
|
|
@@ -2836,25 +2808,23 @@ const deserializeAws_restJson1InstalledComponentLifecycleStatusCodeList = (outpu
|
|
|
2836
2808
|
});
|
|
2837
2809
|
return retVal;
|
|
2838
2810
|
};
|
|
2839
|
-
const
|
|
2811
|
+
const de_InstalledComponentList = (output, context) => {
|
|
2840
2812
|
const retVal = (output || [])
|
|
2841
2813
|
.filter((e) => e != null)
|
|
2842
2814
|
.map((entry) => {
|
|
2843
2815
|
if (entry === null) {
|
|
2844
2816
|
return null;
|
|
2845
2817
|
}
|
|
2846
|
-
return
|
|
2818
|
+
return de_InstalledComponent(entry, context);
|
|
2847
2819
|
});
|
|
2848
2820
|
return retVal;
|
|
2849
2821
|
};
|
|
2850
|
-
const
|
|
2822
|
+
const de_IoTJobAbortConfig = (output, context) => {
|
|
2851
2823
|
return {
|
|
2852
|
-
criteriaList: output.criteriaList != null
|
|
2853
|
-
? deserializeAws_restJson1IoTJobAbortCriteriaList(output.criteriaList, context)
|
|
2854
|
-
: undefined,
|
|
2824
|
+
criteriaList: output.criteriaList != null ? de_IoTJobAbortCriteriaList(output.criteriaList, context) : undefined,
|
|
2855
2825
|
};
|
|
2856
2826
|
};
|
|
2857
|
-
const
|
|
2827
|
+
const de_IoTJobAbortCriteria = (output, context) => {
|
|
2858
2828
|
return {
|
|
2859
2829
|
action: __expectString(output.action),
|
|
2860
2830
|
failureType: __expectString(output.failureType),
|
|
@@ -2862,46 +2832,44 @@ const deserializeAws_restJson1IoTJobAbortCriteria = (output, context) => {
|
|
|
2862
2832
|
thresholdPercentage: __limitedParseDouble(output.thresholdPercentage),
|
|
2863
2833
|
};
|
|
2864
2834
|
};
|
|
2865
|
-
const
|
|
2835
|
+
const de_IoTJobAbortCriteriaList = (output, context) => {
|
|
2866
2836
|
const retVal = (output || [])
|
|
2867
2837
|
.filter((e) => e != null)
|
|
2868
2838
|
.map((entry) => {
|
|
2869
2839
|
if (entry === null) {
|
|
2870
2840
|
return null;
|
|
2871
2841
|
}
|
|
2872
|
-
return
|
|
2842
|
+
return de_IoTJobAbortCriteria(entry, context);
|
|
2873
2843
|
});
|
|
2874
2844
|
return retVal;
|
|
2875
2845
|
};
|
|
2876
|
-
const
|
|
2846
|
+
const de_IoTJobExecutionsRolloutConfig = (output, context) => {
|
|
2877
2847
|
return {
|
|
2878
|
-
exponentialRate: output.exponentialRate != null
|
|
2879
|
-
? deserializeAws_restJson1IoTJobExponentialRolloutRate(output.exponentialRate, context)
|
|
2880
|
-
: undefined,
|
|
2848
|
+
exponentialRate: output.exponentialRate != null ? de_IoTJobExponentialRolloutRate(output.exponentialRate, context) : undefined,
|
|
2881
2849
|
maximumPerMinute: __expectInt32(output.maximumPerMinute),
|
|
2882
2850
|
};
|
|
2883
2851
|
};
|
|
2884
|
-
const
|
|
2852
|
+
const de_IoTJobExponentialRolloutRate = (output, context) => {
|
|
2885
2853
|
return {
|
|
2886
2854
|
baseRatePerMinute: __expectInt32(output.baseRatePerMinute),
|
|
2887
2855
|
incrementFactor: __limitedParseDouble(output.incrementFactor),
|
|
2888
2856
|
rateIncreaseCriteria: output.rateIncreaseCriteria != null
|
|
2889
|
-
?
|
|
2857
|
+
? de_IoTJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
|
|
2890
2858
|
: undefined,
|
|
2891
2859
|
};
|
|
2892
2860
|
};
|
|
2893
|
-
const
|
|
2861
|
+
const de_IoTJobRateIncreaseCriteria = (output, context) => {
|
|
2894
2862
|
return {
|
|
2895
2863
|
numberOfNotifiedThings: __expectInt32(output.numberOfNotifiedThings),
|
|
2896
2864
|
numberOfSucceededThings: __expectInt32(output.numberOfSucceededThings),
|
|
2897
2865
|
};
|
|
2898
2866
|
};
|
|
2899
|
-
const
|
|
2867
|
+
const de_IoTJobTimeoutConfig = (output, context) => {
|
|
2900
2868
|
return {
|
|
2901
2869
|
inProgressTimeoutInMinutes: __expectLong(output.inProgressTimeoutInMinutes),
|
|
2902
2870
|
};
|
|
2903
2871
|
};
|
|
2904
|
-
const
|
|
2872
|
+
const de_PlatformAttributesMap = (output, context) => {
|
|
2905
2873
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2906
2874
|
if (value === null) {
|
|
2907
2875
|
return acc;
|
|
@@ -2910,7 +2878,7 @@ const deserializeAws_restJson1PlatformAttributesMap = (output, context) => {
|
|
|
2910
2878
|
return acc;
|
|
2911
2879
|
}, {});
|
|
2912
2880
|
};
|
|
2913
|
-
const
|
|
2881
|
+
const de_ResolvedComponentVersion = (output, context) => {
|
|
2914
2882
|
return {
|
|
2915
2883
|
arn: __expectString(output.arn),
|
|
2916
2884
|
componentName: __expectString(output.componentName),
|
|
@@ -2920,18 +2888,18 @@ const deserializeAws_restJson1ResolvedComponentVersion = (output, context) => {
|
|
|
2920
2888
|
vendorGuidance: __expectString(output.vendorGuidance),
|
|
2921
2889
|
};
|
|
2922
2890
|
};
|
|
2923
|
-
const
|
|
2891
|
+
const de_ResolvedComponentVersionsList = (output, context) => {
|
|
2924
2892
|
const retVal = (output || [])
|
|
2925
2893
|
.filter((e) => e != null)
|
|
2926
2894
|
.map((entry) => {
|
|
2927
2895
|
if (entry === null) {
|
|
2928
2896
|
return null;
|
|
2929
2897
|
}
|
|
2930
|
-
return
|
|
2898
|
+
return de_ResolvedComponentVersion(entry, context);
|
|
2931
2899
|
});
|
|
2932
2900
|
return retVal;
|
|
2933
2901
|
};
|
|
2934
|
-
const
|
|
2902
|
+
const de_StringMap = (output, context) => {
|
|
2935
2903
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2936
2904
|
if (value === null) {
|
|
2937
2905
|
return acc;
|
|
@@ -2940,13 +2908,13 @@ const deserializeAws_restJson1StringMap = (output, context) => {
|
|
|
2940
2908
|
return acc;
|
|
2941
2909
|
}, {});
|
|
2942
2910
|
};
|
|
2943
|
-
const
|
|
2911
|
+
const de_SystemResourceLimits = (output, context) => {
|
|
2944
2912
|
return {
|
|
2945
2913
|
cpus: __limitedParseDouble(output.cpus),
|
|
2946
2914
|
memory: __expectLong(output.memory),
|
|
2947
2915
|
};
|
|
2948
2916
|
};
|
|
2949
|
-
const
|
|
2917
|
+
const de_TagMap = (output, context) => {
|
|
2950
2918
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2951
2919
|
if (value === null) {
|
|
2952
2920
|
return acc;
|
|
@@ -2955,20 +2923,20 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2955
2923
|
return acc;
|
|
2956
2924
|
}, {});
|
|
2957
2925
|
};
|
|
2958
|
-
const
|
|
2926
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
2959
2927
|
return {
|
|
2960
2928
|
message: __expectString(output.message),
|
|
2961
2929
|
name: __expectString(output.name),
|
|
2962
2930
|
};
|
|
2963
2931
|
};
|
|
2964
|
-
const
|
|
2932
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
2965
2933
|
const retVal = (output || [])
|
|
2966
2934
|
.filter((e) => e != null)
|
|
2967
2935
|
.map((entry) => {
|
|
2968
2936
|
if (entry === null) {
|
|
2969
2937
|
return null;
|
|
2970
2938
|
}
|
|
2971
|
-
return
|
|
2939
|
+
return de_ValidationExceptionField(entry, context);
|
|
2972
2940
|
});
|
|
2973
2941
|
return retVal;
|
|
2974
2942
|
};
|