@aws-sdk/client-iot-wireless 3.121.0 → 3.125.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 +11 -0
- package/dist-cjs/IoTWireless.js +75 -0
- package/dist-cjs/commands/GetPositionCommand.js +36 -0
- package/dist-cjs/commands/GetPositionConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListPositionConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/PutPositionConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateNetworkAnalyzerConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdatePartnerAccountCommand.js +3 -3
- package/dist-cjs/commands/UpdatePositionCommand.js +36 -0
- package/dist-cjs/commands/UpdateResourceEventConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateWirelessDeviceCommand.js +3 -3
- package/dist-cjs/commands/UpdateWirelessGatewayCommand.js +3 -3
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +119 -92
- package/dist-cjs/models/models_1.js +108 -0
- package/dist-cjs/pagination/ListPositionConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +534 -4
- package/dist-es/IoTWireless.js +75 -0
- package/dist-es/commands/GetPositionCommand.js +39 -0
- package/dist-es/commands/GetPositionConfigurationCommand.js +39 -0
- package/dist-es/commands/ListPositionConfigurationsCommand.js +39 -0
- package/dist-es/commands/PutPositionConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateNetworkAnalyzerConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdatePartnerAccountCommand.js +1 -1
- package/dist-es/commands/UpdatePositionCommand.js +39 -0
- package/dist-es/commands/UpdateResourceEventConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateWirelessDeviceCommand.js +1 -1
- package/dist-es/commands/UpdateWirelessGatewayCommand.js +1 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +83 -56
- package/dist-es/models/models_1.js +70 -0
- package/dist-es/pagination/ListPositionConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +704 -69
- package/dist-types/IoTWireless.d.ts +37 -2
- package/dist-types/IoTWirelessClient.d.ts +7 -2
- package/dist-types/commands/GetEventConfigurationByResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/GetPositionCommand.d.ts +35 -0
- package/dist-types/commands/GetPositionConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/ListPositionConfigurationsCommand.d.ts +35 -0
- package/dist-types/commands/PutPositionConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePartnerAccountCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePositionCommand.d.ts +35 -0
- package/dist-types/commands/UpdateResourceEventConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +338 -278
- package/dist-types/models/models_1.d.ts +313 -0
- package/dist-types/pagination/ListPositionConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/IoTWireless.d.ts +25 -0
- package/dist-types/ts3.4/IoTWirelessClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/GetPositionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPositionConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPositionConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutPositionConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePartnerAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePositionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateResourceEventConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +193 -156
- package/dist-types/ts3.4/models/models_1.d.ts +186 -0
- package/dist-types/ts3.4/pagination/ListPositionConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = exports.deserializeAws_restJson1UpdateResourceEventConfigurationCommand = 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_restJson1ListWirelessGatewayTaskDefinitionsCommand = exports.deserializeAws_restJson1ListWirelessGatewaysCommand = exports.deserializeAws_restJson1ListWirelessDevicesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListServiceProfilesCommand = exports.deserializeAws_restJson1ListQueuedMessagesCommand = exports.deserializeAws_restJson1ListPartnerAccountsCommand = exports.deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommand = exports.deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = exports.deserializeAws_restJson1ListMulticastGroupsCommand = exports.deserializeAws_restJson1ListFuotaTasksCommand = exports.deserializeAws_restJson1ListEventConfigurationsCommand = exports.deserializeAws_restJson1ListDeviceProfilesCommand = exports.deserializeAws_restJson1ListDestinationsCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1GetServiceEndpointCommand = exports.serializeAws_restJson1GetResourceLogLevelCommand = exports.serializeAws_restJson1GetResourceEventConfigurationCommand = 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.deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = exports.deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = exports.serializeAws_restJson1UpdateWirelessGatewayCommand = exports.serializeAws_restJson1UpdateWirelessDeviceCommand = 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 = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1GetWirelessDeviceCommand = exports.deserializeAws_restJson1GetServiceProfileCommand = exports.deserializeAws_restJson1GetServiceEndpointCommand = exports.deserializeAws_restJson1GetResourceLogLevelCommand = exports.deserializeAws_restJson1GetResourceEventConfigurationCommand = 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 = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = 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 = void 0;
|
|
7
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
@@ -1291,6 +1291,67 @@ const serializeAws_restJson1GetPartnerAccountCommand = async (input, context) =>
|
|
|
1291
1291
|
});
|
|
1292
1292
|
};
|
|
1293
1293
|
exports.serializeAws_restJson1GetPartnerAccountCommand = serializeAws_restJson1GetPartnerAccountCommand;
|
|
1294
|
+
const serializeAws_restJson1GetPositionCommand = async (input, context) => {
|
|
1295
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1296
|
+
const headers = {};
|
|
1297
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
1298
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1299
|
+
const labelValue = input.ResourceIdentifier;
|
|
1300
|
+
if (labelValue.length <= 0) {
|
|
1301
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1302
|
+
}
|
|
1303
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1304
|
+
}
|
|
1305
|
+
else {
|
|
1306
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1307
|
+
}
|
|
1308
|
+
const query = {
|
|
1309
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
1310
|
+
};
|
|
1311
|
+
let body;
|
|
1312
|
+
return new protocol_http_1.HttpRequest({
|
|
1313
|
+
protocol,
|
|
1314
|
+
hostname,
|
|
1315
|
+
port,
|
|
1316
|
+
method: "GET",
|
|
1317
|
+
headers,
|
|
1318
|
+
path: resolvedPath,
|
|
1319
|
+
query,
|
|
1320
|
+
body,
|
|
1321
|
+
});
|
|
1322
|
+
};
|
|
1323
|
+
exports.serializeAws_restJson1GetPositionCommand = serializeAws_restJson1GetPositionCommand;
|
|
1324
|
+
const serializeAws_restJson1GetPositionConfigurationCommand = async (input, context) => {
|
|
1325
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1326
|
+
const headers = {};
|
|
1327
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1328
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
1329
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1330
|
+
const labelValue = input.ResourceIdentifier;
|
|
1331
|
+
if (labelValue.length <= 0) {
|
|
1332
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1333
|
+
}
|
|
1334
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1335
|
+
}
|
|
1336
|
+
else {
|
|
1337
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1338
|
+
}
|
|
1339
|
+
const query = {
|
|
1340
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
1341
|
+
};
|
|
1342
|
+
let body;
|
|
1343
|
+
return new protocol_http_1.HttpRequest({
|
|
1344
|
+
protocol,
|
|
1345
|
+
hostname,
|
|
1346
|
+
port,
|
|
1347
|
+
method: "GET",
|
|
1348
|
+
headers,
|
|
1349
|
+
path: resolvedPath,
|
|
1350
|
+
query,
|
|
1351
|
+
body,
|
|
1352
|
+
});
|
|
1353
|
+
};
|
|
1354
|
+
exports.serializeAws_restJson1GetPositionConfigurationCommand = serializeAws_restJson1GetPositionConfigurationCommand;
|
|
1294
1355
|
const serializeAws_restJson1GetResourceEventConfigurationCommand = async (input, context) => {
|
|
1295
1356
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1296
1357
|
const headers = {};
|
|
@@ -1796,6 +1857,28 @@ const serializeAws_restJson1ListPartnerAccountsCommand = async (input, context)
|
|
|
1796
1857
|
});
|
|
1797
1858
|
};
|
|
1798
1859
|
exports.serializeAws_restJson1ListPartnerAccountsCommand = serializeAws_restJson1ListPartnerAccountsCommand;
|
|
1860
|
+
const serializeAws_restJson1ListPositionConfigurationsCommand = async (input, context) => {
|
|
1861
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1862
|
+
const headers = {};
|
|
1863
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/position-configurations";
|
|
1864
|
+
const query = {
|
|
1865
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
1866
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
1867
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
1868
|
+
};
|
|
1869
|
+
let body;
|
|
1870
|
+
return new protocol_http_1.HttpRequest({
|
|
1871
|
+
protocol,
|
|
1872
|
+
hostname,
|
|
1873
|
+
port,
|
|
1874
|
+
method: "GET",
|
|
1875
|
+
headers,
|
|
1876
|
+
path: resolvedPath,
|
|
1877
|
+
query,
|
|
1878
|
+
body,
|
|
1879
|
+
});
|
|
1880
|
+
};
|
|
1881
|
+
exports.serializeAws_restJson1ListPositionConfigurationsCommand = serializeAws_restJson1ListPositionConfigurationsCommand;
|
|
1799
1882
|
const serializeAws_restJson1ListQueuedMessagesCommand = async (input, context) => {
|
|
1800
1883
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1801
1884
|
const headers = {};
|
|
@@ -1939,6 +2022,46 @@ const serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = async (i
|
|
|
1939
2022
|
});
|
|
1940
2023
|
};
|
|
1941
2024
|
exports.serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand;
|
|
2025
|
+
const serializeAws_restJson1PutPositionConfigurationCommand = async (input, context) => {
|
|
2026
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2027
|
+
const headers = {
|
|
2028
|
+
"content-type": "application/json",
|
|
2029
|
+
};
|
|
2030
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2031
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
2032
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2033
|
+
const labelValue = input.ResourceIdentifier;
|
|
2034
|
+
if (labelValue.length <= 0) {
|
|
2035
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2036
|
+
}
|
|
2037
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2038
|
+
}
|
|
2039
|
+
else {
|
|
2040
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2041
|
+
}
|
|
2042
|
+
const query = {
|
|
2043
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
2044
|
+
};
|
|
2045
|
+
let body;
|
|
2046
|
+
body = JSON.stringify({
|
|
2047
|
+
...(input.Destination !== undefined && input.Destination !== null && { Destination: input.Destination }),
|
|
2048
|
+
...(input.Solvers !== undefined &&
|
|
2049
|
+
input.Solvers !== null && {
|
|
2050
|
+
Solvers: serializeAws_restJson1PositionSolverConfigurations(input.Solvers, context),
|
|
2051
|
+
}),
|
|
2052
|
+
});
|
|
2053
|
+
return new protocol_http_1.HttpRequest({
|
|
2054
|
+
protocol,
|
|
2055
|
+
hostname,
|
|
2056
|
+
port,
|
|
2057
|
+
method: "PUT",
|
|
2058
|
+
headers,
|
|
2059
|
+
path: resolvedPath,
|
|
2060
|
+
query,
|
|
2061
|
+
body,
|
|
2062
|
+
});
|
|
2063
|
+
};
|
|
2064
|
+
exports.serializeAws_restJson1PutPositionConfigurationCommand = serializeAws_restJson1PutPositionConfigurationCommand;
|
|
1942
2065
|
const serializeAws_restJson1PutResourceLogLevelCommand = async (input, context) => {
|
|
1943
2066
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1944
2067
|
const headers = {
|
|
@@ -2554,6 +2677,42 @@ const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, context)
|
|
|
2554
2677
|
});
|
|
2555
2678
|
};
|
|
2556
2679
|
exports.serializeAws_restJson1UpdatePartnerAccountCommand = serializeAws_restJson1UpdatePartnerAccountCommand;
|
|
2680
|
+
const serializeAws_restJson1UpdatePositionCommand = async (input, context) => {
|
|
2681
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2682
|
+
const headers = {
|
|
2683
|
+
"content-type": "application/json",
|
|
2684
|
+
};
|
|
2685
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
2686
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2687
|
+
const labelValue = input.ResourceIdentifier;
|
|
2688
|
+
if (labelValue.length <= 0) {
|
|
2689
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2690
|
+
}
|
|
2691
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2692
|
+
}
|
|
2693
|
+
else {
|
|
2694
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2695
|
+
}
|
|
2696
|
+
const query = {
|
|
2697
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
2698
|
+
};
|
|
2699
|
+
let body;
|
|
2700
|
+
body = JSON.stringify({
|
|
2701
|
+
...(input.Position !== undefined &&
|
|
2702
|
+
input.Position !== null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) }),
|
|
2703
|
+
});
|
|
2704
|
+
return new protocol_http_1.HttpRequest({
|
|
2705
|
+
protocol,
|
|
2706
|
+
hostname,
|
|
2707
|
+
port,
|
|
2708
|
+
method: "PATCH",
|
|
2709
|
+
headers,
|
|
2710
|
+
path: resolvedPath,
|
|
2711
|
+
query,
|
|
2712
|
+
body,
|
|
2713
|
+
});
|
|
2714
|
+
};
|
|
2715
|
+
exports.serializeAws_restJson1UpdatePositionCommand = serializeAws_restJson1UpdatePositionCommand;
|
|
2557
2716
|
const serializeAws_restJson1UpdateResourceEventConfigurationCommand = async (input, context) => {
|
|
2558
2717
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2559
2718
|
const headers = {
|
|
@@ -5064,6 +5223,130 @@ const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, con
|
|
|
5064
5223
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5065
5224
|
}
|
|
5066
5225
|
};
|
|
5226
|
+
const deserializeAws_restJson1GetPositionCommand = async (output, context) => {
|
|
5227
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5228
|
+
return deserializeAws_restJson1GetPositionCommandError(output, context);
|
|
5229
|
+
}
|
|
5230
|
+
const contents = {
|
|
5231
|
+
$metadata: deserializeMetadata(output),
|
|
5232
|
+
Accuracy: undefined,
|
|
5233
|
+
Position: undefined,
|
|
5234
|
+
SolverProvider: undefined,
|
|
5235
|
+
SolverType: undefined,
|
|
5236
|
+
SolverVersion: undefined,
|
|
5237
|
+
Timestamp: undefined,
|
|
5238
|
+
};
|
|
5239
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5240
|
+
if (data.Accuracy !== undefined && data.Accuracy !== null) {
|
|
5241
|
+
contents.Accuracy = deserializeAws_restJson1Accuracy(data.Accuracy, context);
|
|
5242
|
+
}
|
|
5243
|
+
if (data.Position !== undefined && data.Position !== null) {
|
|
5244
|
+
contents.Position = deserializeAws_restJson1PositionCoordinate(data.Position, context);
|
|
5245
|
+
}
|
|
5246
|
+
if (data.SolverProvider !== undefined && data.SolverProvider !== null) {
|
|
5247
|
+
contents.SolverProvider = (0, smithy_client_1.expectString)(data.SolverProvider);
|
|
5248
|
+
}
|
|
5249
|
+
if (data.SolverType !== undefined && data.SolverType !== null) {
|
|
5250
|
+
contents.SolverType = (0, smithy_client_1.expectString)(data.SolverType);
|
|
5251
|
+
}
|
|
5252
|
+
if (data.SolverVersion !== undefined && data.SolverVersion !== null) {
|
|
5253
|
+
contents.SolverVersion = (0, smithy_client_1.expectString)(data.SolverVersion);
|
|
5254
|
+
}
|
|
5255
|
+
if (data.Timestamp !== undefined && data.Timestamp !== null) {
|
|
5256
|
+
contents.Timestamp = (0, smithy_client_1.expectString)(data.Timestamp);
|
|
5257
|
+
}
|
|
5258
|
+
return Promise.resolve(contents);
|
|
5259
|
+
};
|
|
5260
|
+
exports.deserializeAws_restJson1GetPositionCommand = deserializeAws_restJson1GetPositionCommand;
|
|
5261
|
+
const deserializeAws_restJson1GetPositionCommandError = async (output, context) => {
|
|
5262
|
+
const parsedOutput = {
|
|
5263
|
+
...output,
|
|
5264
|
+
body: await parseBody(output.body, context),
|
|
5265
|
+
};
|
|
5266
|
+
let response;
|
|
5267
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5268
|
+
switch (errorCode) {
|
|
5269
|
+
case "AccessDeniedException":
|
|
5270
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5271
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5272
|
+
case "InternalServerException":
|
|
5273
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5274
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5275
|
+
case "ResourceNotFoundException":
|
|
5276
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5277
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5278
|
+
case "ThrottlingException":
|
|
5279
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5280
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5281
|
+
case "ValidationException":
|
|
5282
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
5283
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5284
|
+
default:
|
|
5285
|
+
const parsedBody = parsedOutput.body;
|
|
5286
|
+
const $metadata = deserializeMetadata(output);
|
|
5287
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5288
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5290
|
+
$fault: "client",
|
|
5291
|
+
$metadata,
|
|
5292
|
+
});
|
|
5293
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5294
|
+
}
|
|
5295
|
+
};
|
|
5296
|
+
const deserializeAws_restJson1GetPositionConfigurationCommand = async (output, context) => {
|
|
5297
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5298
|
+
return deserializeAws_restJson1GetPositionConfigurationCommandError(output, context);
|
|
5299
|
+
}
|
|
5300
|
+
const contents = {
|
|
5301
|
+
$metadata: deserializeMetadata(output),
|
|
5302
|
+
Destination: undefined,
|
|
5303
|
+
Solvers: undefined,
|
|
5304
|
+
};
|
|
5305
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5306
|
+
if (data.Destination !== undefined && data.Destination !== null) {
|
|
5307
|
+
contents.Destination = (0, smithy_client_1.expectString)(data.Destination);
|
|
5308
|
+
}
|
|
5309
|
+
if (data.Solvers !== undefined && data.Solvers !== null) {
|
|
5310
|
+
contents.Solvers = deserializeAws_restJson1PositionSolverDetails(data.Solvers, context);
|
|
5311
|
+
}
|
|
5312
|
+
return Promise.resolve(contents);
|
|
5313
|
+
};
|
|
5314
|
+
exports.deserializeAws_restJson1GetPositionConfigurationCommand = deserializeAws_restJson1GetPositionConfigurationCommand;
|
|
5315
|
+
const deserializeAws_restJson1GetPositionConfigurationCommandError = async (output, context) => {
|
|
5316
|
+
const parsedOutput = {
|
|
5317
|
+
...output,
|
|
5318
|
+
body: await parseBody(output.body, context),
|
|
5319
|
+
};
|
|
5320
|
+
let response;
|
|
5321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5322
|
+
switch (errorCode) {
|
|
5323
|
+
case "AccessDeniedException":
|
|
5324
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5325
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5326
|
+
case "InternalServerException":
|
|
5327
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5328
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5329
|
+
case "ResourceNotFoundException":
|
|
5330
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5331
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5332
|
+
case "ThrottlingException":
|
|
5333
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5334
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5335
|
+
case "ValidationException":
|
|
5336
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
5337
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5338
|
+
default:
|
|
5339
|
+
const parsedBody = parsedOutput.body;
|
|
5340
|
+
const $metadata = deserializeMetadata(output);
|
|
5341
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5342
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5344
|
+
$fault: "client",
|
|
5345
|
+
$metadata,
|
|
5346
|
+
});
|
|
5347
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5348
|
+
}
|
|
5349
|
+
};
|
|
5067
5350
|
const deserializeAws_restJson1GetResourceEventConfigurationCommand = async (output, context) => {
|
|
5068
5351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5069
5352
|
return deserializeAws_restJson1GetResourceEventConfigurationCommandError(output, context);
|
|
@@ -6216,6 +6499,57 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
6216
6499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6217
6500
|
}
|
|
6218
6501
|
};
|
|
6502
|
+
const deserializeAws_restJson1ListPositionConfigurationsCommand = async (output, context) => {
|
|
6503
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6504
|
+
return deserializeAws_restJson1ListPositionConfigurationsCommandError(output, context);
|
|
6505
|
+
}
|
|
6506
|
+
const contents = {
|
|
6507
|
+
$metadata: deserializeMetadata(output),
|
|
6508
|
+
NextToken: undefined,
|
|
6509
|
+
PositionConfigurationList: undefined,
|
|
6510
|
+
};
|
|
6511
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6512
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
6513
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
6514
|
+
}
|
|
6515
|
+
if (data.PositionConfigurationList !== undefined && data.PositionConfigurationList !== null) {
|
|
6516
|
+
contents.PositionConfigurationList = deserializeAws_restJson1PositionConfigurationList(data.PositionConfigurationList, context);
|
|
6517
|
+
}
|
|
6518
|
+
return Promise.resolve(contents);
|
|
6519
|
+
};
|
|
6520
|
+
exports.deserializeAws_restJson1ListPositionConfigurationsCommand = deserializeAws_restJson1ListPositionConfigurationsCommand;
|
|
6521
|
+
const deserializeAws_restJson1ListPositionConfigurationsCommandError = async (output, context) => {
|
|
6522
|
+
const parsedOutput = {
|
|
6523
|
+
...output,
|
|
6524
|
+
body: await parseBody(output.body, context),
|
|
6525
|
+
};
|
|
6526
|
+
let response;
|
|
6527
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6528
|
+
switch (errorCode) {
|
|
6529
|
+
case "AccessDeniedException":
|
|
6530
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6531
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6532
|
+
case "InternalServerException":
|
|
6533
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6534
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6535
|
+
case "ThrottlingException":
|
|
6536
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6537
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6538
|
+
case "ValidationException":
|
|
6539
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
6540
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6541
|
+
default:
|
|
6542
|
+
const parsedBody = parsedOutput.body;
|
|
6543
|
+
const $metadata = deserializeMetadata(output);
|
|
6544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6545
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6546
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6547
|
+
$fault: "client",
|
|
6548
|
+
$metadata,
|
|
6549
|
+
});
|
|
6550
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6551
|
+
}
|
|
6552
|
+
};
|
|
6219
6553
|
const deserializeAws_restJson1ListQueuedMessagesCommand = async (output, context) => {
|
|
6220
6554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6221
6555
|
return deserializeAws_restJson1ListQueuedMessagesCommandError(output, context);
|
|
@@ -6524,6 +6858,52 @@ const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = a
|
|
|
6524
6858
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6525
6859
|
}
|
|
6526
6860
|
};
|
|
6861
|
+
const deserializeAws_restJson1PutPositionConfigurationCommand = async (output, context) => {
|
|
6862
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6863
|
+
return deserializeAws_restJson1PutPositionConfigurationCommandError(output, context);
|
|
6864
|
+
}
|
|
6865
|
+
const contents = {
|
|
6866
|
+
$metadata: deserializeMetadata(output),
|
|
6867
|
+
};
|
|
6868
|
+
await collectBody(output.body, context);
|
|
6869
|
+
return Promise.resolve(contents);
|
|
6870
|
+
};
|
|
6871
|
+
exports.deserializeAws_restJson1PutPositionConfigurationCommand = deserializeAws_restJson1PutPositionConfigurationCommand;
|
|
6872
|
+
const deserializeAws_restJson1PutPositionConfigurationCommandError = async (output, context) => {
|
|
6873
|
+
const parsedOutput = {
|
|
6874
|
+
...output,
|
|
6875
|
+
body: await parseBody(output.body, context),
|
|
6876
|
+
};
|
|
6877
|
+
let response;
|
|
6878
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6879
|
+
switch (errorCode) {
|
|
6880
|
+
case "AccessDeniedException":
|
|
6881
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6882
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6883
|
+
case "InternalServerException":
|
|
6884
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6885
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6886
|
+
case "ResourceNotFoundException":
|
|
6887
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6888
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6889
|
+
case "ThrottlingException":
|
|
6890
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6891
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6892
|
+
case "ValidationException":
|
|
6893
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
6894
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6895
|
+
default:
|
|
6896
|
+
const parsedBody = parsedOutput.body;
|
|
6897
|
+
const $metadata = deserializeMetadata(output);
|
|
6898
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6899
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6900
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6901
|
+
$fault: "client",
|
|
6902
|
+
$metadata,
|
|
6903
|
+
});
|
|
6904
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6905
|
+
}
|
|
6906
|
+
};
|
|
6527
6907
|
const deserializeAws_restJson1PutResourceLogLevelCommand = async (output, context) => {
|
|
6528
6908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6529
6909
|
return deserializeAws_restJson1PutResourceLogLevelCommandError(output, context);
|
|
@@ -7419,6 +7799,52 @@ const deserializeAws_restJson1UpdatePartnerAccountCommandError = async (output,
|
|
|
7419
7799
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7420
7800
|
}
|
|
7421
7801
|
};
|
|
7802
|
+
const deserializeAws_restJson1UpdatePositionCommand = async (output, context) => {
|
|
7803
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
7804
|
+
return deserializeAws_restJson1UpdatePositionCommandError(output, context);
|
|
7805
|
+
}
|
|
7806
|
+
const contents = {
|
|
7807
|
+
$metadata: deserializeMetadata(output),
|
|
7808
|
+
};
|
|
7809
|
+
await collectBody(output.body, context);
|
|
7810
|
+
return Promise.resolve(contents);
|
|
7811
|
+
};
|
|
7812
|
+
exports.deserializeAws_restJson1UpdatePositionCommand = deserializeAws_restJson1UpdatePositionCommand;
|
|
7813
|
+
const deserializeAws_restJson1UpdatePositionCommandError = async (output, context) => {
|
|
7814
|
+
const parsedOutput = {
|
|
7815
|
+
...output,
|
|
7816
|
+
body: await parseBody(output.body, context),
|
|
7817
|
+
};
|
|
7818
|
+
let response;
|
|
7819
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7820
|
+
switch (errorCode) {
|
|
7821
|
+
case "AccessDeniedException":
|
|
7822
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
7823
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
7824
|
+
case "InternalServerException":
|
|
7825
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
7826
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
7827
|
+
case "ResourceNotFoundException":
|
|
7828
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
7829
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
7830
|
+
case "ThrottlingException":
|
|
7831
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
7832
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
7833
|
+
case "ValidationException":
|
|
7834
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
7835
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7836
|
+
default:
|
|
7837
|
+
const parsedBody = parsedOutput.body;
|
|
7838
|
+
const $metadata = deserializeMetadata(output);
|
|
7839
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7840
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7841
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7842
|
+
$fault: "client",
|
|
7843
|
+
$metadata,
|
|
7844
|
+
});
|
|
7845
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7846
|
+
}
|
|
7847
|
+
};
|
|
7422
7848
|
const deserializeAws_restJson1UpdateResourceEventConfigurationCommand = async (output, context) => {
|
|
7423
7849
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
7424
7850
|
return deserializeAws_restJson1UpdateResourceEventConfigurationCommandError(output, context);
|
|
@@ -7730,6 +8156,8 @@ const serializeAws_restJson1FPorts = (input, context) => {
|
|
|
7730
8156
|
...(input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync }),
|
|
7731
8157
|
...(input.Fuota !== undefined && input.Fuota !== null && { Fuota: input.Fuota }),
|
|
7732
8158
|
...(input.Multicast !== undefined && input.Multicast !== null && { Multicast: input.Multicast }),
|
|
8159
|
+
...(input.Positioning !== undefined &&
|
|
8160
|
+
input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
|
|
7733
8161
|
};
|
|
7734
8162
|
};
|
|
7735
8163
|
const serializeAws_restJson1JoinEuiFilters = (input, context) => {
|
|
@@ -7918,6 +8346,8 @@ const serializeAws_restJson1LoRaWANUpdateDevice = (input, context) => {
|
|
|
7918
8346
|
input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) }),
|
|
7919
8347
|
...(input.DeviceProfileId !== undefined &&
|
|
7920
8348
|
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId }),
|
|
8349
|
+
...(input.FPorts !== undefined &&
|
|
8350
|
+
input.FPorts !== null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) }),
|
|
7921
8351
|
...(input.ServiceProfileId !== undefined &&
|
|
7922
8352
|
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }),
|
|
7923
8353
|
};
|
|
@@ -7967,6 +8397,31 @@ const serializeAws_restJson1OtaaV1_1 = (input, context) => {
|
|
|
7967
8397
|
...(input.NwkKey !== undefined && input.NwkKey !== null && { NwkKey: input.NwkKey }),
|
|
7968
8398
|
};
|
|
7969
8399
|
};
|
|
8400
|
+
const serializeAws_restJson1PositionCoordinate = (input, context) => {
|
|
8401
|
+
return input
|
|
8402
|
+
.filter((e) => e != null)
|
|
8403
|
+
.map((entry) => {
|
|
8404
|
+
if (entry === null) {
|
|
8405
|
+
return null;
|
|
8406
|
+
}
|
|
8407
|
+
return (0, smithy_client_1.serializeFloat)(entry);
|
|
8408
|
+
});
|
|
8409
|
+
};
|
|
8410
|
+
const serializeAws_restJson1Positioning = (input, context) => {
|
|
8411
|
+
return {
|
|
8412
|
+
...(input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync }),
|
|
8413
|
+
...(input.Gnss !== undefined && input.Gnss !== null && { Gnss: input.Gnss }),
|
|
8414
|
+
...(input.Stream !== undefined && input.Stream !== null && { Stream: input.Stream }),
|
|
8415
|
+
};
|
|
8416
|
+
};
|
|
8417
|
+
const serializeAws_restJson1PositionSolverConfigurations = (input, context) => {
|
|
8418
|
+
return {
|
|
8419
|
+
...(input.SemtechGnss !== undefined &&
|
|
8420
|
+
input.SemtechGnss !== null && {
|
|
8421
|
+
SemtechGnss: serializeAws_restJson1SemtechGnssConfiguration(input.SemtechGnss, context),
|
|
8422
|
+
}),
|
|
8423
|
+
};
|
|
8424
|
+
};
|
|
7970
8425
|
const serializeAws_restJson1ProximityEventConfiguration = (input, context) => {
|
|
7971
8426
|
return {
|
|
7972
8427
|
...(input.Sidewalk !== undefined &&
|
|
@@ -7985,6 +8440,12 @@ const serializeAws_restJson1ProximityResourceTypeEventConfiguration = (input, co
|
|
|
7985
8440
|
}),
|
|
7986
8441
|
};
|
|
7987
8442
|
};
|
|
8443
|
+
const serializeAws_restJson1SemtechGnssConfiguration = (input, context) => {
|
|
8444
|
+
return {
|
|
8445
|
+
...(input.Fec !== undefined && input.Fec !== null && { Fec: input.Fec }),
|
|
8446
|
+
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
8447
|
+
};
|
|
8448
|
+
};
|
|
7988
8449
|
const serializeAws_restJson1SessionKeysAbpV1_0_x = (input, context) => {
|
|
7989
8450
|
return {
|
|
7990
8451
|
...(input.AppSKey !== undefined && input.AppSKey !== null && { AppSKey: input.AppSKey }),
|
|
@@ -8073,6 +8534,12 @@ const serializeAws_restJson1UpdateAbpV1_1 = (input, context) => {
|
|
|
8073
8534
|
...(input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }),
|
|
8074
8535
|
};
|
|
8075
8536
|
};
|
|
8537
|
+
const serializeAws_restJson1UpdateFPorts = (input, context) => {
|
|
8538
|
+
return {
|
|
8539
|
+
...(input.Positioning !== undefined &&
|
|
8540
|
+
input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
|
|
8541
|
+
};
|
|
8542
|
+
};
|
|
8076
8543
|
const serializeAws_restJson1UpdateWirelessGatewayTaskCreate = (input, context) => {
|
|
8077
8544
|
return {
|
|
8078
8545
|
...(input.LoRaWAN !== undefined &&
|
|
@@ -8203,6 +8670,12 @@ const deserializeAws_restJson1AbpV1_1 = (output, context) => {
|
|
|
8203
8670
|
: undefined,
|
|
8204
8671
|
};
|
|
8205
8672
|
};
|
|
8673
|
+
const deserializeAws_restJson1Accuracy = (output, context) => {
|
|
8674
|
+
return {
|
|
8675
|
+
HorizontalAccuracy: (0, smithy_client_1.limitedParseFloat32)(output.HorizontalAccuracy),
|
|
8676
|
+
VerticalAccuracy: (0, smithy_client_1.limitedParseFloat32)(output.VerticalAccuracy),
|
|
8677
|
+
};
|
|
8678
|
+
};
|
|
8206
8679
|
const deserializeAws_restJson1CertificateList = (output, context) => {
|
|
8207
8680
|
return {
|
|
8208
8681
|
SigningAlg: (0, smithy_client_1.expectString)(output.SigningAlg),
|
|
@@ -8363,6 +8836,9 @@ const deserializeAws_restJson1FPorts = (output, context) => {
|
|
|
8363
8836
|
ClockSync: (0, smithy_client_1.expectInt32)(output.ClockSync),
|
|
8364
8837
|
Fuota: (0, smithy_client_1.expectInt32)(output.Fuota),
|
|
8365
8838
|
Multicast: (0, smithy_client_1.expectInt32)(output.Multicast),
|
|
8839
|
+
Positioning: output.Positioning !== undefined && output.Positioning !== null
|
|
8840
|
+
? deserializeAws_restJson1Positioning(output.Positioning, context)
|
|
8841
|
+
: undefined,
|
|
8366
8842
|
};
|
|
8367
8843
|
};
|
|
8368
8844
|
const deserializeAws_restJson1FuotaTask = (output, context) => {
|
|
@@ -8703,6 +9179,52 @@ const deserializeAws_restJson1OtaaV1_1 = (output, context) => {
|
|
|
8703
9179
|
NwkKey: (0, smithy_client_1.expectString)(output.NwkKey),
|
|
8704
9180
|
};
|
|
8705
9181
|
};
|
|
9182
|
+
const deserializeAws_restJson1PositionConfigurationItem = (output, context) => {
|
|
9183
|
+
return {
|
|
9184
|
+
Destination: (0, smithy_client_1.expectString)(output.Destination),
|
|
9185
|
+
ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
|
|
9186
|
+
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
9187
|
+
Solvers: output.Solvers !== undefined && output.Solvers !== null
|
|
9188
|
+
? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context)
|
|
9189
|
+
: undefined,
|
|
9190
|
+
};
|
|
9191
|
+
};
|
|
9192
|
+
const deserializeAws_restJson1PositionConfigurationList = (output, context) => {
|
|
9193
|
+
const retVal = (output || [])
|
|
9194
|
+
.filter((e) => e != null)
|
|
9195
|
+
.map((entry) => {
|
|
9196
|
+
if (entry === null) {
|
|
9197
|
+
return null;
|
|
9198
|
+
}
|
|
9199
|
+
return deserializeAws_restJson1PositionConfigurationItem(entry, context);
|
|
9200
|
+
});
|
|
9201
|
+
return retVal;
|
|
9202
|
+
};
|
|
9203
|
+
const deserializeAws_restJson1PositionCoordinate = (output, context) => {
|
|
9204
|
+
const retVal = (output || [])
|
|
9205
|
+
.filter((e) => e != null)
|
|
9206
|
+
.map((entry) => {
|
|
9207
|
+
if (entry === null) {
|
|
9208
|
+
return null;
|
|
9209
|
+
}
|
|
9210
|
+
return (0, smithy_client_1.limitedParseFloat32)(entry);
|
|
9211
|
+
});
|
|
9212
|
+
return retVal;
|
|
9213
|
+
};
|
|
9214
|
+
const deserializeAws_restJson1Positioning = (output, context) => {
|
|
9215
|
+
return {
|
|
9216
|
+
ClockSync: (0, smithy_client_1.expectInt32)(output.ClockSync),
|
|
9217
|
+
Gnss: (0, smithy_client_1.expectInt32)(output.Gnss),
|
|
9218
|
+
Stream: (0, smithy_client_1.expectInt32)(output.Stream),
|
|
9219
|
+
};
|
|
9220
|
+
};
|
|
9221
|
+
const deserializeAws_restJson1PositionSolverDetails = (output, context) => {
|
|
9222
|
+
return {
|
|
9223
|
+
SemtechGnss: output.SemtechGnss !== undefined && output.SemtechGnss !== null
|
|
9224
|
+
? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context)
|
|
9225
|
+
: undefined,
|
|
9226
|
+
};
|
|
9227
|
+
};
|
|
8706
9228
|
const deserializeAws_restJson1ProximityEventConfiguration = (output, context) => {
|
|
8707
9229
|
return {
|
|
8708
9230
|
Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
|
|
@@ -8718,6 +9240,14 @@ const deserializeAws_restJson1ProximityResourceTypeEventConfiguration = (output,
|
|
|
8718
9240
|
: undefined,
|
|
8719
9241
|
};
|
|
8720
9242
|
};
|
|
9243
|
+
const deserializeAws_restJson1SemtechGnssDetail = (output, context) => {
|
|
9244
|
+
return {
|
|
9245
|
+
Fec: (0, smithy_client_1.expectString)(output.Fec),
|
|
9246
|
+
Provider: (0, smithy_client_1.expectString)(output.Provider),
|
|
9247
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
9248
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
9249
|
+
};
|
|
9250
|
+
};
|
|
8721
9251
|
const deserializeAws_restJson1ServiceProfile = (output, context) => {
|
|
8722
9252
|
return {
|
|
8723
9253
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|