@aws-sdk/client-iot-managed-integrations 3.928.0 → 3.929.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.
Files changed (107) hide show
  1. package/dist-cjs/index.js +3345 -3837
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/IoTManagedIntegrationsClient.js +2 -0
  4. package/dist-es/commands/CreateAccountAssociationCommand.js +3 -10
  5. package/dist-es/commands/CreateCloudConnectorCommand.js +3 -9
  6. package/dist-es/commands/CreateConnectorDestinationCommand.js +3 -9
  7. package/dist-es/commands/CreateCredentialLockerCommand.js +3 -10
  8. package/dist-es/commands/CreateDestinationCommand.js +3 -10
  9. package/dist-es/commands/CreateEventLogConfigurationCommand.js +3 -9
  10. package/dist-es/commands/CreateManagedThingCommand.js +3 -10
  11. package/dist-es/commands/CreateNotificationConfigurationCommand.js +3 -10
  12. package/dist-es/commands/CreateOtaTaskCommand.js +3 -10
  13. package/dist-es/commands/CreateOtaTaskConfigurationCommand.js +3 -10
  14. package/dist-es/commands/CreateProvisioningProfileCommand.js +3 -10
  15. package/dist-es/commands/DeleteAccountAssociationCommand.js +3 -9
  16. package/dist-es/commands/DeleteCloudConnectorCommand.js +3 -9
  17. package/dist-es/commands/DeleteConnectorDestinationCommand.js +3 -9
  18. package/dist-es/commands/DeleteCredentialLockerCommand.js +3 -9
  19. package/dist-es/commands/DeleteDestinationCommand.js +3 -9
  20. package/dist-es/commands/DeleteEventLogConfigurationCommand.js +3 -9
  21. package/dist-es/commands/DeleteManagedThingCommand.js +3 -9
  22. package/dist-es/commands/DeleteNotificationConfigurationCommand.js +3 -9
  23. package/dist-es/commands/DeleteOtaTaskCommand.js +3 -9
  24. package/dist-es/commands/DeleteOtaTaskConfigurationCommand.js +3 -9
  25. package/dist-es/commands/DeleteProvisioningProfileCommand.js +3 -9
  26. package/dist-es/commands/DeregisterAccountAssociationCommand.js +3 -9
  27. package/dist-es/commands/GetAccountAssociationCommand.js +3 -10
  28. package/dist-es/commands/GetCloudConnectorCommand.js +3 -9
  29. package/dist-es/commands/GetConnectorDestinationCommand.js +3 -9
  30. package/dist-es/commands/GetCredentialLockerCommand.js +3 -10
  31. package/dist-es/commands/GetCustomEndpointCommand.js +3 -9
  32. package/dist-es/commands/GetDefaultEncryptionConfigurationCommand.js +3 -9
  33. package/dist-es/commands/GetDestinationCommand.js +3 -10
  34. package/dist-es/commands/GetDeviceDiscoveryCommand.js +3 -10
  35. package/dist-es/commands/GetEventLogConfigurationCommand.js +3 -9
  36. package/dist-es/commands/GetHubConfigurationCommand.js +3 -9
  37. package/dist-es/commands/GetManagedThingCapabilitiesCommand.js +3 -9
  38. package/dist-es/commands/GetManagedThingCertificateCommand.js +3 -9
  39. package/dist-es/commands/GetManagedThingCommand.js +3 -10
  40. package/dist-es/commands/GetManagedThingConnectivityDataCommand.js +3 -9
  41. package/dist-es/commands/GetManagedThingMetaDataCommand.js +3 -9
  42. package/dist-es/commands/GetManagedThingStateCommand.js +3 -10
  43. package/dist-es/commands/GetNotificationConfigurationCommand.js +3 -10
  44. package/dist-es/commands/GetOtaTaskCommand.js +3 -10
  45. package/dist-es/commands/GetOtaTaskConfigurationCommand.js +3 -10
  46. package/dist-es/commands/GetProvisioningProfileCommand.js +3 -10
  47. package/dist-es/commands/GetRuntimeLogConfigurationCommand.js +3 -9
  48. package/dist-es/commands/GetSchemaVersionCommand.js +3 -9
  49. package/dist-es/commands/ListAccountAssociationsCommand.js +3 -9
  50. package/dist-es/commands/ListCloudConnectorsCommand.js +3 -9
  51. package/dist-es/commands/ListConnectorDestinationsCommand.js +3 -9
  52. package/dist-es/commands/ListCredentialLockersCommand.js +3 -10
  53. package/dist-es/commands/ListDestinationsCommand.js +3 -9
  54. package/dist-es/commands/ListDeviceDiscoveriesCommand.js +3 -9
  55. package/dist-es/commands/ListDiscoveredDevicesCommand.js +3 -10
  56. package/dist-es/commands/ListEventLogConfigurationsCommand.js +3 -9
  57. package/dist-es/commands/ListManagedThingAccountAssociationsCommand.js +3 -9
  58. package/dist-es/commands/ListManagedThingSchemasCommand.js +3 -9
  59. package/dist-es/commands/ListManagedThingsCommand.js +3 -10
  60. package/dist-es/commands/ListNotificationConfigurationsCommand.js +3 -9
  61. package/dist-es/commands/ListOtaTaskConfigurationsCommand.js +3 -10
  62. package/dist-es/commands/ListOtaTaskExecutionsCommand.js +3 -9
  63. package/dist-es/commands/ListOtaTasksCommand.js +3 -9
  64. package/dist-es/commands/ListProvisioningProfilesCommand.js +3 -9
  65. package/dist-es/commands/ListSchemaVersionsCommand.js +3 -9
  66. package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
  67. package/dist-es/commands/PutDefaultEncryptionConfigurationCommand.js +3 -9
  68. package/dist-es/commands/PutHubConfigurationCommand.js +3 -9
  69. package/dist-es/commands/PutRuntimeLogConfigurationCommand.js +3 -9
  70. package/dist-es/commands/RegisterAccountAssociationCommand.js +3 -9
  71. package/dist-es/commands/RegisterCustomEndpointCommand.js +3 -9
  72. package/dist-es/commands/ResetRuntimeLogConfigurationCommand.js +3 -9
  73. package/dist-es/commands/SendConnectorEventCommand.js +3 -10
  74. package/dist-es/commands/SendManagedThingCommandCommand.js +3 -10
  75. package/dist-es/commands/StartAccountAssociationRefreshCommand.js +3 -10
  76. package/dist-es/commands/StartDeviceDiscoveryCommand.js +3 -10
  77. package/dist-es/commands/TagResourceCommand.js +3 -10
  78. package/dist-es/commands/UntagResourceCommand.js +3 -9
  79. package/dist-es/commands/UpdateAccountAssociationCommand.js +3 -9
  80. package/dist-es/commands/UpdateCloudConnectorCommand.js +3 -9
  81. package/dist-es/commands/UpdateConnectorDestinationCommand.js +3 -9
  82. package/dist-es/commands/UpdateDestinationCommand.js +3 -9
  83. package/dist-es/commands/UpdateEventLogConfigurationCommand.js +3 -9
  84. package/dist-es/commands/UpdateManagedThingCommand.js +3 -10
  85. package/dist-es/commands/UpdateNotificationConfigurationCommand.js +3 -9
  86. package/dist-es/commands/UpdateOtaTaskCommand.js +3 -9
  87. package/dist-es/models/models_0.js +0 -221
  88. package/dist-es/runtimeConfig.shared.js +2 -0
  89. package/dist-es/schemas/schemas_0.js +3184 -0
  90. package/dist-types/IoTManagedIntegrationsClient.d.ts +10 -1
  91. package/dist-types/models/models_0.d.ts +0 -176
  92. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  93. package/dist-types/runtimeConfig.d.ts +1 -0
  94. package/dist-types/runtimeConfig.native.d.ts +1 -0
  95. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  96. package/dist-types/schemas/schemas_0.d.ts +376 -0
  97. package/dist-types/ts3.4/IoTManagedIntegrationsClient.d.ts +4 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +0 -130
  99. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  100. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  101. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  102. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  103. package/dist-types/ts3.4/schemas/schemas_0.d.ts +383 -0
  104. package/package.json +2 -3
  105. package/dist-es/protocols/Aws_restJson1.js +0 -2985
  106. package/dist-types/protocols/Aws_restJson1.d.ts +0 -749
  107. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1001
@@ -1,2985 +0,0 @@
1
- import { 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, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { IoTManagedIntegrationsServiceException as __BaseException } from "../models/IoTManagedIntegrationsServiceException";
6
- import { AccessDeniedException, ConflictException, InternalFailureException, InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
7
- export const se_CreateAccountAssociationCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/account-associations");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
16
- ConnectorDestinationId: [],
17
- Description: [],
18
- Name: [],
19
- Tags: (_) => _json(_),
20
- }));
21
- b.m("POST").h(headers).b(body);
22
- return b.build();
23
- };
24
- export const se_CreateCloudConnectorCommand = async (input, context) => {
25
- const b = rb(input, context);
26
- const headers = {
27
- "content-type": "application/json",
28
- };
29
- b.bp("/cloud-connectors");
30
- let body;
31
- body = JSON.stringify(take(input, {
32
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
33
- Description: [],
34
- EndpointConfig: (_) => _json(_),
35
- EndpointType: [],
36
- Name: [],
37
- }));
38
- b.m("POST").h(headers).b(body);
39
- return b.build();
40
- };
41
- export const se_CreateConnectorDestinationCommand = async (input, context) => {
42
- const b = rb(input, context);
43
- const headers = {
44
- "content-type": "application/json",
45
- };
46
- b.bp("/connector-destinations");
47
- let body;
48
- body = JSON.stringify(take(input, {
49
- AuthConfig: (_) => _json(_),
50
- AuthType: [],
51
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
52
- CloudConnectorId: [],
53
- Description: [],
54
- Name: [],
55
- SecretsManager: (_) => _json(_),
56
- }));
57
- b.m("POST").h(headers).b(body);
58
- return b.build();
59
- };
60
- export const se_CreateCredentialLockerCommand = async (input, context) => {
61
- const b = rb(input, context);
62
- const headers = {
63
- "content-type": "application/json",
64
- };
65
- b.bp("/credential-lockers");
66
- let body;
67
- body = JSON.stringify(take(input, {
68
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
69
- Name: [],
70
- Tags: (_) => _json(_),
71
- }));
72
- b.m("POST").h(headers).b(body);
73
- return b.build();
74
- };
75
- export const se_CreateDestinationCommand = async (input, context) => {
76
- const b = rb(input, context);
77
- const headers = {
78
- "content-type": "application/json",
79
- };
80
- b.bp("/destinations");
81
- let body;
82
- body = JSON.stringify(take(input, {
83
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
84
- DeliveryDestinationArn: [],
85
- DeliveryDestinationType: [],
86
- Description: [],
87
- Name: [],
88
- RoleArn: [],
89
- Tags: (_) => _json(_),
90
- }));
91
- b.m("POST").h(headers).b(body);
92
- return b.build();
93
- };
94
- export const se_CreateEventLogConfigurationCommand = async (input, context) => {
95
- const b = rb(input, context);
96
- const headers = {
97
- "content-type": "application/json",
98
- };
99
- b.bp("/event-log-configurations");
100
- let body;
101
- body = JSON.stringify(take(input, {
102
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
103
- EventLogLevel: [],
104
- ResourceId: [],
105
- ResourceType: [],
106
- }));
107
- b.m("POST").h(headers).b(body);
108
- return b.build();
109
- };
110
- export const se_CreateManagedThingCommand = async (input, context) => {
111
- const b = rb(input, context);
112
- const headers = {
113
- "content-type": "application/json",
114
- };
115
- b.bp("/managed-things");
116
- let body;
117
- body = JSON.stringify(take(input, {
118
- AuthenticationMaterial: [],
119
- AuthenticationMaterialType: [],
120
- Brand: [],
121
- Capabilities: [],
122
- CapabilityReport: (_) => _json(_),
123
- CapabilitySchemas: (_) => se_CapabilitySchemas(_, context),
124
- Classification: [],
125
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
126
- CredentialLockerId: [],
127
- MetaData: (_) => _json(_),
128
- Model: [],
129
- Name: [],
130
- Owner: [],
131
- Role: [],
132
- SerialNumber: [],
133
- Tags: (_) => _json(_),
134
- }));
135
- b.m("POST").h(headers).b(body);
136
- return b.build();
137
- };
138
- export const se_CreateNotificationConfigurationCommand = async (input, context) => {
139
- const b = rb(input, context);
140
- const headers = {
141
- "content-type": "application/json",
142
- };
143
- b.bp("/notification-configurations");
144
- let body;
145
- body = JSON.stringify(take(input, {
146
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
147
- DestinationName: [],
148
- EventType: [],
149
- Tags: (_) => _json(_),
150
- }));
151
- b.m("POST").h(headers).b(body);
152
- return b.build();
153
- };
154
- export const se_CreateOtaTaskCommand = async (input, context) => {
155
- const b = rb(input, context);
156
- const headers = {
157
- "content-type": "application/json",
158
- };
159
- b.bp("/ota-tasks");
160
- let body;
161
- body = JSON.stringify(take(input, {
162
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
163
- Description: [],
164
- OtaMechanism: [],
165
- OtaSchedulingConfig: (_) => _json(_),
166
- OtaTargetQueryString: [],
167
- OtaTaskExecutionRetryConfig: (_) => _json(_),
168
- OtaType: [],
169
- Protocol: [],
170
- S3Url: [],
171
- Tags: (_) => _json(_),
172
- Target: (_) => _json(_),
173
- TaskConfigurationId: [],
174
- }));
175
- b.m("POST").h(headers).b(body);
176
- return b.build();
177
- };
178
- export const se_CreateOtaTaskConfigurationCommand = async (input, context) => {
179
- const b = rb(input, context);
180
- const headers = {
181
- "content-type": "application/json",
182
- };
183
- b.bp("/ota-task-configurations");
184
- let body;
185
- body = JSON.stringify(take(input, {
186
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
187
- Description: [],
188
- Name: [],
189
- PushConfig: (_) => se_PushConfig(_, context),
190
- }));
191
- b.m("POST").h(headers).b(body);
192
- return b.build();
193
- };
194
- export const se_CreateProvisioningProfileCommand = async (input, context) => {
195
- const b = rb(input, context);
196
- const headers = {
197
- "content-type": "application/json",
198
- };
199
- b.bp("/provisioning-profiles");
200
- let body;
201
- body = JSON.stringify(take(input, {
202
- CaCertificate: [],
203
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
204
- Name: [],
205
- ProvisioningType: [],
206
- Tags: (_) => _json(_),
207
- }));
208
- b.m("POST").h(headers).b(body);
209
- return b.build();
210
- };
211
- export const se_DeleteAccountAssociationCommand = async (input, context) => {
212
- const b = rb(input, context);
213
- const headers = {};
214
- b.bp("/account-associations/{AccountAssociationId}");
215
- b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
216
- let body;
217
- b.m("DELETE").h(headers).b(body);
218
- return b.build();
219
- };
220
- export const se_DeleteCloudConnectorCommand = async (input, context) => {
221
- const b = rb(input, context);
222
- const headers = {};
223
- b.bp("/cloud-connectors/{Identifier}");
224
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
225
- let body;
226
- b.m("DELETE").h(headers).b(body);
227
- return b.build();
228
- };
229
- export const se_DeleteConnectorDestinationCommand = async (input, context) => {
230
- const b = rb(input, context);
231
- const headers = {};
232
- b.bp("/connector-destinations/{Identifier}");
233
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
234
- let body;
235
- b.m("DELETE").h(headers).b(body);
236
- return b.build();
237
- };
238
- export const se_DeleteCredentialLockerCommand = async (input, context) => {
239
- const b = rb(input, context);
240
- const headers = {};
241
- b.bp("/credential-lockers/{Identifier}");
242
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
243
- let body;
244
- b.m("DELETE").h(headers).b(body);
245
- return b.build();
246
- };
247
- export const se_DeleteDestinationCommand = async (input, context) => {
248
- const b = rb(input, context);
249
- const headers = {};
250
- b.bp("/destinations/{Name}");
251
- b.p("Name", () => input.Name, "{Name}", false);
252
- let body;
253
- b.m("DELETE").h(headers).b(body);
254
- return b.build();
255
- };
256
- export const se_DeleteEventLogConfigurationCommand = async (input, context) => {
257
- const b = rb(input, context);
258
- const headers = {};
259
- b.bp("/event-log-configurations/{Id}");
260
- b.p("Id", () => input.Id, "{Id}", false);
261
- let body;
262
- b.m("DELETE").h(headers).b(body);
263
- return b.build();
264
- };
265
- export const se_DeleteManagedThingCommand = async (input, context) => {
266
- const b = rb(input, context);
267
- const headers = {};
268
- b.bp("/managed-things/{Identifier}");
269
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
270
- const query = map({
271
- [_F]: [() => input.Force !== void 0, () => input[_F].toString()],
272
- });
273
- let body;
274
- b.m("DELETE").h(headers).q(query).b(body);
275
- return b.build();
276
- };
277
- export const se_DeleteNotificationConfigurationCommand = async (input, context) => {
278
- const b = rb(input, context);
279
- const headers = {};
280
- b.bp("/notification-configurations/{EventType}");
281
- b.p("EventType", () => input.EventType, "{EventType}", false);
282
- let body;
283
- b.m("DELETE").h(headers).b(body);
284
- return b.build();
285
- };
286
- export const se_DeleteOtaTaskCommand = async (input, context) => {
287
- const b = rb(input, context);
288
- const headers = {};
289
- b.bp("/ota-tasks/{Identifier}");
290
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
291
- let body;
292
- b.m("DELETE").h(headers).b(body);
293
- return b.build();
294
- };
295
- export const se_DeleteOtaTaskConfigurationCommand = async (input, context) => {
296
- const b = rb(input, context);
297
- const headers = {};
298
- b.bp("/ota-task-configurations/{Identifier}");
299
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
300
- let body;
301
- b.m("DELETE").h(headers).b(body);
302
- return b.build();
303
- };
304
- export const se_DeleteProvisioningProfileCommand = async (input, context) => {
305
- const b = rb(input, context);
306
- const headers = {};
307
- b.bp("/provisioning-profiles/{Identifier}");
308
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
309
- let body;
310
- b.m("DELETE").h(headers).b(body);
311
- return b.build();
312
- };
313
- export const se_DeregisterAccountAssociationCommand = async (input, context) => {
314
- const b = rb(input, context);
315
- const headers = {
316
- "content-type": "application/json",
317
- };
318
- b.bp("/managed-thing-associations/deregister");
319
- let body;
320
- body = JSON.stringify(take(input, {
321
- AccountAssociationId: [],
322
- ManagedThingId: [],
323
- }));
324
- b.m("PUT").h(headers).b(body);
325
- return b.build();
326
- };
327
- export const se_GetAccountAssociationCommand = async (input, context) => {
328
- const b = rb(input, context);
329
- const headers = {};
330
- b.bp("/account-associations/{AccountAssociationId}");
331
- b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
332
- let body;
333
- b.m("GET").h(headers).b(body);
334
- return b.build();
335
- };
336
- export const se_GetCloudConnectorCommand = async (input, context) => {
337
- const b = rb(input, context);
338
- const headers = {};
339
- b.bp("/cloud-connectors/{Identifier}");
340
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
341
- let body;
342
- b.m("GET").h(headers).b(body);
343
- return b.build();
344
- };
345
- export const se_GetConnectorDestinationCommand = async (input, context) => {
346
- const b = rb(input, context);
347
- const headers = {};
348
- b.bp("/connector-destinations/{Identifier}");
349
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
350
- let body;
351
- b.m("GET").h(headers).b(body);
352
- return b.build();
353
- };
354
- export const se_GetCredentialLockerCommand = async (input, context) => {
355
- const b = rb(input, context);
356
- const headers = {};
357
- b.bp("/credential-lockers/{Identifier}");
358
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
359
- let body;
360
- b.m("GET").h(headers).b(body);
361
- return b.build();
362
- };
363
- export const se_GetCustomEndpointCommand = async (input, context) => {
364
- const b = rb(input, context);
365
- const headers = {};
366
- b.bp("/custom-endpoint");
367
- let body;
368
- b.m("GET").h(headers).b(body);
369
- return b.build();
370
- };
371
- export const se_GetDefaultEncryptionConfigurationCommand = async (input, context) => {
372
- const b = rb(input, context);
373
- const headers = {};
374
- b.bp("/configuration/account/encryption");
375
- let body;
376
- b.m("GET").h(headers).b(body);
377
- return b.build();
378
- };
379
- export const se_GetDestinationCommand = async (input, context) => {
380
- const b = rb(input, context);
381
- const headers = {};
382
- b.bp("/destinations/{Name}");
383
- b.p("Name", () => input.Name, "{Name}", false);
384
- let body;
385
- b.m("GET").h(headers).b(body);
386
- return b.build();
387
- };
388
- export const se_GetDeviceDiscoveryCommand = async (input, context) => {
389
- const b = rb(input, context);
390
- const headers = {};
391
- b.bp("/device-discoveries/{Identifier}");
392
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
393
- let body;
394
- b.m("GET").h(headers).b(body);
395
- return b.build();
396
- };
397
- export const se_GetEventLogConfigurationCommand = async (input, context) => {
398
- const b = rb(input, context);
399
- const headers = {};
400
- b.bp("/event-log-configurations/{Id}");
401
- b.p("Id", () => input.Id, "{Id}", false);
402
- let body;
403
- b.m("GET").h(headers).b(body);
404
- return b.build();
405
- };
406
- export const se_GetHubConfigurationCommand = async (input, context) => {
407
- const b = rb(input, context);
408
- const headers = {};
409
- b.bp("/hub-configuration");
410
- let body;
411
- b.m("GET").h(headers).b(body);
412
- return b.build();
413
- };
414
- export const se_GetManagedThingCommand = async (input, context) => {
415
- const b = rb(input, context);
416
- const headers = {};
417
- b.bp("/managed-things/{Identifier}");
418
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
419
- let body;
420
- b.m("GET").h(headers).b(body);
421
- return b.build();
422
- };
423
- export const se_GetManagedThingCapabilitiesCommand = async (input, context) => {
424
- const b = rb(input, context);
425
- const headers = {};
426
- b.bp("/managed-things-capabilities/{Identifier}");
427
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
428
- let body;
429
- b.m("GET").h(headers).b(body);
430
- return b.build();
431
- };
432
- export const se_GetManagedThingCertificateCommand = async (input, context) => {
433
- const b = rb(input, context);
434
- const headers = {};
435
- b.bp("/managed-things-certificate/{Identifier}");
436
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
437
- let body;
438
- b.m("GET").h(headers).b(body);
439
- return b.build();
440
- };
441
- export const se_GetManagedThingConnectivityDataCommand = async (input, context) => {
442
- const b = rb(input, context);
443
- const headers = {};
444
- b.bp("/managed-things-connectivity-data/{Identifier}");
445
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
446
- let body;
447
- b.m("POST").h(headers).b(body);
448
- return b.build();
449
- };
450
- export const se_GetManagedThingMetaDataCommand = async (input, context) => {
451
- const b = rb(input, context);
452
- const headers = {};
453
- b.bp("/managed-things-metadata/{Identifier}");
454
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
455
- let body;
456
- b.m("GET").h(headers).b(body);
457
- return b.build();
458
- };
459
- export const se_GetManagedThingStateCommand = async (input, context) => {
460
- const b = rb(input, context);
461
- const headers = {};
462
- b.bp("/managed-thing-states/{ManagedThingId}");
463
- b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
464
- let body;
465
- b.m("GET").h(headers).b(body);
466
- return b.build();
467
- };
468
- export const se_GetNotificationConfigurationCommand = async (input, context) => {
469
- const b = rb(input, context);
470
- const headers = {};
471
- b.bp("/notification-configurations/{EventType}");
472
- b.p("EventType", () => input.EventType, "{EventType}", false);
473
- let body;
474
- b.m("GET").h(headers).b(body);
475
- return b.build();
476
- };
477
- export const se_GetOtaTaskCommand = async (input, context) => {
478
- const b = rb(input, context);
479
- const headers = {};
480
- b.bp("/ota-tasks/{Identifier}");
481
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
482
- let body;
483
- b.m("GET").h(headers).b(body);
484
- return b.build();
485
- };
486
- export const se_GetOtaTaskConfigurationCommand = async (input, context) => {
487
- const b = rb(input, context);
488
- const headers = {};
489
- b.bp("/ota-task-configurations/{Identifier}");
490
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
491
- let body;
492
- b.m("GET").h(headers).b(body);
493
- return b.build();
494
- };
495
- export const se_GetProvisioningProfileCommand = async (input, context) => {
496
- const b = rb(input, context);
497
- const headers = {};
498
- b.bp("/provisioning-profiles/{Identifier}");
499
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
500
- let body;
501
- b.m("GET").h(headers).b(body);
502
- return b.build();
503
- };
504
- export const se_GetRuntimeLogConfigurationCommand = async (input, context) => {
505
- const b = rb(input, context);
506
- const headers = {};
507
- b.bp("/runtime-log-configurations/{ManagedThingId}");
508
- b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
509
- let body;
510
- b.m("GET").h(headers).b(body);
511
- return b.build();
512
- };
513
- export const se_GetSchemaVersionCommand = async (input, context) => {
514
- const b = rb(input, context);
515
- const headers = {};
516
- b.bp("/schema-versions/{Type}/{SchemaVersionedId}");
517
- b.p("Type", () => input.Type, "{Type}", false);
518
- b.p("SchemaVersionedId", () => input.SchemaVersionedId, "{SchemaVersionedId}", false);
519
- const query = map({
520
- [_Fo]: [, input[_Fo]],
521
- });
522
- let body;
523
- b.m("GET").h(headers).q(query).b(body);
524
- return b.build();
525
- };
526
- export const se_ListAccountAssociationsCommand = async (input, context) => {
527
- const b = rb(input, context);
528
- const headers = {};
529
- b.bp("/account-associations");
530
- const query = map({
531
- [_CDI]: [, input[_CDI]],
532
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
533
- [_NT]: [, input[_NT]],
534
- });
535
- let body;
536
- b.m("GET").h(headers).q(query).b(body);
537
- return b.build();
538
- };
539
- export const se_ListCloudConnectorsCommand = async (input, context) => {
540
- const b = rb(input, context);
541
- const headers = {};
542
- b.bp("/cloud-connectors");
543
- const query = map({
544
- [_T]: [, input[_T]],
545
- [_LA]: [, input[_LA]],
546
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
547
- [_NT]: [, input[_NT]],
548
- });
549
- let body;
550
- b.m("GET").h(headers).q(query).b(body);
551
- return b.build();
552
- };
553
- export const se_ListConnectorDestinationsCommand = async (input, context) => {
554
- const b = rb(input, context);
555
- const headers = {};
556
- b.bp("/connector-destinations");
557
- const query = map({
558
- [_CCI]: [, input[_CCI]],
559
- [_NT]: [, input[_NT]],
560
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
561
- });
562
- let body;
563
- b.m("GET").h(headers).q(query).b(body);
564
- return b.build();
565
- };
566
- export const se_ListCredentialLockersCommand = async (input, context) => {
567
- const b = rb(input, context);
568
- const headers = {};
569
- b.bp("/credential-lockers");
570
- const query = map({
571
- [_NT]: [, input[_NT]],
572
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
573
- });
574
- let body;
575
- b.m("GET").h(headers).q(query).b(body);
576
- return b.build();
577
- };
578
- export const se_ListDestinationsCommand = async (input, context) => {
579
- const b = rb(input, context);
580
- const headers = {};
581
- b.bp("/destinations");
582
- const query = map({
583
- [_NT]: [, input[_NT]],
584
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
585
- });
586
- let body;
587
- b.m("GET").h(headers).q(query).b(body);
588
- return b.build();
589
- };
590
- export const se_ListDeviceDiscoveriesCommand = async (input, context) => {
591
- const b = rb(input, context);
592
- const headers = {};
593
- b.bp("/device-discoveries");
594
- const query = map({
595
- [_NT]: [, input[_NT]],
596
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
597
- [_TF]: [, input[_TF]],
598
- [_SF]: [, input[_SF]],
599
- });
600
- let body;
601
- b.m("GET").h(headers).q(query).b(body);
602
- return b.build();
603
- };
604
- export const se_ListDiscoveredDevicesCommand = async (input, context) => {
605
- const b = rb(input, context);
606
- const headers = {};
607
- b.bp("/device-discoveries/{Identifier}/devices");
608
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
609
- const query = map({
610
- [_NT]: [, input[_NT]],
611
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
612
- });
613
- let body;
614
- b.m("GET").h(headers).q(query).b(body);
615
- return b.build();
616
- };
617
- export const se_ListEventLogConfigurationsCommand = async (input, context) => {
618
- const b = rb(input, context);
619
- const headers = {};
620
- b.bp("/event-log-configurations");
621
- const query = map({
622
- [_NT]: [, input[_NT]],
623
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
624
- });
625
- let body;
626
- b.m("GET").h(headers).q(query).b(body);
627
- return b.build();
628
- };
629
- export const se_ListManagedThingAccountAssociationsCommand = async (input, context) => {
630
- const b = rb(input, context);
631
- const headers = {};
632
- b.bp("/managed-thing-associations");
633
- const query = map({
634
- [_MTI]: [, input[_MTI]],
635
- [_AAI]: [, input[_AAI]],
636
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
637
- [_NT]: [, input[_NT]],
638
- });
639
- let body;
640
- b.m("GET").h(headers).q(query).b(body);
641
- return b.build();
642
- };
643
- export const se_ListManagedThingsCommand = async (input, context) => {
644
- const b = rb(input, context);
645
- const headers = {};
646
- b.bp("/managed-things");
647
- const query = map({
648
- [_OF]: [, input[_OF]],
649
- [_CLF]: [, input[_CLF]],
650
- [_RF]: [, input[_RF]],
651
- [_PCIF]: [, input[_PCIF]],
652
- [_CPIF]: [, input[_CPIF]],
653
- [_CDIF]: [, input[_CDIF]],
654
- [_CDIFo]: [, input[_CDIFo]],
655
- [_SNF]: [, input[_SNF]],
656
- [_PSF]: [, input[_PSF]],
657
- [_NT]: [, input[_NT]],
658
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
659
- });
660
- let body;
661
- b.m("GET").h(headers).q(query).b(body);
662
- return b.build();
663
- };
664
- export const se_ListManagedThingSchemasCommand = async (input, context) => {
665
- const b = rb(input, context);
666
- const headers = {};
667
- b.bp("/managed-thing-schemas/{Identifier}");
668
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
669
- const query = map({
670
- [_EIF]: [, input[_EIF]],
671
- [_CIF]: [, input[_CIF]],
672
- [_NT]: [, input[_NT]],
673
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
674
- });
675
- let body;
676
- b.m("GET").h(headers).q(query).b(body);
677
- return b.build();
678
- };
679
- export const se_ListNotificationConfigurationsCommand = async (input, context) => {
680
- const b = rb(input, context);
681
- const headers = {};
682
- b.bp("/notification-configurations");
683
- const query = map({
684
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
685
- [_NT]: [, input[_NT]],
686
- });
687
- let body;
688
- b.m("GET").h(headers).q(query).b(body);
689
- return b.build();
690
- };
691
- export const se_ListOtaTaskConfigurationsCommand = async (input, context) => {
692
- const b = rb(input, context);
693
- const headers = {};
694
- b.bp("/ota-task-configurations");
695
- const query = map({
696
- [_NT]: [, input[_NT]],
697
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
698
- });
699
- let body;
700
- b.m("GET").h(headers).q(query).b(body);
701
- return b.build();
702
- };
703
- export const se_ListOtaTaskExecutionsCommand = async (input, context) => {
704
- const b = rb(input, context);
705
- const headers = {};
706
- b.bp("/ota-tasks/{Identifier}/devices");
707
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
708
- const query = map({
709
- [_NT]: [, input[_NT]],
710
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
711
- });
712
- let body;
713
- b.m("GET").h(headers).q(query).b(body);
714
- return b.build();
715
- };
716
- export const se_ListOtaTasksCommand = async (input, context) => {
717
- const b = rb(input, context);
718
- const headers = {};
719
- b.bp("/ota-tasks");
720
- const query = map({
721
- [_NT]: [, input[_NT]],
722
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
723
- });
724
- let body;
725
- b.m("GET").h(headers).q(query).b(body);
726
- return b.build();
727
- };
728
- export const se_ListProvisioningProfilesCommand = async (input, context) => {
729
- const b = rb(input, context);
730
- const headers = {};
731
- b.bp("/provisioning-profiles");
732
- const query = map({
733
- [_NT]: [, input[_NT]],
734
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
735
- });
736
- let body;
737
- b.m("GET").h(headers).q(query).b(body);
738
- return b.build();
739
- };
740
- export const se_ListSchemaVersionsCommand = async (input, context) => {
741
- const b = rb(input, context);
742
- const headers = {};
743
- b.bp("/schema-versions/{Type}");
744
- b.p("Type", () => input.Type, "{Type}", false);
745
- const query = map({
746
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
747
- [_NT]: [, input[_NT]],
748
- [_SIF]: [, input[_SI]],
749
- [_NF]: [, input[_N]],
750
- [_VF]: [, input[_V]],
751
- [_SVF]: [, input[_SV]],
752
- });
753
- let body;
754
- b.m("GET").h(headers).q(query).b(body);
755
- return b.build();
756
- };
757
- export const se_ListTagsForResourceCommand = async (input, context) => {
758
- const b = rb(input, context);
759
- const headers = {};
760
- b.bp("/tags/{ResourceArn}");
761
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
762
- let body;
763
- b.m("GET").h(headers).b(body);
764
- return b.build();
765
- };
766
- export const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
767
- const b = rb(input, context);
768
- const headers = {
769
- "content-type": "application/json",
770
- };
771
- b.bp("/configuration/account/encryption");
772
- let body;
773
- body = JSON.stringify(take(input, {
774
- encryptionType: [],
775
- kmsKeyArn: [],
776
- }));
777
- b.m("POST").h(headers).b(body);
778
- return b.build();
779
- };
780
- export const se_PutHubConfigurationCommand = async (input, context) => {
781
- const b = rb(input, context);
782
- const headers = {
783
- "content-type": "application/json",
784
- };
785
- b.bp("/hub-configuration");
786
- let body;
787
- body = JSON.stringify(take(input, {
788
- HubTokenTimerExpirySettingInSeconds: [],
789
- }));
790
- b.m("PUT").h(headers).b(body);
791
- return b.build();
792
- };
793
- export const se_PutRuntimeLogConfigurationCommand = async (input, context) => {
794
- const b = rb(input, context);
795
- const headers = {
796
- "content-type": "application/json",
797
- };
798
- b.bp("/runtime-log-configurations/{ManagedThingId}");
799
- b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
800
- let body;
801
- body = JSON.stringify(take(input, {
802
- RuntimeLogConfigurations: (_) => _json(_),
803
- }));
804
- b.m("PUT").h(headers).b(body);
805
- return b.build();
806
- };
807
- export const se_RegisterAccountAssociationCommand = async (input, context) => {
808
- const b = rb(input, context);
809
- const headers = {
810
- "content-type": "application/json",
811
- };
812
- b.bp("/managed-thing-associations/register");
813
- let body;
814
- body = JSON.stringify(take(input, {
815
- AccountAssociationId: [],
816
- DeviceDiscoveryId: [],
817
- ManagedThingId: [],
818
- }));
819
- b.m("PUT").h(headers).b(body);
820
- return b.build();
821
- };
822
- export const se_RegisterCustomEndpointCommand = async (input, context) => {
823
- const b = rb(input, context);
824
- const headers = {};
825
- b.bp("/custom-endpoint");
826
- let body;
827
- b.m("POST").h(headers).b(body);
828
- return b.build();
829
- };
830
- export const se_ResetRuntimeLogConfigurationCommand = async (input, context) => {
831
- const b = rb(input, context);
832
- const headers = {};
833
- b.bp("/runtime-log-configurations/{ManagedThingId}");
834
- b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
835
- let body;
836
- b.m("DELETE").h(headers).b(body);
837
- return b.build();
838
- };
839
- export const se_SendConnectorEventCommand = async (input, context) => {
840
- const b = rb(input, context);
841
- const headers = {
842
- "content-type": "application/json",
843
- };
844
- b.bp("/connector-event/{ConnectorId}");
845
- b.p("ConnectorId", () => input.ConnectorId, "{ConnectorId}", false);
846
- let body;
847
- body = JSON.stringify(take(input, {
848
- ConnectorDeviceId: [],
849
- DeviceDiscoveryId: [],
850
- Devices: (_) => se_Devices(_, context),
851
- MatterEndpoint: (_) => se_MatterEndpoint(_, context),
852
- Message: [],
853
- Operation: [],
854
- OperationVersion: [],
855
- StatusCode: [],
856
- TraceId: [],
857
- UserId: [],
858
- }));
859
- b.m("POST").h(headers).b(body);
860
- return b.build();
861
- };
862
- export const se_SendManagedThingCommandCommand = async (input, context) => {
863
- const b = rb(input, context);
864
- const headers = {
865
- "content-type": "application/json",
866
- };
867
- b.bp("/managed-things-command/{ManagedThingId}");
868
- b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
869
- let body;
870
- body = JSON.stringify(take(input, {
871
- AccountAssociationId: [],
872
- ConnectorAssociationId: [],
873
- Endpoints: (_) => se_CommandEndpoints(_, context),
874
- }));
875
- b.m("POST").h(headers).b(body);
876
- return b.build();
877
- };
878
- export const se_StartAccountAssociationRefreshCommand = async (input, context) => {
879
- const b = rb(input, context);
880
- const headers = {};
881
- b.bp("/account-associations/{AccountAssociationId}/refresh");
882
- b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
883
- let body;
884
- b.m("POST").h(headers).b(body);
885
- return b.build();
886
- };
887
- export const se_StartDeviceDiscoveryCommand = async (input, context) => {
888
- const b = rb(input, context);
889
- const headers = {
890
- "content-type": "application/json",
891
- };
892
- b.bp("/device-discoveries");
893
- let body;
894
- body = JSON.stringify(take(input, {
895
- AccountAssociationId: [],
896
- AuthenticationMaterial: [],
897
- AuthenticationMaterialType: [],
898
- ClientToken: [],
899
- ConnectorAssociationIdentifier: [],
900
- ControllerIdentifier: [],
901
- CustomProtocolDetail: (_) => _json(_),
902
- DiscoveryType: [],
903
- Tags: (_) => _json(_),
904
- }));
905
- b.m("POST").h(headers).b(body);
906
- return b.build();
907
- };
908
- export const se_TagResourceCommand = async (input, context) => {
909
- const b = rb(input, context);
910
- const headers = {
911
- "content-type": "application/json",
912
- };
913
- b.bp("/tags/{ResourceArn}");
914
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
915
- let body;
916
- body = JSON.stringify(take(input, {
917
- Tags: (_) => _json(_),
918
- }));
919
- b.m("POST").h(headers).b(body);
920
- return b.build();
921
- };
922
- export const se_UntagResourceCommand = async (input, context) => {
923
- const b = rb(input, context);
924
- const headers = {};
925
- b.bp("/tags/{ResourceArn}");
926
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
927
- const query = map({
928
- [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
929
- });
930
- let body;
931
- b.m("DELETE").h(headers).q(query).b(body);
932
- return b.build();
933
- };
934
- export const se_UpdateAccountAssociationCommand = async (input, context) => {
935
- const b = rb(input, context);
936
- const headers = {
937
- "content-type": "application/json",
938
- };
939
- b.bp("/account-associations/{AccountAssociationId}");
940
- b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
941
- let body;
942
- body = JSON.stringify(take(input, {
943
- Description: [],
944
- Name: [],
945
- }));
946
- b.m("PUT").h(headers).b(body);
947
- return b.build();
948
- };
949
- export const se_UpdateCloudConnectorCommand = async (input, context) => {
950
- const b = rb(input, context);
951
- const headers = {
952
- "content-type": "application/json",
953
- };
954
- b.bp("/cloud-connectors/{Identifier}");
955
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
956
- let body;
957
- body = JSON.stringify(take(input, {
958
- Description: [],
959
- Name: [],
960
- }));
961
- b.m("PUT").h(headers).b(body);
962
- return b.build();
963
- };
964
- export const se_UpdateConnectorDestinationCommand = async (input, context) => {
965
- const b = rb(input, context);
966
- const headers = {
967
- "content-type": "application/json",
968
- };
969
- b.bp("/connector-destinations/{Identifier}");
970
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
971
- let body;
972
- body = JSON.stringify(take(input, {
973
- AuthConfig: (_) => _json(_),
974
- AuthType: [],
975
- Description: [],
976
- Name: [],
977
- SecretsManager: (_) => _json(_),
978
- }));
979
- b.m("PUT").h(headers).b(body);
980
- return b.build();
981
- };
982
- export const se_UpdateDestinationCommand = async (input, context) => {
983
- const b = rb(input, context);
984
- const headers = {
985
- "content-type": "application/json",
986
- };
987
- b.bp("/destinations/{Name}");
988
- b.p("Name", () => input.Name, "{Name}", false);
989
- let body;
990
- body = JSON.stringify(take(input, {
991
- DeliveryDestinationArn: [],
992
- DeliveryDestinationType: [],
993
- Description: [],
994
- RoleArn: [],
995
- }));
996
- b.m("PUT").h(headers).b(body);
997
- return b.build();
998
- };
999
- export const se_UpdateEventLogConfigurationCommand = async (input, context) => {
1000
- const b = rb(input, context);
1001
- const headers = {
1002
- "content-type": "application/json",
1003
- };
1004
- b.bp("/event-log-configurations/{Id}");
1005
- b.p("Id", () => input.Id, "{Id}", false);
1006
- let body;
1007
- body = JSON.stringify(take(input, {
1008
- EventLogLevel: [],
1009
- }));
1010
- b.m("PATCH").h(headers).b(body);
1011
- return b.build();
1012
- };
1013
- export const se_UpdateManagedThingCommand = async (input, context) => {
1014
- const b = rb(input, context);
1015
- const headers = {
1016
- "content-type": "application/json",
1017
- };
1018
- b.bp("/managed-things/{Identifier}");
1019
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
1020
- let body;
1021
- body = JSON.stringify(take(input, {
1022
- Brand: [],
1023
- Capabilities: [],
1024
- CapabilityReport: (_) => _json(_),
1025
- CapabilitySchemas: (_) => se_CapabilitySchemas(_, context),
1026
- Classification: [],
1027
- CredentialLockerId: [],
1028
- HubNetworkMode: [],
1029
- MetaData: (_) => _json(_),
1030
- Model: [],
1031
- Name: [],
1032
- Owner: [],
1033
- SerialNumber: [],
1034
- }));
1035
- b.m("PUT").h(headers).b(body);
1036
- return b.build();
1037
- };
1038
- export const se_UpdateNotificationConfigurationCommand = async (input, context) => {
1039
- const b = rb(input, context);
1040
- const headers = {
1041
- "content-type": "application/json",
1042
- };
1043
- b.bp("/notification-configurations/{EventType}");
1044
- b.p("EventType", () => input.EventType, "{EventType}", false);
1045
- let body;
1046
- body = JSON.stringify(take(input, {
1047
- DestinationName: [],
1048
- }));
1049
- b.m("PUT").h(headers).b(body);
1050
- return b.build();
1051
- };
1052
- export const se_UpdateOtaTaskCommand = async (input, context) => {
1053
- const b = rb(input, context);
1054
- const headers = {
1055
- "content-type": "application/json",
1056
- };
1057
- b.bp("/ota-tasks/{Identifier}");
1058
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
1059
- let body;
1060
- body = JSON.stringify(take(input, {
1061
- Description: [],
1062
- TaskConfigurationId: [],
1063
- }));
1064
- b.m("PUT").h(headers).b(body);
1065
- return b.build();
1066
- };
1067
- export const de_CreateAccountAssociationCommand = async (output, context) => {
1068
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1069
- return de_CommandError(output, context);
1070
- }
1071
- const contents = map({
1072
- $metadata: deserializeMetadata(output),
1073
- });
1074
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1075
- const doc = take(data, {
1076
- AccountAssociationId: __expectString,
1077
- Arn: __expectString,
1078
- AssociationState: __expectString,
1079
- OAuthAuthorizationUrl: __expectString,
1080
- });
1081
- Object.assign(contents, doc);
1082
- return contents;
1083
- };
1084
- export const de_CreateCloudConnectorCommand = async (output, context) => {
1085
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1086
- return de_CommandError(output, context);
1087
- }
1088
- const contents = map({
1089
- $metadata: deserializeMetadata(output),
1090
- });
1091
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1092
- const doc = take(data, {
1093
- Id: __expectString,
1094
- });
1095
- Object.assign(contents, doc);
1096
- return contents;
1097
- };
1098
- export const de_CreateConnectorDestinationCommand = async (output, context) => {
1099
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1100
- return de_CommandError(output, context);
1101
- }
1102
- const contents = map({
1103
- $metadata: deserializeMetadata(output),
1104
- });
1105
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1106
- const doc = take(data, {
1107
- Id: __expectString,
1108
- });
1109
- Object.assign(contents, doc);
1110
- return contents;
1111
- };
1112
- export const de_CreateCredentialLockerCommand = async (output, context) => {
1113
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1114
- return de_CommandError(output, context);
1115
- }
1116
- const contents = map({
1117
- $metadata: deserializeMetadata(output),
1118
- });
1119
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1120
- const doc = take(data, {
1121
- Arn: __expectString,
1122
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1123
- Id: __expectString,
1124
- });
1125
- Object.assign(contents, doc);
1126
- return contents;
1127
- };
1128
- export const de_CreateDestinationCommand = async (output, context) => {
1129
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1130
- return de_CommandError(output, context);
1131
- }
1132
- const contents = map({
1133
- $metadata: deserializeMetadata(output),
1134
- });
1135
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1136
- const doc = take(data, {
1137
- Name: __expectString,
1138
- });
1139
- Object.assign(contents, doc);
1140
- return contents;
1141
- };
1142
- export const de_CreateEventLogConfigurationCommand = async (output, context) => {
1143
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1144
- return de_CommandError(output, context);
1145
- }
1146
- const contents = map({
1147
- $metadata: deserializeMetadata(output),
1148
- });
1149
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1150
- const doc = take(data, {
1151
- Id: __expectString,
1152
- });
1153
- Object.assign(contents, doc);
1154
- return contents;
1155
- };
1156
- export const de_CreateManagedThingCommand = async (output, context) => {
1157
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1158
- return de_CommandError(output, context);
1159
- }
1160
- const contents = map({
1161
- $metadata: deserializeMetadata(output),
1162
- });
1163
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1164
- const doc = take(data, {
1165
- Arn: __expectString,
1166
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1167
- Id: __expectString,
1168
- });
1169
- Object.assign(contents, doc);
1170
- return contents;
1171
- };
1172
- export const de_CreateNotificationConfigurationCommand = async (output, context) => {
1173
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1174
- return de_CommandError(output, context);
1175
- }
1176
- const contents = map({
1177
- $metadata: deserializeMetadata(output),
1178
- });
1179
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1180
- const doc = take(data, {
1181
- EventType: __expectString,
1182
- });
1183
- Object.assign(contents, doc);
1184
- return contents;
1185
- };
1186
- export const de_CreateOtaTaskCommand = async (output, context) => {
1187
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1188
- return de_CommandError(output, context);
1189
- }
1190
- const contents = map({
1191
- $metadata: deserializeMetadata(output),
1192
- });
1193
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1194
- const doc = take(data, {
1195
- Description: __expectString,
1196
- TaskArn: __expectString,
1197
- TaskId: __expectString,
1198
- });
1199
- Object.assign(contents, doc);
1200
- return contents;
1201
- };
1202
- export const de_CreateOtaTaskConfigurationCommand = async (output, context) => {
1203
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1204
- return de_CommandError(output, context);
1205
- }
1206
- const contents = map({
1207
- $metadata: deserializeMetadata(output),
1208
- });
1209
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1210
- const doc = take(data, {
1211
- TaskConfigurationId: __expectString,
1212
- });
1213
- Object.assign(contents, doc);
1214
- return contents;
1215
- };
1216
- export const de_CreateProvisioningProfileCommand = async (output, context) => {
1217
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1218
- return de_CommandError(output, context);
1219
- }
1220
- const contents = map({
1221
- $metadata: deserializeMetadata(output),
1222
- });
1223
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1224
- const doc = take(data, {
1225
- Arn: __expectString,
1226
- ClaimCertificate: __expectString,
1227
- ClaimCertificatePrivateKey: __expectString,
1228
- Id: __expectString,
1229
- Name: __expectString,
1230
- ProvisioningType: __expectString,
1231
- });
1232
- Object.assign(contents, doc);
1233
- return contents;
1234
- };
1235
- export const de_DeleteAccountAssociationCommand = async (output, context) => {
1236
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1237
- return de_CommandError(output, context);
1238
- }
1239
- const contents = map({
1240
- $metadata: deserializeMetadata(output),
1241
- });
1242
- await collectBody(output.body, context);
1243
- return contents;
1244
- };
1245
- export const de_DeleteCloudConnectorCommand = async (output, context) => {
1246
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
- return de_CommandError(output, context);
1248
- }
1249
- const contents = map({
1250
- $metadata: deserializeMetadata(output),
1251
- });
1252
- await collectBody(output.body, context);
1253
- return contents;
1254
- };
1255
- export const de_DeleteConnectorDestinationCommand = async (output, context) => {
1256
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1257
- return de_CommandError(output, context);
1258
- }
1259
- const contents = map({
1260
- $metadata: deserializeMetadata(output),
1261
- });
1262
- await collectBody(output.body, context);
1263
- return contents;
1264
- };
1265
- export const de_DeleteCredentialLockerCommand = async (output, context) => {
1266
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1267
- return de_CommandError(output, context);
1268
- }
1269
- const contents = map({
1270
- $metadata: deserializeMetadata(output),
1271
- });
1272
- await collectBody(output.body, context);
1273
- return contents;
1274
- };
1275
- export const de_DeleteDestinationCommand = async (output, context) => {
1276
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1277
- return de_CommandError(output, context);
1278
- }
1279
- const contents = map({
1280
- $metadata: deserializeMetadata(output),
1281
- });
1282
- await collectBody(output.body, context);
1283
- return contents;
1284
- };
1285
- export const de_DeleteEventLogConfigurationCommand = async (output, context) => {
1286
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1287
- return de_CommandError(output, context);
1288
- }
1289
- const contents = map({
1290
- $metadata: deserializeMetadata(output),
1291
- });
1292
- await collectBody(output.body, context);
1293
- return contents;
1294
- };
1295
- export const de_DeleteManagedThingCommand = async (output, context) => {
1296
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1297
- return de_CommandError(output, context);
1298
- }
1299
- const contents = map({
1300
- $metadata: deserializeMetadata(output),
1301
- });
1302
- await collectBody(output.body, context);
1303
- return contents;
1304
- };
1305
- export const de_DeleteNotificationConfigurationCommand = async (output, context) => {
1306
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1307
- return de_CommandError(output, context);
1308
- }
1309
- const contents = map({
1310
- $metadata: deserializeMetadata(output),
1311
- });
1312
- await collectBody(output.body, context);
1313
- return contents;
1314
- };
1315
- export const de_DeleteOtaTaskCommand = async (output, context) => {
1316
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1317
- return de_CommandError(output, context);
1318
- }
1319
- const contents = map({
1320
- $metadata: deserializeMetadata(output),
1321
- });
1322
- await collectBody(output.body, context);
1323
- return contents;
1324
- };
1325
- export const de_DeleteOtaTaskConfigurationCommand = async (output, context) => {
1326
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1327
- return de_CommandError(output, context);
1328
- }
1329
- const contents = map({
1330
- $metadata: deserializeMetadata(output),
1331
- });
1332
- await collectBody(output.body, context);
1333
- return contents;
1334
- };
1335
- export const de_DeleteProvisioningProfileCommand = async (output, context) => {
1336
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1337
- return de_CommandError(output, context);
1338
- }
1339
- const contents = map({
1340
- $metadata: deserializeMetadata(output),
1341
- });
1342
- await collectBody(output.body, context);
1343
- return contents;
1344
- };
1345
- export const de_DeregisterAccountAssociationCommand = async (output, context) => {
1346
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1347
- return de_CommandError(output, context);
1348
- }
1349
- const contents = map({
1350
- $metadata: deserializeMetadata(output),
1351
- });
1352
- await collectBody(output.body, context);
1353
- return contents;
1354
- };
1355
- export const de_GetAccountAssociationCommand = async (output, context) => {
1356
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1357
- return de_CommandError(output, context);
1358
- }
1359
- const contents = map({
1360
- $metadata: deserializeMetadata(output),
1361
- });
1362
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1363
- const doc = take(data, {
1364
- AccountAssociationId: __expectString,
1365
- Arn: __expectString,
1366
- AssociationState: __expectString,
1367
- ConnectorDestinationId: __expectString,
1368
- Description: __expectString,
1369
- ErrorMessage: __expectString,
1370
- Name: __expectString,
1371
- OAuthAuthorizationUrl: __expectString,
1372
- Tags: _json,
1373
- });
1374
- Object.assign(contents, doc);
1375
- return contents;
1376
- };
1377
- export const de_GetCloudConnectorCommand = async (output, context) => {
1378
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1379
- return de_CommandError(output, context);
1380
- }
1381
- const contents = map({
1382
- $metadata: deserializeMetadata(output),
1383
- });
1384
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1385
- const doc = take(data, {
1386
- Description: __expectString,
1387
- EndpointConfig: _json,
1388
- EndpointType: __expectString,
1389
- Id: __expectString,
1390
- Name: __expectString,
1391
- Type: __expectString,
1392
- });
1393
- Object.assign(contents, doc);
1394
- return contents;
1395
- };
1396
- export const de_GetConnectorDestinationCommand = async (output, context) => {
1397
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1398
- return de_CommandError(output, context);
1399
- }
1400
- const contents = map({
1401
- $metadata: deserializeMetadata(output),
1402
- });
1403
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1404
- const doc = take(data, {
1405
- AuthConfig: _json,
1406
- AuthType: __expectString,
1407
- CloudConnectorId: __expectString,
1408
- Description: __expectString,
1409
- Id: __expectString,
1410
- Name: __expectString,
1411
- OAuthCompleteRedirectUrl: __expectString,
1412
- SecretsManager: _json,
1413
- });
1414
- Object.assign(contents, doc);
1415
- return contents;
1416
- };
1417
- export const de_GetCredentialLockerCommand = async (output, context) => {
1418
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1419
- return de_CommandError(output, context);
1420
- }
1421
- const contents = map({
1422
- $metadata: deserializeMetadata(output),
1423
- });
1424
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1425
- const doc = take(data, {
1426
- Arn: __expectString,
1427
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1428
- Id: __expectString,
1429
- Name: __expectString,
1430
- Tags: _json,
1431
- });
1432
- Object.assign(contents, doc);
1433
- return contents;
1434
- };
1435
- export const de_GetCustomEndpointCommand = async (output, context) => {
1436
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1437
- return de_CommandError(output, context);
1438
- }
1439
- const contents = map({
1440
- $metadata: deserializeMetadata(output),
1441
- });
1442
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1443
- const doc = take(data, {
1444
- EndpointAddress: __expectString,
1445
- });
1446
- Object.assign(contents, doc);
1447
- return contents;
1448
- };
1449
- export const de_GetDefaultEncryptionConfigurationCommand = async (output, context) => {
1450
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1451
- return de_CommandError(output, context);
1452
- }
1453
- const contents = map({
1454
- $metadata: deserializeMetadata(output),
1455
- });
1456
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1457
- const doc = take(data, {
1458
- configurationStatus: _json,
1459
- encryptionType: __expectString,
1460
- kmsKeyArn: __expectString,
1461
- });
1462
- Object.assign(contents, doc);
1463
- return contents;
1464
- };
1465
- export const de_GetDestinationCommand = async (output, context) => {
1466
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1467
- return de_CommandError(output, context);
1468
- }
1469
- const contents = map({
1470
- $metadata: deserializeMetadata(output),
1471
- });
1472
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1473
- const doc = take(data, {
1474
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1475
- DeliveryDestinationArn: __expectString,
1476
- DeliveryDestinationType: __expectString,
1477
- Description: __expectString,
1478
- Name: __expectString,
1479
- RoleArn: __expectString,
1480
- Tags: _json,
1481
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1482
- });
1483
- Object.assign(contents, doc);
1484
- return contents;
1485
- };
1486
- export const de_GetDeviceDiscoveryCommand = async (output, context) => {
1487
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1488
- return de_CommandError(output, context);
1489
- }
1490
- const contents = map({
1491
- $metadata: deserializeMetadata(output),
1492
- });
1493
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1494
- const doc = take(data, {
1495
- AccountAssociationId: __expectString,
1496
- Arn: __expectString,
1497
- ConnectorAssociationId: __expectString,
1498
- ControllerId: __expectString,
1499
- DiscoveryType: __expectString,
1500
- FinishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1501
- Id: __expectString,
1502
- StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1503
- Status: __expectString,
1504
- Tags: _json,
1505
- });
1506
- Object.assign(contents, doc);
1507
- return contents;
1508
- };
1509
- export const de_GetEventLogConfigurationCommand = async (output, context) => {
1510
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1511
- return de_CommandError(output, context);
1512
- }
1513
- const contents = map({
1514
- $metadata: deserializeMetadata(output),
1515
- });
1516
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1517
- const doc = take(data, {
1518
- EventLogLevel: __expectString,
1519
- Id: __expectString,
1520
- ResourceId: __expectString,
1521
- ResourceType: __expectString,
1522
- });
1523
- Object.assign(contents, doc);
1524
- return contents;
1525
- };
1526
- export const de_GetHubConfigurationCommand = async (output, context) => {
1527
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1528
- return de_CommandError(output, context);
1529
- }
1530
- const contents = map({
1531
- $metadata: deserializeMetadata(output),
1532
- });
1533
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1534
- const doc = take(data, {
1535
- HubTokenTimerExpirySettingInSeconds: __expectLong,
1536
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1537
- });
1538
- Object.assign(contents, doc);
1539
- return contents;
1540
- };
1541
- export const de_GetManagedThingCommand = async (output, context) => {
1542
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1543
- return de_CommandError(output, context);
1544
- }
1545
- const contents = map({
1546
- $metadata: deserializeMetadata(output),
1547
- });
1548
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1549
- const doc = take(data, {
1550
- ActivatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1551
- AdvertisedProductId: __expectString,
1552
- Arn: __expectString,
1553
- Brand: __expectString,
1554
- Classification: __expectString,
1555
- ConnectorDestinationId: __expectString,
1556
- ConnectorDeviceId: __expectString,
1557
- ConnectorPolicyId: __expectString,
1558
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1559
- CredentialLockerId: __expectString,
1560
- DeviceSpecificKey: __expectString,
1561
- HubNetworkMode: __expectString,
1562
- Id: __expectString,
1563
- InternationalArticleNumber: __expectString,
1564
- MacAddress: __expectString,
1565
- MetaData: _json,
1566
- Model: __expectString,
1567
- Name: __expectString,
1568
- Owner: __expectString,
1569
- ParentControllerId: __expectString,
1570
- ProvisioningStatus: __expectString,
1571
- Role: __expectString,
1572
- SerialNumber: __expectString,
1573
- Tags: _json,
1574
- UniversalProductCode: __expectString,
1575
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1576
- });
1577
- Object.assign(contents, doc);
1578
- return contents;
1579
- };
1580
- export const de_GetManagedThingCapabilitiesCommand = async (output, context) => {
1581
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
- return de_CommandError(output, context);
1583
- }
1584
- const contents = map({
1585
- $metadata: deserializeMetadata(output),
1586
- });
1587
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1588
- const doc = take(data, {
1589
- Capabilities: __expectString,
1590
- CapabilityReport: _json,
1591
- ManagedThingId: __expectString,
1592
- });
1593
- Object.assign(contents, doc);
1594
- return contents;
1595
- };
1596
- export const de_GetManagedThingCertificateCommand = async (output, context) => {
1597
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1598
- return de_CommandError(output, context);
1599
- }
1600
- const contents = map({
1601
- $metadata: deserializeMetadata(output),
1602
- });
1603
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1604
- const doc = take(data, {
1605
- CertificatePem: __expectString,
1606
- ManagedThingId: __expectString,
1607
- });
1608
- Object.assign(contents, doc);
1609
- return contents;
1610
- };
1611
- export const de_GetManagedThingConnectivityDataCommand = async (output, context) => {
1612
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1613
- return de_CommandError(output, context);
1614
- }
1615
- const contents = map({
1616
- $metadata: deserializeMetadata(output),
1617
- });
1618
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1619
- const doc = take(data, {
1620
- Connected: __expectBoolean,
1621
- DisconnectReason: __expectString,
1622
- ManagedThingId: __expectString,
1623
- Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1624
- });
1625
- Object.assign(contents, doc);
1626
- return contents;
1627
- };
1628
- export const de_GetManagedThingMetaDataCommand = async (output, context) => {
1629
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1630
- return de_CommandError(output, context);
1631
- }
1632
- const contents = map({
1633
- $metadata: deserializeMetadata(output),
1634
- });
1635
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1636
- const doc = take(data, {
1637
- ManagedThingId: __expectString,
1638
- MetaData: _json,
1639
- });
1640
- Object.assign(contents, doc);
1641
- return contents;
1642
- };
1643
- export const de_GetManagedThingStateCommand = async (output, context) => {
1644
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1645
- return de_CommandError(output, context);
1646
- }
1647
- const contents = map({
1648
- $metadata: deserializeMetadata(output),
1649
- });
1650
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1651
- const doc = take(data, {
1652
- Endpoints: (_) => de_StateEndpoints(_, context),
1653
- });
1654
- Object.assign(contents, doc);
1655
- return contents;
1656
- };
1657
- export const de_GetNotificationConfigurationCommand = async (output, context) => {
1658
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1659
- return de_CommandError(output, context);
1660
- }
1661
- const contents = map({
1662
- $metadata: deserializeMetadata(output),
1663
- });
1664
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1665
- const doc = take(data, {
1666
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1667
- DestinationName: __expectString,
1668
- EventType: __expectString,
1669
- Tags: _json,
1670
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1671
- });
1672
- Object.assign(contents, doc);
1673
- return contents;
1674
- };
1675
- export const de_GetOtaTaskCommand = async (output, context) => {
1676
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1677
- return de_CommandError(output, context);
1678
- }
1679
- const contents = map({
1680
- $metadata: deserializeMetadata(output),
1681
- });
1682
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1683
- const doc = take(data, {
1684
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1685
- Description: __expectString,
1686
- LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1687
- OtaMechanism: __expectString,
1688
- OtaSchedulingConfig: _json,
1689
- OtaTargetQueryString: __expectString,
1690
- OtaTaskExecutionRetryConfig: _json,
1691
- OtaType: __expectString,
1692
- Protocol: __expectString,
1693
- S3Url: __expectString,
1694
- Status: __expectString,
1695
- Tags: _json,
1696
- Target: _json,
1697
- TaskArn: __expectString,
1698
- TaskConfigurationId: __expectString,
1699
- TaskId: __expectString,
1700
- TaskProcessingDetails: _json,
1701
- });
1702
- Object.assign(contents, doc);
1703
- return contents;
1704
- };
1705
- export const de_GetOtaTaskConfigurationCommand = async (output, context) => {
1706
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1707
- return de_CommandError(output, context);
1708
- }
1709
- const contents = map({
1710
- $metadata: deserializeMetadata(output),
1711
- });
1712
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1713
- const doc = take(data, {
1714
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1715
- Description: __expectString,
1716
- Name: __expectString,
1717
- PushConfig: (_) => de_PushConfig(_, context),
1718
- TaskConfigurationId: __expectString,
1719
- });
1720
- Object.assign(contents, doc);
1721
- return contents;
1722
- };
1723
- export const de_GetProvisioningProfileCommand = async (output, context) => {
1724
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1725
- return de_CommandError(output, context);
1726
- }
1727
- const contents = map({
1728
- $metadata: deserializeMetadata(output),
1729
- });
1730
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1731
- const doc = take(data, {
1732
- Arn: __expectString,
1733
- ClaimCertificate: __expectString,
1734
- Id: __expectString,
1735
- Name: __expectString,
1736
- ProvisioningType: __expectString,
1737
- Tags: _json,
1738
- });
1739
- Object.assign(contents, doc);
1740
- return contents;
1741
- };
1742
- export const de_GetRuntimeLogConfigurationCommand = async (output, context) => {
1743
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1744
- return de_CommandError(output, context);
1745
- }
1746
- const contents = map({
1747
- $metadata: deserializeMetadata(output),
1748
- });
1749
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1750
- const doc = take(data, {
1751
- ManagedThingId: __expectString,
1752
- RuntimeLogConfigurations: _json,
1753
- });
1754
- Object.assign(contents, doc);
1755
- return contents;
1756
- };
1757
- export const de_GetSchemaVersionCommand = async (output, context) => {
1758
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1759
- return de_CommandError(output, context);
1760
- }
1761
- const contents = map({
1762
- $metadata: deserializeMetadata(output),
1763
- });
1764
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1765
- const doc = take(data, {
1766
- Description: __expectString,
1767
- Namespace: __expectString,
1768
- Schema: (_) => de_SchemaVersionSchema(_, context),
1769
- SchemaId: __expectString,
1770
- SemanticVersion: __expectString,
1771
- Type: __expectString,
1772
- Visibility: __expectString,
1773
- });
1774
- Object.assign(contents, doc);
1775
- return contents;
1776
- };
1777
- export const de_ListAccountAssociationsCommand = async (output, context) => {
1778
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1779
- return de_CommandError(output, context);
1780
- }
1781
- const contents = map({
1782
- $metadata: deserializeMetadata(output),
1783
- });
1784
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1785
- const doc = take(data, {
1786
- Items: _json,
1787
- NextToken: __expectString,
1788
- });
1789
- Object.assign(contents, doc);
1790
- return contents;
1791
- };
1792
- export const de_ListCloudConnectorsCommand = async (output, context) => {
1793
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1794
- return de_CommandError(output, context);
1795
- }
1796
- const contents = map({
1797
- $metadata: deserializeMetadata(output),
1798
- });
1799
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1800
- const doc = take(data, {
1801
- Items: _json,
1802
- NextToken: __expectString,
1803
- });
1804
- Object.assign(contents, doc);
1805
- return contents;
1806
- };
1807
- export const de_ListConnectorDestinationsCommand = async (output, context) => {
1808
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1809
- return de_CommandError(output, context);
1810
- }
1811
- const contents = map({
1812
- $metadata: deserializeMetadata(output),
1813
- });
1814
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1815
- const doc = take(data, {
1816
- ConnectorDestinationList: _json,
1817
- NextToken: __expectString,
1818
- });
1819
- Object.assign(contents, doc);
1820
- return contents;
1821
- };
1822
- export const de_ListCredentialLockersCommand = async (output, context) => {
1823
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1824
- return de_CommandError(output, context);
1825
- }
1826
- const contents = map({
1827
- $metadata: deserializeMetadata(output),
1828
- });
1829
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1830
- const doc = take(data, {
1831
- Items: (_) => de_CredentialLockerListDefinition(_, context),
1832
- NextToken: __expectString,
1833
- });
1834
- Object.assign(contents, doc);
1835
- return contents;
1836
- };
1837
- export const de_ListDestinationsCommand = async (output, context) => {
1838
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1839
- return de_CommandError(output, context);
1840
- }
1841
- const contents = map({
1842
- $metadata: deserializeMetadata(output),
1843
- });
1844
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1845
- const doc = take(data, {
1846
- DestinationList: _json,
1847
- NextToken: __expectString,
1848
- });
1849
- Object.assign(contents, doc);
1850
- return contents;
1851
- };
1852
- export const de_ListDeviceDiscoveriesCommand = async (output, context) => {
1853
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1854
- return de_CommandError(output, context);
1855
- }
1856
- const contents = map({
1857
- $metadata: deserializeMetadata(output),
1858
- });
1859
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1860
- const doc = take(data, {
1861
- Items: _json,
1862
- NextToken: __expectString,
1863
- });
1864
- Object.assign(contents, doc);
1865
- return contents;
1866
- };
1867
- export const de_ListDiscoveredDevicesCommand = async (output, context) => {
1868
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1869
- return de_CommandError(output, context);
1870
- }
1871
- const contents = map({
1872
- $metadata: deserializeMetadata(output),
1873
- });
1874
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1875
- const doc = take(data, {
1876
- Items: (_) => de_DiscoveredDeviceListDefinition(_, context),
1877
- NextToken: __expectString,
1878
- });
1879
- Object.assign(contents, doc);
1880
- return contents;
1881
- };
1882
- export const de_ListEventLogConfigurationsCommand = async (output, context) => {
1883
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1884
- return de_CommandError(output, context);
1885
- }
1886
- const contents = map({
1887
- $metadata: deserializeMetadata(output),
1888
- });
1889
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1890
- const doc = take(data, {
1891
- EventLogConfigurationList: _json,
1892
- NextToken: __expectString,
1893
- });
1894
- Object.assign(contents, doc);
1895
- return contents;
1896
- };
1897
- export const de_ListManagedThingAccountAssociationsCommand = async (output, context) => {
1898
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1899
- return de_CommandError(output, context);
1900
- }
1901
- const contents = map({
1902
- $metadata: deserializeMetadata(output),
1903
- });
1904
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1905
- const doc = take(data, {
1906
- Items: _json,
1907
- NextToken: __expectString,
1908
- });
1909
- Object.assign(contents, doc);
1910
- return contents;
1911
- };
1912
- export const de_ListManagedThingsCommand = async (output, context) => {
1913
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1914
- return de_CommandError(output, context);
1915
- }
1916
- const contents = map({
1917
- $metadata: deserializeMetadata(output),
1918
- });
1919
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1920
- const doc = take(data, {
1921
- Items: (_) => de_ManagedThingListDefinition(_, context),
1922
- NextToken: __expectString,
1923
- });
1924
- Object.assign(contents, doc);
1925
- return contents;
1926
- };
1927
- export const de_ListManagedThingSchemasCommand = async (output, context) => {
1928
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1929
- return de_CommandError(output, context);
1930
- }
1931
- const contents = map({
1932
- $metadata: deserializeMetadata(output),
1933
- });
1934
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1935
- const doc = take(data, {
1936
- Items: (_) => de_ManagedThingSchemaListDefinition(_, context),
1937
- NextToken: __expectString,
1938
- });
1939
- Object.assign(contents, doc);
1940
- return contents;
1941
- };
1942
- export const de_ListNotificationConfigurationsCommand = async (output, context) => {
1943
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1944
- return de_CommandError(output, context);
1945
- }
1946
- const contents = map({
1947
- $metadata: deserializeMetadata(output),
1948
- });
1949
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1950
- const doc = take(data, {
1951
- NextToken: __expectString,
1952
- NotificationConfigurationList: _json,
1953
- });
1954
- Object.assign(contents, doc);
1955
- return contents;
1956
- };
1957
- export const de_ListOtaTaskConfigurationsCommand = async (output, context) => {
1958
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1959
- return de_CommandError(output, context);
1960
- }
1961
- const contents = map({
1962
- $metadata: deserializeMetadata(output),
1963
- });
1964
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1965
- const doc = take(data, {
1966
- Items: (_) => de_OtaTaskConfigurationListDefinition(_, context),
1967
- NextToken: __expectString,
1968
- });
1969
- Object.assign(contents, doc);
1970
- return contents;
1971
- };
1972
- export const de_ListOtaTaskExecutionsCommand = async (output, context) => {
1973
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1974
- return de_CommandError(output, context);
1975
- }
1976
- const contents = map({
1977
- $metadata: deserializeMetadata(output),
1978
- });
1979
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1980
- const doc = take(data, {
1981
- ExecutionSummaries: (_) => de_OtaTaskExecutionSummariesListDefinition(_, context),
1982
- NextToken: __expectString,
1983
- });
1984
- Object.assign(contents, doc);
1985
- return contents;
1986
- };
1987
- export const de_ListOtaTasksCommand = async (output, context) => {
1988
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1989
- return de_CommandError(output, context);
1990
- }
1991
- const contents = map({
1992
- $metadata: deserializeMetadata(output),
1993
- });
1994
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1995
- const doc = take(data, {
1996
- NextToken: __expectString,
1997
- Tasks: (_) => de_OtaTaskListDefinition(_, context),
1998
- });
1999
- Object.assign(contents, doc);
2000
- return contents;
2001
- };
2002
- export const de_ListProvisioningProfilesCommand = async (output, context) => {
2003
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2004
- return de_CommandError(output, context);
2005
- }
2006
- const contents = map({
2007
- $metadata: deserializeMetadata(output),
2008
- });
2009
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2010
- const doc = take(data, {
2011
- Items: _json,
2012
- NextToken: __expectString,
2013
- });
2014
- Object.assign(contents, doc);
2015
- return contents;
2016
- };
2017
- export const de_ListSchemaVersionsCommand = async (output, context) => {
2018
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2019
- return de_CommandError(output, context);
2020
- }
2021
- const contents = map({
2022
- $metadata: deserializeMetadata(output),
2023
- });
2024
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2025
- const doc = take(data, {
2026
- Items: _json,
2027
- NextToken: __expectString,
2028
- });
2029
- Object.assign(contents, doc);
2030
- return contents;
2031
- };
2032
- export const de_ListTagsForResourceCommand = async (output, context) => {
2033
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2034
- return de_CommandError(output, context);
2035
- }
2036
- const contents = map({
2037
- $metadata: deserializeMetadata(output),
2038
- });
2039
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2040
- const doc = take(data, {
2041
- tags: _json,
2042
- });
2043
- Object.assign(contents, doc);
2044
- return contents;
2045
- };
2046
- export const de_PutDefaultEncryptionConfigurationCommand = async (output, context) => {
2047
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2048
- return de_CommandError(output, context);
2049
- }
2050
- const contents = map({
2051
- $metadata: deserializeMetadata(output),
2052
- });
2053
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2054
- const doc = take(data, {
2055
- configurationStatus: _json,
2056
- encryptionType: __expectString,
2057
- kmsKeyArn: __expectString,
2058
- });
2059
- Object.assign(contents, doc);
2060
- return contents;
2061
- };
2062
- export const de_PutHubConfigurationCommand = async (output, context) => {
2063
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2064
- return de_CommandError(output, context);
2065
- }
2066
- const contents = map({
2067
- $metadata: deserializeMetadata(output),
2068
- });
2069
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2070
- const doc = take(data, {
2071
- HubTokenTimerExpirySettingInSeconds: __expectLong,
2072
- });
2073
- Object.assign(contents, doc);
2074
- return contents;
2075
- };
2076
- export const de_PutRuntimeLogConfigurationCommand = async (output, context) => {
2077
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2078
- return de_CommandError(output, context);
2079
- }
2080
- const contents = map({
2081
- $metadata: deserializeMetadata(output),
2082
- });
2083
- await collectBody(output.body, context);
2084
- return contents;
2085
- };
2086
- export const de_RegisterAccountAssociationCommand = async (output, context) => {
2087
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2088
- return de_CommandError(output, context);
2089
- }
2090
- const contents = map({
2091
- $metadata: deserializeMetadata(output),
2092
- });
2093
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2094
- const doc = take(data, {
2095
- AccountAssociationId: __expectString,
2096
- DeviceDiscoveryId: __expectString,
2097
- ManagedThingId: __expectString,
2098
- });
2099
- Object.assign(contents, doc);
2100
- return contents;
2101
- };
2102
- export const de_RegisterCustomEndpointCommand = async (output, context) => {
2103
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2104
- return de_CommandError(output, context);
2105
- }
2106
- const contents = map({
2107
- $metadata: deserializeMetadata(output),
2108
- });
2109
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2110
- const doc = take(data, {
2111
- EndpointAddress: __expectString,
2112
- });
2113
- Object.assign(contents, doc);
2114
- return contents;
2115
- };
2116
- export const de_ResetRuntimeLogConfigurationCommand = async (output, context) => {
2117
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2118
- return de_CommandError(output, context);
2119
- }
2120
- const contents = map({
2121
- $metadata: deserializeMetadata(output),
2122
- });
2123
- await collectBody(output.body, context);
2124
- return contents;
2125
- };
2126
- export const de_SendConnectorEventCommand = async (output, context) => {
2127
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2128
- return de_CommandError(output, context);
2129
- }
2130
- const contents = map({
2131
- $metadata: deserializeMetadata(output),
2132
- });
2133
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2134
- const doc = take(data, {
2135
- ConnectorId: __expectString,
2136
- });
2137
- Object.assign(contents, doc);
2138
- return contents;
2139
- };
2140
- export const de_SendManagedThingCommandCommand = async (output, context) => {
2141
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2142
- return de_CommandError(output, context);
2143
- }
2144
- const contents = map({
2145
- $metadata: deserializeMetadata(output),
2146
- });
2147
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2148
- const doc = take(data, {
2149
- TraceId: __expectString,
2150
- });
2151
- Object.assign(contents, doc);
2152
- return contents;
2153
- };
2154
- export const de_StartAccountAssociationRefreshCommand = async (output, context) => {
2155
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2156
- return de_CommandError(output, context);
2157
- }
2158
- const contents = map({
2159
- $metadata: deserializeMetadata(output),
2160
- });
2161
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2162
- const doc = take(data, {
2163
- OAuthAuthorizationUrl: __expectString,
2164
- });
2165
- Object.assign(contents, doc);
2166
- return contents;
2167
- };
2168
- export const de_StartDeviceDiscoveryCommand = async (output, context) => {
2169
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2170
- return de_CommandError(output, context);
2171
- }
2172
- const contents = map({
2173
- $metadata: deserializeMetadata(output),
2174
- });
2175
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2176
- const doc = take(data, {
2177
- Id: __expectString,
2178
- StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2179
- });
2180
- Object.assign(contents, doc);
2181
- return contents;
2182
- };
2183
- export const de_TagResourceCommand = async (output, context) => {
2184
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2185
- return de_CommandError(output, context);
2186
- }
2187
- const contents = map({
2188
- $metadata: deserializeMetadata(output),
2189
- });
2190
- await collectBody(output.body, context);
2191
- return contents;
2192
- };
2193
- export const de_UntagResourceCommand = async (output, context) => {
2194
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2195
- return de_CommandError(output, context);
2196
- }
2197
- const contents = map({
2198
- $metadata: deserializeMetadata(output),
2199
- });
2200
- await collectBody(output.body, context);
2201
- return contents;
2202
- };
2203
- export const de_UpdateAccountAssociationCommand = async (output, context) => {
2204
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2205
- return de_CommandError(output, context);
2206
- }
2207
- const contents = map({
2208
- $metadata: deserializeMetadata(output),
2209
- });
2210
- await collectBody(output.body, context);
2211
- return contents;
2212
- };
2213
- export const de_UpdateCloudConnectorCommand = async (output, context) => {
2214
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2215
- return de_CommandError(output, context);
2216
- }
2217
- const contents = map({
2218
- $metadata: deserializeMetadata(output),
2219
- });
2220
- await collectBody(output.body, context);
2221
- return contents;
2222
- };
2223
- export const de_UpdateConnectorDestinationCommand = async (output, context) => {
2224
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2225
- return de_CommandError(output, context);
2226
- }
2227
- const contents = map({
2228
- $metadata: deserializeMetadata(output),
2229
- });
2230
- await collectBody(output.body, context);
2231
- return contents;
2232
- };
2233
- export const de_UpdateDestinationCommand = async (output, context) => {
2234
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2235
- return de_CommandError(output, context);
2236
- }
2237
- const contents = map({
2238
- $metadata: deserializeMetadata(output),
2239
- });
2240
- await collectBody(output.body, context);
2241
- return contents;
2242
- };
2243
- export const de_UpdateEventLogConfigurationCommand = async (output, context) => {
2244
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2245
- return de_CommandError(output, context);
2246
- }
2247
- const contents = map({
2248
- $metadata: deserializeMetadata(output),
2249
- });
2250
- await collectBody(output.body, context);
2251
- return contents;
2252
- };
2253
- export const de_UpdateManagedThingCommand = async (output, context) => {
2254
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2255
- return de_CommandError(output, context);
2256
- }
2257
- const contents = map({
2258
- $metadata: deserializeMetadata(output),
2259
- });
2260
- await collectBody(output.body, context);
2261
- return contents;
2262
- };
2263
- export const de_UpdateNotificationConfigurationCommand = async (output, context) => {
2264
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2265
- return de_CommandError(output, context);
2266
- }
2267
- const contents = map({
2268
- $metadata: deserializeMetadata(output),
2269
- });
2270
- await collectBody(output.body, context);
2271
- return contents;
2272
- };
2273
- export const de_UpdateOtaTaskCommand = async (output, context) => {
2274
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2275
- return de_CommandError(output, context);
2276
- }
2277
- const contents = map({
2278
- $metadata: deserializeMetadata(output),
2279
- });
2280
- await collectBody(output.body, context);
2281
- return contents;
2282
- };
2283
- const de_CommandError = async (output, context) => {
2284
- const parsedOutput = {
2285
- ...output,
2286
- body: await parseErrorBody(output.body, context),
2287
- };
2288
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2289
- switch (errorCode) {
2290
- case "AccessDeniedException":
2291
- case "com.amazonaws.iotmanagedintegrations#AccessDeniedException":
2292
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2293
- case "ConflictException":
2294
- case "com.amazonaws.iotmanagedintegrations#ConflictException":
2295
- throw await de_ConflictExceptionRes(parsedOutput, context);
2296
- case "InternalServerException":
2297
- case "com.amazonaws.iotmanagedintegrations#InternalServerException":
2298
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2299
- case "ResourceNotFoundException":
2300
- case "com.amazonaws.iotmanagedintegrations#ResourceNotFoundException":
2301
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2302
- case "ServiceUnavailableException":
2303
- case "com.amazonaws.iotmanagedintegrations#ServiceUnavailableException":
2304
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2305
- case "ThrottlingException":
2306
- case "com.amazonaws.iotmanagedintegrations#ThrottlingException":
2307
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2308
- case "UnauthorizedException":
2309
- case "com.amazonaws.iotmanagedintegrations#UnauthorizedException":
2310
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2311
- case "ValidationException":
2312
- case "com.amazonaws.iotmanagedintegrations#ValidationException":
2313
- throw await de_ValidationExceptionRes(parsedOutput, context);
2314
- case "ServiceQuotaExceededException":
2315
- case "com.amazonaws.iotmanagedintegrations#ServiceQuotaExceededException":
2316
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2317
- case "LimitExceededException":
2318
- case "com.amazonaws.iotmanagedintegrations#LimitExceededException":
2319
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2320
- case "InternalFailureException":
2321
- case "com.amazonaws.iotmanagedintegrations#InternalFailureException":
2322
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
2323
- case "InvalidRequestException":
2324
- case "com.amazonaws.iotmanagedintegrations#InvalidRequestException":
2325
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2326
- default:
2327
- const parsedBody = parsedOutput.body;
2328
- return throwDefaultError({
2329
- output,
2330
- parsedBody,
2331
- errorCode,
2332
- });
2333
- }
2334
- };
2335
- const throwDefaultError = withBaseException(__BaseException);
2336
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2337
- const contents = map({});
2338
- const data = parsedOutput.body;
2339
- const doc = take(data, {
2340
- Message: __expectString,
2341
- });
2342
- Object.assign(contents, doc);
2343
- const exception = new AccessDeniedException({
2344
- $metadata: deserializeMetadata(parsedOutput),
2345
- ...contents,
2346
- });
2347
- return __decorateServiceException(exception, parsedOutput.body);
2348
- };
2349
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
2350
- const contents = map({});
2351
- const data = parsedOutput.body;
2352
- const doc = take(data, {
2353
- Message: __expectString,
2354
- });
2355
- Object.assign(contents, doc);
2356
- const exception = new ConflictException({
2357
- $metadata: deserializeMetadata(parsedOutput),
2358
- ...contents,
2359
- });
2360
- return __decorateServiceException(exception, parsedOutput.body);
2361
- };
2362
- const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
2363
- const contents = map({});
2364
- const data = parsedOutput.body;
2365
- const doc = take(data, {
2366
- Message: __expectString,
2367
- });
2368
- Object.assign(contents, doc);
2369
- const exception = new InternalFailureException({
2370
- $metadata: deserializeMetadata(parsedOutput),
2371
- ...contents,
2372
- });
2373
- return __decorateServiceException(exception, parsedOutput.body);
2374
- };
2375
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2376
- const contents = map({});
2377
- const data = parsedOutput.body;
2378
- const doc = take(data, {
2379
- Message: __expectString,
2380
- });
2381
- Object.assign(contents, doc);
2382
- const exception = new InternalServerException({
2383
- $metadata: deserializeMetadata(parsedOutput),
2384
- ...contents,
2385
- });
2386
- return __decorateServiceException(exception, parsedOutput.body);
2387
- };
2388
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
2389
- const contents = map({});
2390
- const data = parsedOutput.body;
2391
- const doc = take(data, {
2392
- Message: __expectString,
2393
- });
2394
- Object.assign(contents, doc);
2395
- const exception = new InvalidRequestException({
2396
- $metadata: deserializeMetadata(parsedOutput),
2397
- ...contents,
2398
- });
2399
- return __decorateServiceException(exception, parsedOutput.body);
2400
- };
2401
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2402
- const contents = map({});
2403
- const data = parsedOutput.body;
2404
- const doc = take(data, {
2405
- Message: __expectString,
2406
- });
2407
- Object.assign(contents, doc);
2408
- const exception = new LimitExceededException({
2409
- $metadata: deserializeMetadata(parsedOutput),
2410
- ...contents,
2411
- });
2412
- return __decorateServiceException(exception, parsedOutput.body);
2413
- };
2414
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2415
- const contents = map({});
2416
- const data = parsedOutput.body;
2417
- const doc = take(data, {
2418
- Message: __expectString,
2419
- ResourceId: __expectString,
2420
- ResourceType: __expectString,
2421
- });
2422
- Object.assign(contents, doc);
2423
- const exception = new ResourceNotFoundException({
2424
- $metadata: deserializeMetadata(parsedOutput),
2425
- ...contents,
2426
- });
2427
- return __decorateServiceException(exception, parsedOutput.body);
2428
- };
2429
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2430
- const contents = map({});
2431
- const data = parsedOutput.body;
2432
- const doc = take(data, {
2433
- Message: __expectString,
2434
- });
2435
- Object.assign(contents, doc);
2436
- const exception = new ServiceQuotaExceededException({
2437
- $metadata: deserializeMetadata(parsedOutput),
2438
- ...contents,
2439
- });
2440
- return __decorateServiceException(exception, parsedOutput.body);
2441
- };
2442
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
2443
- const contents = map({});
2444
- const data = parsedOutput.body;
2445
- const doc = take(data, {
2446
- Message: __expectString,
2447
- });
2448
- Object.assign(contents, doc);
2449
- const exception = new ServiceUnavailableException({
2450
- $metadata: deserializeMetadata(parsedOutput),
2451
- ...contents,
2452
- });
2453
- return __decorateServiceException(exception, parsedOutput.body);
2454
- };
2455
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2456
- const contents = map({});
2457
- const data = parsedOutput.body;
2458
- const doc = take(data, {
2459
- Message: __expectString,
2460
- });
2461
- Object.assign(contents, doc);
2462
- const exception = new ThrottlingException({
2463
- $metadata: deserializeMetadata(parsedOutput),
2464
- ...contents,
2465
- });
2466
- return __decorateServiceException(exception, parsedOutput.body);
2467
- };
2468
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
2469
- const contents = map({});
2470
- const data = parsedOutput.body;
2471
- const doc = take(data, {
2472
- Message: __expectString,
2473
- });
2474
- Object.assign(contents, doc);
2475
- const exception = new UnauthorizedException({
2476
- $metadata: deserializeMetadata(parsedOutput),
2477
- ...contents,
2478
- });
2479
- return __decorateServiceException(exception, parsedOutput.body);
2480
- };
2481
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2482
- const contents = map({});
2483
- const data = parsedOutput.body;
2484
- const doc = take(data, {
2485
- Message: __expectString,
2486
- });
2487
- Object.assign(contents, doc);
2488
- const exception = new ValidationException({
2489
- $metadata: deserializeMetadata(parsedOutput),
2490
- ...contents,
2491
- });
2492
- return __decorateServiceException(exception, parsedOutput.body);
2493
- };
2494
- const se_AbortConfigCriteria = (input, context) => {
2495
- return take(input, {
2496
- Action: [],
2497
- FailureType: [],
2498
- MinNumberOfExecutedThings: [],
2499
- ThresholdPercentage: __serializeFloat,
2500
- });
2501
- };
2502
- const se_AbortConfigCriteriaList = (input, context) => {
2503
- return input
2504
- .filter((e) => e != null)
2505
- .map((entry) => {
2506
- return se_AbortConfigCriteria(entry, context);
2507
- });
2508
- };
2509
- const se_CapabilityAction = (input, context) => {
2510
- return take(input, {
2511
- actionTraceId: [],
2512
- name: [],
2513
- parameters: (_) => se_CapabilityProperties(_, context),
2514
- ref: [],
2515
- });
2516
- };
2517
- const se_CapabilityActions = (input, context) => {
2518
- return input
2519
- .filter((e) => e != null)
2520
- .map((entry) => {
2521
- return se_CapabilityAction(entry, context);
2522
- });
2523
- };
2524
- const se_CapabilityProperties = (input, context) => {
2525
- return input;
2526
- };
2527
- const se_CapabilitySchemaItem = (input, context) => {
2528
- return take(input, {
2529
- CapabilityId: [],
2530
- ExtrinsicId: [],
2531
- ExtrinsicVersion: [],
2532
- Format: [],
2533
- Schema: (_) => se_ValidationSchema(_, context),
2534
- });
2535
- };
2536
- const se_CapabilitySchemas = (input, context) => {
2537
- return input
2538
- .filter((e) => e != null)
2539
- .map((entry) => {
2540
- return se_CapabilitySchemaItem(entry, context);
2541
- });
2542
- };
2543
- const se_CommandCapabilities = (input, context) => {
2544
- return input
2545
- .filter((e) => e != null)
2546
- .map((entry) => {
2547
- return se_CommandCapability(entry, context);
2548
- });
2549
- };
2550
- const se_CommandCapability = (input, context) => {
2551
- return take(input, {
2552
- actions: (_) => se_CapabilityActions(_, context),
2553
- id: [],
2554
- name: [],
2555
- version: [],
2556
- });
2557
- };
2558
- const se_CommandEndpoint = (input, context) => {
2559
- return take(input, {
2560
- capabilities: (_) => se_CommandCapabilities(_, context),
2561
- endpointId: [],
2562
- });
2563
- };
2564
- const se_CommandEndpoints = (input, context) => {
2565
- return input
2566
- .filter((e) => e != null)
2567
- .map((entry) => {
2568
- return se_CommandEndpoint(entry, context);
2569
- });
2570
- };
2571
- const se_Device = (input, context) => {
2572
- return take(input, {
2573
- CapabilityReport: (_) => se_MatterCapabilityReport(_, context),
2574
- CapabilitySchemas: (_) => se_CapabilitySchemas(_, context),
2575
- ConnectorDeviceId: [],
2576
- ConnectorDeviceName: [],
2577
- DeviceMetadata: (_) => se_DeviceMetadata(_, context),
2578
- });
2579
- };
2580
- const se_DeviceMetadata = (input, context) => {
2581
- return input;
2582
- };
2583
- const se_Devices = (input, context) => {
2584
- return input
2585
- .filter((e) => e != null)
2586
- .map((entry) => {
2587
- return se_Device(entry, context);
2588
- });
2589
- };
2590
- const se_ExponentialRolloutRate = (input, context) => {
2591
- return take(input, {
2592
- BaseRatePerMinute: [],
2593
- IncrementFactor: __serializeFloat,
2594
- RateIncreaseCriteria: _json,
2595
- });
2596
- };
2597
- const se_MatterAttributes = (input, context) => {
2598
- return input;
2599
- };
2600
- const se_MatterCapabilityReport = (input, context) => {
2601
- return take(input, {
2602
- endpoints: (_) => se_MatterCapabilityReportEndpoints(_, context),
2603
- nodeId: [],
2604
- version: [],
2605
- });
2606
- };
2607
- const se_MatterCapabilityReportAttribute = (input, context) => {
2608
- return take(input, {
2609
- id: [],
2610
- name: [],
2611
- value: (_) => se_MatterCapabilityReportAttributeValue(_, context),
2612
- });
2613
- };
2614
- const se_MatterCapabilityReportAttributes = (input, context) => {
2615
- return input
2616
- .filter((e) => e != null)
2617
- .map((entry) => {
2618
- return se_MatterCapabilityReportAttribute(entry, context);
2619
- });
2620
- };
2621
- const se_MatterCapabilityReportAttributeValue = (input, context) => {
2622
- return input;
2623
- };
2624
- const se_MatterCapabilityReportCluster = (input, context) => {
2625
- return take(input, {
2626
- attributes: (_) => se_MatterCapabilityReportAttributes(_, context),
2627
- commands: _json,
2628
- events: _json,
2629
- fabricIndex: [],
2630
- featureMap: [],
2631
- generatedCommands: _json,
2632
- id: [],
2633
- name: [],
2634
- publicId: [],
2635
- revision: [],
2636
- specVersion: [],
2637
- });
2638
- };
2639
- const se_MatterCapabilityReportClusters = (input, context) => {
2640
- return input
2641
- .filter((e) => e != null)
2642
- .map((entry) => {
2643
- return se_MatterCapabilityReportCluster(entry, context);
2644
- });
2645
- };
2646
- const se_MatterCapabilityReportEndpoint = (input, context) => {
2647
- return take(input, {
2648
- clientClusters: _json,
2649
- clusters: (_) => se_MatterCapabilityReportClusters(_, context),
2650
- deviceTypes: _json,
2651
- id: [],
2652
- parts: _json,
2653
- semanticTags: _json,
2654
- });
2655
- };
2656
- const se_MatterCapabilityReportEndpoints = (input, context) => {
2657
- return input
2658
- .filter((e) => e != null)
2659
- .map((entry) => {
2660
- return se_MatterCapabilityReportEndpoint(entry, context);
2661
- });
2662
- };
2663
- const se_MatterCluster = (input, context) => {
2664
- return take(input, {
2665
- attributes: (_) => se_MatterAttributes(_, context),
2666
- commands: (_) => se_MatterCommands(_, context),
2667
- events: (_) => se_MatterEvents(_, context),
2668
- id: [],
2669
- });
2670
- };
2671
- const se_MatterClusters = (input, context) => {
2672
- return input
2673
- .filter((e) => e != null)
2674
- .map((entry) => {
2675
- return se_MatterCluster(entry, context);
2676
- });
2677
- };
2678
- const se_MatterCommands = (input, context) => {
2679
- return Object.entries(input).reduce((acc, [key, value]) => {
2680
- if (value === null) {
2681
- return acc;
2682
- }
2683
- acc[key] = se_MatterFields(value, context);
2684
- return acc;
2685
- }, {});
2686
- };
2687
- const se_MatterEndpoint = (input, context) => {
2688
- return take(input, {
2689
- clusters: (_) => se_MatterClusters(_, context),
2690
- id: [],
2691
- });
2692
- };
2693
- const se_MatterEvents = (input, context) => {
2694
- return Object.entries(input).reduce((acc, [key, value]) => {
2695
- if (value === null) {
2696
- return acc;
2697
- }
2698
- acc[key] = se_MatterFields(value, context);
2699
- return acc;
2700
- }, {});
2701
- };
2702
- const se_MatterFields = (input, context) => {
2703
- return input;
2704
- };
2705
- const se_OtaTaskAbortConfig = (input, context) => {
2706
- return take(input, {
2707
- AbortConfigCriteriaList: (_) => se_AbortConfigCriteriaList(_, context),
2708
- });
2709
- };
2710
- const se_OtaTaskExecutionRolloutConfig = (input, context) => {
2711
- return take(input, {
2712
- ExponentialRolloutRate: (_) => se_ExponentialRolloutRate(_, context),
2713
- MaximumPerMinute: [],
2714
- });
2715
- };
2716
- const se_PushConfig = (input, context) => {
2717
- return take(input, {
2718
- AbortConfig: (_) => se_OtaTaskAbortConfig(_, context),
2719
- RolloutConfig: (_) => se_OtaTaskExecutionRolloutConfig(_, context),
2720
- TimeoutConfig: _json,
2721
- });
2722
- };
2723
- const se_ValidationSchema = (input, context) => {
2724
- return input;
2725
- };
2726
- const de_AbortConfigCriteria = (output, context) => {
2727
- return take(output, {
2728
- Action: __expectString,
2729
- FailureType: __expectString,
2730
- MinNumberOfExecutedThings: __expectInt32,
2731
- ThresholdPercentage: __limitedParseDouble,
2732
- });
2733
- };
2734
- const de_AbortConfigCriteriaList = (output, context) => {
2735
- const retVal = (output || [])
2736
- .filter((e) => e != null)
2737
- .map((entry) => {
2738
- return de_AbortConfigCriteria(entry, context);
2739
- });
2740
- return retVal;
2741
- };
2742
- const de_CapabilityProperties = (output, context) => {
2743
- return output;
2744
- };
2745
- const de_CredentialLockerListDefinition = (output, context) => {
2746
- const retVal = (output || [])
2747
- .filter((e) => e != null)
2748
- .map((entry) => {
2749
- return de_CredentialLockerSummary(entry, context);
2750
- });
2751
- return retVal;
2752
- };
2753
- const de_CredentialLockerSummary = (output, context) => {
2754
- return take(output, {
2755
- Arn: __expectString,
2756
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2757
- Id: __expectString,
2758
- Name: __expectString,
2759
- });
2760
- };
2761
- const de_DiscoveredDeviceListDefinition = (output, context) => {
2762
- const retVal = (output || [])
2763
- .filter((e) => e != null)
2764
- .map((entry) => {
2765
- return de_DiscoveredDeviceSummary(entry, context);
2766
- });
2767
- return retVal;
2768
- };
2769
- const de_DiscoveredDeviceSummary = (output, context) => {
2770
- return take(output, {
2771
- AuthenticationMaterial: __expectString,
2772
- Brand: __expectString,
2773
- ConnectorDeviceId: __expectString,
2774
- ConnectorDeviceName: __expectString,
2775
- DeviceTypes: _json,
2776
- DiscoveredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2777
- ManagedThingId: __expectString,
2778
- Model: __expectString,
2779
- Modification: __expectString,
2780
- });
2781
- };
2782
- const de_ExponentialRolloutRate = (output, context) => {
2783
- return take(output, {
2784
- BaseRatePerMinute: __expectInt32,
2785
- IncrementFactor: __limitedParseDouble,
2786
- RateIncreaseCriteria: _json,
2787
- });
2788
- };
2789
- const de_ManagedThingListDefinition = (output, context) => {
2790
- const retVal = (output || [])
2791
- .filter((e) => e != null)
2792
- .map((entry) => {
2793
- return de_ManagedThingSummary(entry, context);
2794
- });
2795
- return retVal;
2796
- };
2797
- const de_ManagedThingSchemaListDefinition = (output, context) => {
2798
- const retVal = (output || [])
2799
- .filter((e) => e != null)
2800
- .map((entry) => {
2801
- return de_ManagedThingSchemaListItem(entry, context);
2802
- });
2803
- return retVal;
2804
- };
2805
- const de_ManagedThingSchemaListItem = (output, context) => {
2806
- return take(output, {
2807
- CapabilityId: __expectString,
2808
- EndpointId: __expectString,
2809
- Schema: (_) => de_ValidationSchema(_, context),
2810
- });
2811
- };
2812
- const de_ManagedThingSummary = (output, context) => {
2813
- return take(output, {
2814
- ActivatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2815
- AdvertisedProductId: __expectString,
2816
- Arn: __expectString,
2817
- Brand: __expectString,
2818
- Classification: __expectString,
2819
- ConnectorDestinationId: __expectString,
2820
- ConnectorDeviceId: __expectString,
2821
- ConnectorPolicyId: __expectString,
2822
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2823
- CredentialLockerId: __expectString,
2824
- Id: __expectString,
2825
- Model: __expectString,
2826
- Name: __expectString,
2827
- Owner: __expectString,
2828
- ParentControllerId: __expectString,
2829
- ProvisioningStatus: __expectString,
2830
- Role: __expectString,
2831
- SerialNumber: __expectString,
2832
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2833
- });
2834
- };
2835
- const de_OtaTaskAbortConfig = (output, context) => {
2836
- return take(output, {
2837
- AbortConfigCriteriaList: (_) => de_AbortConfigCriteriaList(_, context),
2838
- });
2839
- };
2840
- const de_OtaTaskConfigurationListDefinition = (output, context) => {
2841
- const retVal = (output || [])
2842
- .filter((e) => e != null)
2843
- .map((entry) => {
2844
- return de_OtaTaskConfigurationSummary(entry, context);
2845
- });
2846
- return retVal;
2847
- };
2848
- const de_OtaTaskConfigurationSummary = (output, context) => {
2849
- return take(output, {
2850
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2851
- Name: __expectString,
2852
- TaskConfigurationId: __expectString,
2853
- });
2854
- };
2855
- const de_OtaTaskExecutionRolloutConfig = (output, context) => {
2856
- return take(output, {
2857
- ExponentialRolloutRate: (_) => de_ExponentialRolloutRate(_, context),
2858
- MaximumPerMinute: __expectInt32,
2859
- });
2860
- };
2861
- const de_OtaTaskExecutionSummaries = (output, context) => {
2862
- return take(output, {
2863
- ManagedThingId: __expectString,
2864
- TaskExecutionSummary: (_) => de_OtaTaskExecutionSummary(_, context),
2865
- });
2866
- };
2867
- const de_OtaTaskExecutionSummariesListDefinition = (output, context) => {
2868
- const retVal = (output || [])
2869
- .filter((e) => e != null)
2870
- .map((entry) => {
2871
- return de_OtaTaskExecutionSummaries(entry, context);
2872
- });
2873
- return retVal;
2874
- };
2875
- const de_OtaTaskExecutionSummary = (output, context) => {
2876
- return take(output, {
2877
- ExecutionNumber: __expectLong,
2878
- LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2879
- QueuedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2880
- RetryAttempt: __expectInt32,
2881
- StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2882
- Status: __expectString,
2883
- });
2884
- };
2885
- const de_OtaTaskListDefinition = (output, context) => {
2886
- const retVal = (output || [])
2887
- .filter((e) => e != null)
2888
- .map((entry) => {
2889
- return de_OtaTaskSummary(entry, context);
2890
- });
2891
- return retVal;
2892
- };
2893
- const de_OtaTaskSummary = (output, context) => {
2894
- return take(output, {
2895
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2896
- LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2897
- Status: __expectString,
2898
- TaskArn: __expectString,
2899
- TaskConfigurationId: __expectString,
2900
- TaskId: __expectString,
2901
- });
2902
- };
2903
- const de_PushConfig = (output, context) => {
2904
- return take(output, {
2905
- AbortConfig: (_) => de_OtaTaskAbortConfig(_, context),
2906
- RolloutConfig: (_) => de_OtaTaskExecutionRolloutConfig(_, context),
2907
- TimeoutConfig: _json,
2908
- });
2909
- };
2910
- const de_SchemaVersionSchema = (output, context) => {
2911
- return output;
2912
- };
2913
- const de_StateCapabilities = (output, context) => {
2914
- const retVal = (output || [])
2915
- .filter((e) => e != null)
2916
- .map((entry) => {
2917
- return de_StateCapability(entry, context);
2918
- });
2919
- return retVal;
2920
- };
2921
- const de_StateCapability = (output, context) => {
2922
- return take(output, {
2923
- id: __expectString,
2924
- name: __expectString,
2925
- properties: (_) => de_CapabilityProperties(_, context),
2926
- version: __expectString,
2927
- });
2928
- };
2929
- const de_StateEndpoint = (output, context) => {
2930
- return take(output, {
2931
- capabilities: (_) => de_StateCapabilities(_, context),
2932
- endpointId: __expectString,
2933
- });
2934
- };
2935
- const de_StateEndpoints = (output, context) => {
2936
- const retVal = (output || [])
2937
- .filter((e) => e != null)
2938
- .map((entry) => {
2939
- return de_StateEndpoint(entry, context);
2940
- });
2941
- return retVal;
2942
- };
2943
- const de_ValidationSchema = (output, context) => {
2944
- return output;
2945
- };
2946
- const deserializeMetadata = (output) => ({
2947
- httpStatusCode: output.statusCode,
2948
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2949
- extendedRequestId: output.headers["x-amz-id-2"],
2950
- cfId: output.headers["x-amz-cf-id"],
2951
- });
2952
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2953
- const _AAI = "AccountAssociationId";
2954
- const _CCI = "CloudConnectorId";
2955
- const _CDI = "ConnectorDestinationId";
2956
- const _CDIF = "ConnectorDestinationIdFilter";
2957
- const _CDIFo = "ConnectorDeviceIdFilter";
2958
- const _CIF = "CapabilityIdFilter";
2959
- const _CLF = "CredentialLockerFilter";
2960
- const _CPIF = "ConnectorPolicyIdFilter";
2961
- const _EIF = "EndpointIdFilter";
2962
- const _F = "Force";
2963
- const _Fo = "Format";
2964
- const _LA = "LambdaArn";
2965
- const _MR = "MaxResults";
2966
- const _MTI = "ManagedThingId";
2967
- const _N = "Namespace";
2968
- const _NF = "NamespaceFilter";
2969
- const _NT = "NextToken";
2970
- const _OF = "OwnerFilter";
2971
- const _PCIF = "ParentControllerIdentifierFilter";
2972
- const _PSF = "ProvisioningStatusFilter";
2973
- const _RF = "RoleFilter";
2974
- const _SF = "StatusFilter";
2975
- const _SI = "SchemaId";
2976
- const _SIF = "SchemaIdFilter";
2977
- const _SNF = "SerialNumberFilter";
2978
- const _SV = "SemanticVersion";
2979
- const _SVF = "SemanticVersionFilter";
2980
- const _T = "Type";
2981
- const _TF = "TypeFilter";
2982
- const _TK = "TagKeys";
2983
- const _V = "Visibility";
2984
- const _VF = "VisibilityFilter";
2985
- const _tK = "tagKeys";