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