@aws-sdk/client-iot-wireless 3.215.0 → 3.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/IoTWireless.js +45 -0
- package/dist-cjs/commands/GetPositionEstimateCommand.js +46 -0
- package/dist-cjs/commands/GetResourcePositionCommand.js +46 -0
- package/dist-cjs/commands/SendDataToMulticastGroupCommand.js +3 -3
- package/dist-cjs/commands/SendDataToWirelessDeviceCommand.js +3 -3
- package/dist-cjs/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +3 -3
- package/dist-cjs/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +3 -3
- package/dist-cjs/commands/StartFuotaTaskCommand.js +3 -3
- package/dist-cjs/commands/StartMulticastGroupSessionCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/TestWirelessDeviceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateDestinationCommand.js +3 -3
- package/dist-cjs/commands/UpdateEventConfigurationByResourceTypesCommand.js +3 -3
- package/dist-cjs/commands/UpdateResourcePositionCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +115 -128
- package/dist-cjs/models/models_1.js +133 -1
- package/dist-cjs/protocols/Aws_restJson1.js +544 -25
- package/dist-es/IoTWireless.js +45 -0
- package/dist-es/commands/GetPositionEstimateCommand.js +42 -0
- package/dist-es/commands/GetResourcePositionCommand.js +42 -0
- package/dist-es/commands/SendDataToMulticastGroupCommand.js +1 -1
- package/dist-es/commands/SendDataToWirelessDeviceCommand.js +1 -1
- package/dist-es/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +1 -1
- package/dist-es/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +1 -1
- package/dist-es/commands/StartFuotaTaskCommand.js +1 -1
- package/dist-es/commands/StartMulticastGroupSessionCommand.js +1 -1
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/TestWirelessDeviceCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -1
- package/dist-es/commands/UpdateDestinationCommand.js +1 -1
- package/dist-es/commands/UpdateEventConfigurationByResourceTypesCommand.js +1 -1
- package/dist-es/commands/UpdateResourcePositionCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +84 -96
- package/dist-es/models/models_1.js +103 -0
- package/dist-es/protocols/Aws_restJson1.js +533 -21
- package/dist-types/IoTWireless.d.ts +59 -0
- package/dist-types/IoTWirelessClient.d.ts +5 -2
- package/dist-types/commands/GetPositionCommand.d.ts +7 -0
- package/dist-types/commands/GetPositionConfigurationCommand.d.ts +7 -0
- package/dist-types/commands/GetPositionEstimateCommand.d.ts +38 -0
- package/dist-types/commands/GetResourcePositionCommand.d.ts +39 -0
- package/dist-types/commands/ListPositionConfigurationsCommand.d.ts +7 -0
- package/dist-types/commands/PutPositionConfigurationCommand.d.ts +6 -0
- package/dist-types/commands/SendDataToMulticastGroupCommand.d.ts +1 -1
- package/dist-types/commands/SendDataToWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +1 -1
- package/dist-types/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +1 -1
- package/dist-types/commands/StartFuotaTaskCommand.d.ts +1 -1
- package/dist-types/commands/StartMulticastGroupSessionCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TestWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDestinationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePositionCommand.d.ts +6 -0
- package/dist-types/commands/UpdateResourcePositionCommand.d.ts +39 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +695 -367
- package/dist-types/models/models_1.d.ts +384 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/IoTWireless.d.ts +51 -0
- package/dist-types/ts3.4/IoTWirelessClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetPositionEstimateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetResourcePositionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SendDataToMulticastGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SendDataToWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartFuotaTaskCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartMulticastGroupSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TestWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDestinationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateResourcePositionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +208 -173
- package/dist-types/ts3.4/models/models_1.d.ts +201 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +4 -4
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
3
|
+
exports.serializeAws_restJson1GetResourceLogLevelCommand = exports.serializeAws_restJson1GetResourceEventConfigurationCommand = exports.serializeAws_restJson1GetPositionEstimateCommand = exports.serializeAws_restJson1GetPositionConfigurationCommand = exports.serializeAws_restJson1GetPositionCommand = exports.serializeAws_restJson1GetPartnerAccountCommand = exports.serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1GetMulticastGroupSessionCommand = exports.serializeAws_restJson1GetMulticastGroupCommand = exports.serializeAws_restJson1GetLogLevelsByResourceTypesCommand = exports.serializeAws_restJson1GetFuotaTaskCommand = exports.serializeAws_restJson1GetEventConfigurationByResourceTypesCommand = exports.serializeAws_restJson1GetDeviceProfileCommand = exports.serializeAws_restJson1GetDestinationCommand = exports.serializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = exports.serializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = exports.serializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = exports.serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = exports.serializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1DeleteWirelessGatewayTaskCommand = exports.serializeAws_restJson1DeleteWirelessGatewayCommand = exports.serializeAws_restJson1DeleteWirelessDeviceCommand = exports.serializeAws_restJson1DeleteServiceProfileCommand = exports.serializeAws_restJson1DeleteQueuedMessagesCommand = exports.serializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1DeleteMulticastGroupCommand = exports.serializeAws_restJson1DeleteFuotaTaskCommand = exports.serializeAws_restJson1DeleteDeviceProfileCommand = exports.serializeAws_restJson1DeleteDestinationCommand = exports.serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1CreateWirelessGatewayTaskCommand = exports.serializeAws_restJson1CreateWirelessGatewayCommand = exports.serializeAws_restJson1CreateWirelessDeviceCommand = exports.serializeAws_restJson1CreateServiceProfileCommand = exports.serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1CreateMulticastGroupCommand = exports.serializeAws_restJson1CreateFuotaTaskCommand = exports.serializeAws_restJson1CreateDeviceProfileCommand = exports.serializeAws_restJson1CreateDestinationCommand = exports.serializeAws_restJson1CancelMulticastGroupSessionCommand = exports.serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = exports.serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = exports.serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = exports.serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = void 0;
|
|
4
|
+
exports.serializeAws_restJson1UpdateWirelessDeviceCommand = exports.serializeAws_restJson1UpdateResourcePositionCommand = exports.serializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.serializeAws_restJson1UpdatePositionCommand = exports.serializeAws_restJson1UpdatePartnerAccountCommand = exports.serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1UpdateMulticastGroupCommand = exports.serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.serializeAws_restJson1UpdateFuotaTaskCommand = exports.serializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand = exports.serializeAws_restJson1UpdateDestinationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestWirelessDeviceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartMulticastGroupSessionCommand = exports.serializeAws_restJson1StartFuotaTaskCommand = exports.serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.serializeAws_restJson1SendDataToWirelessDeviceCommand = exports.serializeAws_restJson1SendDataToMulticastGroupCommand = exports.serializeAws_restJson1ResetResourceLogLevelCommand = exports.serializeAws_restJson1ResetAllResourceLogLevelsCommand = exports.serializeAws_restJson1PutResourceLogLevelCommand = exports.serializeAws_restJson1PutPositionConfigurationCommand = exports.serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = exports.serializeAws_restJson1ListWirelessGatewaysCommand = exports.serializeAws_restJson1ListWirelessDevicesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListServiceProfilesCommand = exports.serializeAws_restJson1ListQueuedMessagesCommand = exports.serializeAws_restJson1ListPositionConfigurationsCommand = exports.serializeAws_restJson1ListPartnerAccountsCommand = exports.serializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = exports.serializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = exports.serializeAws_restJson1ListMulticastGroupsCommand = exports.serializeAws_restJson1ListFuotaTasksCommand = exports.serializeAws_restJson1ListEventConfigurationsCommand = exports.serializeAws_restJson1ListDeviceProfilesCommand = exports.serializeAws_restJson1ListDestinationsCommand = exports.serializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1GetWirelessGatewayTaskCommand = exports.serializeAws_restJson1GetWirelessGatewayStatisticsCommand = exports.serializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = exports.serializeAws_restJson1GetWirelessGatewayCertificateCommand = exports.serializeAws_restJson1GetWirelessGatewayCommand = exports.serializeAws_restJson1GetWirelessDeviceStatisticsCommand = exports.serializeAws_restJson1GetWirelessDeviceCommand = exports.serializeAws_restJson1GetServiceProfileCommand = exports.serializeAws_restJson1GetServiceEndpointCommand = exports.serializeAws_restJson1GetResourcePositionCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1GetResourceEventConfigurationCommand = exports.deserializeAws_restJson1GetPositionEstimateCommand = exports.deserializeAws_restJson1GetPositionConfigurationCommand = exports.deserializeAws_restJson1GetPositionCommand = exports.deserializeAws_restJson1GetPartnerAccountCommand = exports.deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1GetMulticastGroupSessionCommand = exports.deserializeAws_restJson1GetMulticastGroupCommand = exports.deserializeAws_restJson1GetLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1GetFuotaTaskCommand = exports.deserializeAws_restJson1GetEventConfigurationByResourceTypesCommand = exports.deserializeAws_restJson1GetDeviceProfileCommand = exports.deserializeAws_restJson1GetDestinationCommand = exports.deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = exports.deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = exports.deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = exports.deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayTaskCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayCommand = exports.deserializeAws_restJson1DeleteWirelessDeviceCommand = exports.deserializeAws_restJson1DeleteServiceProfileCommand = exports.deserializeAws_restJson1DeleteQueuedMessagesCommand = exports.deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1DeleteMulticastGroupCommand = exports.deserializeAws_restJson1DeleteFuotaTaskCommand = exports.deserializeAws_restJson1DeleteDeviceProfileCommand = exports.deserializeAws_restJson1DeleteDestinationCommand = exports.deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1CreateWirelessGatewayTaskCommand = exports.deserializeAws_restJson1CreateWirelessGatewayCommand = exports.deserializeAws_restJson1CreateWirelessDeviceCommand = exports.deserializeAws_restJson1CreateServiceProfileCommand = exports.deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1CreateMulticastGroupCommand = exports.deserializeAws_restJson1CreateFuotaTaskCommand = exports.deserializeAws_restJson1CreateDeviceProfileCommand = exports.deserializeAws_restJson1CreateDestinationCommand = exports.deserializeAws_restJson1CancelMulticastGroupSessionCommand = exports.deserializeAws_restJson1AssociateWirelessGatewayWithThingCommand = exports.deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithThingCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = exports.deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = exports.deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = exports.serializeAws_restJson1UpdateWirelessGatewayCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1UpdateResourcePositionCommand = exports.deserializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.deserializeAws_restJson1UpdatePositionCommand = exports.deserializeAws_restJson1UpdatePartnerAccountCommand = exports.deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1UpdateMulticastGroupCommand = exports.deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1UpdateFuotaTaskCommand = exports.deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand = exports.deserializeAws_restJson1UpdateDestinationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestWirelessDeviceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMulticastGroupSessionCommand = exports.deserializeAws_restJson1StartFuotaTaskCommand = exports.deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1SendDataToWirelessDeviceCommand = exports.deserializeAws_restJson1SendDataToMulticastGroupCommand = exports.deserializeAws_restJson1ResetResourceLogLevelCommand = exports.deserializeAws_restJson1ResetAllResourceLogLevelsCommand = exports.deserializeAws_restJson1PutResourceLogLevelCommand = exports.deserializeAws_restJson1PutPositionConfigurationCommand = exports.deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = exports.deserializeAws_restJson1ListWirelessGatewaysCommand = exports.deserializeAws_restJson1ListWirelessDevicesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListServiceProfilesCommand = exports.deserializeAws_restJson1ListQueuedMessagesCommand = exports.deserializeAws_restJson1ListPositionConfigurationsCommand = exports.deserializeAws_restJson1ListPartnerAccountsCommand = exports.deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = exports.deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = exports.deserializeAws_restJson1ListMulticastGroupsCommand = exports.deserializeAws_restJson1ListFuotaTasksCommand = exports.deserializeAws_restJson1ListEventConfigurationsCommand = exports.deserializeAws_restJson1ListDeviceProfilesCommand = exports.deserializeAws_restJson1ListDestinationsCommand = exports.deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1GetWirelessGatewayTaskCommand = exports.deserializeAws_restJson1GetWirelessGatewayStatisticsCommand = exports.deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = exports.deserializeAws_restJson1GetWirelessGatewayCertificateCommand = exports.deserializeAws_restJson1GetWirelessGatewayCommand = exports.deserializeAws_restJson1GetWirelessDeviceStatisticsCommand = exports.deserializeAws_restJson1GetWirelessDeviceCommand = exports.deserializeAws_restJson1GetServiceProfileCommand = exports.deserializeAws_restJson1GetServiceEndpointCommand = exports.deserializeAws_restJson1GetResourcePositionCommand = exports.deserializeAws_restJson1GetResourceLogLevelCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = void 0;
|
|
7
8
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
10
|
const uuid_1 = require("uuid");
|
|
10
11
|
const IoTWirelessServiceException_1 = require("../models/IoTWirelessServiceException");
|
|
11
12
|
const models_0_1 = require("../models/models_0");
|
|
13
|
+
const models_1_1 = require("../models/models_1");
|
|
12
14
|
const serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = async (input, context) => {
|
|
13
15
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
14
16
|
const headers = {
|
|
@@ -354,6 +356,7 @@ const serializeAws_restJson1CreateWirelessDeviceCommand = async (input, context)
|
|
|
354
356
|
...(input.DestinationName != null && { DestinationName: input.DestinationName }),
|
|
355
357
|
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) }),
|
|
356
358
|
...(input.Name != null && { Name: input.Name }),
|
|
359
|
+
...(input.Positioning != null && { Positioning: input.Positioning }),
|
|
357
360
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
358
361
|
...(input.Type != null && { Type: input.Type }),
|
|
359
362
|
});
|
|
@@ -536,7 +539,7 @@ const serializeAws_restJson1DeleteQueuedMessagesCommand = async (input, context)
|
|
|
536
539
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
|
|
537
540
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
538
541
|
const query = map({
|
|
539
|
-
messageId: [, input.MessageId],
|
|
542
|
+
messageId: [, (0, smithy_client_1.expectNonNull)(input.MessageId, `MessageId`)],
|
|
540
543
|
WirelessDeviceType: [, input.WirelessDeviceType],
|
|
541
544
|
});
|
|
542
545
|
let body;
|
|
@@ -643,7 +646,7 @@ const serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = as
|
|
|
643
646
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
|
|
644
647
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
|
|
645
648
|
const query = map({
|
|
646
|
-
partnerType: [, input.PartnerType],
|
|
649
|
+
partnerType: [, (0, smithy_client_1.expectNonNull)(input.PartnerType, `PartnerType`)],
|
|
647
650
|
});
|
|
648
651
|
let body;
|
|
649
652
|
return new protocol_http_1.HttpRequest({
|
|
@@ -913,7 +916,7 @@ const serializeAws_restJson1GetPartnerAccountCommand = async (input, context) =>
|
|
|
913
916
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
|
|
914
917
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
|
|
915
918
|
const query = map({
|
|
916
|
-
partnerType: [, input.PartnerType],
|
|
919
|
+
partnerType: [, (0, smithy_client_1.expectNonNull)(input.PartnerType, `PartnerType`)],
|
|
917
920
|
});
|
|
918
921
|
let body;
|
|
919
922
|
return new protocol_http_1.HttpRequest({
|
|
@@ -934,7 +937,7 @@ const serializeAws_restJson1GetPositionCommand = async (input, context) => {
|
|
|
934
937
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
935
938
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
936
939
|
const query = map({
|
|
937
|
-
resourceType: [, input.ResourceType],
|
|
940
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
938
941
|
});
|
|
939
942
|
let body;
|
|
940
943
|
return new protocol_http_1.HttpRequest({
|
|
@@ -956,7 +959,7 @@ const serializeAws_restJson1GetPositionConfigurationCommand = async (input, cont
|
|
|
956
959
|
"/position-configurations/{ResourceIdentifier}";
|
|
957
960
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
958
961
|
const query = map({
|
|
959
|
-
resourceType: [, input.ResourceType],
|
|
962
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
960
963
|
});
|
|
961
964
|
let body;
|
|
962
965
|
return new protocol_http_1.HttpRequest({
|
|
@@ -971,13 +974,40 @@ const serializeAws_restJson1GetPositionConfigurationCommand = async (input, cont
|
|
|
971
974
|
});
|
|
972
975
|
};
|
|
973
976
|
exports.serializeAws_restJson1GetPositionConfigurationCommand = serializeAws_restJson1GetPositionConfigurationCommand;
|
|
977
|
+
const serializeAws_restJson1GetPositionEstimateCommand = async (input, context) => {
|
|
978
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
979
|
+
const headers = {
|
|
980
|
+
"content-type": "application/json",
|
|
981
|
+
};
|
|
982
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/position-estimate";
|
|
983
|
+
let body;
|
|
984
|
+
body = JSON.stringify({
|
|
985
|
+
...(input.CellTowers != null && { CellTowers: serializeAws_restJson1CellTowers(input.CellTowers, context) }),
|
|
986
|
+
...(input.Gnss != null && { Gnss: serializeAws_restJson1Gnss(input.Gnss, context) }),
|
|
987
|
+
...(input.Ip != null && { Ip: serializeAws_restJson1Ip(input.Ip, context) }),
|
|
988
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
989
|
+
...(input.WiFiAccessPoints != null && {
|
|
990
|
+
WiFiAccessPoints: serializeAws_restJson1WiFiAccessPoints(input.WiFiAccessPoints, context),
|
|
991
|
+
}),
|
|
992
|
+
});
|
|
993
|
+
return new protocol_http_1.HttpRequest({
|
|
994
|
+
protocol,
|
|
995
|
+
hostname,
|
|
996
|
+
port,
|
|
997
|
+
method: "POST",
|
|
998
|
+
headers,
|
|
999
|
+
path: resolvedPath,
|
|
1000
|
+
body,
|
|
1001
|
+
});
|
|
1002
|
+
};
|
|
1003
|
+
exports.serializeAws_restJson1GetPositionEstimateCommand = serializeAws_restJson1GetPositionEstimateCommand;
|
|
974
1004
|
const serializeAws_restJson1GetResourceEventConfigurationCommand = async (input, context) => {
|
|
975
1005
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
976
1006
|
const headers = {};
|
|
977
1007
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
|
|
978
1008
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
979
1009
|
const query = map({
|
|
980
|
-
identifierType: [, input.IdentifierType],
|
|
1010
|
+
identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
|
|
981
1011
|
partnerType: [, input.PartnerType],
|
|
982
1012
|
});
|
|
983
1013
|
let body;
|
|
@@ -999,7 +1029,7 @@ const serializeAws_restJson1GetResourceLogLevelCommand = async (input, context)
|
|
|
999
1029
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
|
|
1000
1030
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1001
1031
|
const query = map({
|
|
1002
|
-
resourceType: [, input.ResourceType],
|
|
1032
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
1003
1033
|
});
|
|
1004
1034
|
let body;
|
|
1005
1035
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1014,6 +1044,27 @@ const serializeAws_restJson1GetResourceLogLevelCommand = async (input, context)
|
|
|
1014
1044
|
});
|
|
1015
1045
|
};
|
|
1016
1046
|
exports.serializeAws_restJson1GetResourceLogLevelCommand = serializeAws_restJson1GetResourceLogLevelCommand;
|
|
1047
|
+
const serializeAws_restJson1GetResourcePositionCommand = async (input, context) => {
|
|
1048
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1049
|
+
const headers = {};
|
|
1050
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}";
|
|
1051
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1052
|
+
const query = map({
|
|
1053
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
1054
|
+
});
|
|
1055
|
+
let body;
|
|
1056
|
+
return new protocol_http_1.HttpRequest({
|
|
1057
|
+
protocol,
|
|
1058
|
+
hostname,
|
|
1059
|
+
port,
|
|
1060
|
+
method: "GET",
|
|
1061
|
+
headers,
|
|
1062
|
+
path: resolvedPath,
|
|
1063
|
+
query,
|
|
1064
|
+
body,
|
|
1065
|
+
});
|
|
1066
|
+
};
|
|
1067
|
+
exports.serializeAws_restJson1GetResourcePositionCommand = serializeAws_restJson1GetResourcePositionCommand;
|
|
1017
1068
|
const serializeAws_restJson1GetServiceEndpointCommand = async (input, context) => {
|
|
1018
1069
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1019
1070
|
const headers = {};
|
|
@@ -1057,7 +1108,7 @@ const serializeAws_restJson1GetWirelessDeviceCommand = async (input, context) =>
|
|
|
1057
1108
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}";
|
|
1058
1109
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
1059
1110
|
const query = map({
|
|
1060
|
-
identifierType: [, input.IdentifierType],
|
|
1111
|
+
identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
|
|
1061
1112
|
});
|
|
1062
1113
|
let body;
|
|
1063
1114
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1096,7 +1147,7 @@ const serializeAws_restJson1GetWirelessGatewayCommand = async (input, context) =
|
|
|
1096
1147
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Identifier}";
|
|
1097
1148
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
1098
1149
|
const query = map({
|
|
1099
|
-
identifierType: [, input.IdentifierType],
|
|
1150
|
+
identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
|
|
1100
1151
|
});
|
|
1101
1152
|
let body;
|
|
1102
1153
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1245,7 +1296,7 @@ const serializeAws_restJson1ListEventConfigurationsCommand = async (input, conte
|
|
|
1245
1296
|
const headers = {};
|
|
1246
1297
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
|
|
1247
1298
|
const query = map({
|
|
1248
|
-
resourceType: [, input.ResourceType],
|
|
1299
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
1249
1300
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1250
1301
|
nextToken: [, input.NextToken],
|
|
1251
1302
|
});
|
|
@@ -1439,7 +1490,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1439
1490
|
const headers = {};
|
|
1440
1491
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1441
1492
|
const query = map({
|
|
1442
|
-
resourceArn: [, input.ResourceArn],
|
|
1493
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
|
|
1443
1494
|
});
|
|
1444
1495
|
let body;
|
|
1445
1496
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1533,7 +1584,7 @@ const serializeAws_restJson1PutPositionConfigurationCommand = async (input, cont
|
|
|
1533
1584
|
"/position-configurations/{ResourceIdentifier}";
|
|
1534
1585
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1535
1586
|
const query = map({
|
|
1536
|
-
resourceType: [, input.ResourceType],
|
|
1587
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
1537
1588
|
});
|
|
1538
1589
|
let body;
|
|
1539
1590
|
body = JSON.stringify({
|
|
@@ -1562,7 +1613,7 @@ const serializeAws_restJson1PutResourceLogLevelCommand = async (input, context)
|
|
|
1562
1613
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
|
|
1563
1614
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1564
1615
|
const query = map({
|
|
1565
|
-
resourceType: [, input.ResourceType],
|
|
1616
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
1566
1617
|
});
|
|
1567
1618
|
let body;
|
|
1568
1619
|
body = JSON.stringify({
|
|
@@ -1605,7 +1656,7 @@ const serializeAws_restJson1ResetResourceLogLevelCommand = async (input, context
|
|
|
1605
1656
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
|
|
1606
1657
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
1607
1658
|
const query = map({
|
|
1608
|
-
resourceType: [, input.ResourceType],
|
|
1659
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
1609
1660
|
});
|
|
1610
1661
|
let body;
|
|
1611
1662
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1768,7 +1819,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1768
1819
|
};
|
|
1769
1820
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1770
1821
|
const query = map({
|
|
1771
|
-
resourceArn: [, input.ResourceArn],
|
|
1822
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
|
|
1772
1823
|
});
|
|
1773
1824
|
let body;
|
|
1774
1825
|
body = JSON.stringify({
|
|
@@ -1808,8 +1859,11 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1808
1859
|
const headers = {};
|
|
1809
1860
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1810
1861
|
const query = map({
|
|
1811
|
-
resourceArn: [, input.ResourceArn],
|
|
1812
|
-
tagKeys: [
|
|
1862
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
|
|
1863
|
+
tagKeys: [
|
|
1864
|
+
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
1865
|
+
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
1866
|
+
],
|
|
1813
1867
|
});
|
|
1814
1868
|
let body;
|
|
1815
1869
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2005,7 +2059,7 @@ const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, context)
|
|
|
2005
2059
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
|
|
2006
2060
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
|
|
2007
2061
|
const query = map({
|
|
2008
|
-
partnerType: [, input.PartnerType],
|
|
2062
|
+
partnerType: [, (0, smithy_client_1.expectNonNull)(input.PartnerType, `PartnerType`)],
|
|
2009
2063
|
});
|
|
2010
2064
|
let body;
|
|
2011
2065
|
body = JSON.stringify({
|
|
@@ -2031,7 +2085,7 @@ const serializeAws_restJson1UpdatePositionCommand = async (input, context) => {
|
|
|
2031
2085
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
2032
2086
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
2033
2087
|
const query = map({
|
|
2034
|
-
resourceType: [, input.ResourceType],
|
|
2088
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
2035
2089
|
});
|
|
2036
2090
|
let body;
|
|
2037
2091
|
body = JSON.stringify({
|
|
@@ -2057,7 +2111,7 @@ const serializeAws_restJson1UpdateResourceEventConfigurationCommand = async (inp
|
|
|
2057
2111
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
|
|
2058
2112
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
2059
2113
|
const query = map({
|
|
2060
|
-
identifierType: [, input.IdentifierType],
|
|
2114
|
+
identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
|
|
2061
2115
|
partnerType: [, input.PartnerType],
|
|
2062
2116
|
});
|
|
2063
2117
|
let body;
|
|
@@ -2088,6 +2142,32 @@ const serializeAws_restJson1UpdateResourceEventConfigurationCommand = async (inp
|
|
|
2088
2142
|
});
|
|
2089
2143
|
};
|
|
2090
2144
|
exports.serializeAws_restJson1UpdateResourceEventConfigurationCommand = serializeAws_restJson1UpdateResourceEventConfigurationCommand;
|
|
2145
|
+
const serializeAws_restJson1UpdateResourcePositionCommand = async (input, context) => {
|
|
2146
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2147
|
+
const headers = {
|
|
2148
|
+
"content-type": "application/octet-stream",
|
|
2149
|
+
};
|
|
2150
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}";
|
|
2151
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
2152
|
+
const query = map({
|
|
2153
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
|
|
2154
|
+
});
|
|
2155
|
+
let body;
|
|
2156
|
+
if (input.GeoJsonPayload !== undefined) {
|
|
2157
|
+
body = input.GeoJsonPayload;
|
|
2158
|
+
}
|
|
2159
|
+
return new protocol_http_1.HttpRequest({
|
|
2160
|
+
protocol,
|
|
2161
|
+
hostname,
|
|
2162
|
+
port,
|
|
2163
|
+
method: "PATCH",
|
|
2164
|
+
headers,
|
|
2165
|
+
path: resolvedPath,
|
|
2166
|
+
query,
|
|
2167
|
+
body,
|
|
2168
|
+
});
|
|
2169
|
+
};
|
|
2170
|
+
exports.serializeAws_restJson1UpdateResourcePositionCommand = serializeAws_restJson1UpdateResourcePositionCommand;
|
|
2091
2171
|
const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, context) => {
|
|
2092
2172
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2093
2173
|
const headers = {
|
|
@@ -2101,6 +2181,7 @@ const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, context)
|
|
|
2101
2181
|
...(input.DestinationName != null && { DestinationName: input.DestinationName }),
|
|
2102
2182
|
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) }),
|
|
2103
2183
|
...(input.Name != null && { Name: input.Name }),
|
|
2184
|
+
...(input.Positioning != null && { Positioning: input.Positioning }),
|
|
2104
2185
|
});
|
|
2105
2186
|
return new protocol_http_1.HttpRequest({
|
|
2106
2187
|
protocol,
|
|
@@ -4442,6 +4523,50 @@ const deserializeAws_restJson1GetPositionConfigurationCommandError = async (outp
|
|
|
4442
4523
|
});
|
|
4443
4524
|
}
|
|
4444
4525
|
};
|
|
4526
|
+
const deserializeAws_restJson1GetPositionEstimateCommand = async (output, context) => {
|
|
4527
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4528
|
+
return deserializeAws_restJson1GetPositionEstimateCommandError(output, context);
|
|
4529
|
+
}
|
|
4530
|
+
const contents = map({
|
|
4531
|
+
$metadata: deserializeMetadata(output),
|
|
4532
|
+
});
|
|
4533
|
+
const data = await collectBody(output.body, context);
|
|
4534
|
+
contents.GeoJsonPayload = data;
|
|
4535
|
+
return contents;
|
|
4536
|
+
};
|
|
4537
|
+
exports.deserializeAws_restJson1GetPositionEstimateCommand = deserializeAws_restJson1GetPositionEstimateCommand;
|
|
4538
|
+
const deserializeAws_restJson1GetPositionEstimateCommandError = async (output, context) => {
|
|
4539
|
+
const parsedOutput = {
|
|
4540
|
+
...output,
|
|
4541
|
+
body: await parseErrorBody(output.body, context),
|
|
4542
|
+
};
|
|
4543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4544
|
+
switch (errorCode) {
|
|
4545
|
+
case "AccessDeniedException":
|
|
4546
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4547
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4548
|
+
case "InternalServerException":
|
|
4549
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4550
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4551
|
+
case "ResourceNotFoundException":
|
|
4552
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4553
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4554
|
+
case "ThrottlingException":
|
|
4555
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4556
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4557
|
+
case "ValidationException":
|
|
4558
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
4559
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4560
|
+
default:
|
|
4561
|
+
const parsedBody = parsedOutput.body;
|
|
4562
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4563
|
+
output,
|
|
4564
|
+
parsedBody,
|
|
4565
|
+
exceptionCtor: IoTWirelessServiceException_1.IoTWirelessServiceException,
|
|
4566
|
+
errorCode,
|
|
4567
|
+
});
|
|
4568
|
+
}
|
|
4569
|
+
};
|
|
4445
4570
|
const deserializeAws_restJson1GetResourceEventConfigurationCommand = async (output, context) => {
|
|
4446
4571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4447
4572
|
return deserializeAws_restJson1GetResourceEventConfigurationCommandError(output, context);
|
|
@@ -4546,6 +4671,50 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
|
|
|
4546
4671
|
});
|
|
4547
4672
|
}
|
|
4548
4673
|
};
|
|
4674
|
+
const deserializeAws_restJson1GetResourcePositionCommand = async (output, context) => {
|
|
4675
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4676
|
+
return deserializeAws_restJson1GetResourcePositionCommandError(output, context);
|
|
4677
|
+
}
|
|
4678
|
+
const contents = map({
|
|
4679
|
+
$metadata: deserializeMetadata(output),
|
|
4680
|
+
});
|
|
4681
|
+
const data = await collectBody(output.body, context);
|
|
4682
|
+
contents.GeoJsonPayload = data;
|
|
4683
|
+
return contents;
|
|
4684
|
+
};
|
|
4685
|
+
exports.deserializeAws_restJson1GetResourcePositionCommand = deserializeAws_restJson1GetResourcePositionCommand;
|
|
4686
|
+
const deserializeAws_restJson1GetResourcePositionCommandError = async (output, context) => {
|
|
4687
|
+
const parsedOutput = {
|
|
4688
|
+
...output,
|
|
4689
|
+
body: await parseErrorBody(output.body, context),
|
|
4690
|
+
};
|
|
4691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4692
|
+
switch (errorCode) {
|
|
4693
|
+
case "AccessDeniedException":
|
|
4694
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4695
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4696
|
+
case "InternalServerException":
|
|
4697
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4698
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4699
|
+
case "ResourceNotFoundException":
|
|
4700
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4701
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4702
|
+
case "ThrottlingException":
|
|
4703
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4704
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4705
|
+
case "ValidationException":
|
|
4706
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
4707
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4708
|
+
default:
|
|
4709
|
+
const parsedBody = parsedOutput.body;
|
|
4710
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4711
|
+
output,
|
|
4712
|
+
parsedBody,
|
|
4713
|
+
exceptionCtor: IoTWirelessServiceException_1.IoTWirelessServiceException,
|
|
4714
|
+
errorCode,
|
|
4715
|
+
});
|
|
4716
|
+
}
|
|
4717
|
+
};
|
|
4549
4718
|
const deserializeAws_restJson1GetServiceEndpointCommand = async (output, context) => {
|
|
4550
4719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4551
4720
|
return deserializeAws_restJson1GetServiceEndpointCommandError(output, context);
|
|
@@ -4676,6 +4845,9 @@ const deserializeAws_restJson1GetWirelessDeviceCommand = async (output, context)
|
|
|
4676
4845
|
if (data.Name != null) {
|
|
4677
4846
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
4678
4847
|
}
|
|
4848
|
+
if (data.Positioning != null) {
|
|
4849
|
+
contents.Positioning = (0, smithy_client_1.expectString)(data.Positioning);
|
|
4850
|
+
}
|
|
4679
4851
|
if (data.Sidewalk != null) {
|
|
4680
4852
|
contents.Sidewalk = deserializeAws_restJson1SidewalkDevice(data.Sidewalk, context);
|
|
4681
4853
|
}
|
|
@@ -6765,6 +6937,49 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
|
|
|
6765
6937
|
});
|
|
6766
6938
|
}
|
|
6767
6939
|
};
|
|
6940
|
+
const deserializeAws_restJson1UpdateResourcePositionCommand = async (output, context) => {
|
|
6941
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6942
|
+
return deserializeAws_restJson1UpdateResourcePositionCommandError(output, context);
|
|
6943
|
+
}
|
|
6944
|
+
const contents = map({
|
|
6945
|
+
$metadata: deserializeMetadata(output),
|
|
6946
|
+
});
|
|
6947
|
+
await collectBody(output.body, context);
|
|
6948
|
+
return contents;
|
|
6949
|
+
};
|
|
6950
|
+
exports.deserializeAws_restJson1UpdateResourcePositionCommand = deserializeAws_restJson1UpdateResourcePositionCommand;
|
|
6951
|
+
const deserializeAws_restJson1UpdateResourcePositionCommandError = async (output, context) => {
|
|
6952
|
+
const parsedOutput = {
|
|
6953
|
+
...output,
|
|
6954
|
+
body: await parseErrorBody(output.body, context),
|
|
6955
|
+
};
|
|
6956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6957
|
+
switch (errorCode) {
|
|
6958
|
+
case "AccessDeniedException":
|
|
6959
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6960
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6961
|
+
case "InternalServerException":
|
|
6962
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6963
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6964
|
+
case "ResourceNotFoundException":
|
|
6965
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6966
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6967
|
+
case "ThrottlingException":
|
|
6968
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6969
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6970
|
+
case "ValidationException":
|
|
6971
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
6972
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6973
|
+
default:
|
|
6974
|
+
const parsedBody = parsedOutput.body;
|
|
6975
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6976
|
+
output,
|
|
6977
|
+
parsedBody,
|
|
6978
|
+
exceptionCtor: IoTWirelessServiceException_1.IoTWirelessServiceException,
|
|
6979
|
+
errorCode,
|
|
6980
|
+
});
|
|
6981
|
+
}
|
|
6982
|
+
};
|
|
6768
6983
|
const deserializeAws_restJson1UpdateWirelessDeviceCommand = async (output, context) => {
|
|
6769
6984
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6770
6985
|
return deserializeAws_restJson1UpdateWirelessDeviceCommandError(output, context);
|
|
@@ -6933,7 +7148,7 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
6933
7148
|
if (data.ResourceName != null) {
|
|
6934
7149
|
contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
|
|
6935
7150
|
}
|
|
6936
|
-
const exception = new
|
|
7151
|
+
const exception = new models_1_1.TooManyTagsException({
|
|
6937
7152
|
$metadata: deserializeMetadata(parsedOutput),
|
|
6938
7153
|
...contents,
|
|
6939
7154
|
});
|
|
@@ -6969,6 +7184,27 @@ const serializeAws_restJson1AbpV1_1 = (input, context) => {
|
|
|
6969
7184
|
}),
|
|
6970
7185
|
};
|
|
6971
7186
|
};
|
|
7187
|
+
const serializeAws_restJson1ApplicationConfig = (input, context) => {
|
|
7188
|
+
return {
|
|
7189
|
+
...(input.DestinationName != null && { DestinationName: input.DestinationName }),
|
|
7190
|
+
...(input.FPort != null && { FPort: input.FPort }),
|
|
7191
|
+
...(input.Type != null && { Type: input.Type }),
|
|
7192
|
+
};
|
|
7193
|
+
};
|
|
7194
|
+
const serializeAws_restJson1Applications = (input, context) => {
|
|
7195
|
+
return input
|
|
7196
|
+
.filter((e) => e != null)
|
|
7197
|
+
.map((entry) => {
|
|
7198
|
+
return serializeAws_restJson1ApplicationConfig(entry, context);
|
|
7199
|
+
});
|
|
7200
|
+
};
|
|
7201
|
+
const serializeAws_restJson1AssistPosition = (input, context) => {
|
|
7202
|
+
return input
|
|
7203
|
+
.filter((e) => e != null)
|
|
7204
|
+
.map((entry) => {
|
|
7205
|
+
return (0, smithy_client_1.serializeFloat)(entry);
|
|
7206
|
+
});
|
|
7207
|
+
};
|
|
6972
7208
|
const serializeAws_restJson1Beaconing = (input, context) => {
|
|
6973
7209
|
return {
|
|
6974
7210
|
...(input.DataRate != null && { DataRate: input.DataRate }),
|
|
@@ -6984,6 +7220,56 @@ const serializeAws_restJson1BeaconingFrequencies = (input, context) => {
|
|
|
6984
7220
|
return entry;
|
|
6985
7221
|
});
|
|
6986
7222
|
};
|
|
7223
|
+
const serializeAws_restJson1CdmaList = (input, context) => {
|
|
7224
|
+
return input
|
|
7225
|
+
.filter((e) => e != null)
|
|
7226
|
+
.map((entry) => {
|
|
7227
|
+
return serializeAws_restJson1CdmaObj(entry, context);
|
|
7228
|
+
});
|
|
7229
|
+
};
|
|
7230
|
+
const serializeAws_restJson1CdmaLocalId = (input, context) => {
|
|
7231
|
+
return {
|
|
7232
|
+
...(input.CdmaChannel != null && { CdmaChannel: input.CdmaChannel }),
|
|
7233
|
+
...(input.PnOffset != null && { PnOffset: input.PnOffset }),
|
|
7234
|
+
};
|
|
7235
|
+
};
|
|
7236
|
+
const serializeAws_restJson1CdmaNmrList = (input, context) => {
|
|
7237
|
+
return input
|
|
7238
|
+
.filter((e) => e != null)
|
|
7239
|
+
.map((entry) => {
|
|
7240
|
+
return serializeAws_restJson1CdmaNmrObj(entry, context);
|
|
7241
|
+
});
|
|
7242
|
+
};
|
|
7243
|
+
const serializeAws_restJson1CdmaNmrObj = (input, context) => {
|
|
7244
|
+
return {
|
|
7245
|
+
...(input.BaseStationId != null && { BaseStationId: input.BaseStationId }),
|
|
7246
|
+
...(input.CdmaChannel != null && { CdmaChannel: input.CdmaChannel }),
|
|
7247
|
+
...(input.PilotPower != null && { PilotPower: input.PilotPower }),
|
|
7248
|
+
...(input.PnOffset != null && { PnOffset: input.PnOffset }),
|
|
7249
|
+
};
|
|
7250
|
+
};
|
|
7251
|
+
const serializeAws_restJson1CdmaObj = (input, context) => {
|
|
7252
|
+
return {
|
|
7253
|
+
...(input.BaseLat != null && { BaseLat: (0, smithy_client_1.serializeFloat)(input.BaseLat) }),
|
|
7254
|
+
...(input.BaseLng != null && { BaseLng: (0, smithy_client_1.serializeFloat)(input.BaseLng) }),
|
|
7255
|
+
...(input.BaseStationId != null && { BaseStationId: input.BaseStationId }),
|
|
7256
|
+
...(input.CdmaLocalId != null && { CdmaLocalId: serializeAws_restJson1CdmaLocalId(input.CdmaLocalId, context) }),
|
|
7257
|
+
...(input.CdmaNmr != null && { CdmaNmr: serializeAws_restJson1CdmaNmrList(input.CdmaNmr, context) }),
|
|
7258
|
+
...(input.NetworkId != null && { NetworkId: input.NetworkId }),
|
|
7259
|
+
...(input.PilotPower != null && { PilotPower: input.PilotPower }),
|
|
7260
|
+
...(input.RegistrationZone != null && { RegistrationZone: input.RegistrationZone }),
|
|
7261
|
+
...(input.SystemId != null && { SystemId: input.SystemId }),
|
|
7262
|
+
};
|
|
7263
|
+
};
|
|
7264
|
+
const serializeAws_restJson1CellTowers = (input, context) => {
|
|
7265
|
+
return {
|
|
7266
|
+
...(input.Cdma != null && { Cdma: serializeAws_restJson1CdmaList(input.Cdma, context) }),
|
|
7267
|
+
...(input.Gsm != null && { Gsm: serializeAws_restJson1GsmList(input.Gsm, context) }),
|
|
7268
|
+
...(input.Lte != null && { Lte: serializeAws_restJson1LteList(input.Lte, context) }),
|
|
7269
|
+
...(input.Tdscdma != null && { Tdscdma: serializeAws_restJson1TdscdmaList(input.Tdscdma, context) }),
|
|
7270
|
+
...(input.Wcdma != null && { Wcdma: serializeAws_restJson1WcdmaList(input.Wcdma, context) }),
|
|
7271
|
+
};
|
|
7272
|
+
};
|
|
6987
7273
|
const serializeAws_restJson1ConnectionStatusEventConfiguration = (input, context) => {
|
|
6988
7274
|
return {
|
|
6989
7275
|
...(input.LoRaWAN != null && {
|
|
@@ -7025,6 +7311,9 @@ const serializeAws_restJson1FactoryPresetFreqsList = (input, context) => {
|
|
|
7025
7311
|
};
|
|
7026
7312
|
const serializeAws_restJson1FPorts = (input, context) => {
|
|
7027
7313
|
return {
|
|
7314
|
+
...(input.Applications != null && {
|
|
7315
|
+
Applications: serializeAws_restJson1Applications(input.Applications, context),
|
|
7316
|
+
}),
|
|
7028
7317
|
...(input.ClockSync != null && { ClockSync: input.ClockSync }),
|
|
7029
7318
|
...(input.Fuota != null && { Fuota: input.Fuota }),
|
|
7030
7319
|
...(input.Multicast != null && { Multicast: input.Multicast }),
|
|
@@ -7044,6 +7333,71 @@ const serializeAws_restJson1GatewayListItem = (input, context) => {
|
|
|
7044
7333
|
...(input.GatewayId != null && { GatewayId: input.GatewayId }),
|
|
7045
7334
|
};
|
|
7046
7335
|
};
|
|
7336
|
+
const serializeAws_restJson1GlobalIdentity = (input, context) => {
|
|
7337
|
+
return {
|
|
7338
|
+
...(input.GeranCid != null && { GeranCid: input.GeranCid }),
|
|
7339
|
+
...(input.Lac != null && { Lac: input.Lac }),
|
|
7340
|
+
};
|
|
7341
|
+
};
|
|
7342
|
+
const serializeAws_restJson1Gnss = (input, context) => {
|
|
7343
|
+
return {
|
|
7344
|
+
...(input.AssistAltitude != null && { AssistAltitude: (0, smithy_client_1.serializeFloat)(input.AssistAltitude) }),
|
|
7345
|
+
...(input.AssistPosition != null && {
|
|
7346
|
+
AssistPosition: serializeAws_restJson1AssistPosition(input.AssistPosition, context),
|
|
7347
|
+
}),
|
|
7348
|
+
...(input.CaptureTime != null && { CaptureTime: (0, smithy_client_1.serializeFloat)(input.CaptureTime) }),
|
|
7349
|
+
...(input.CaptureTimeAccuracy != null && { CaptureTimeAccuracy: (0, smithy_client_1.serializeFloat)(input.CaptureTimeAccuracy) }),
|
|
7350
|
+
...(input.Payload != null && { Payload: input.Payload }),
|
|
7351
|
+
...(input.Use2DSolver != null && { Use2DSolver: input.Use2DSolver }),
|
|
7352
|
+
};
|
|
7353
|
+
};
|
|
7354
|
+
const serializeAws_restJson1GsmList = (input, context) => {
|
|
7355
|
+
return input
|
|
7356
|
+
.filter((e) => e != null)
|
|
7357
|
+
.map((entry) => {
|
|
7358
|
+
return serializeAws_restJson1GsmObj(entry, context);
|
|
7359
|
+
});
|
|
7360
|
+
};
|
|
7361
|
+
const serializeAws_restJson1GsmLocalId = (input, context) => {
|
|
7362
|
+
return {
|
|
7363
|
+
...(input.Bcch != null && { Bcch: input.Bcch }),
|
|
7364
|
+
...(input.Bsic != null && { Bsic: input.Bsic }),
|
|
7365
|
+
};
|
|
7366
|
+
};
|
|
7367
|
+
const serializeAws_restJson1GsmNmrList = (input, context) => {
|
|
7368
|
+
return input
|
|
7369
|
+
.filter((e) => e != null)
|
|
7370
|
+
.map((entry) => {
|
|
7371
|
+
return serializeAws_restJson1GsmNmrObj(entry, context);
|
|
7372
|
+
});
|
|
7373
|
+
};
|
|
7374
|
+
const serializeAws_restJson1GsmNmrObj = (input, context) => {
|
|
7375
|
+
return {
|
|
7376
|
+
...(input.Bcch != null && { Bcch: input.Bcch }),
|
|
7377
|
+
...(input.Bsic != null && { Bsic: input.Bsic }),
|
|
7378
|
+
...(input.GlobalIdentity != null && {
|
|
7379
|
+
GlobalIdentity: serializeAws_restJson1GlobalIdentity(input.GlobalIdentity, context),
|
|
7380
|
+
}),
|
|
7381
|
+
...(input.RxLevel != null && { RxLevel: input.RxLevel }),
|
|
7382
|
+
};
|
|
7383
|
+
};
|
|
7384
|
+
const serializeAws_restJson1GsmObj = (input, context) => {
|
|
7385
|
+
return {
|
|
7386
|
+
...(input.GeranCid != null && { GeranCid: input.GeranCid }),
|
|
7387
|
+
...(input.GsmLocalId != null && { GsmLocalId: serializeAws_restJson1GsmLocalId(input.GsmLocalId, context) }),
|
|
7388
|
+
...(input.GsmNmr != null && { GsmNmr: serializeAws_restJson1GsmNmrList(input.GsmNmr, context) }),
|
|
7389
|
+
...(input.GsmTimingAdvance != null && { GsmTimingAdvance: input.GsmTimingAdvance }),
|
|
7390
|
+
...(input.Lac != null && { Lac: input.Lac }),
|
|
7391
|
+
...(input.Mcc != null && { Mcc: input.Mcc }),
|
|
7392
|
+
...(input.Mnc != null && { Mnc: input.Mnc }),
|
|
7393
|
+
...(input.RxLevel != null && { RxLevel: input.RxLevel }),
|
|
7394
|
+
};
|
|
7395
|
+
};
|
|
7396
|
+
const serializeAws_restJson1Ip = (input, context) => {
|
|
7397
|
+
return {
|
|
7398
|
+
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
7399
|
+
};
|
|
7400
|
+
};
|
|
7047
7401
|
const serializeAws_restJson1JoinEuiFilters = (input, context) => {
|
|
7048
7402
|
return input
|
|
7049
7403
|
.filter((e) => e != null)
|
|
@@ -7218,6 +7572,49 @@ const serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = (input, context) =>
|
|
|
7218
7572
|
}),
|
|
7219
7573
|
};
|
|
7220
7574
|
};
|
|
7575
|
+
const serializeAws_restJson1LteList = (input, context) => {
|
|
7576
|
+
return input
|
|
7577
|
+
.filter((e) => e != null)
|
|
7578
|
+
.map((entry) => {
|
|
7579
|
+
return serializeAws_restJson1LteObj(entry, context);
|
|
7580
|
+
});
|
|
7581
|
+
};
|
|
7582
|
+
const serializeAws_restJson1LteLocalId = (input, context) => {
|
|
7583
|
+
return {
|
|
7584
|
+
...(input.Earfcn != null && { Earfcn: input.Earfcn }),
|
|
7585
|
+
...(input.Pci != null && { Pci: input.Pci }),
|
|
7586
|
+
};
|
|
7587
|
+
};
|
|
7588
|
+
const serializeAws_restJson1LteNmrList = (input, context) => {
|
|
7589
|
+
return input
|
|
7590
|
+
.filter((e) => e != null)
|
|
7591
|
+
.map((entry) => {
|
|
7592
|
+
return serializeAws_restJson1LteNmrObj(entry, context);
|
|
7593
|
+
});
|
|
7594
|
+
};
|
|
7595
|
+
const serializeAws_restJson1LteNmrObj = (input, context) => {
|
|
7596
|
+
return {
|
|
7597
|
+
...(input.Earfcn != null && { Earfcn: input.Earfcn }),
|
|
7598
|
+
...(input.EutranCid != null && { EutranCid: input.EutranCid }),
|
|
7599
|
+
...(input.Pci != null && { Pci: input.Pci }),
|
|
7600
|
+
...(input.Rsrp != null && { Rsrp: input.Rsrp }),
|
|
7601
|
+
...(input.Rsrq != null && { Rsrq: (0, smithy_client_1.serializeFloat)(input.Rsrq) }),
|
|
7602
|
+
};
|
|
7603
|
+
};
|
|
7604
|
+
const serializeAws_restJson1LteObj = (input, context) => {
|
|
7605
|
+
return {
|
|
7606
|
+
...(input.EutranCid != null && { EutranCid: input.EutranCid }),
|
|
7607
|
+
...(input.LteLocalId != null && { LteLocalId: serializeAws_restJson1LteLocalId(input.LteLocalId, context) }),
|
|
7608
|
+
...(input.LteNmr != null && { LteNmr: serializeAws_restJson1LteNmrList(input.LteNmr, context) }),
|
|
7609
|
+
...(input.LteTimingAdvance != null && { LteTimingAdvance: input.LteTimingAdvance }),
|
|
7610
|
+
...(input.Mcc != null && { Mcc: input.Mcc }),
|
|
7611
|
+
...(input.Mnc != null && { Mnc: input.Mnc }),
|
|
7612
|
+
...(input.NrCapable != null && { NrCapable: input.NrCapable }),
|
|
7613
|
+
...(input.Rsrp != null && { Rsrp: input.Rsrp }),
|
|
7614
|
+
...(input.Rsrq != null && { Rsrq: (0, smithy_client_1.serializeFloat)(input.Rsrq) }),
|
|
7615
|
+
...(input.Tac != null && { Tac: input.Tac }),
|
|
7616
|
+
};
|
|
7617
|
+
};
|
|
7221
7618
|
const serializeAws_restJson1MessageDeliveryStatusEventConfiguration = (input, context) => {
|
|
7222
7619
|
return {
|
|
7223
7620
|
...(input.Sidewalk != null && {
|
|
@@ -7370,6 +7767,50 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
7370
7767
|
return serializeAws_restJson1Tag(entry, context);
|
|
7371
7768
|
});
|
|
7372
7769
|
};
|
|
7770
|
+
const serializeAws_restJson1TdscdmaList = (input, context) => {
|
|
7771
|
+
return input
|
|
7772
|
+
.filter((e) => e != null)
|
|
7773
|
+
.map((entry) => {
|
|
7774
|
+
return serializeAws_restJson1TdscdmaObj(entry, context);
|
|
7775
|
+
});
|
|
7776
|
+
};
|
|
7777
|
+
const serializeAws_restJson1TdscdmaLocalId = (input, context) => {
|
|
7778
|
+
return {
|
|
7779
|
+
...(input.CellParams != null && { CellParams: input.CellParams }),
|
|
7780
|
+
...(input.Uarfcn != null && { Uarfcn: input.Uarfcn }),
|
|
7781
|
+
};
|
|
7782
|
+
};
|
|
7783
|
+
const serializeAws_restJson1TdscdmaNmrList = (input, context) => {
|
|
7784
|
+
return input
|
|
7785
|
+
.filter((e) => e != null)
|
|
7786
|
+
.map((entry) => {
|
|
7787
|
+
return serializeAws_restJson1TdscdmaNmrObj(entry, context);
|
|
7788
|
+
});
|
|
7789
|
+
};
|
|
7790
|
+
const serializeAws_restJson1TdscdmaNmrObj = (input, context) => {
|
|
7791
|
+
return {
|
|
7792
|
+
...(input.CellParams != null && { CellParams: input.CellParams }),
|
|
7793
|
+
...(input.PathLoss != null && { PathLoss: input.PathLoss }),
|
|
7794
|
+
...(input.Rscp != null && { Rscp: input.Rscp }),
|
|
7795
|
+
...(input.Uarfcn != null && { Uarfcn: input.Uarfcn }),
|
|
7796
|
+
...(input.UtranCid != null && { UtranCid: input.UtranCid }),
|
|
7797
|
+
};
|
|
7798
|
+
};
|
|
7799
|
+
const serializeAws_restJson1TdscdmaObj = (input, context) => {
|
|
7800
|
+
return {
|
|
7801
|
+
...(input.Lac != null && { Lac: input.Lac }),
|
|
7802
|
+
...(input.Mcc != null && { Mcc: input.Mcc }),
|
|
7803
|
+
...(input.Mnc != null && { Mnc: input.Mnc }),
|
|
7804
|
+
...(input.PathLoss != null && { PathLoss: input.PathLoss }),
|
|
7805
|
+
...(input.Rscp != null && { Rscp: input.Rscp }),
|
|
7806
|
+
...(input.TdscdmaLocalId != null && {
|
|
7807
|
+
TdscdmaLocalId: serializeAws_restJson1TdscdmaLocalId(input.TdscdmaLocalId, context),
|
|
7808
|
+
}),
|
|
7809
|
+
...(input.TdscdmaNmr != null && { TdscdmaNmr: serializeAws_restJson1TdscdmaNmrList(input.TdscdmaNmr, context) }),
|
|
7810
|
+
...(input.TdscdmaTimingAdvance != null && { TdscdmaTimingAdvance: input.TdscdmaTimingAdvance }),
|
|
7811
|
+
...(input.UtranCid != null && { UtranCid: input.UtranCid }),
|
|
7812
|
+
};
|
|
7813
|
+
};
|
|
7373
7814
|
const serializeAws_restJson1TraceContent = (input, context) => {
|
|
7374
7815
|
return {
|
|
7375
7816
|
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
@@ -7388,6 +7829,9 @@ const serializeAws_restJson1UpdateAbpV1_1 = (input, context) => {
|
|
|
7388
7829
|
};
|
|
7389
7830
|
const serializeAws_restJson1UpdateFPorts = (input, context) => {
|
|
7390
7831
|
return {
|
|
7832
|
+
...(input.Applications != null && {
|
|
7833
|
+
Applications: serializeAws_restJson1Applications(input.Applications, context),
|
|
7834
|
+
}),
|
|
7391
7835
|
...(input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
|
|
7392
7836
|
};
|
|
7393
7837
|
};
|
|
@@ -7400,6 +7844,62 @@ const serializeAws_restJson1UpdateWirelessGatewayTaskCreate = (input, context) =
|
|
|
7400
7844
|
...(input.UpdateDataSource != null && { UpdateDataSource: input.UpdateDataSource }),
|
|
7401
7845
|
};
|
|
7402
7846
|
};
|
|
7847
|
+
const serializeAws_restJson1WcdmaList = (input, context) => {
|
|
7848
|
+
return input
|
|
7849
|
+
.filter((e) => e != null)
|
|
7850
|
+
.map((entry) => {
|
|
7851
|
+
return serializeAws_restJson1WcdmaObj(entry, context);
|
|
7852
|
+
});
|
|
7853
|
+
};
|
|
7854
|
+
const serializeAws_restJson1WcdmaLocalId = (input, context) => {
|
|
7855
|
+
return {
|
|
7856
|
+
...(input.Psc != null && { Psc: input.Psc }),
|
|
7857
|
+
...(input.Uarfcndl != null && { Uarfcndl: input.Uarfcndl }),
|
|
7858
|
+
};
|
|
7859
|
+
};
|
|
7860
|
+
const serializeAws_restJson1WcdmaNmrList = (input, context) => {
|
|
7861
|
+
return input
|
|
7862
|
+
.filter((e) => e != null)
|
|
7863
|
+
.map((entry) => {
|
|
7864
|
+
return serializeAws_restJson1WcdmaNmrObj(entry, context);
|
|
7865
|
+
});
|
|
7866
|
+
};
|
|
7867
|
+
const serializeAws_restJson1WcdmaNmrObj = (input, context) => {
|
|
7868
|
+
return {
|
|
7869
|
+
...(input.PathLoss != null && { PathLoss: input.PathLoss }),
|
|
7870
|
+
...(input.Psc != null && { Psc: input.Psc }),
|
|
7871
|
+
...(input.Rscp != null && { Rscp: input.Rscp }),
|
|
7872
|
+
...(input.Uarfcndl != null && { Uarfcndl: input.Uarfcndl }),
|
|
7873
|
+
...(input.UtranCid != null && { UtranCid: input.UtranCid }),
|
|
7874
|
+
};
|
|
7875
|
+
};
|
|
7876
|
+
const serializeAws_restJson1WcdmaObj = (input, context) => {
|
|
7877
|
+
return {
|
|
7878
|
+
...(input.Lac != null && { Lac: input.Lac }),
|
|
7879
|
+
...(input.Mcc != null && { Mcc: input.Mcc }),
|
|
7880
|
+
...(input.Mnc != null && { Mnc: input.Mnc }),
|
|
7881
|
+
...(input.PathLoss != null && { PathLoss: input.PathLoss }),
|
|
7882
|
+
...(input.Rscp != null && { Rscp: input.Rscp }),
|
|
7883
|
+
...(input.UtranCid != null && { UtranCid: input.UtranCid }),
|
|
7884
|
+
...(input.WcdmaLocalId != null && {
|
|
7885
|
+
WcdmaLocalId: serializeAws_restJson1WcdmaLocalId(input.WcdmaLocalId, context),
|
|
7886
|
+
}),
|
|
7887
|
+
...(input.WcdmaNmr != null && { WcdmaNmr: serializeAws_restJson1WcdmaNmrList(input.WcdmaNmr, context) }),
|
|
7888
|
+
};
|
|
7889
|
+
};
|
|
7890
|
+
const serializeAws_restJson1WiFiAccessPoint = (input, context) => {
|
|
7891
|
+
return {
|
|
7892
|
+
...(input.MacAddress != null && { MacAddress: input.MacAddress }),
|
|
7893
|
+
...(input.Rss != null && { Rss: input.Rss }),
|
|
7894
|
+
};
|
|
7895
|
+
};
|
|
7896
|
+
const serializeAws_restJson1WiFiAccessPoints = (input, context) => {
|
|
7897
|
+
return input
|
|
7898
|
+
.filter((e) => e != null)
|
|
7899
|
+
.map((entry) => {
|
|
7900
|
+
return serializeAws_restJson1WiFiAccessPoint(entry, context);
|
|
7901
|
+
});
|
|
7902
|
+
};
|
|
7403
7903
|
const serializeAws_restJson1WirelessDeviceEventLogOption = (input, context) => {
|
|
7404
7904
|
return {
|
|
7405
7905
|
...(input.Event != null && { Event: input.Event }),
|
|
@@ -7502,6 +8002,24 @@ const deserializeAws_restJson1Accuracy = (output, context) => {
|
|
|
7502
8002
|
VerticalAccuracy: (0, smithy_client_1.limitedParseFloat32)(output.VerticalAccuracy),
|
|
7503
8003
|
};
|
|
7504
8004
|
};
|
|
8005
|
+
const deserializeAws_restJson1ApplicationConfig = (output, context) => {
|
|
8006
|
+
return {
|
|
8007
|
+
DestinationName: (0, smithy_client_1.expectString)(output.DestinationName),
|
|
8008
|
+
FPort: (0, smithy_client_1.expectInt32)(output.FPort),
|
|
8009
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
8010
|
+
};
|
|
8011
|
+
};
|
|
8012
|
+
const deserializeAws_restJson1Applications = (output, context) => {
|
|
8013
|
+
const retVal = (output || [])
|
|
8014
|
+
.filter((e) => e != null)
|
|
8015
|
+
.map((entry) => {
|
|
8016
|
+
if (entry === null) {
|
|
8017
|
+
return null;
|
|
8018
|
+
}
|
|
8019
|
+
return deserializeAws_restJson1ApplicationConfig(entry, context);
|
|
8020
|
+
});
|
|
8021
|
+
return retVal;
|
|
8022
|
+
};
|
|
7505
8023
|
const deserializeAws_restJson1Beaconing = (output, context) => {
|
|
7506
8024
|
return {
|
|
7507
8025
|
DataRate: (0, smithy_client_1.expectInt32)(output.DataRate),
|
|
@@ -7677,6 +8195,7 @@ const deserializeAws_restJson1FactoryPresetFreqsList = (output, context) => {
|
|
|
7677
8195
|
};
|
|
7678
8196
|
const deserializeAws_restJson1FPorts = (output, context) => {
|
|
7679
8197
|
return {
|
|
8198
|
+
Applications: output.Applications != null ? deserializeAws_restJson1Applications(output.Applications, context) : undefined,
|
|
7680
8199
|
ClockSync: (0, smithy_client_1.expectInt32)(output.ClockSync),
|
|
7681
8200
|
Fuota: (0, smithy_client_1.expectInt32)(output.Fuota),
|
|
7682
8201
|
Multicast: (0, smithy_client_1.expectInt32)(output.Multicast),
|