@aws-sdk/client-iot-wireless 3.200.0 → 3.202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +115 -129
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -10,15 +10,14 @@ const uuid_1 = require("uuid");
|
|
|
10
10
|
const IoTWirelessServiceException_1 = require("../models/IoTWirelessServiceException");
|
|
11
11
|
const models_0_1 = require("../models/models_0");
|
|
12
12
|
const serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = async (input, context) => {
|
|
13
|
-
var _a;
|
|
14
13
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
15
14
|
const headers = {
|
|
16
15
|
"content-type": "application/json",
|
|
17
16
|
};
|
|
18
|
-
const resolvedPath = `${
|
|
17
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts";
|
|
19
18
|
let body;
|
|
20
19
|
body = JSON.stringify({
|
|
21
|
-
ClientRequestToken:
|
|
20
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
22
21
|
...(input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) }),
|
|
23
22
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
24
23
|
});
|
|
@@ -38,7 +37,7 @@ const serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = async
|
|
|
38
37
|
const headers = {
|
|
39
38
|
"content-type": "application/json",
|
|
40
39
|
};
|
|
41
|
-
let resolvedPath = `${
|
|
40
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/multicast-group";
|
|
42
41
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
43
42
|
let body;
|
|
44
43
|
body = JSON.stringify({
|
|
@@ -60,7 +59,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = async
|
|
|
60
59
|
const headers = {
|
|
61
60
|
"content-type": "application/json",
|
|
62
61
|
};
|
|
63
|
-
let resolvedPath = `${
|
|
62
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/wireless-device";
|
|
64
63
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
65
64
|
let body;
|
|
66
65
|
body = JSON.stringify({
|
|
@@ -82,7 +81,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = a
|
|
|
82
81
|
const headers = {
|
|
83
82
|
"content-type": "application/json",
|
|
84
83
|
};
|
|
85
|
-
let resolvedPath = `${
|
|
84
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/wireless-device";
|
|
86
85
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
87
86
|
let body;
|
|
88
87
|
body = JSON.stringify({
|
|
@@ -104,7 +103,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = async (inp
|
|
|
104
103
|
const headers = {
|
|
105
104
|
"content-type": "application/json",
|
|
106
105
|
};
|
|
107
|
-
let resolvedPath = `${
|
|
106
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/thing";
|
|
108
107
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
109
108
|
let body;
|
|
110
109
|
body = JSON.stringify({
|
|
@@ -126,7 +125,7 @@ const serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = asy
|
|
|
126
125
|
const headers = {
|
|
127
126
|
"content-type": "application/json",
|
|
128
127
|
};
|
|
129
|
-
let resolvedPath = `${
|
|
128
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate";
|
|
130
129
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
131
130
|
let body;
|
|
132
131
|
body = JSON.stringify({
|
|
@@ -148,7 +147,7 @@ const serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = async (in
|
|
|
148
147
|
const headers = {
|
|
149
148
|
"content-type": "application/json",
|
|
150
149
|
};
|
|
151
|
-
let resolvedPath = `${
|
|
150
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/thing";
|
|
152
151
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
153
152
|
let body;
|
|
154
153
|
body = JSON.stringify({
|
|
@@ -168,7 +167,7 @@ exports.serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = seriali
|
|
|
168
167
|
const serializeAws_restJson1CancelMulticastGroupSessionCommand = async (input, context) => {
|
|
169
168
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
170
169
|
const headers = {};
|
|
171
|
-
let resolvedPath = `${
|
|
170
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session";
|
|
172
171
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
173
172
|
let body;
|
|
174
173
|
return new protocol_http_1.HttpRequest({
|
|
@@ -183,15 +182,14 @@ const serializeAws_restJson1CancelMulticastGroupSessionCommand = async (input, c
|
|
|
183
182
|
};
|
|
184
183
|
exports.serializeAws_restJson1CancelMulticastGroupSessionCommand = serializeAws_restJson1CancelMulticastGroupSessionCommand;
|
|
185
184
|
const serializeAws_restJson1CreateDestinationCommand = async (input, context) => {
|
|
186
|
-
var _a;
|
|
187
185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
188
186
|
const headers = {
|
|
189
187
|
"content-type": "application/json",
|
|
190
188
|
};
|
|
191
|
-
const resolvedPath = `${
|
|
189
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
|
|
192
190
|
let body;
|
|
193
191
|
body = JSON.stringify({
|
|
194
|
-
ClientRequestToken:
|
|
192
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
195
193
|
...(input.Description != null && { Description: input.Description }),
|
|
196
194
|
...(input.Expression != null && { Expression: input.Expression }),
|
|
197
195
|
...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
|
|
@@ -211,15 +209,14 @@ const serializeAws_restJson1CreateDestinationCommand = async (input, context) =>
|
|
|
211
209
|
};
|
|
212
210
|
exports.serializeAws_restJson1CreateDestinationCommand = serializeAws_restJson1CreateDestinationCommand;
|
|
213
211
|
const serializeAws_restJson1CreateDeviceProfileCommand = async (input, context) => {
|
|
214
|
-
var _a;
|
|
215
212
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
213
|
const headers = {
|
|
217
214
|
"content-type": "application/json",
|
|
218
215
|
};
|
|
219
|
-
const resolvedPath = `${
|
|
216
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles";
|
|
220
217
|
let body;
|
|
221
218
|
body = JSON.stringify({
|
|
222
|
-
ClientRequestToken:
|
|
219
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
223
220
|
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) }),
|
|
224
221
|
...(input.Name != null && { Name: input.Name }),
|
|
225
222
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
@@ -236,15 +233,14 @@ const serializeAws_restJson1CreateDeviceProfileCommand = async (input, context)
|
|
|
236
233
|
};
|
|
237
234
|
exports.serializeAws_restJson1CreateDeviceProfileCommand = serializeAws_restJson1CreateDeviceProfileCommand;
|
|
238
235
|
const serializeAws_restJson1CreateFuotaTaskCommand = async (input, context) => {
|
|
239
|
-
var _a;
|
|
240
236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
241
237
|
const headers = {
|
|
242
238
|
"content-type": "application/json",
|
|
243
239
|
};
|
|
244
|
-
const resolvedPath = `${
|
|
240
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks";
|
|
245
241
|
let body;
|
|
246
242
|
body = JSON.stringify({
|
|
247
|
-
ClientRequestToken:
|
|
243
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
248
244
|
...(input.Description != null && { Description: input.Description }),
|
|
249
245
|
...(input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage }),
|
|
250
246
|
...(input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole }),
|
|
@@ -264,15 +260,14 @@ const serializeAws_restJson1CreateFuotaTaskCommand = async (input, context) => {
|
|
|
264
260
|
};
|
|
265
261
|
exports.serializeAws_restJson1CreateFuotaTaskCommand = serializeAws_restJson1CreateFuotaTaskCommand;
|
|
266
262
|
const serializeAws_restJson1CreateMulticastGroupCommand = async (input, context) => {
|
|
267
|
-
var _a;
|
|
268
263
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
264
|
const headers = {
|
|
270
265
|
"content-type": "application/json",
|
|
271
266
|
};
|
|
272
|
-
const resolvedPath = `${
|
|
267
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups";
|
|
273
268
|
let body;
|
|
274
269
|
body = JSON.stringify({
|
|
275
|
-
ClientRequestToken:
|
|
270
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
276
271
|
...(input.Description != null && { Description: input.Description }),
|
|
277
272
|
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) }),
|
|
278
273
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -290,15 +285,14 @@ const serializeAws_restJson1CreateMulticastGroupCommand = async (input, context)
|
|
|
290
285
|
};
|
|
291
286
|
exports.serializeAws_restJson1CreateMulticastGroupCommand = serializeAws_restJson1CreateMulticastGroupCommand;
|
|
292
287
|
const serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = async (input, context) => {
|
|
293
|
-
var _a;
|
|
294
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
295
289
|
const headers = {
|
|
296
290
|
"content-type": "application/json",
|
|
297
291
|
};
|
|
298
|
-
const resolvedPath = `${
|
|
292
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/network-analyzer-configurations";
|
|
299
293
|
let body;
|
|
300
294
|
body = JSON.stringify({
|
|
301
|
-
ClientRequestToken:
|
|
295
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
302
296
|
...(input.Description != null && { Description: input.Description }),
|
|
303
297
|
...(input.Name != null && { Name: input.Name }),
|
|
304
298
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
@@ -324,15 +318,14 @@ const serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = async (i
|
|
|
324
318
|
};
|
|
325
319
|
exports.serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand;
|
|
326
320
|
const serializeAws_restJson1CreateServiceProfileCommand = async (input, context) => {
|
|
327
|
-
var _a;
|
|
328
321
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
322
|
const headers = {
|
|
330
323
|
"content-type": "application/json",
|
|
331
324
|
};
|
|
332
|
-
const resolvedPath = `${
|
|
325
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles";
|
|
333
326
|
let body;
|
|
334
327
|
body = JSON.stringify({
|
|
335
|
-
ClientRequestToken:
|
|
328
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
336
329
|
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) }),
|
|
337
330
|
...(input.Name != null && { Name: input.Name }),
|
|
338
331
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
@@ -349,15 +342,14 @@ const serializeAws_restJson1CreateServiceProfileCommand = async (input, context)
|
|
|
349
342
|
};
|
|
350
343
|
exports.serializeAws_restJson1CreateServiceProfileCommand = serializeAws_restJson1CreateServiceProfileCommand;
|
|
351
344
|
const serializeAws_restJson1CreateWirelessDeviceCommand = async (input, context) => {
|
|
352
|
-
var _a;
|
|
353
345
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
354
346
|
const headers = {
|
|
355
347
|
"content-type": "application/json",
|
|
356
348
|
};
|
|
357
|
-
const resolvedPath = `${
|
|
349
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices";
|
|
358
350
|
let body;
|
|
359
351
|
body = JSON.stringify({
|
|
360
|
-
ClientRequestToken:
|
|
352
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
361
353
|
...(input.Description != null && { Description: input.Description }),
|
|
362
354
|
...(input.DestinationName != null && { DestinationName: input.DestinationName }),
|
|
363
355
|
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) }),
|
|
@@ -377,15 +369,14 @@ const serializeAws_restJson1CreateWirelessDeviceCommand = async (input, context)
|
|
|
377
369
|
};
|
|
378
370
|
exports.serializeAws_restJson1CreateWirelessDeviceCommand = serializeAws_restJson1CreateWirelessDeviceCommand;
|
|
379
371
|
const serializeAws_restJson1CreateWirelessGatewayCommand = async (input, context) => {
|
|
380
|
-
var _a;
|
|
381
372
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
382
373
|
const headers = {
|
|
383
374
|
"content-type": "application/json",
|
|
384
375
|
};
|
|
385
|
-
const resolvedPath = `${
|
|
376
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways";
|
|
386
377
|
let body;
|
|
387
378
|
body = JSON.stringify({
|
|
388
|
-
ClientRequestToken:
|
|
379
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
389
380
|
...(input.Description != null && { Description: input.Description }),
|
|
390
381
|
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) }),
|
|
391
382
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -407,7 +398,7 @@ const serializeAws_restJson1CreateWirelessGatewayTaskCommand = async (input, con
|
|
|
407
398
|
const headers = {
|
|
408
399
|
"content-type": "application/json",
|
|
409
400
|
};
|
|
410
|
-
let resolvedPath = `${
|
|
401
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks";
|
|
411
402
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
412
403
|
let body;
|
|
413
404
|
body = JSON.stringify({
|
|
@@ -427,16 +418,15 @@ const serializeAws_restJson1CreateWirelessGatewayTaskCommand = async (input, con
|
|
|
427
418
|
};
|
|
428
419
|
exports.serializeAws_restJson1CreateWirelessGatewayTaskCommand = serializeAws_restJson1CreateWirelessGatewayTaskCommand;
|
|
429
420
|
const serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = async (input, context) => {
|
|
430
|
-
var _a;
|
|
431
421
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
422
|
const headers = {
|
|
433
423
|
"content-type": "application/json",
|
|
434
424
|
};
|
|
435
|
-
const resolvedPath = `${
|
|
425
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions";
|
|
436
426
|
let body;
|
|
437
427
|
body = JSON.stringify({
|
|
438
428
|
...(input.AutoCreateTasks != null && { AutoCreateTasks: input.AutoCreateTasks }),
|
|
439
|
-
ClientRequestToken:
|
|
429
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
440
430
|
...(input.Name != null && { Name: input.Name }),
|
|
441
431
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
442
432
|
...(input.Update != null && {
|
|
@@ -457,7 +447,7 @@ exports.serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = seria
|
|
|
457
447
|
const serializeAws_restJson1DeleteDestinationCommand = async (input, context) => {
|
|
458
448
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
449
|
const headers = {};
|
|
460
|
-
let resolvedPath = `${
|
|
450
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}";
|
|
461
451
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
462
452
|
let body;
|
|
463
453
|
return new protocol_http_1.HttpRequest({
|
|
@@ -474,7 +464,7 @@ exports.serializeAws_restJson1DeleteDestinationCommand = serializeAws_restJson1D
|
|
|
474
464
|
const serializeAws_restJson1DeleteDeviceProfileCommand = async (input, context) => {
|
|
475
465
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
476
466
|
const headers = {};
|
|
477
|
-
let resolvedPath = `${
|
|
467
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles/{Id}";
|
|
478
468
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
479
469
|
let body;
|
|
480
470
|
return new protocol_http_1.HttpRequest({
|
|
@@ -491,7 +481,7 @@ exports.serializeAws_restJson1DeleteDeviceProfileCommand = serializeAws_restJson
|
|
|
491
481
|
const serializeAws_restJson1DeleteFuotaTaskCommand = async (input, context) => {
|
|
492
482
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
483
|
const headers = {};
|
|
494
|
-
let resolvedPath = `${
|
|
484
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
|
|
495
485
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
496
486
|
let body;
|
|
497
487
|
return new protocol_http_1.HttpRequest({
|
|
@@ -508,7 +498,7 @@ exports.serializeAws_restJson1DeleteFuotaTaskCommand = serializeAws_restJson1Del
|
|
|
508
498
|
const serializeAws_restJson1DeleteMulticastGroupCommand = async (input, context) => {
|
|
509
499
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
500
|
const headers = {};
|
|
511
|
-
let resolvedPath = `${
|
|
501
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}";
|
|
512
502
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
513
503
|
let body;
|
|
514
504
|
return new protocol_http_1.HttpRequest({
|
|
@@ -525,7 +515,7 @@ exports.serializeAws_restJson1DeleteMulticastGroupCommand = serializeAws_restJso
|
|
|
525
515
|
const serializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommand = async (input, context) => {
|
|
526
516
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
527
517
|
const headers = {};
|
|
528
|
-
let resolvedPath = `${
|
|
518
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
529
519
|
"/network-analyzer-configurations/{ConfigurationName}";
|
|
530
520
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
|
|
531
521
|
let body;
|
|
@@ -543,7 +533,7 @@ exports.serializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommand = serial
|
|
|
543
533
|
const serializeAws_restJson1DeleteQueuedMessagesCommand = async (input, context) => {
|
|
544
534
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
545
535
|
const headers = {};
|
|
546
|
-
let resolvedPath = `${
|
|
536
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
|
|
547
537
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
548
538
|
const query = map({
|
|
549
539
|
messageId: [, input.MessageId],
|
|
@@ -565,7 +555,7 @@ exports.serializeAws_restJson1DeleteQueuedMessagesCommand = serializeAws_restJso
|
|
|
565
555
|
const serializeAws_restJson1DeleteServiceProfileCommand = async (input, context) => {
|
|
566
556
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
567
557
|
const headers = {};
|
|
568
|
-
let resolvedPath = `${
|
|
558
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles/{Id}";
|
|
569
559
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
570
560
|
let body;
|
|
571
561
|
return new protocol_http_1.HttpRequest({
|
|
@@ -582,7 +572,7 @@ exports.serializeAws_restJson1DeleteServiceProfileCommand = serializeAws_restJso
|
|
|
582
572
|
const serializeAws_restJson1DeleteWirelessDeviceCommand = async (input, context) => {
|
|
583
573
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
584
574
|
const headers = {};
|
|
585
|
-
let resolvedPath = `${
|
|
575
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}";
|
|
586
576
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
587
577
|
let body;
|
|
588
578
|
return new protocol_http_1.HttpRequest({
|
|
@@ -599,7 +589,7 @@ exports.serializeAws_restJson1DeleteWirelessDeviceCommand = serializeAws_restJso
|
|
|
599
589
|
const serializeAws_restJson1DeleteWirelessGatewayCommand = async (input, context) => {
|
|
600
590
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
601
591
|
const headers = {};
|
|
602
|
-
let resolvedPath = `${
|
|
592
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}";
|
|
603
593
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
604
594
|
let body;
|
|
605
595
|
return new protocol_http_1.HttpRequest({
|
|
@@ -616,7 +606,7 @@ exports.serializeAws_restJson1DeleteWirelessGatewayCommand = serializeAws_restJs
|
|
|
616
606
|
const serializeAws_restJson1DeleteWirelessGatewayTaskCommand = async (input, context) => {
|
|
617
607
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
618
608
|
const headers = {};
|
|
619
|
-
let resolvedPath = `${
|
|
609
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks";
|
|
620
610
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
621
611
|
let body;
|
|
622
612
|
return new protocol_http_1.HttpRequest({
|
|
@@ -633,7 +623,7 @@ exports.serializeAws_restJson1DeleteWirelessGatewayTaskCommand = serializeAws_re
|
|
|
633
623
|
const serializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = async (input, context) => {
|
|
634
624
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
635
625
|
const headers = {};
|
|
636
|
-
let resolvedPath = `${
|
|
626
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions/{Id}";
|
|
637
627
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
638
628
|
let body;
|
|
639
629
|
return new protocol_http_1.HttpRequest({
|
|
@@ -650,7 +640,7 @@ exports.serializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = seria
|
|
|
650
640
|
const serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = async (input, context) => {
|
|
651
641
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
652
642
|
const headers = {};
|
|
653
|
-
let resolvedPath = `${
|
|
643
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
|
|
654
644
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
|
|
655
645
|
const query = map({
|
|
656
646
|
partnerType: [, input.PartnerType],
|
|
@@ -671,7 +661,7 @@ exports.serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand =
|
|
|
671
661
|
const serializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = async (input, context) => {
|
|
672
662
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
673
663
|
const headers = {};
|
|
674
|
-
let resolvedPath = `${
|
|
664
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
675
665
|
"/fuota-tasks/{Id}/multicast-groups/{MulticastGroupId}";
|
|
676
666
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
677
667
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MulticastGroupId", () => input.MulticastGroupId, "{MulticastGroupId}", false);
|
|
@@ -690,7 +680,7 @@ exports.serializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = s
|
|
|
690
680
|
const serializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = async (input, context) => {
|
|
691
681
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
692
682
|
const headers = {};
|
|
693
|
-
let resolvedPath = `${
|
|
683
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
694
684
|
"/fuota-tasks/{Id}/wireless-devices/{WirelessDeviceId}";
|
|
695
685
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
696
686
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
|
|
@@ -709,7 +699,7 @@ exports.serializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = s
|
|
|
709
699
|
const serializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommand = async (input, context) => {
|
|
710
700
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
711
701
|
const headers = {};
|
|
712
|
-
let resolvedPath = `${
|
|
702
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
713
703
|
"/multicast-groups/{Id}/wireless-devices/{WirelessDeviceId}";
|
|
714
704
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
715
705
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
|
|
@@ -728,7 +718,7 @@ exports.serializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComman
|
|
|
728
718
|
const serializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = async (input, context) => {
|
|
729
719
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
730
720
|
const headers = {};
|
|
731
|
-
let resolvedPath = `${
|
|
721
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/thing";
|
|
732
722
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
733
723
|
let body;
|
|
734
724
|
return new protocol_http_1.HttpRequest({
|
|
@@ -745,7 +735,7 @@ exports.serializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = seria
|
|
|
745
735
|
const serializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand = async (input, context) => {
|
|
746
736
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
747
737
|
const headers = {};
|
|
748
|
-
let resolvedPath = `${
|
|
738
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate";
|
|
749
739
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
750
740
|
let body;
|
|
751
741
|
return new protocol_http_1.HttpRequest({
|
|
@@ -762,7 +752,7 @@ exports.serializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand
|
|
|
762
752
|
const serializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = async (input, context) => {
|
|
763
753
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
764
754
|
const headers = {};
|
|
765
|
-
let resolvedPath = `${
|
|
755
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/thing";
|
|
766
756
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
767
757
|
let body;
|
|
768
758
|
return new protocol_http_1.HttpRequest({
|
|
@@ -779,7 +769,7 @@ exports.serializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = seri
|
|
|
779
769
|
const serializeAws_restJson1GetDestinationCommand = async (input, context) => {
|
|
780
770
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
781
771
|
const headers = {};
|
|
782
|
-
let resolvedPath = `${
|
|
772
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}";
|
|
783
773
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
784
774
|
let body;
|
|
785
775
|
return new protocol_http_1.HttpRequest({
|
|
@@ -796,7 +786,7 @@ exports.serializeAws_restJson1GetDestinationCommand = serializeAws_restJson1GetD
|
|
|
796
786
|
const serializeAws_restJson1GetDeviceProfileCommand = async (input, context) => {
|
|
797
787
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
798
788
|
const headers = {};
|
|
799
|
-
let resolvedPath = `${
|
|
789
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles/{Id}";
|
|
800
790
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
801
791
|
let body;
|
|
802
792
|
return new protocol_http_1.HttpRequest({
|
|
@@ -815,7 +805,7 @@ const serializeAws_restJson1GetEventConfigurationByResourceTypesCommand = async
|
|
|
815
805
|
const headers = {
|
|
816
806
|
"content-type": "application/json",
|
|
817
807
|
};
|
|
818
|
-
const resolvedPath = `${
|
|
808
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types";
|
|
819
809
|
let body;
|
|
820
810
|
body = "";
|
|
821
811
|
return new protocol_http_1.HttpRequest({
|
|
@@ -832,7 +822,7 @@ exports.serializeAws_restJson1GetEventConfigurationByResourceTypesCommand = seri
|
|
|
832
822
|
const serializeAws_restJson1GetFuotaTaskCommand = async (input, context) => {
|
|
833
823
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
834
824
|
const headers = {};
|
|
835
|
-
let resolvedPath = `${
|
|
825
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
|
|
836
826
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
837
827
|
let body;
|
|
838
828
|
return new protocol_http_1.HttpRequest({
|
|
@@ -851,7 +841,7 @@ const serializeAws_restJson1GetLogLevelsByResourceTypesCommand = async (input, c
|
|
|
851
841
|
const headers = {
|
|
852
842
|
"content-type": "application/json",
|
|
853
843
|
};
|
|
854
|
-
const resolvedPath = `${
|
|
844
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
|
|
855
845
|
let body;
|
|
856
846
|
body = "";
|
|
857
847
|
return new protocol_http_1.HttpRequest({
|
|
@@ -868,7 +858,7 @@ exports.serializeAws_restJson1GetLogLevelsByResourceTypesCommand = serializeAws_
|
|
|
868
858
|
const serializeAws_restJson1GetMulticastGroupCommand = async (input, context) => {
|
|
869
859
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
870
860
|
const headers = {};
|
|
871
|
-
let resolvedPath = `${
|
|
861
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}";
|
|
872
862
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
873
863
|
let body;
|
|
874
864
|
return new protocol_http_1.HttpRequest({
|
|
@@ -885,7 +875,7 @@ exports.serializeAws_restJson1GetMulticastGroupCommand = serializeAws_restJson1G
|
|
|
885
875
|
const serializeAws_restJson1GetMulticastGroupSessionCommand = async (input, context) => {
|
|
886
876
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
887
877
|
const headers = {};
|
|
888
|
-
let resolvedPath = `${
|
|
878
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session";
|
|
889
879
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
890
880
|
let body;
|
|
891
881
|
return new protocol_http_1.HttpRequest({
|
|
@@ -902,7 +892,7 @@ exports.serializeAws_restJson1GetMulticastGroupSessionCommand = serializeAws_res
|
|
|
902
892
|
const serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = async (input, context) => {
|
|
903
893
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
904
894
|
const headers = {};
|
|
905
|
-
let resolvedPath = `${
|
|
895
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
906
896
|
"/network-analyzer-configurations/{ConfigurationName}";
|
|
907
897
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
|
|
908
898
|
let body;
|
|
@@ -920,7 +910,7 @@ exports.serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = serialize
|
|
|
920
910
|
const serializeAws_restJson1GetPartnerAccountCommand = async (input, context) => {
|
|
921
911
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
922
912
|
const headers = {};
|
|
923
|
-
let resolvedPath = `${
|
|
913
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
|
|
924
914
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
|
|
925
915
|
const query = map({
|
|
926
916
|
partnerType: [, input.PartnerType],
|
|
@@ -941,7 +931,7 @@ exports.serializeAws_restJson1GetPartnerAccountCommand = serializeAws_restJson1G
|
|
|
941
931
|
const serializeAws_restJson1GetPositionCommand = async (input, context) => {
|
|
942
932
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
943
933
|
const headers = {};
|
|
944
|
-
let resolvedPath = `${
|
|
934
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
945
935
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
946
936
|
const query = map({
|
|
947
937
|
resourceType: [, input.ResourceType],
|
|
@@ -962,7 +952,7 @@ exports.serializeAws_restJson1GetPositionCommand = serializeAws_restJson1GetPosi
|
|
|
962
952
|
const serializeAws_restJson1GetPositionConfigurationCommand = async (input, context) => {
|
|
963
953
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
964
954
|
const headers = {};
|
|
965
|
-
let resolvedPath = `${
|
|
955
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
966
956
|
"/position-configurations/{ResourceIdentifier}";
|
|
967
957
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
968
958
|
const query = map({
|
|
@@ -984,7 +974,7 @@ exports.serializeAws_restJson1GetPositionConfigurationCommand = serializeAws_res
|
|
|
984
974
|
const serializeAws_restJson1GetResourceEventConfigurationCommand = async (input, context) => {
|
|
985
975
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
986
976
|
const headers = {};
|
|
987
|
-
let resolvedPath = `${
|
|
977
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
|
|
988
978
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
989
979
|
const query = map({
|
|
990
980
|
identifierType: [, input.IdentifierType],
|
|
@@ -1006,7 +996,7 @@ exports.serializeAws_restJson1GetResourceEventConfigurationCommand = serializeAw
|
|
|
1006
996
|
const serializeAws_restJson1GetResourceLogLevelCommand = async (input, context) => {
|
|
1007
997
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1008
998
|
const headers = {};
|
|
1009
|
-
let resolvedPath = `${
|
|
999
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
|
|
1010
1000
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1011
1001
|
const query = map({
|
|
1012
1002
|
resourceType: [, input.ResourceType],
|
|
@@ -1027,7 +1017,7 @@ exports.serializeAws_restJson1GetResourceLogLevelCommand = serializeAws_restJson
|
|
|
1027
1017
|
const serializeAws_restJson1GetServiceEndpointCommand = async (input, context) => {
|
|
1028
1018
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1029
1019
|
const headers = {};
|
|
1030
|
-
const resolvedPath = `${
|
|
1020
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-endpoint";
|
|
1031
1021
|
const query = map({
|
|
1032
1022
|
serviceType: [, input.ServiceType],
|
|
1033
1023
|
});
|
|
@@ -1047,7 +1037,7 @@ exports.serializeAws_restJson1GetServiceEndpointCommand = serializeAws_restJson1
|
|
|
1047
1037
|
const serializeAws_restJson1GetServiceProfileCommand = async (input, context) => {
|
|
1048
1038
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1049
1039
|
const headers = {};
|
|
1050
|
-
let resolvedPath = `${
|
|
1040
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles/{Id}";
|
|
1051
1041
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1052
1042
|
let body;
|
|
1053
1043
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1064,7 +1054,7 @@ exports.serializeAws_restJson1GetServiceProfileCommand = serializeAws_restJson1G
|
|
|
1064
1054
|
const serializeAws_restJson1GetWirelessDeviceCommand = async (input, context) => {
|
|
1065
1055
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1066
1056
|
const headers = {};
|
|
1067
|
-
let resolvedPath = `${
|
|
1057
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}";
|
|
1068
1058
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
1069
1059
|
const query = map({
|
|
1070
1060
|
identifierType: [, input.IdentifierType],
|
|
@@ -1085,7 +1075,7 @@ exports.serializeAws_restJson1GetWirelessDeviceCommand = serializeAws_restJson1G
|
|
|
1085
1075
|
const serializeAws_restJson1GetWirelessDeviceStatisticsCommand = async (input, context) => {
|
|
1086
1076
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1087
1077
|
const headers = {};
|
|
1088
|
-
let resolvedPath = `${
|
|
1078
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1089
1079
|
"/wireless-devices/{WirelessDeviceId}/statistics";
|
|
1090
1080
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
|
|
1091
1081
|
let body;
|
|
@@ -1103,7 +1093,7 @@ exports.serializeAws_restJson1GetWirelessDeviceStatisticsCommand = serializeAws_
|
|
|
1103
1093
|
const serializeAws_restJson1GetWirelessGatewayCommand = async (input, context) => {
|
|
1104
1094
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1105
1095
|
const headers = {};
|
|
1106
|
-
let resolvedPath = `${
|
|
1096
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Identifier}";
|
|
1107
1097
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
1108
1098
|
const query = map({
|
|
1109
1099
|
identifierType: [, input.IdentifierType],
|
|
@@ -1124,7 +1114,7 @@ exports.serializeAws_restJson1GetWirelessGatewayCommand = serializeAws_restJson1
|
|
|
1124
1114
|
const serializeAws_restJson1GetWirelessGatewayCertificateCommand = async (input, context) => {
|
|
1125
1115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1126
1116
|
const headers = {};
|
|
1127
|
-
let resolvedPath = `${
|
|
1117
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate";
|
|
1128
1118
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1129
1119
|
let body;
|
|
1130
1120
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1141,7 +1131,7 @@ exports.serializeAws_restJson1GetWirelessGatewayCertificateCommand = serializeAw
|
|
|
1141
1131
|
const serializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = async (input, context) => {
|
|
1142
1132
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1143
1133
|
const headers = {};
|
|
1144
|
-
let resolvedPath = `${
|
|
1134
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1145
1135
|
"/wireless-gateways/{Id}/firmware-information";
|
|
1146
1136
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1147
1137
|
let body;
|
|
@@ -1159,7 +1149,7 @@ exports.serializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = ser
|
|
|
1159
1149
|
const serializeAws_restJson1GetWirelessGatewayStatisticsCommand = async (input, context) => {
|
|
1160
1150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1161
1151
|
const headers = {};
|
|
1162
|
-
let resolvedPath = `${
|
|
1152
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1163
1153
|
"/wireless-gateways/{WirelessGatewayId}/statistics";
|
|
1164
1154
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessGatewayId", () => input.WirelessGatewayId, "{WirelessGatewayId}", false);
|
|
1165
1155
|
let body;
|
|
@@ -1177,7 +1167,7 @@ exports.serializeAws_restJson1GetWirelessGatewayStatisticsCommand = serializeAws
|
|
|
1177
1167
|
const serializeAws_restJson1GetWirelessGatewayTaskCommand = async (input, context) => {
|
|
1178
1168
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1179
1169
|
const headers = {};
|
|
1180
|
-
let resolvedPath = `${
|
|
1170
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks";
|
|
1181
1171
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1182
1172
|
let body;
|
|
1183
1173
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1194,7 +1184,7 @@ exports.serializeAws_restJson1GetWirelessGatewayTaskCommand = serializeAws_restJ
|
|
|
1194
1184
|
const serializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = async (input, context) => {
|
|
1195
1185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1196
1186
|
const headers = {};
|
|
1197
|
-
let resolvedPath = `${
|
|
1187
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions/{Id}";
|
|
1198
1188
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1199
1189
|
let body;
|
|
1200
1190
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1211,7 +1201,7 @@ exports.serializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = serializ
|
|
|
1211
1201
|
const serializeAws_restJson1ListDestinationsCommand = async (input, context) => {
|
|
1212
1202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1213
1203
|
const headers = {};
|
|
1214
|
-
const resolvedPath = `${
|
|
1204
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
|
|
1215
1205
|
const query = map({
|
|
1216
1206
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1217
1207
|
nextToken: [, input.NextToken],
|
|
@@ -1232,7 +1222,7 @@ exports.serializeAws_restJson1ListDestinationsCommand = serializeAws_restJson1Li
|
|
|
1232
1222
|
const serializeAws_restJson1ListDeviceProfilesCommand = async (input, context) => {
|
|
1233
1223
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1234
1224
|
const headers = {};
|
|
1235
|
-
const resolvedPath = `${
|
|
1225
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles";
|
|
1236
1226
|
const query = map({
|
|
1237
1227
|
nextToken: [, input.NextToken],
|
|
1238
1228
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1253,7 +1243,7 @@ exports.serializeAws_restJson1ListDeviceProfilesCommand = serializeAws_restJson1
|
|
|
1253
1243
|
const serializeAws_restJson1ListEventConfigurationsCommand = async (input, context) => {
|
|
1254
1244
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1255
1245
|
const headers = {};
|
|
1256
|
-
const resolvedPath = `${
|
|
1246
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
|
|
1257
1247
|
const query = map({
|
|
1258
1248
|
resourceType: [, input.ResourceType],
|
|
1259
1249
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1275,7 +1265,7 @@ exports.serializeAws_restJson1ListEventConfigurationsCommand = serializeAws_rest
|
|
|
1275
1265
|
const serializeAws_restJson1ListFuotaTasksCommand = async (input, context) => {
|
|
1276
1266
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1277
1267
|
const headers = {};
|
|
1278
|
-
const resolvedPath = `${
|
|
1268
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks";
|
|
1279
1269
|
const query = map({
|
|
1280
1270
|
nextToken: [, input.NextToken],
|
|
1281
1271
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1296,7 +1286,7 @@ exports.serializeAws_restJson1ListFuotaTasksCommand = serializeAws_restJson1List
|
|
|
1296
1286
|
const serializeAws_restJson1ListMulticastGroupsCommand = async (input, context) => {
|
|
1297
1287
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1298
1288
|
const headers = {};
|
|
1299
|
-
const resolvedPath = `${
|
|
1289
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups";
|
|
1300
1290
|
const query = map({
|
|
1301
1291
|
nextToken: [, input.NextToken],
|
|
1302
1292
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1317,7 +1307,7 @@ exports.serializeAws_restJson1ListMulticastGroupsCommand = serializeAws_restJson
|
|
|
1317
1307
|
const serializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = async (input, context) => {
|
|
1318
1308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1319
1309
|
const headers = {};
|
|
1320
|
-
let resolvedPath = `${
|
|
1310
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/multicast-groups";
|
|
1321
1311
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1322
1312
|
const query = map({
|
|
1323
1313
|
nextToken: [, input.NextToken],
|
|
@@ -1339,7 +1329,7 @@ exports.serializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = serializeA
|
|
|
1339
1329
|
const serializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = async (input, context) => {
|
|
1340
1330
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1341
1331
|
const headers = {};
|
|
1342
|
-
const resolvedPath = `${
|
|
1332
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/network-analyzer-configurations";
|
|
1343
1333
|
const query = map({
|
|
1344
1334
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1345
1335
|
nextToken: [, input.NextToken],
|
|
@@ -1360,7 +1350,7 @@ exports.serializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = seriali
|
|
|
1360
1350
|
const serializeAws_restJson1ListPartnerAccountsCommand = async (input, context) => {
|
|
1361
1351
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1362
1352
|
const headers = {};
|
|
1363
|
-
const resolvedPath = `${
|
|
1353
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts";
|
|
1364
1354
|
const query = map({
|
|
1365
1355
|
nextToken: [, input.NextToken],
|
|
1366
1356
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1381,7 +1371,7 @@ exports.serializeAws_restJson1ListPartnerAccountsCommand = serializeAws_restJson
|
|
|
1381
1371
|
const serializeAws_restJson1ListPositionConfigurationsCommand = async (input, context) => {
|
|
1382
1372
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1383
1373
|
const headers = {};
|
|
1384
|
-
const resolvedPath = `${
|
|
1374
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/position-configurations";
|
|
1385
1375
|
const query = map({
|
|
1386
1376
|
resourceType: [, input.ResourceType],
|
|
1387
1377
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1403,7 +1393,7 @@ exports.serializeAws_restJson1ListPositionConfigurationsCommand = serializeAws_r
|
|
|
1403
1393
|
const serializeAws_restJson1ListQueuedMessagesCommand = async (input, context) => {
|
|
1404
1394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1405
1395
|
const headers = {};
|
|
1406
|
-
let resolvedPath = `${
|
|
1396
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
|
|
1407
1397
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1408
1398
|
const query = map({
|
|
1409
1399
|
nextToken: [, input.NextToken],
|
|
@@ -1426,7 +1416,7 @@ exports.serializeAws_restJson1ListQueuedMessagesCommand = serializeAws_restJson1
|
|
|
1426
1416
|
const serializeAws_restJson1ListServiceProfilesCommand = async (input, context) => {
|
|
1427
1417
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1428
1418
|
const headers = {};
|
|
1429
|
-
const resolvedPath = `${
|
|
1419
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles";
|
|
1430
1420
|
const query = map({
|
|
1431
1421
|
nextToken: [, input.NextToken],
|
|
1432
1422
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1447,7 +1437,7 @@ exports.serializeAws_restJson1ListServiceProfilesCommand = serializeAws_restJson
|
|
|
1447
1437
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1448
1438
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1449
1439
|
const headers = {};
|
|
1450
|
-
const resolvedPath = `${
|
|
1440
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1451
1441
|
const query = map({
|
|
1452
1442
|
resourceArn: [, input.ResourceArn],
|
|
1453
1443
|
});
|
|
@@ -1467,7 +1457,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
|
|
|
1467
1457
|
const serializeAws_restJson1ListWirelessDevicesCommand = async (input, context) => {
|
|
1468
1458
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1469
1459
|
const headers = {};
|
|
1470
|
-
const resolvedPath = `${
|
|
1460
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices";
|
|
1471
1461
|
const query = map({
|
|
1472
1462
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1473
1463
|
nextToken: [, input.NextToken],
|
|
@@ -1494,7 +1484,7 @@ exports.serializeAws_restJson1ListWirelessDevicesCommand = serializeAws_restJson
|
|
|
1494
1484
|
const serializeAws_restJson1ListWirelessGatewaysCommand = async (input, context) => {
|
|
1495
1485
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1496
1486
|
const headers = {};
|
|
1497
|
-
const resolvedPath = `${
|
|
1487
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways";
|
|
1498
1488
|
const query = map({
|
|
1499
1489
|
nextToken: [, input.NextToken],
|
|
1500
1490
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1515,7 +1505,7 @@ exports.serializeAws_restJson1ListWirelessGatewaysCommand = serializeAws_restJso
|
|
|
1515
1505
|
const serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = async (input, context) => {
|
|
1516
1506
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1517
1507
|
const headers = {};
|
|
1518
|
-
const resolvedPath = `${
|
|
1508
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions";
|
|
1519
1509
|
const query = map({
|
|
1520
1510
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1521
1511
|
nextToken: [, input.NextToken],
|
|
@@ -1539,7 +1529,7 @@ const serializeAws_restJson1PutPositionConfigurationCommand = async (input, cont
|
|
|
1539
1529
|
const headers = {
|
|
1540
1530
|
"content-type": "application/json",
|
|
1541
1531
|
};
|
|
1542
|
-
let resolvedPath = `${
|
|
1532
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1543
1533
|
"/position-configurations/{ResourceIdentifier}";
|
|
1544
1534
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1545
1535
|
const query = map({
|
|
@@ -1569,7 +1559,7 @@ const serializeAws_restJson1PutResourceLogLevelCommand = async (input, context)
|
|
|
1569
1559
|
const headers = {
|
|
1570
1560
|
"content-type": "application/json",
|
|
1571
1561
|
};
|
|
1572
|
-
let resolvedPath = `${
|
|
1562
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
|
|
1573
1563
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1574
1564
|
const query = map({
|
|
1575
1565
|
resourceType: [, input.ResourceType],
|
|
@@ -1595,7 +1585,7 @@ const serializeAws_restJson1ResetAllResourceLogLevelsCommand = async (input, con
|
|
|
1595
1585
|
const headers = {
|
|
1596
1586
|
"content-type": "application/json",
|
|
1597
1587
|
};
|
|
1598
|
-
const resolvedPath = `${
|
|
1588
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
|
|
1599
1589
|
let body;
|
|
1600
1590
|
body = "";
|
|
1601
1591
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1612,7 +1602,7 @@ exports.serializeAws_restJson1ResetAllResourceLogLevelsCommand = serializeAws_re
|
|
|
1612
1602
|
const serializeAws_restJson1ResetResourceLogLevelCommand = async (input, context) => {
|
|
1613
1603
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1614
1604
|
const headers = {};
|
|
1615
|
-
let resolvedPath = `${
|
|
1605
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
|
|
1616
1606
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1617
1607
|
const query = map({
|
|
1618
1608
|
resourceType: [, input.ResourceType],
|
|
@@ -1635,7 +1625,7 @@ const serializeAws_restJson1SendDataToMulticastGroupCommand = async (input, cont
|
|
|
1635
1625
|
const headers = {
|
|
1636
1626
|
"content-type": "application/json",
|
|
1637
1627
|
};
|
|
1638
|
-
let resolvedPath = `${
|
|
1628
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/data";
|
|
1639
1629
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1640
1630
|
let body;
|
|
1641
1631
|
body = JSON.stringify({
|
|
@@ -1660,7 +1650,7 @@ const serializeAws_restJson1SendDataToWirelessDeviceCommand = async (input, cont
|
|
|
1660
1650
|
const headers = {
|
|
1661
1651
|
"content-type": "application/json",
|
|
1662
1652
|
};
|
|
1663
|
-
let resolvedPath = `${
|
|
1653
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
|
|
1664
1654
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1665
1655
|
let body;
|
|
1666
1656
|
body = JSON.stringify({
|
|
@@ -1686,7 +1676,7 @@ const serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCo
|
|
|
1686
1676
|
const headers = {
|
|
1687
1677
|
"content-type": "application/json",
|
|
1688
1678
|
};
|
|
1689
|
-
let resolvedPath = `${
|
|
1679
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/bulk";
|
|
1690
1680
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1691
1681
|
let body;
|
|
1692
1682
|
body = JSON.stringify({
|
|
@@ -1709,7 +1699,7 @@ const serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGrou
|
|
|
1709
1699
|
const headers = {
|
|
1710
1700
|
"content-type": "application/json",
|
|
1711
1701
|
};
|
|
1712
|
-
let resolvedPath = `${
|
|
1702
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/bulk";
|
|
1713
1703
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1714
1704
|
let body;
|
|
1715
1705
|
body = JSON.stringify({
|
|
@@ -1732,7 +1722,7 @@ const serializeAws_restJson1StartFuotaTaskCommand = async (input, context) => {
|
|
|
1732
1722
|
const headers = {
|
|
1733
1723
|
"content-type": "application/json",
|
|
1734
1724
|
};
|
|
1735
|
-
let resolvedPath = `${
|
|
1725
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
|
|
1736
1726
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1737
1727
|
let body;
|
|
1738
1728
|
body = JSON.stringify({
|
|
@@ -1754,7 +1744,7 @@ const serializeAws_restJson1StartMulticastGroupSessionCommand = async (input, co
|
|
|
1754
1744
|
const headers = {
|
|
1755
1745
|
"content-type": "application/json",
|
|
1756
1746
|
};
|
|
1757
|
-
let resolvedPath = `${
|
|
1747
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session";
|
|
1758
1748
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1759
1749
|
let body;
|
|
1760
1750
|
body = JSON.stringify({
|
|
@@ -1776,7 +1766,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1776
1766
|
const headers = {
|
|
1777
1767
|
"content-type": "application/json",
|
|
1778
1768
|
};
|
|
1779
|
-
const resolvedPath = `${
|
|
1769
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1780
1770
|
const query = map({
|
|
1781
1771
|
resourceArn: [, input.ResourceArn],
|
|
1782
1772
|
});
|
|
@@ -1799,7 +1789,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
1799
1789
|
const serializeAws_restJson1TestWirelessDeviceCommand = async (input, context) => {
|
|
1800
1790
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1801
1791
|
const headers = {};
|
|
1802
|
-
let resolvedPath = `${
|
|
1792
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/test";
|
|
1803
1793
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1804
1794
|
let body;
|
|
1805
1795
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1816,7 +1806,7 @@ exports.serializeAws_restJson1TestWirelessDeviceCommand = serializeAws_restJson1
|
|
|
1816
1806
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1817
1807
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1818
1808
|
const headers = {};
|
|
1819
|
-
const resolvedPath = `${
|
|
1809
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1820
1810
|
const query = map({
|
|
1821
1811
|
resourceArn: [, input.ResourceArn],
|
|
1822
1812
|
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
@@ -1839,7 +1829,7 @@ const serializeAws_restJson1UpdateDestinationCommand = async (input, context) =>
|
|
|
1839
1829
|
const headers = {
|
|
1840
1830
|
"content-type": "application/json",
|
|
1841
1831
|
};
|
|
1842
|
-
let resolvedPath = `${
|
|
1832
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}";
|
|
1843
1833
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
1844
1834
|
let body;
|
|
1845
1835
|
body = JSON.stringify({
|
|
@@ -1864,7 +1854,7 @@ const serializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand = asy
|
|
|
1864
1854
|
const headers = {
|
|
1865
1855
|
"content-type": "application/json",
|
|
1866
1856
|
};
|
|
1867
|
-
const resolvedPath = `${
|
|
1857
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types";
|
|
1868
1858
|
let body;
|
|
1869
1859
|
body = JSON.stringify({
|
|
1870
1860
|
...(input.ConnectionStatus != null && {
|
|
@@ -1897,7 +1887,7 @@ const serializeAws_restJson1UpdateFuotaTaskCommand = async (input, context) => {
|
|
|
1897
1887
|
const headers = {
|
|
1898
1888
|
"content-type": "application/json",
|
|
1899
1889
|
};
|
|
1900
|
-
let resolvedPath = `${
|
|
1890
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
|
|
1901
1891
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1902
1892
|
let body;
|
|
1903
1893
|
body = JSON.stringify({
|
|
@@ -1923,7 +1913,7 @@ const serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = async (input
|
|
|
1923
1913
|
const headers = {
|
|
1924
1914
|
"content-type": "application/json",
|
|
1925
1915
|
};
|
|
1926
|
-
const resolvedPath = `${
|
|
1916
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
|
|
1927
1917
|
let body;
|
|
1928
1918
|
body = JSON.stringify({
|
|
1929
1919
|
...(input.DefaultLogLevel != null && { DefaultLogLevel: input.DefaultLogLevel }),
|
|
@@ -1950,7 +1940,7 @@ const serializeAws_restJson1UpdateMulticastGroupCommand = async (input, context)
|
|
|
1950
1940
|
const headers = {
|
|
1951
1941
|
"content-type": "application/json",
|
|
1952
1942
|
};
|
|
1953
|
-
let resolvedPath = `${
|
|
1943
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}";
|
|
1954
1944
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1955
1945
|
let body;
|
|
1956
1946
|
body = JSON.stringify({
|
|
@@ -1974,7 +1964,7 @@ const serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = async (i
|
|
|
1974
1964
|
const headers = {
|
|
1975
1965
|
"content-type": "application/json",
|
|
1976
1966
|
};
|
|
1977
|
-
let resolvedPath = `${
|
|
1967
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1978
1968
|
"/network-analyzer-configurations/{ConfigurationName}";
|
|
1979
1969
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
|
|
1980
1970
|
let body;
|
|
@@ -2012,7 +2002,7 @@ const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, context)
|
|
|
2012
2002
|
const headers = {
|
|
2013
2003
|
"content-type": "application/json",
|
|
2014
2004
|
};
|
|
2015
|
-
let resolvedPath = `${
|
|
2005
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
|
|
2016
2006
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
|
|
2017
2007
|
const query = map({
|
|
2018
2008
|
partnerType: [, input.PartnerType],
|
|
@@ -2038,7 +2028,7 @@ const serializeAws_restJson1UpdatePositionCommand = async (input, context) => {
|
|
|
2038
2028
|
const headers = {
|
|
2039
2029
|
"content-type": "application/json",
|
|
2040
2030
|
};
|
|
2041
|
-
let resolvedPath = `${
|
|
2031
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
2042
2032
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
2043
2033
|
const query = map({
|
|
2044
2034
|
resourceType: [, input.ResourceType],
|
|
@@ -2064,7 +2054,7 @@ const serializeAws_restJson1UpdateResourceEventConfigurationCommand = async (inp
|
|
|
2064
2054
|
const headers = {
|
|
2065
2055
|
"content-type": "application/json",
|
|
2066
2056
|
};
|
|
2067
|
-
let resolvedPath = `${
|
|
2057
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
|
|
2068
2058
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
2069
2059
|
const query = map({
|
|
2070
2060
|
identifierType: [, input.IdentifierType],
|
|
@@ -2103,7 +2093,7 @@ const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, context)
|
|
|
2103
2093
|
const headers = {
|
|
2104
2094
|
"content-type": "application/json",
|
|
2105
2095
|
};
|
|
2106
|
-
let resolvedPath = `${
|
|
2096
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}";
|
|
2107
2097
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
2108
2098
|
let body;
|
|
2109
2099
|
body = JSON.stringify({
|
|
@@ -2128,7 +2118,7 @@ const serializeAws_restJson1UpdateWirelessGatewayCommand = async (input, context
|
|
|
2128
2118
|
const headers = {
|
|
2129
2119
|
"content-type": "application/json",
|
|
2130
2120
|
};
|
|
2131
|
-
let resolvedPath = `${
|
|
2121
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}";
|
|
2132
2122
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
2133
2123
|
let body;
|
|
2134
2124
|
body = JSON.stringify({
|
|
@@ -8421,15 +8411,12 @@ const deserializeAws_restJson1WirelessGatewayTaskDefinitionList = (output, conte
|
|
|
8421
8411
|
});
|
|
8422
8412
|
return retVal;
|
|
8423
8413
|
};
|
|
8424
|
-
const deserializeMetadata = (output) => {
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
8431
|
-
});
|
|
8432
|
-
};
|
|
8414
|
+
const deserializeMetadata = (output) => ({
|
|
8415
|
+
httpStatusCode: output.statusCode,
|
|
8416
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
8417
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
8418
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
8419
|
+
});
|
|
8433
8420
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
8434
8421
|
if (streamBody instanceof Uint8Array) {
|
|
8435
8422
|
return Promise.resolve(streamBody);
|
|
@@ -8449,9 +8436,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
8449
8436
|
return {};
|
|
8450
8437
|
});
|
|
8451
8438
|
const parseErrorBody = async (errorBody, context) => {
|
|
8452
|
-
var _a;
|
|
8453
8439
|
const value = await parseBody(errorBody, context);
|
|
8454
|
-
value.message =
|
|
8440
|
+
value.message = value.message ?? value.Message;
|
|
8455
8441
|
return value;
|
|
8456
8442
|
};
|
|
8457
8443
|
const loadRestJsonErrorCode = (output, data) => {
|