@aws-sdk/client-panorama 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1580 -1595
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/PanoramaClient.js +2 -0
- package/dist-es/commands/CreateApplicationInstanceCommand.js +3 -9
- package/dist-es/commands/CreateJobForDevicesCommand.js +3 -9
- package/dist-es/commands/CreateNodeFromTemplateJobCommand.js +3 -10
- package/dist-es/commands/CreatePackageCommand.js +3 -9
- package/dist-es/commands/CreatePackageImportJobCommand.js +3 -9
- package/dist-es/commands/DeleteDeviceCommand.js +3 -9
- package/dist-es/commands/DeletePackageCommand.js +3 -9
- package/dist-es/commands/DeregisterPackageVersionCommand.js +3 -9
- package/dist-es/commands/DescribeApplicationInstanceCommand.js +3 -9
- package/dist-es/commands/DescribeApplicationInstanceDetailsCommand.js +3 -9
- package/dist-es/commands/DescribeDeviceCommand.js +3 -9
- package/dist-es/commands/DescribeDeviceJobCommand.js +3 -9
- package/dist-es/commands/DescribeNodeCommand.js +3 -9
- package/dist-es/commands/DescribeNodeFromTemplateJobCommand.js +3 -10
- package/dist-es/commands/DescribePackageCommand.js +3 -9
- package/dist-es/commands/DescribePackageImportJobCommand.js +3 -9
- package/dist-es/commands/DescribePackageVersionCommand.js +3 -9
- package/dist-es/commands/ListApplicationInstanceDependenciesCommand.js +3 -9
- package/dist-es/commands/ListApplicationInstanceNodeInstancesCommand.js +3 -9
- package/dist-es/commands/ListApplicationInstancesCommand.js +3 -9
- package/dist-es/commands/ListDevicesCommand.js +3 -9
- package/dist-es/commands/ListDevicesJobsCommand.js +3 -9
- package/dist-es/commands/ListNodeFromTemplateJobsCommand.js +3 -9
- package/dist-es/commands/ListNodesCommand.js +3 -9
- package/dist-es/commands/ListPackageImportJobsCommand.js +3 -9
- package/dist-es/commands/ListPackagesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ProvisionDeviceCommand.js +3 -9
- package/dist-es/commands/RegisterPackageVersionCommand.js +3 -9
- package/dist-es/commands/RemoveApplicationInstanceCommand.js +3 -9
- package/dist-es/commands/SignalApplicationInstanceNodeInstancesCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDeviceMetadataCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -25
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1521 -0
- package/dist-types/PanoramaClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +8 -10
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +177 -0
- package/dist-types/ts3.4/PanoramaClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -8
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +184 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -1337
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -308
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -413
|
@@ -1,1337 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { PanoramaServiceException as __BaseException } from "../models/PanoramaServiceException";
|
|
6
|
-
export const se_CreateApplicationInstanceCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/application-instances");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
ApplicationInstanceIdToReplace: [],
|
|
15
|
-
DefaultRuntimeContextDevice: [],
|
|
16
|
-
Description: [],
|
|
17
|
-
ManifestOverridesPayload: (_) => _json(_),
|
|
18
|
-
ManifestPayload: (_) => _json(_),
|
|
19
|
-
Name: [],
|
|
20
|
-
RuntimeRoleArn: [],
|
|
21
|
-
Tags: (_) => _json(_),
|
|
22
|
-
}));
|
|
23
|
-
b.m("POST").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
export const se_CreateJobForDevicesCommand = async (input, context) => {
|
|
27
|
-
const b = rb(input, context);
|
|
28
|
-
const headers = {
|
|
29
|
-
"content-type": "application/json",
|
|
30
|
-
};
|
|
31
|
-
b.bp("/jobs");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(take(input, {
|
|
34
|
-
DeviceIds: (_) => _json(_),
|
|
35
|
-
DeviceJobConfig: (_) => _json(_),
|
|
36
|
-
JobType: [],
|
|
37
|
-
}));
|
|
38
|
-
b.m("POST").h(headers).b(body);
|
|
39
|
-
return b.build();
|
|
40
|
-
};
|
|
41
|
-
export const se_CreateNodeFromTemplateJobCommand = async (input, context) => {
|
|
42
|
-
const b = rb(input, context);
|
|
43
|
-
const headers = {
|
|
44
|
-
"content-type": "application/json",
|
|
45
|
-
};
|
|
46
|
-
b.bp("/packages/template-job");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify(take(input, {
|
|
49
|
-
JobTags: (_) => _json(_),
|
|
50
|
-
NodeDescription: [],
|
|
51
|
-
NodeName: [],
|
|
52
|
-
OutputPackageName: [],
|
|
53
|
-
OutputPackageVersion: [],
|
|
54
|
-
TemplateParameters: (_) => _json(_),
|
|
55
|
-
TemplateType: [],
|
|
56
|
-
}));
|
|
57
|
-
b.m("POST").h(headers).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
export const se_CreatePackageCommand = async (input, context) => {
|
|
61
|
-
const b = rb(input, context);
|
|
62
|
-
const headers = {
|
|
63
|
-
"content-type": "application/json",
|
|
64
|
-
};
|
|
65
|
-
b.bp("/packages");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify(take(input, {
|
|
68
|
-
PackageName: [],
|
|
69
|
-
Tags: (_) => _json(_),
|
|
70
|
-
}));
|
|
71
|
-
b.m("POST").h(headers).b(body);
|
|
72
|
-
return b.build();
|
|
73
|
-
};
|
|
74
|
-
export const se_CreatePackageImportJobCommand = async (input, context) => {
|
|
75
|
-
const b = rb(input, context);
|
|
76
|
-
const headers = {
|
|
77
|
-
"content-type": "application/json",
|
|
78
|
-
};
|
|
79
|
-
b.bp("/packages/import-jobs");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(take(input, {
|
|
82
|
-
ClientToken: [],
|
|
83
|
-
InputConfig: (_) => _json(_),
|
|
84
|
-
JobTags: (_) => _json(_),
|
|
85
|
-
JobType: [],
|
|
86
|
-
OutputConfig: (_) => _json(_),
|
|
87
|
-
}));
|
|
88
|
-
b.m("POST").h(headers).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
export const se_DeleteDeviceCommand = async (input, context) => {
|
|
92
|
-
const b = rb(input, context);
|
|
93
|
-
const headers = {};
|
|
94
|
-
b.bp("/devices/{DeviceId}");
|
|
95
|
-
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
96
|
-
let body;
|
|
97
|
-
b.m("DELETE").h(headers).b(body);
|
|
98
|
-
return b.build();
|
|
99
|
-
};
|
|
100
|
-
export const se_DeletePackageCommand = async (input, context) => {
|
|
101
|
-
const b = rb(input, context);
|
|
102
|
-
const headers = {};
|
|
103
|
-
b.bp("/packages/{PackageId}");
|
|
104
|
-
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
105
|
-
const query = map({
|
|
106
|
-
[_FD]: [() => input.ForceDelete !== void 0, () => input[_FD].toString()],
|
|
107
|
-
});
|
|
108
|
-
let body;
|
|
109
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
export const se_DeregisterPackageVersionCommand = async (input, context) => {
|
|
113
|
-
const b = rb(input, context);
|
|
114
|
-
const headers = {};
|
|
115
|
-
b.bp("/packages/{PackageId}/versions/{PackageVersion}/patch/{PatchVersion}");
|
|
116
|
-
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
117
|
-
b.p("PackageVersion", () => input.PackageVersion, "{PackageVersion}", false);
|
|
118
|
-
b.p("PatchVersion", () => input.PatchVersion, "{PatchVersion}", false);
|
|
119
|
-
const query = map({
|
|
120
|
-
[_OA]: [, input[_OA]],
|
|
121
|
-
[_ULPV]: [, input[_ULPV]],
|
|
122
|
-
});
|
|
123
|
-
let body;
|
|
124
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
125
|
-
return b.build();
|
|
126
|
-
};
|
|
127
|
-
export const se_DescribeApplicationInstanceCommand = async (input, context) => {
|
|
128
|
-
const b = rb(input, context);
|
|
129
|
-
const headers = {};
|
|
130
|
-
b.bp("/application-instances/{ApplicationInstanceId}");
|
|
131
|
-
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
132
|
-
let body;
|
|
133
|
-
b.m("GET").h(headers).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
export const se_DescribeApplicationInstanceDetailsCommand = async (input, context) => {
|
|
137
|
-
const b = rb(input, context);
|
|
138
|
-
const headers = {};
|
|
139
|
-
b.bp("/application-instances/{ApplicationInstanceId}/details");
|
|
140
|
-
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
141
|
-
let body;
|
|
142
|
-
b.m("GET").h(headers).b(body);
|
|
143
|
-
return b.build();
|
|
144
|
-
};
|
|
145
|
-
export const se_DescribeDeviceCommand = async (input, context) => {
|
|
146
|
-
const b = rb(input, context);
|
|
147
|
-
const headers = {};
|
|
148
|
-
b.bp("/devices/{DeviceId}");
|
|
149
|
-
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
150
|
-
let body;
|
|
151
|
-
b.m("GET").h(headers).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
export const se_DescribeDeviceJobCommand = async (input, context) => {
|
|
155
|
-
const b = rb(input, context);
|
|
156
|
-
const headers = {};
|
|
157
|
-
b.bp("/jobs/{JobId}");
|
|
158
|
-
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
159
|
-
let body;
|
|
160
|
-
b.m("GET").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
export const se_DescribeNodeCommand = async (input, context) => {
|
|
164
|
-
const b = rb(input, context);
|
|
165
|
-
const headers = {};
|
|
166
|
-
b.bp("/nodes/{NodeId}");
|
|
167
|
-
b.p("NodeId", () => input.NodeId, "{NodeId}", false);
|
|
168
|
-
const query = map({
|
|
169
|
-
[_OA]: [, input[_OA]],
|
|
170
|
-
});
|
|
171
|
-
let body;
|
|
172
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
export const se_DescribeNodeFromTemplateJobCommand = async (input, context) => {
|
|
176
|
-
const b = rb(input, context);
|
|
177
|
-
const headers = {};
|
|
178
|
-
b.bp("/packages/template-job/{JobId}");
|
|
179
|
-
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
180
|
-
let body;
|
|
181
|
-
b.m("GET").h(headers).b(body);
|
|
182
|
-
return b.build();
|
|
183
|
-
};
|
|
184
|
-
export const se_DescribePackageCommand = async (input, context) => {
|
|
185
|
-
const b = rb(input, context);
|
|
186
|
-
const headers = {};
|
|
187
|
-
b.bp("/packages/metadata/{PackageId}");
|
|
188
|
-
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
189
|
-
let body;
|
|
190
|
-
b.m("GET").h(headers).b(body);
|
|
191
|
-
return b.build();
|
|
192
|
-
};
|
|
193
|
-
export const se_DescribePackageImportJobCommand = async (input, context) => {
|
|
194
|
-
const b = rb(input, context);
|
|
195
|
-
const headers = {};
|
|
196
|
-
b.bp("/packages/import-jobs/{JobId}");
|
|
197
|
-
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
198
|
-
let body;
|
|
199
|
-
b.m("GET").h(headers).b(body);
|
|
200
|
-
return b.build();
|
|
201
|
-
};
|
|
202
|
-
export const se_DescribePackageVersionCommand = async (input, context) => {
|
|
203
|
-
const b = rb(input, context);
|
|
204
|
-
const headers = {};
|
|
205
|
-
b.bp("/packages/metadata/{PackageId}/versions/{PackageVersion}");
|
|
206
|
-
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
207
|
-
b.p("PackageVersion", () => input.PackageVersion, "{PackageVersion}", false);
|
|
208
|
-
const query = map({
|
|
209
|
-
[_OA]: [, input[_OA]],
|
|
210
|
-
[_PV]: [, input[_PV]],
|
|
211
|
-
});
|
|
212
|
-
let body;
|
|
213
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
214
|
-
return b.build();
|
|
215
|
-
};
|
|
216
|
-
export const se_ListApplicationInstanceDependenciesCommand = async (input, context) => {
|
|
217
|
-
const b = rb(input, context);
|
|
218
|
-
const headers = {};
|
|
219
|
-
b.bp("/application-instances/{ApplicationInstanceId}/package-dependencies");
|
|
220
|
-
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
221
|
-
const query = map({
|
|
222
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
223
|
-
[_nT]: [, input[_NT]],
|
|
224
|
-
});
|
|
225
|
-
let body;
|
|
226
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
227
|
-
return b.build();
|
|
228
|
-
};
|
|
229
|
-
export const se_ListApplicationInstanceNodeInstancesCommand = async (input, context) => {
|
|
230
|
-
const b = rb(input, context);
|
|
231
|
-
const headers = {};
|
|
232
|
-
b.bp("/application-instances/{ApplicationInstanceId}/node-instances");
|
|
233
|
-
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
234
|
-
const query = map({
|
|
235
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
236
|
-
[_nT]: [, input[_NT]],
|
|
237
|
-
});
|
|
238
|
-
let body;
|
|
239
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
240
|
-
return b.build();
|
|
241
|
-
};
|
|
242
|
-
export const se_ListApplicationInstancesCommand = async (input, context) => {
|
|
243
|
-
const b = rb(input, context);
|
|
244
|
-
const headers = {};
|
|
245
|
-
b.bp("/application-instances");
|
|
246
|
-
const query = map({
|
|
247
|
-
[_dI]: [, input[_DI]],
|
|
248
|
-
[_sF]: [, input[_SF]],
|
|
249
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
250
|
-
[_nT]: [, input[_NT]],
|
|
251
|
-
});
|
|
252
|
-
let body;
|
|
253
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
254
|
-
return b.build();
|
|
255
|
-
};
|
|
256
|
-
export const se_ListDevicesCommand = async (input, context) => {
|
|
257
|
-
const b = rb(input, context);
|
|
258
|
-
const headers = {};
|
|
259
|
-
b.bp("/devices");
|
|
260
|
-
const query = map({
|
|
261
|
-
[_NT]: [, input[_NT]],
|
|
262
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
263
|
-
[_SB]: [, input[_SB]],
|
|
264
|
-
[_SO]: [, input[_SO]],
|
|
265
|
-
[_NF]: [, input[_NF]],
|
|
266
|
-
[_DASF]: [, input[_DASF]],
|
|
267
|
-
});
|
|
268
|
-
let body;
|
|
269
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
export const se_ListDevicesJobsCommand = async (input, context) => {
|
|
273
|
-
const b = rb(input, context);
|
|
274
|
-
const headers = {};
|
|
275
|
-
b.bp("/jobs");
|
|
276
|
-
const query = map({
|
|
277
|
-
[_DI]: [, input[_DI]],
|
|
278
|
-
[_NT]: [, input[_NT]],
|
|
279
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
280
|
-
});
|
|
281
|
-
let body;
|
|
282
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
export const se_ListNodeFromTemplateJobsCommand = async (input, context) => {
|
|
286
|
-
const b = rb(input, context);
|
|
287
|
-
const headers = {};
|
|
288
|
-
b.bp("/packages/template-job");
|
|
289
|
-
const query = map({
|
|
290
|
-
[_NT]: [, input[_NT]],
|
|
291
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
292
|
-
});
|
|
293
|
-
let body;
|
|
294
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
295
|
-
return b.build();
|
|
296
|
-
};
|
|
297
|
-
export const se_ListNodesCommand = async (input, context) => {
|
|
298
|
-
const b = rb(input, context);
|
|
299
|
-
const headers = {};
|
|
300
|
-
b.bp("/nodes");
|
|
301
|
-
const query = map({
|
|
302
|
-
[_c]: [, input[_C]],
|
|
303
|
-
[_oA]: [, input[_OA]],
|
|
304
|
-
[_pN]: [, input[_PN]],
|
|
305
|
-
[_pV]: [, input[_PVa]],
|
|
306
|
-
[_pVa]: [, input[_PV]],
|
|
307
|
-
[_nT]: [, input[_NT]],
|
|
308
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
309
|
-
});
|
|
310
|
-
let body;
|
|
311
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
312
|
-
return b.build();
|
|
313
|
-
};
|
|
314
|
-
export const se_ListPackageImportJobsCommand = async (input, context) => {
|
|
315
|
-
const b = rb(input, context);
|
|
316
|
-
const headers = {};
|
|
317
|
-
b.bp("/packages/import-jobs");
|
|
318
|
-
const query = map({
|
|
319
|
-
[_NT]: [, input[_NT]],
|
|
320
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
321
|
-
});
|
|
322
|
-
let body;
|
|
323
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
324
|
-
return b.build();
|
|
325
|
-
};
|
|
326
|
-
export const se_ListPackagesCommand = async (input, context) => {
|
|
327
|
-
const b = rb(input, context);
|
|
328
|
-
const headers = {};
|
|
329
|
-
b.bp("/packages");
|
|
330
|
-
const query = map({
|
|
331
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
332
|
-
[_nT]: [, input[_NT]],
|
|
333
|
-
});
|
|
334
|
-
let body;
|
|
335
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
336
|
-
return b.build();
|
|
337
|
-
};
|
|
338
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
339
|
-
const b = rb(input, context);
|
|
340
|
-
const headers = {};
|
|
341
|
-
b.bp("/tags/{ResourceArn}");
|
|
342
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
343
|
-
let body;
|
|
344
|
-
b.m("GET").h(headers).b(body);
|
|
345
|
-
return b.build();
|
|
346
|
-
};
|
|
347
|
-
export const se_ProvisionDeviceCommand = async (input, context) => {
|
|
348
|
-
const b = rb(input, context);
|
|
349
|
-
const headers = {
|
|
350
|
-
"content-type": "application/json",
|
|
351
|
-
};
|
|
352
|
-
b.bp("/devices");
|
|
353
|
-
let body;
|
|
354
|
-
body = JSON.stringify(take(input, {
|
|
355
|
-
Description: [],
|
|
356
|
-
Name: [],
|
|
357
|
-
NetworkingConfiguration: (_) => _json(_),
|
|
358
|
-
Tags: (_) => _json(_),
|
|
359
|
-
}));
|
|
360
|
-
b.m("POST").h(headers).b(body);
|
|
361
|
-
return b.build();
|
|
362
|
-
};
|
|
363
|
-
export const se_RegisterPackageVersionCommand = async (input, context) => {
|
|
364
|
-
const b = rb(input, context);
|
|
365
|
-
const headers = {
|
|
366
|
-
"content-type": "application/json",
|
|
367
|
-
};
|
|
368
|
-
b.bp("/packages/{PackageId}/versions/{PackageVersion}/patch/{PatchVersion}");
|
|
369
|
-
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
370
|
-
b.p("PackageVersion", () => input.PackageVersion, "{PackageVersion}", false);
|
|
371
|
-
b.p("PatchVersion", () => input.PatchVersion, "{PatchVersion}", false);
|
|
372
|
-
let body;
|
|
373
|
-
body = JSON.stringify(take(input, {
|
|
374
|
-
MarkLatest: [],
|
|
375
|
-
OwnerAccount: [],
|
|
376
|
-
}));
|
|
377
|
-
b.m("PUT").h(headers).b(body);
|
|
378
|
-
return b.build();
|
|
379
|
-
};
|
|
380
|
-
export const se_RemoveApplicationInstanceCommand = async (input, context) => {
|
|
381
|
-
const b = rb(input, context);
|
|
382
|
-
const headers = {};
|
|
383
|
-
b.bp("/application-instances/{ApplicationInstanceId}");
|
|
384
|
-
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
385
|
-
let body;
|
|
386
|
-
b.m("DELETE").h(headers).b(body);
|
|
387
|
-
return b.build();
|
|
388
|
-
};
|
|
389
|
-
export const se_SignalApplicationInstanceNodeInstancesCommand = async (input, context) => {
|
|
390
|
-
const b = rb(input, context);
|
|
391
|
-
const headers = {
|
|
392
|
-
"content-type": "application/json",
|
|
393
|
-
};
|
|
394
|
-
b.bp("/application-instances/{ApplicationInstanceId}/node-signals");
|
|
395
|
-
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify(take(input, {
|
|
398
|
-
NodeSignals: (_) => _json(_),
|
|
399
|
-
}));
|
|
400
|
-
b.m("PUT").h(headers).b(body);
|
|
401
|
-
return b.build();
|
|
402
|
-
};
|
|
403
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
404
|
-
const b = rb(input, context);
|
|
405
|
-
const headers = {
|
|
406
|
-
"content-type": "application/json",
|
|
407
|
-
};
|
|
408
|
-
b.bp("/tags/{ResourceArn}");
|
|
409
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
410
|
-
let body;
|
|
411
|
-
body = JSON.stringify(take(input, {
|
|
412
|
-
Tags: (_) => _json(_),
|
|
413
|
-
}));
|
|
414
|
-
b.m("POST").h(headers).b(body);
|
|
415
|
-
return b.build();
|
|
416
|
-
};
|
|
417
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
418
|
-
const b = rb(input, context);
|
|
419
|
-
const headers = {};
|
|
420
|
-
b.bp("/tags/{ResourceArn}");
|
|
421
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
422
|
-
const query = map({
|
|
423
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
424
|
-
});
|
|
425
|
-
let body;
|
|
426
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
427
|
-
return b.build();
|
|
428
|
-
};
|
|
429
|
-
export const se_UpdateDeviceMetadataCommand = async (input, context) => {
|
|
430
|
-
const b = rb(input, context);
|
|
431
|
-
const headers = {
|
|
432
|
-
"content-type": "application/json",
|
|
433
|
-
};
|
|
434
|
-
b.bp("/devices/{DeviceId}");
|
|
435
|
-
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
436
|
-
let body;
|
|
437
|
-
body = JSON.stringify(take(input, {
|
|
438
|
-
Description: [],
|
|
439
|
-
}));
|
|
440
|
-
b.m("PUT").h(headers).b(body);
|
|
441
|
-
return b.build();
|
|
442
|
-
};
|
|
443
|
-
export const de_CreateApplicationInstanceCommand = async (output, context) => {
|
|
444
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
|
-
return de_CommandError(output, context);
|
|
446
|
-
}
|
|
447
|
-
const contents = map({
|
|
448
|
-
$metadata: deserializeMetadata(output),
|
|
449
|
-
});
|
|
450
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
451
|
-
const doc = take(data, {
|
|
452
|
-
ApplicationInstanceId: __expectString,
|
|
453
|
-
});
|
|
454
|
-
Object.assign(contents, doc);
|
|
455
|
-
return contents;
|
|
456
|
-
};
|
|
457
|
-
export const de_CreateJobForDevicesCommand = async (output, context) => {
|
|
458
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
459
|
-
return de_CommandError(output, context);
|
|
460
|
-
}
|
|
461
|
-
const contents = map({
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
});
|
|
464
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
465
|
-
const doc = take(data, {
|
|
466
|
-
Jobs: _json,
|
|
467
|
-
});
|
|
468
|
-
Object.assign(contents, doc);
|
|
469
|
-
return contents;
|
|
470
|
-
};
|
|
471
|
-
export const de_CreateNodeFromTemplateJobCommand = async (output, context) => {
|
|
472
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
473
|
-
return de_CommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const contents = map({
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
});
|
|
478
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
479
|
-
const doc = take(data, {
|
|
480
|
-
JobId: __expectString,
|
|
481
|
-
});
|
|
482
|
-
Object.assign(contents, doc);
|
|
483
|
-
return contents;
|
|
484
|
-
};
|
|
485
|
-
export const de_CreatePackageCommand = async (output, context) => {
|
|
486
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
-
return de_CommandError(output, context);
|
|
488
|
-
}
|
|
489
|
-
const contents = map({
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
});
|
|
492
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
493
|
-
const doc = take(data, {
|
|
494
|
-
Arn: __expectString,
|
|
495
|
-
PackageId: __expectString,
|
|
496
|
-
StorageLocation: _json,
|
|
497
|
-
});
|
|
498
|
-
Object.assign(contents, doc);
|
|
499
|
-
return contents;
|
|
500
|
-
};
|
|
501
|
-
export const de_CreatePackageImportJobCommand = async (output, context) => {
|
|
502
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return de_CommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
const contents = map({
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
});
|
|
508
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
509
|
-
const doc = take(data, {
|
|
510
|
-
JobId: __expectString,
|
|
511
|
-
});
|
|
512
|
-
Object.assign(contents, doc);
|
|
513
|
-
return contents;
|
|
514
|
-
};
|
|
515
|
-
export const de_DeleteDeviceCommand = async (output, context) => {
|
|
516
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
517
|
-
return de_CommandError(output, context);
|
|
518
|
-
}
|
|
519
|
-
const contents = map({
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
});
|
|
522
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
523
|
-
const doc = take(data, {
|
|
524
|
-
DeviceId: __expectString,
|
|
525
|
-
});
|
|
526
|
-
Object.assign(contents, doc);
|
|
527
|
-
return contents;
|
|
528
|
-
};
|
|
529
|
-
export const de_DeletePackageCommand = async (output, context) => {
|
|
530
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
531
|
-
return de_CommandError(output, context);
|
|
532
|
-
}
|
|
533
|
-
const contents = map({
|
|
534
|
-
$metadata: deserializeMetadata(output),
|
|
535
|
-
});
|
|
536
|
-
await collectBody(output.body, context);
|
|
537
|
-
return contents;
|
|
538
|
-
};
|
|
539
|
-
export const de_DeregisterPackageVersionCommand = async (output, context) => {
|
|
540
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
541
|
-
return de_CommandError(output, context);
|
|
542
|
-
}
|
|
543
|
-
const contents = map({
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
});
|
|
546
|
-
await collectBody(output.body, context);
|
|
547
|
-
return contents;
|
|
548
|
-
};
|
|
549
|
-
export const de_DescribeApplicationInstanceCommand = async (output, context) => {
|
|
550
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
|
-
return de_CommandError(output, context);
|
|
552
|
-
}
|
|
553
|
-
const contents = map({
|
|
554
|
-
$metadata: deserializeMetadata(output),
|
|
555
|
-
});
|
|
556
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
557
|
-
const doc = take(data, {
|
|
558
|
-
ApplicationInstanceId: __expectString,
|
|
559
|
-
ApplicationInstanceIdToReplace: __expectString,
|
|
560
|
-
Arn: __expectString,
|
|
561
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
562
|
-
DefaultRuntimeContextDevice: __expectString,
|
|
563
|
-
DefaultRuntimeContextDeviceName: __expectString,
|
|
564
|
-
Description: __expectString,
|
|
565
|
-
HealthStatus: __expectString,
|
|
566
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
567
|
-
Name: __expectString,
|
|
568
|
-
RuntimeContextStates: (_) => de_ReportedRuntimeContextStates(_, context),
|
|
569
|
-
RuntimeRoleArn: __expectString,
|
|
570
|
-
Status: __expectString,
|
|
571
|
-
StatusDescription: __expectString,
|
|
572
|
-
Tags: _json,
|
|
573
|
-
});
|
|
574
|
-
Object.assign(contents, doc);
|
|
575
|
-
return contents;
|
|
576
|
-
};
|
|
577
|
-
export const de_DescribeApplicationInstanceDetailsCommand = async (output, context) => {
|
|
578
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
|
-
return de_CommandError(output, context);
|
|
580
|
-
}
|
|
581
|
-
const contents = map({
|
|
582
|
-
$metadata: deserializeMetadata(output),
|
|
583
|
-
});
|
|
584
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
585
|
-
const doc = take(data, {
|
|
586
|
-
ApplicationInstanceId: __expectString,
|
|
587
|
-
ApplicationInstanceIdToReplace: __expectString,
|
|
588
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
589
|
-
DefaultRuntimeContextDevice: __expectString,
|
|
590
|
-
Description: __expectString,
|
|
591
|
-
ManifestOverridesPayload: (_) => _json(__expectUnion(_)),
|
|
592
|
-
ManifestPayload: (_) => _json(__expectUnion(_)),
|
|
593
|
-
Name: __expectString,
|
|
594
|
-
});
|
|
595
|
-
Object.assign(contents, doc);
|
|
596
|
-
return contents;
|
|
597
|
-
};
|
|
598
|
-
export const de_DescribeDeviceCommand = async (output, context) => {
|
|
599
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
-
return de_CommandError(output, context);
|
|
601
|
-
}
|
|
602
|
-
const contents = map({
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
});
|
|
605
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
606
|
-
const doc = take(data, {
|
|
607
|
-
AlternateSoftwares: _json,
|
|
608
|
-
Arn: __expectString,
|
|
609
|
-
Brand: __expectString,
|
|
610
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
611
|
-
CurrentNetworkingStatus: (_) => de_NetworkStatus(_, context),
|
|
612
|
-
CurrentSoftware: __expectString,
|
|
613
|
-
Description: __expectString,
|
|
614
|
-
DeviceAggregatedStatus: __expectString,
|
|
615
|
-
DeviceConnectionStatus: __expectString,
|
|
616
|
-
DeviceId: __expectString,
|
|
617
|
-
LatestAlternateSoftware: __expectString,
|
|
618
|
-
LatestDeviceJob: _json,
|
|
619
|
-
LatestSoftware: __expectString,
|
|
620
|
-
LeaseExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
621
|
-
Name: __expectString,
|
|
622
|
-
NetworkingConfiguration: _json,
|
|
623
|
-
ProvisioningStatus: __expectString,
|
|
624
|
-
SerialNumber: __expectString,
|
|
625
|
-
Tags: _json,
|
|
626
|
-
Type: __expectString,
|
|
627
|
-
});
|
|
628
|
-
Object.assign(contents, doc);
|
|
629
|
-
return contents;
|
|
630
|
-
};
|
|
631
|
-
export const de_DescribeDeviceJobCommand = async (output, context) => {
|
|
632
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
|
-
return de_CommandError(output, context);
|
|
634
|
-
}
|
|
635
|
-
const contents = map({
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
});
|
|
638
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
639
|
-
const doc = take(data, {
|
|
640
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
641
|
-
DeviceArn: __expectString,
|
|
642
|
-
DeviceId: __expectString,
|
|
643
|
-
DeviceName: __expectString,
|
|
644
|
-
DeviceType: __expectString,
|
|
645
|
-
ImageVersion: __expectString,
|
|
646
|
-
JobId: __expectString,
|
|
647
|
-
JobType: __expectString,
|
|
648
|
-
Status: __expectString,
|
|
649
|
-
});
|
|
650
|
-
Object.assign(contents, doc);
|
|
651
|
-
return contents;
|
|
652
|
-
};
|
|
653
|
-
export const de_DescribeNodeCommand = async (output, context) => {
|
|
654
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
-
return de_CommandError(output, context);
|
|
656
|
-
}
|
|
657
|
-
const contents = map({
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
});
|
|
660
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
661
|
-
const doc = take(data, {
|
|
662
|
-
AssetName: __expectString,
|
|
663
|
-
Category: __expectString,
|
|
664
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
665
|
-
Description: __expectString,
|
|
666
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
667
|
-
Name: __expectString,
|
|
668
|
-
NodeId: __expectString,
|
|
669
|
-
NodeInterface: _json,
|
|
670
|
-
OwnerAccount: __expectString,
|
|
671
|
-
PackageArn: __expectString,
|
|
672
|
-
PackageId: __expectString,
|
|
673
|
-
PackageName: __expectString,
|
|
674
|
-
PackageVersion: __expectString,
|
|
675
|
-
PatchVersion: __expectString,
|
|
676
|
-
});
|
|
677
|
-
Object.assign(contents, doc);
|
|
678
|
-
return contents;
|
|
679
|
-
};
|
|
680
|
-
export const de_DescribeNodeFromTemplateJobCommand = async (output, context) => {
|
|
681
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return de_CommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const contents = map({
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
});
|
|
687
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
688
|
-
const doc = take(data, {
|
|
689
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
690
|
-
JobId: __expectString,
|
|
691
|
-
JobTags: _json,
|
|
692
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
693
|
-
NodeDescription: __expectString,
|
|
694
|
-
NodeName: __expectString,
|
|
695
|
-
OutputPackageName: __expectString,
|
|
696
|
-
OutputPackageVersion: __expectString,
|
|
697
|
-
Status: __expectString,
|
|
698
|
-
StatusMessage: __expectString,
|
|
699
|
-
TemplateParameters: _json,
|
|
700
|
-
TemplateType: __expectString,
|
|
701
|
-
});
|
|
702
|
-
Object.assign(contents, doc);
|
|
703
|
-
return contents;
|
|
704
|
-
};
|
|
705
|
-
export const de_DescribePackageCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return de_CommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const contents = map({
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
});
|
|
712
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
713
|
-
const doc = take(data, {
|
|
714
|
-
Arn: __expectString,
|
|
715
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
716
|
-
PackageId: __expectString,
|
|
717
|
-
PackageName: __expectString,
|
|
718
|
-
ReadAccessPrincipalArns: _json,
|
|
719
|
-
StorageLocation: _json,
|
|
720
|
-
Tags: _json,
|
|
721
|
-
WriteAccessPrincipalArns: _json,
|
|
722
|
-
});
|
|
723
|
-
Object.assign(contents, doc);
|
|
724
|
-
return contents;
|
|
725
|
-
};
|
|
726
|
-
export const de_DescribePackageImportJobCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
728
|
-
return de_CommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const contents = map({
|
|
731
|
-
$metadata: deserializeMetadata(output),
|
|
732
|
-
});
|
|
733
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
734
|
-
const doc = take(data, {
|
|
735
|
-
ClientToken: __expectString,
|
|
736
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
737
|
-
InputConfig: _json,
|
|
738
|
-
JobId: __expectString,
|
|
739
|
-
JobTags: _json,
|
|
740
|
-
JobType: __expectString,
|
|
741
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
742
|
-
Output: _json,
|
|
743
|
-
OutputConfig: _json,
|
|
744
|
-
Status: __expectString,
|
|
745
|
-
StatusMessage: __expectString,
|
|
746
|
-
});
|
|
747
|
-
Object.assign(contents, doc);
|
|
748
|
-
return contents;
|
|
749
|
-
};
|
|
750
|
-
export const de_DescribePackageVersionCommand = async (output, context) => {
|
|
751
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
-
return de_CommandError(output, context);
|
|
753
|
-
}
|
|
754
|
-
const contents = map({
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
});
|
|
757
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
758
|
-
const doc = take(data, {
|
|
759
|
-
IsLatestPatch: __expectBoolean,
|
|
760
|
-
OwnerAccount: __expectString,
|
|
761
|
-
PackageArn: __expectString,
|
|
762
|
-
PackageId: __expectString,
|
|
763
|
-
PackageName: __expectString,
|
|
764
|
-
PackageVersion: __expectString,
|
|
765
|
-
PatchVersion: __expectString,
|
|
766
|
-
RegisteredTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
767
|
-
Status: __expectString,
|
|
768
|
-
StatusDescription: __expectString,
|
|
769
|
-
});
|
|
770
|
-
Object.assign(contents, doc);
|
|
771
|
-
return contents;
|
|
772
|
-
};
|
|
773
|
-
export const de_ListApplicationInstanceDependenciesCommand = async (output, context) => {
|
|
774
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
-
return de_CommandError(output, context);
|
|
776
|
-
}
|
|
777
|
-
const contents = map({
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
});
|
|
780
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
781
|
-
const doc = take(data, {
|
|
782
|
-
NextToken: __expectString,
|
|
783
|
-
PackageObjects: _json,
|
|
784
|
-
});
|
|
785
|
-
Object.assign(contents, doc);
|
|
786
|
-
return contents;
|
|
787
|
-
};
|
|
788
|
-
export const de_ListApplicationInstanceNodeInstancesCommand = async (output, context) => {
|
|
789
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return de_CommandError(output, context);
|
|
791
|
-
}
|
|
792
|
-
const contents = map({
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
794
|
-
});
|
|
795
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
796
|
-
const doc = take(data, {
|
|
797
|
-
NextToken: __expectString,
|
|
798
|
-
NodeInstances: _json,
|
|
799
|
-
});
|
|
800
|
-
Object.assign(contents, doc);
|
|
801
|
-
return contents;
|
|
802
|
-
};
|
|
803
|
-
export const de_ListApplicationInstancesCommand = async (output, context) => {
|
|
804
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return de_CommandError(output, context);
|
|
806
|
-
}
|
|
807
|
-
const contents = map({
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
});
|
|
810
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
811
|
-
const doc = take(data, {
|
|
812
|
-
ApplicationInstances: (_) => de_ApplicationInstances(_, context),
|
|
813
|
-
NextToken: __expectString,
|
|
814
|
-
});
|
|
815
|
-
Object.assign(contents, doc);
|
|
816
|
-
return contents;
|
|
817
|
-
};
|
|
818
|
-
export const de_ListDevicesCommand = async (output, context) => {
|
|
819
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
-
return de_CommandError(output, context);
|
|
821
|
-
}
|
|
822
|
-
const contents = map({
|
|
823
|
-
$metadata: deserializeMetadata(output),
|
|
824
|
-
});
|
|
825
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
826
|
-
const doc = take(data, {
|
|
827
|
-
Devices: (_) => de_DeviceList(_, context),
|
|
828
|
-
NextToken: __expectString,
|
|
829
|
-
});
|
|
830
|
-
Object.assign(contents, doc);
|
|
831
|
-
return contents;
|
|
832
|
-
};
|
|
833
|
-
export const de_ListDevicesJobsCommand = async (output, context) => {
|
|
834
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
835
|
-
return de_CommandError(output, context);
|
|
836
|
-
}
|
|
837
|
-
const contents = map({
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
});
|
|
840
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
841
|
-
const doc = take(data, {
|
|
842
|
-
DeviceJobs: (_) => de_DeviceJobList(_, context),
|
|
843
|
-
NextToken: __expectString,
|
|
844
|
-
});
|
|
845
|
-
Object.assign(contents, doc);
|
|
846
|
-
return contents;
|
|
847
|
-
};
|
|
848
|
-
export const de_ListNodeFromTemplateJobsCommand = async (output, context) => {
|
|
849
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
850
|
-
return de_CommandError(output, context);
|
|
851
|
-
}
|
|
852
|
-
const contents = map({
|
|
853
|
-
$metadata: deserializeMetadata(output),
|
|
854
|
-
});
|
|
855
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
856
|
-
const doc = take(data, {
|
|
857
|
-
NextToken: __expectString,
|
|
858
|
-
NodeFromTemplateJobs: (_) => de_NodeFromTemplateJobList(_, context),
|
|
859
|
-
});
|
|
860
|
-
Object.assign(contents, doc);
|
|
861
|
-
return contents;
|
|
862
|
-
};
|
|
863
|
-
export const de_ListNodesCommand = async (output, context) => {
|
|
864
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
|
-
return de_CommandError(output, context);
|
|
866
|
-
}
|
|
867
|
-
const contents = map({
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
});
|
|
870
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
871
|
-
const doc = take(data, {
|
|
872
|
-
NextToken: __expectString,
|
|
873
|
-
Nodes: (_) => de_NodesList(_, context),
|
|
874
|
-
});
|
|
875
|
-
Object.assign(contents, doc);
|
|
876
|
-
return contents;
|
|
877
|
-
};
|
|
878
|
-
export const de_ListPackageImportJobsCommand = async (output, context) => {
|
|
879
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
880
|
-
return de_CommandError(output, context);
|
|
881
|
-
}
|
|
882
|
-
const contents = map({
|
|
883
|
-
$metadata: deserializeMetadata(output),
|
|
884
|
-
});
|
|
885
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
886
|
-
const doc = take(data, {
|
|
887
|
-
NextToken: __expectString,
|
|
888
|
-
PackageImportJobs: (_) => de_PackageImportJobList(_, context),
|
|
889
|
-
});
|
|
890
|
-
Object.assign(contents, doc);
|
|
891
|
-
return contents;
|
|
892
|
-
};
|
|
893
|
-
export const de_ListPackagesCommand = async (output, context) => {
|
|
894
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
895
|
-
return de_CommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
const contents = map({
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
});
|
|
900
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
901
|
-
const doc = take(data, {
|
|
902
|
-
NextToken: __expectString,
|
|
903
|
-
Packages: (_) => de_PackageList(_, context),
|
|
904
|
-
});
|
|
905
|
-
Object.assign(contents, doc);
|
|
906
|
-
return contents;
|
|
907
|
-
};
|
|
908
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
909
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const contents = map({
|
|
913
|
-
$metadata: deserializeMetadata(output),
|
|
914
|
-
});
|
|
915
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
916
|
-
const doc = take(data, {
|
|
917
|
-
Tags: _json,
|
|
918
|
-
});
|
|
919
|
-
Object.assign(contents, doc);
|
|
920
|
-
return contents;
|
|
921
|
-
};
|
|
922
|
-
export const de_ProvisionDeviceCommand = async (output, context) => {
|
|
923
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
|
-
return de_CommandError(output, context);
|
|
925
|
-
}
|
|
926
|
-
const contents = map({
|
|
927
|
-
$metadata: deserializeMetadata(output),
|
|
928
|
-
});
|
|
929
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
930
|
-
const doc = take(data, {
|
|
931
|
-
Arn: __expectString,
|
|
932
|
-
Certificates: context.base64Decoder,
|
|
933
|
-
DeviceId: __expectString,
|
|
934
|
-
IotThingName: __expectString,
|
|
935
|
-
Status: __expectString,
|
|
936
|
-
});
|
|
937
|
-
Object.assign(contents, doc);
|
|
938
|
-
return contents;
|
|
939
|
-
};
|
|
940
|
-
export const de_RegisterPackageVersionCommand = async (output, context) => {
|
|
941
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return de_CommandError(output, context);
|
|
943
|
-
}
|
|
944
|
-
const contents = map({
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
});
|
|
947
|
-
await collectBody(output.body, context);
|
|
948
|
-
return contents;
|
|
949
|
-
};
|
|
950
|
-
export const de_RemoveApplicationInstanceCommand = async (output, context) => {
|
|
951
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
|
-
return de_CommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const contents = map({
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
});
|
|
957
|
-
await collectBody(output.body, context);
|
|
958
|
-
return contents;
|
|
959
|
-
};
|
|
960
|
-
export const de_SignalApplicationInstanceNodeInstancesCommand = async (output, context) => {
|
|
961
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
-
return de_CommandError(output, context);
|
|
963
|
-
}
|
|
964
|
-
const contents = map({
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
});
|
|
967
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
968
|
-
const doc = take(data, {
|
|
969
|
-
ApplicationInstanceId: __expectString,
|
|
970
|
-
});
|
|
971
|
-
Object.assign(contents, doc);
|
|
972
|
-
return contents;
|
|
973
|
-
};
|
|
974
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
975
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
-
return de_CommandError(output, context);
|
|
977
|
-
}
|
|
978
|
-
const contents = map({
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
});
|
|
981
|
-
await collectBody(output.body, context);
|
|
982
|
-
return contents;
|
|
983
|
-
};
|
|
984
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
985
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return de_CommandError(output, context);
|
|
987
|
-
}
|
|
988
|
-
const contents = map({
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
});
|
|
991
|
-
await collectBody(output.body, context);
|
|
992
|
-
return contents;
|
|
993
|
-
};
|
|
994
|
-
export const de_UpdateDeviceMetadataCommand = async (output, context) => {
|
|
995
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
|
-
return de_CommandError(output, context);
|
|
997
|
-
}
|
|
998
|
-
const contents = map({
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
});
|
|
1001
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1002
|
-
const doc = take(data, {
|
|
1003
|
-
DeviceId: __expectString,
|
|
1004
|
-
});
|
|
1005
|
-
Object.assign(contents, doc);
|
|
1006
|
-
return contents;
|
|
1007
|
-
};
|
|
1008
|
-
const de_CommandError = async (output, context) => {
|
|
1009
|
-
const parsedOutput = {
|
|
1010
|
-
...output,
|
|
1011
|
-
body: await parseErrorBody(output.body, context),
|
|
1012
|
-
};
|
|
1013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
-
switch (errorCode) {
|
|
1015
|
-
case "AccessDeniedException":
|
|
1016
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1017
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "InternalServerException":
|
|
1019
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1020
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "ServiceQuotaExceededException":
|
|
1022
|
-
case "com.amazonaws.panorama#ServiceQuotaExceededException":
|
|
1023
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ValidationException":
|
|
1025
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ConflictException":
|
|
1028
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1029
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ResourceNotFoundException":
|
|
1031
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1032
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode,
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1043
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1044
|
-
const contents = map({});
|
|
1045
|
-
const data = parsedOutput.body;
|
|
1046
|
-
const doc = take(data, {
|
|
1047
|
-
Message: __expectString,
|
|
1048
|
-
});
|
|
1049
|
-
Object.assign(contents, doc);
|
|
1050
|
-
const exception = new AccessDeniedException({
|
|
1051
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1052
|
-
...contents,
|
|
1053
|
-
});
|
|
1054
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1055
|
-
};
|
|
1056
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1057
|
-
const contents = map({});
|
|
1058
|
-
const data = parsedOutput.body;
|
|
1059
|
-
const doc = take(data, {
|
|
1060
|
-
ErrorArguments: _json,
|
|
1061
|
-
ErrorId: __expectString,
|
|
1062
|
-
Message: __expectString,
|
|
1063
|
-
ResourceId: __expectString,
|
|
1064
|
-
ResourceType: __expectString,
|
|
1065
|
-
});
|
|
1066
|
-
Object.assign(contents, doc);
|
|
1067
|
-
const exception = new ConflictException({
|
|
1068
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
|
-
...contents,
|
|
1070
|
-
});
|
|
1071
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1072
|
-
};
|
|
1073
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1074
|
-
const contents = map({
|
|
1075
|
-
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1076
|
-
});
|
|
1077
|
-
const data = parsedOutput.body;
|
|
1078
|
-
const doc = take(data, {
|
|
1079
|
-
Message: __expectString,
|
|
1080
|
-
});
|
|
1081
|
-
Object.assign(contents, doc);
|
|
1082
|
-
const exception = new InternalServerException({
|
|
1083
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1084
|
-
...contents,
|
|
1085
|
-
});
|
|
1086
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1087
|
-
};
|
|
1088
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1089
|
-
const contents = map({});
|
|
1090
|
-
const data = parsedOutput.body;
|
|
1091
|
-
const doc = take(data, {
|
|
1092
|
-
Message: __expectString,
|
|
1093
|
-
ResourceId: __expectString,
|
|
1094
|
-
ResourceType: __expectString,
|
|
1095
|
-
});
|
|
1096
|
-
Object.assign(contents, doc);
|
|
1097
|
-
const exception = new ResourceNotFoundException({
|
|
1098
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1099
|
-
...contents,
|
|
1100
|
-
});
|
|
1101
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1102
|
-
};
|
|
1103
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1104
|
-
const contents = map({});
|
|
1105
|
-
const data = parsedOutput.body;
|
|
1106
|
-
const doc = take(data, {
|
|
1107
|
-
Message: __expectString,
|
|
1108
|
-
QuotaCode: __expectString,
|
|
1109
|
-
ResourceId: __expectString,
|
|
1110
|
-
ResourceType: __expectString,
|
|
1111
|
-
ServiceCode: __expectString,
|
|
1112
|
-
});
|
|
1113
|
-
Object.assign(contents, doc);
|
|
1114
|
-
const exception = new ServiceQuotaExceededException({
|
|
1115
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1116
|
-
...contents,
|
|
1117
|
-
});
|
|
1118
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1119
|
-
};
|
|
1120
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1121
|
-
const contents = map({});
|
|
1122
|
-
const data = parsedOutput.body;
|
|
1123
|
-
const doc = take(data, {
|
|
1124
|
-
ErrorArguments: _json,
|
|
1125
|
-
ErrorId: __expectString,
|
|
1126
|
-
Fields: _json,
|
|
1127
|
-
Message: __expectString,
|
|
1128
|
-
Reason: __expectString,
|
|
1129
|
-
});
|
|
1130
|
-
Object.assign(contents, doc);
|
|
1131
|
-
const exception = new ValidationException({
|
|
1132
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1133
|
-
...contents,
|
|
1134
|
-
});
|
|
1135
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1136
|
-
};
|
|
1137
|
-
const de_ApplicationInstance = (output, context) => {
|
|
1138
|
-
return take(output, {
|
|
1139
|
-
ApplicationInstanceId: __expectString,
|
|
1140
|
-
Arn: __expectString,
|
|
1141
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1142
|
-
DefaultRuntimeContextDevice: __expectString,
|
|
1143
|
-
DefaultRuntimeContextDeviceName: __expectString,
|
|
1144
|
-
Description: __expectString,
|
|
1145
|
-
HealthStatus: __expectString,
|
|
1146
|
-
Name: __expectString,
|
|
1147
|
-
RuntimeContextStates: (_) => de_ReportedRuntimeContextStates(_, context),
|
|
1148
|
-
Status: __expectString,
|
|
1149
|
-
StatusDescription: __expectString,
|
|
1150
|
-
Tags: _json,
|
|
1151
|
-
});
|
|
1152
|
-
};
|
|
1153
|
-
const de_ApplicationInstances = (output, context) => {
|
|
1154
|
-
const retVal = (output || [])
|
|
1155
|
-
.filter((e) => e != null)
|
|
1156
|
-
.map((entry) => {
|
|
1157
|
-
return de_ApplicationInstance(entry, context);
|
|
1158
|
-
});
|
|
1159
|
-
return retVal;
|
|
1160
|
-
};
|
|
1161
|
-
const de_Device = (output, context) => {
|
|
1162
|
-
return take(output, {
|
|
1163
|
-
Brand: __expectString,
|
|
1164
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1165
|
-
CurrentSoftware: __expectString,
|
|
1166
|
-
Description: __expectString,
|
|
1167
|
-
DeviceAggregatedStatus: __expectString,
|
|
1168
|
-
DeviceId: __expectString,
|
|
1169
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1170
|
-
LatestDeviceJob: _json,
|
|
1171
|
-
LeaseExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1172
|
-
Name: __expectString,
|
|
1173
|
-
ProvisioningStatus: __expectString,
|
|
1174
|
-
Tags: _json,
|
|
1175
|
-
Type: __expectString,
|
|
1176
|
-
});
|
|
1177
|
-
};
|
|
1178
|
-
const de_DeviceJob = (output, context) => {
|
|
1179
|
-
return take(output, {
|
|
1180
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1181
|
-
DeviceId: __expectString,
|
|
1182
|
-
DeviceName: __expectString,
|
|
1183
|
-
JobId: __expectString,
|
|
1184
|
-
JobType: __expectString,
|
|
1185
|
-
});
|
|
1186
|
-
};
|
|
1187
|
-
const de_DeviceJobList = (output, context) => {
|
|
1188
|
-
const retVal = (output || [])
|
|
1189
|
-
.filter((e) => e != null)
|
|
1190
|
-
.map((entry) => {
|
|
1191
|
-
return de_DeviceJob(entry, context);
|
|
1192
|
-
});
|
|
1193
|
-
return retVal;
|
|
1194
|
-
};
|
|
1195
|
-
const de_DeviceList = (output, context) => {
|
|
1196
|
-
const retVal = (output || [])
|
|
1197
|
-
.filter((e) => e != null)
|
|
1198
|
-
.map((entry) => {
|
|
1199
|
-
return de_Device(entry, context);
|
|
1200
|
-
});
|
|
1201
|
-
return retVal;
|
|
1202
|
-
};
|
|
1203
|
-
const de_NetworkStatus = (output, context) => {
|
|
1204
|
-
return take(output, {
|
|
1205
|
-
Ethernet0Status: _json,
|
|
1206
|
-
Ethernet1Status: _json,
|
|
1207
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1208
|
-
NtpStatus: _json,
|
|
1209
|
-
});
|
|
1210
|
-
};
|
|
1211
|
-
const de_Node = (output, context) => {
|
|
1212
|
-
return take(output, {
|
|
1213
|
-
Category: __expectString,
|
|
1214
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1215
|
-
Description: __expectString,
|
|
1216
|
-
Name: __expectString,
|
|
1217
|
-
NodeId: __expectString,
|
|
1218
|
-
OwnerAccount: __expectString,
|
|
1219
|
-
PackageArn: __expectString,
|
|
1220
|
-
PackageId: __expectString,
|
|
1221
|
-
PackageName: __expectString,
|
|
1222
|
-
PackageVersion: __expectString,
|
|
1223
|
-
PatchVersion: __expectString,
|
|
1224
|
-
});
|
|
1225
|
-
};
|
|
1226
|
-
const de_NodeFromTemplateJob = (output, context) => {
|
|
1227
|
-
return take(output, {
|
|
1228
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1229
|
-
JobId: __expectString,
|
|
1230
|
-
NodeName: __expectString,
|
|
1231
|
-
Status: __expectString,
|
|
1232
|
-
StatusMessage: __expectString,
|
|
1233
|
-
TemplateType: __expectString,
|
|
1234
|
-
});
|
|
1235
|
-
};
|
|
1236
|
-
const de_NodeFromTemplateJobList = (output, context) => {
|
|
1237
|
-
const retVal = (output || [])
|
|
1238
|
-
.filter((e) => e != null)
|
|
1239
|
-
.map((entry) => {
|
|
1240
|
-
return de_NodeFromTemplateJob(entry, context);
|
|
1241
|
-
});
|
|
1242
|
-
return retVal;
|
|
1243
|
-
};
|
|
1244
|
-
const de_NodesList = (output, context) => {
|
|
1245
|
-
const retVal = (output || [])
|
|
1246
|
-
.filter((e) => e != null)
|
|
1247
|
-
.map((entry) => {
|
|
1248
|
-
return de_Node(entry, context);
|
|
1249
|
-
});
|
|
1250
|
-
return retVal;
|
|
1251
|
-
};
|
|
1252
|
-
const de_PackageImportJob = (output, context) => {
|
|
1253
|
-
return take(output, {
|
|
1254
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1255
|
-
JobId: __expectString,
|
|
1256
|
-
JobType: __expectString,
|
|
1257
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1258
|
-
Status: __expectString,
|
|
1259
|
-
StatusMessage: __expectString,
|
|
1260
|
-
});
|
|
1261
|
-
};
|
|
1262
|
-
const de_PackageImportJobList = (output, context) => {
|
|
1263
|
-
const retVal = (output || [])
|
|
1264
|
-
.filter((e) => e != null)
|
|
1265
|
-
.map((entry) => {
|
|
1266
|
-
return de_PackageImportJob(entry, context);
|
|
1267
|
-
});
|
|
1268
|
-
return retVal;
|
|
1269
|
-
};
|
|
1270
|
-
const de_PackageList = (output, context) => {
|
|
1271
|
-
const retVal = (output || [])
|
|
1272
|
-
.filter((e) => e != null)
|
|
1273
|
-
.map((entry) => {
|
|
1274
|
-
return de_PackageListItem(entry, context);
|
|
1275
|
-
});
|
|
1276
|
-
return retVal;
|
|
1277
|
-
};
|
|
1278
|
-
const de_PackageListItem = (output, context) => {
|
|
1279
|
-
return take(output, {
|
|
1280
|
-
Arn: __expectString,
|
|
1281
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1282
|
-
PackageId: __expectString,
|
|
1283
|
-
PackageName: __expectString,
|
|
1284
|
-
Tags: _json,
|
|
1285
|
-
});
|
|
1286
|
-
};
|
|
1287
|
-
const de_ReportedRuntimeContextState = (output, context) => {
|
|
1288
|
-
return take(output, {
|
|
1289
|
-
DesiredState: __expectString,
|
|
1290
|
-
DeviceReportedStatus: __expectString,
|
|
1291
|
-
DeviceReportedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1292
|
-
RuntimeContextName: __expectString,
|
|
1293
|
-
});
|
|
1294
|
-
};
|
|
1295
|
-
const de_ReportedRuntimeContextStates = (output, context) => {
|
|
1296
|
-
const retVal = (output || [])
|
|
1297
|
-
.filter((e) => e != null)
|
|
1298
|
-
.map((entry) => {
|
|
1299
|
-
return de_ReportedRuntimeContextState(entry, context);
|
|
1300
|
-
});
|
|
1301
|
-
return retVal;
|
|
1302
|
-
};
|
|
1303
|
-
const deserializeMetadata = (output) => ({
|
|
1304
|
-
httpStatusCode: output.statusCode,
|
|
1305
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1306
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1307
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1308
|
-
});
|
|
1309
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1310
|
-
const _C = "Category";
|
|
1311
|
-
const _DASF = "DeviceAggregatedStatusFilter";
|
|
1312
|
-
const _DI = "DeviceId";
|
|
1313
|
-
const _FD = "ForceDelete";
|
|
1314
|
-
const _MR = "MaxResults";
|
|
1315
|
-
const _NF = "NameFilter";
|
|
1316
|
-
const _NT = "NextToken";
|
|
1317
|
-
const _OA = "OwnerAccount";
|
|
1318
|
-
const _PN = "PackageName";
|
|
1319
|
-
const _PV = "PatchVersion";
|
|
1320
|
-
const _PVa = "PackageVersion";
|
|
1321
|
-
const _RAS = "RetryAfterSeconds";
|
|
1322
|
-
const _SB = "SortBy";
|
|
1323
|
-
const _SF = "StatusFilter";
|
|
1324
|
-
const _SO = "SortOrder";
|
|
1325
|
-
const _TK = "TagKeys";
|
|
1326
|
-
const _ULPV = "UpdatedLatestPatchVersion";
|
|
1327
|
-
const _c = "category";
|
|
1328
|
-
const _dI = "deviceId";
|
|
1329
|
-
const _mR = "maxResults";
|
|
1330
|
-
const _nT = "nextToken";
|
|
1331
|
-
const _oA = "ownerAccount";
|
|
1332
|
-
const _pN = "packageName";
|
|
1333
|
-
const _pV = "packageVersion";
|
|
1334
|
-
const _pVa = "patchVersion";
|
|
1335
|
-
const _ra = "retry-after";
|
|
1336
|
-
const _sF = "statusFilter";
|
|
1337
|
-
const _tK = "tagKeys";
|