@aws-sdk/client-iot-wireless 3.118.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 +30 -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 +999 -377
- 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 +1139 -412
- 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 +5 -5
|
@@ -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 = {
|
|
@@ -2702,8 +2861,7 @@ const deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommandError
|
|
|
2702
2861
|
body: await parseBody(output.body, context),
|
|
2703
2862
|
};
|
|
2704
2863
|
let response;
|
|
2705
|
-
|
|
2706
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
2865
|
switch (errorCode) {
|
|
2708
2866
|
case "AccessDeniedException":
|
|
2709
2867
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2725,10 +2883,12 @@ const deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommandError
|
|
|
2725
2883
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2726
2884
|
default:
|
|
2727
2885
|
const parsedBody = parsedOutput.body;
|
|
2886
|
+
const $metadata = deserializeMetadata(output);
|
|
2887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2728
2888
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2729
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2730
2890
|
$fault: "client",
|
|
2731
|
-
$metadata
|
|
2891
|
+
$metadata,
|
|
2732
2892
|
});
|
|
2733
2893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2734
2894
|
}
|
|
@@ -2750,8 +2910,7 @@ const deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommandError =
|
|
|
2750
2910
|
body: await parseBody(output.body, context),
|
|
2751
2911
|
};
|
|
2752
2912
|
let response;
|
|
2753
|
-
|
|
2754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
2914
|
switch (errorCode) {
|
|
2756
2915
|
case "AccessDeniedException":
|
|
2757
2916
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2773,10 +2932,12 @@ const deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommandError =
|
|
|
2773
2932
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2774
2933
|
default:
|
|
2775
2934
|
const parsedBody = parsedOutput.body;
|
|
2935
|
+
const $metadata = deserializeMetadata(output);
|
|
2936
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2776
2937
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2938
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2778
2939
|
$fault: "client",
|
|
2779
|
-
$metadata
|
|
2940
|
+
$metadata,
|
|
2780
2941
|
});
|
|
2781
2942
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2782
2943
|
}
|
|
@@ -2798,8 +2959,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommandError =
|
|
|
2798
2959
|
body: await parseBody(output.body, context),
|
|
2799
2960
|
};
|
|
2800
2961
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2962
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2963
|
switch (errorCode) {
|
|
2804
2964
|
case "AccessDeniedException":
|
|
2805
2965
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2821,10 +2981,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommandError =
|
|
|
2821
2981
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2822
2982
|
default:
|
|
2823
2983
|
const parsedBody = parsedOutput.body;
|
|
2984
|
+
const $metadata = deserializeMetadata(output);
|
|
2985
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2824
2986
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2987
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2826
2988
|
$fault: "client",
|
|
2827
|
-
$metadata
|
|
2989
|
+
$metadata,
|
|
2828
2990
|
});
|
|
2829
2991
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2992
|
}
|
|
@@ -2846,8 +3008,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommandEr
|
|
|
2846
3008
|
body: await parseBody(output.body, context),
|
|
2847
3009
|
};
|
|
2848
3010
|
let response;
|
|
2849
|
-
|
|
2850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3011
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2851
3012
|
switch (errorCode) {
|
|
2852
3013
|
case "AccessDeniedException":
|
|
2853
3014
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2869,10 +3030,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommandEr
|
|
|
2869
3030
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2870
3031
|
default:
|
|
2871
3032
|
const parsedBody = parsedOutput.body;
|
|
3033
|
+
const $metadata = deserializeMetadata(output);
|
|
3034
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2872
3035
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3036
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2874
3037
|
$fault: "client",
|
|
2875
|
-
$metadata
|
|
3038
|
+
$metadata,
|
|
2876
3039
|
});
|
|
2877
3040
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2878
3041
|
}
|
|
@@ -2894,8 +3057,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithThingCommandError = asy
|
|
|
2894
3057
|
body: await parseBody(output.body, context),
|
|
2895
3058
|
};
|
|
2896
3059
|
let response;
|
|
2897
|
-
|
|
2898
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3060
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
3061
|
switch (errorCode) {
|
|
2900
3062
|
case "AccessDeniedException":
|
|
2901
3063
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2917,10 +3079,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithThingCommandError = asy
|
|
|
2917
3079
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2918
3080
|
default:
|
|
2919
3081
|
const parsedBody = parsedOutput.body;
|
|
3082
|
+
const $metadata = deserializeMetadata(output);
|
|
3083
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2920
3084
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3085
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2922
3086
|
$fault: "client",
|
|
2923
|
-
$metadata
|
|
3087
|
+
$metadata,
|
|
2924
3088
|
});
|
|
2925
3089
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2926
3090
|
}
|
|
@@ -2946,8 +3110,7 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommandErro
|
|
|
2946
3110
|
body: await parseBody(output.body, context),
|
|
2947
3111
|
};
|
|
2948
3112
|
let response;
|
|
2949
|
-
|
|
2950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2951
3114
|
switch (errorCode) {
|
|
2952
3115
|
case "AccessDeniedException":
|
|
2953
3116
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2969,10 +3132,12 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommandErro
|
|
|
2969
3132
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2970
3133
|
default:
|
|
2971
3134
|
const parsedBody = parsedOutput.body;
|
|
3135
|
+
const $metadata = deserializeMetadata(output);
|
|
3136
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2972
3137
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3138
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2974
3139
|
$fault: "client",
|
|
2975
|
-
$metadata
|
|
3140
|
+
$metadata,
|
|
2976
3141
|
});
|
|
2977
3142
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2978
3143
|
}
|
|
@@ -2994,8 +3159,7 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithThingCommandError = as
|
|
|
2994
3159
|
body: await parseBody(output.body, context),
|
|
2995
3160
|
};
|
|
2996
3161
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3162
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
3163
|
switch (errorCode) {
|
|
3000
3164
|
case "AccessDeniedException":
|
|
3001
3165
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3017,10 +3181,12 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithThingCommandError = as
|
|
|
3017
3181
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3018
3182
|
default:
|
|
3019
3183
|
const parsedBody = parsedOutput.body;
|
|
3184
|
+
const $metadata = deserializeMetadata(output);
|
|
3185
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3020
3186
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3187
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3022
3188
|
$fault: "client",
|
|
3023
|
-
$metadata
|
|
3189
|
+
$metadata,
|
|
3024
3190
|
});
|
|
3025
3191
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3026
3192
|
}
|
|
@@ -3042,8 +3208,7 @@ const deserializeAws_restJson1CancelMulticastGroupSessionCommandError = async (o
|
|
|
3042
3208
|
body: await parseBody(output.body, context),
|
|
3043
3209
|
};
|
|
3044
3210
|
let response;
|
|
3045
|
-
|
|
3046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3211
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3047
3212
|
switch (errorCode) {
|
|
3048
3213
|
case "AccessDeniedException":
|
|
3049
3214
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3065,10 +3230,12 @@ const deserializeAws_restJson1CancelMulticastGroupSessionCommandError = async (o
|
|
|
3065
3230
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3066
3231
|
default:
|
|
3067
3232
|
const parsedBody = parsedOutput.body;
|
|
3233
|
+
const $metadata = deserializeMetadata(output);
|
|
3234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3068
3235
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3070
3237
|
$fault: "client",
|
|
3071
|
-
$metadata
|
|
3238
|
+
$metadata,
|
|
3072
3239
|
});
|
|
3073
3240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3074
3241
|
}
|
|
@@ -3098,8 +3265,7 @@ const deserializeAws_restJson1CreateDestinationCommandError = async (output, con
|
|
|
3098
3265
|
body: await parseBody(output.body, context),
|
|
3099
3266
|
};
|
|
3100
3267
|
let response;
|
|
3101
|
-
|
|
3102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3268
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
3269
|
switch (errorCode) {
|
|
3104
3270
|
case "AccessDeniedException":
|
|
3105
3271
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3121,10 +3287,12 @@ const deserializeAws_restJson1CreateDestinationCommandError = async (output, con
|
|
|
3121
3287
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3122
3288
|
default:
|
|
3123
3289
|
const parsedBody = parsedOutput.body;
|
|
3290
|
+
const $metadata = deserializeMetadata(output);
|
|
3291
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3124
3292
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3293
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3126
3294
|
$fault: "client",
|
|
3127
|
-
$metadata
|
|
3295
|
+
$metadata,
|
|
3128
3296
|
});
|
|
3129
3297
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3130
3298
|
}
|
|
@@ -3154,8 +3322,7 @@ const deserializeAws_restJson1CreateDeviceProfileCommandError = async (output, c
|
|
|
3154
3322
|
body: await parseBody(output.body, context),
|
|
3155
3323
|
};
|
|
3156
3324
|
let response;
|
|
3157
|
-
|
|
3158
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3325
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3159
3326
|
switch (errorCode) {
|
|
3160
3327
|
case "AccessDeniedException":
|
|
3161
3328
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3174,10 +3341,12 @@ const deserializeAws_restJson1CreateDeviceProfileCommandError = async (output, c
|
|
|
3174
3341
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3175
3342
|
default:
|
|
3176
3343
|
const parsedBody = parsedOutput.body;
|
|
3344
|
+
const $metadata = deserializeMetadata(output);
|
|
3345
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3177
3346
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3178
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3347
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3179
3348
|
$fault: "client",
|
|
3180
|
-
$metadata
|
|
3349
|
+
$metadata,
|
|
3181
3350
|
});
|
|
3182
3351
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3183
3352
|
}
|
|
@@ -3207,8 +3376,7 @@ const deserializeAws_restJson1CreateFuotaTaskCommandError = async (output, conte
|
|
|
3207
3376
|
body: await parseBody(output.body, context),
|
|
3208
3377
|
};
|
|
3209
3378
|
let response;
|
|
3210
|
-
|
|
3211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
3380
|
switch (errorCode) {
|
|
3213
3381
|
case "AccessDeniedException":
|
|
3214
3382
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3230,10 +3398,12 @@ const deserializeAws_restJson1CreateFuotaTaskCommandError = async (output, conte
|
|
|
3230
3398
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3231
3399
|
default:
|
|
3232
3400
|
const parsedBody = parsedOutput.body;
|
|
3401
|
+
const $metadata = deserializeMetadata(output);
|
|
3402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3233
3403
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3234
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3235
3405
|
$fault: "client",
|
|
3236
|
-
$metadata
|
|
3406
|
+
$metadata,
|
|
3237
3407
|
});
|
|
3238
3408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3239
3409
|
}
|
|
@@ -3263,8 +3433,7 @@ const deserializeAws_restJson1CreateMulticastGroupCommandError = async (output,
|
|
|
3263
3433
|
body: await parseBody(output.body, context),
|
|
3264
3434
|
};
|
|
3265
3435
|
let response;
|
|
3266
|
-
|
|
3267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3436
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3268
3437
|
switch (errorCode) {
|
|
3269
3438
|
case "AccessDeniedException":
|
|
3270
3439
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3286,10 +3455,12 @@ const deserializeAws_restJson1CreateMulticastGroupCommandError = async (output,
|
|
|
3286
3455
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3287
3456
|
default:
|
|
3288
3457
|
const parsedBody = parsedOutput.body;
|
|
3458
|
+
const $metadata = deserializeMetadata(output);
|
|
3459
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3289
3460
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3461
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3291
3462
|
$fault: "client",
|
|
3292
|
-
$metadata
|
|
3463
|
+
$metadata,
|
|
3293
3464
|
});
|
|
3294
3465
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3295
3466
|
}
|
|
@@ -3319,8 +3490,7 @@ const deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = a
|
|
|
3319
3490
|
body: await parseBody(output.body, context),
|
|
3320
3491
|
};
|
|
3321
3492
|
let response;
|
|
3322
|
-
|
|
3323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3493
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3324
3494
|
switch (errorCode) {
|
|
3325
3495
|
case "AccessDeniedException":
|
|
3326
3496
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3342,10 +3512,12 @@ const deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = a
|
|
|
3342
3512
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3343
3513
|
default:
|
|
3344
3514
|
const parsedBody = parsedOutput.body;
|
|
3515
|
+
const $metadata = deserializeMetadata(output);
|
|
3516
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3345
3517
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3518
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3347
3519
|
$fault: "client",
|
|
3348
|
-
$metadata
|
|
3520
|
+
$metadata,
|
|
3349
3521
|
});
|
|
3350
3522
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3351
3523
|
}
|
|
@@ -3375,8 +3547,7 @@ const deserializeAws_restJson1CreateServiceProfileCommandError = async (output,
|
|
|
3375
3547
|
body: await parseBody(output.body, context),
|
|
3376
3548
|
};
|
|
3377
3549
|
let response;
|
|
3378
|
-
|
|
3379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3550
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3380
3551
|
switch (errorCode) {
|
|
3381
3552
|
case "AccessDeniedException":
|
|
3382
3553
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3395,10 +3566,12 @@ const deserializeAws_restJson1CreateServiceProfileCommandError = async (output,
|
|
|
3395
3566
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3396
3567
|
default:
|
|
3397
3568
|
const parsedBody = parsedOutput.body;
|
|
3569
|
+
const $metadata = deserializeMetadata(output);
|
|
3570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3398
3571
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3399
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3400
3573
|
$fault: "client",
|
|
3401
|
-
$metadata
|
|
3574
|
+
$metadata,
|
|
3402
3575
|
});
|
|
3403
3576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3404
3577
|
}
|
|
@@ -3428,8 +3601,7 @@ const deserializeAws_restJson1CreateWirelessDeviceCommandError = async (output,
|
|
|
3428
3601
|
body: await parseBody(output.body, context),
|
|
3429
3602
|
};
|
|
3430
3603
|
let response;
|
|
3431
|
-
|
|
3432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3604
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
3605
|
switch (errorCode) {
|
|
3434
3606
|
case "AccessDeniedException":
|
|
3435
3607
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3451,10 +3623,12 @@ const deserializeAws_restJson1CreateWirelessDeviceCommandError = async (output,
|
|
|
3451
3623
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3452
3624
|
default:
|
|
3453
3625
|
const parsedBody = parsedOutput.body;
|
|
3626
|
+
const $metadata = deserializeMetadata(output);
|
|
3627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3454
3628
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3456
3630
|
$fault: "client",
|
|
3457
|
-
$metadata
|
|
3631
|
+
$metadata,
|
|
3458
3632
|
});
|
|
3459
3633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3460
3634
|
}
|
|
@@ -3484,8 +3658,7 @@ const deserializeAws_restJson1CreateWirelessGatewayCommandError = async (output,
|
|
|
3484
3658
|
body: await parseBody(output.body, context),
|
|
3485
3659
|
};
|
|
3486
3660
|
let response;
|
|
3487
|
-
|
|
3488
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3661
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3489
3662
|
switch (errorCode) {
|
|
3490
3663
|
case "AccessDeniedException":
|
|
3491
3664
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3504,10 +3677,12 @@ const deserializeAws_restJson1CreateWirelessGatewayCommandError = async (output,
|
|
|
3504
3677
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3505
3678
|
default:
|
|
3506
3679
|
const parsedBody = parsedOutput.body;
|
|
3680
|
+
const $metadata = deserializeMetadata(output);
|
|
3681
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3507
3682
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3683
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3509
3684
|
$fault: "client",
|
|
3510
|
-
$metadata
|
|
3685
|
+
$metadata,
|
|
3511
3686
|
});
|
|
3512
3687
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3513
3688
|
}
|
|
@@ -3537,8 +3712,7 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskCommandError = async (out
|
|
|
3537
3712
|
body: await parseBody(output.body, context),
|
|
3538
3713
|
};
|
|
3539
3714
|
let response;
|
|
3540
|
-
|
|
3541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3542
3716
|
switch (errorCode) {
|
|
3543
3717
|
case "AccessDeniedException":
|
|
3544
3718
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3560,10 +3734,12 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskCommandError = async (out
|
|
|
3560
3734
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3561
3735
|
default:
|
|
3562
3736
|
const parsedBody = parsedOutput.body;
|
|
3737
|
+
const $metadata = deserializeMetadata(output);
|
|
3738
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3563
3739
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3565
3741
|
$fault: "client",
|
|
3566
|
-
$metadata
|
|
3742
|
+
$metadata,
|
|
3567
3743
|
});
|
|
3568
3744
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3569
3745
|
}
|
|
@@ -3593,8 +3769,7 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommandError =
|
|
|
3593
3769
|
body: await parseBody(output.body, context),
|
|
3594
3770
|
};
|
|
3595
3771
|
let response;
|
|
3596
|
-
|
|
3597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3772
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3598
3773
|
switch (errorCode) {
|
|
3599
3774
|
case "AccessDeniedException":
|
|
3600
3775
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3616,10 +3791,12 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommandError =
|
|
|
3616
3791
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3617
3792
|
default:
|
|
3618
3793
|
const parsedBody = parsedOutput.body;
|
|
3794
|
+
const $metadata = deserializeMetadata(output);
|
|
3795
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3619
3796
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3797
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3621
3798
|
$fault: "client",
|
|
3622
|
-
$metadata
|
|
3799
|
+
$metadata,
|
|
3623
3800
|
});
|
|
3624
3801
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3625
3802
|
}
|
|
@@ -3641,8 +3818,7 @@ const deserializeAws_restJson1DeleteDestinationCommandError = async (output, con
|
|
|
3641
3818
|
body: await parseBody(output.body, context),
|
|
3642
3819
|
};
|
|
3643
3820
|
let response;
|
|
3644
|
-
|
|
3645
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3646
3822
|
switch (errorCode) {
|
|
3647
3823
|
case "AccessDeniedException":
|
|
3648
3824
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3664,10 +3840,12 @@ const deserializeAws_restJson1DeleteDestinationCommandError = async (output, con
|
|
|
3664
3840
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3665
3841
|
default:
|
|
3666
3842
|
const parsedBody = parsedOutput.body;
|
|
3843
|
+
const $metadata = deserializeMetadata(output);
|
|
3844
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3667
3845
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3846
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3669
3847
|
$fault: "client",
|
|
3670
|
-
$metadata
|
|
3848
|
+
$metadata,
|
|
3671
3849
|
});
|
|
3672
3850
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3673
3851
|
}
|
|
@@ -3689,8 +3867,7 @@ const deserializeAws_restJson1DeleteDeviceProfileCommandError = async (output, c
|
|
|
3689
3867
|
body: await parseBody(output.body, context),
|
|
3690
3868
|
};
|
|
3691
3869
|
let response;
|
|
3692
|
-
|
|
3693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3694
3871
|
switch (errorCode) {
|
|
3695
3872
|
case "AccessDeniedException":
|
|
3696
3873
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3712,10 +3889,12 @@ const deserializeAws_restJson1DeleteDeviceProfileCommandError = async (output, c
|
|
|
3712
3889
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3713
3890
|
default:
|
|
3714
3891
|
const parsedBody = parsedOutput.body;
|
|
3892
|
+
const $metadata = deserializeMetadata(output);
|
|
3893
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3715
3894
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3716
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3717
3896
|
$fault: "client",
|
|
3718
|
-
$metadata
|
|
3897
|
+
$metadata,
|
|
3719
3898
|
});
|
|
3720
3899
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3721
3900
|
}
|
|
@@ -3737,8 +3916,7 @@ const deserializeAws_restJson1DeleteFuotaTaskCommandError = async (output, conte
|
|
|
3737
3916
|
body: await parseBody(output.body, context),
|
|
3738
3917
|
};
|
|
3739
3918
|
let response;
|
|
3740
|
-
|
|
3741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
3920
|
switch (errorCode) {
|
|
3743
3921
|
case "AccessDeniedException":
|
|
3744
3922
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3757,10 +3935,12 @@ const deserializeAws_restJson1DeleteFuotaTaskCommandError = async (output, conte
|
|
|
3757
3935
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3758
3936
|
default:
|
|
3759
3937
|
const parsedBody = parsedOutput.body;
|
|
3938
|
+
const $metadata = deserializeMetadata(output);
|
|
3939
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3760
3940
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3941
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3762
3942
|
$fault: "client",
|
|
3763
|
-
$metadata
|
|
3943
|
+
$metadata,
|
|
3764
3944
|
});
|
|
3765
3945
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3766
3946
|
}
|
|
@@ -3782,8 +3962,7 @@ const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output,
|
|
|
3782
3962
|
body: await parseBody(output.body, context),
|
|
3783
3963
|
};
|
|
3784
3964
|
let response;
|
|
3785
|
-
|
|
3786
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3787
3966
|
switch (errorCode) {
|
|
3788
3967
|
case "AccessDeniedException":
|
|
3789
3968
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3805,10 +3984,12 @@ const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output,
|
|
|
3805
3984
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3806
3985
|
default:
|
|
3807
3986
|
const parsedBody = parsedOutput.body;
|
|
3987
|
+
const $metadata = deserializeMetadata(output);
|
|
3988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3808
3989
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3810
3991
|
$fault: "client",
|
|
3811
|
-
$metadata
|
|
3992
|
+
$metadata,
|
|
3812
3993
|
});
|
|
3813
3994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3814
3995
|
}
|
|
@@ -3830,8 +4011,7 @@ const deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = a
|
|
|
3830
4011
|
body: await parseBody(output.body, context),
|
|
3831
4012
|
};
|
|
3832
4013
|
let response;
|
|
3833
|
-
|
|
3834
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4014
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
4015
|
switch (errorCode) {
|
|
3836
4016
|
case "AccessDeniedException":
|
|
3837
4017
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3853,10 +4033,12 @@ const deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = a
|
|
|
3853
4033
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3854
4034
|
default:
|
|
3855
4035
|
const parsedBody = parsedOutput.body;
|
|
4036
|
+
const $metadata = deserializeMetadata(output);
|
|
4037
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3856
4038
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4039
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3858
4040
|
$fault: "client",
|
|
3859
|
-
$metadata
|
|
4041
|
+
$metadata,
|
|
3860
4042
|
});
|
|
3861
4043
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3862
4044
|
}
|
|
@@ -3878,8 +4060,7 @@ const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output,
|
|
|
3878
4060
|
body: await parseBody(output.body, context),
|
|
3879
4061
|
};
|
|
3880
4062
|
let response;
|
|
3881
|
-
|
|
3882
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4063
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3883
4064
|
switch (errorCode) {
|
|
3884
4065
|
case "AccessDeniedException":
|
|
3885
4066
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3898,10 +4079,12 @@ const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output,
|
|
|
3898
4079
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3899
4080
|
default:
|
|
3900
4081
|
const parsedBody = parsedOutput.body;
|
|
4082
|
+
const $metadata = deserializeMetadata(output);
|
|
4083
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3901
4084
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3902
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4085
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3903
4086
|
$fault: "client",
|
|
3904
|
-
$metadata
|
|
4087
|
+
$metadata,
|
|
3905
4088
|
});
|
|
3906
4089
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3907
4090
|
}
|
|
@@ -3923,8 +4106,7 @@ const deserializeAws_restJson1DeleteServiceProfileCommandError = async (output,
|
|
|
3923
4106
|
body: await parseBody(output.body, context),
|
|
3924
4107
|
};
|
|
3925
4108
|
let response;
|
|
3926
|
-
|
|
3927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3928
4110
|
switch (errorCode) {
|
|
3929
4111
|
case "AccessDeniedException":
|
|
3930
4112
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3946,10 +4128,12 @@ const deserializeAws_restJson1DeleteServiceProfileCommandError = async (output,
|
|
|
3946
4128
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3947
4129
|
default:
|
|
3948
4130
|
const parsedBody = parsedOutput.body;
|
|
4131
|
+
const $metadata = deserializeMetadata(output);
|
|
4132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3949
4133
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3950
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3951
4135
|
$fault: "client",
|
|
3952
|
-
$metadata
|
|
4136
|
+
$metadata,
|
|
3953
4137
|
});
|
|
3954
4138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3955
4139
|
}
|
|
@@ -3971,8 +4155,7 @@ const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output,
|
|
|
3971
4155
|
body: await parseBody(output.body, context),
|
|
3972
4156
|
};
|
|
3973
4157
|
let response;
|
|
3974
|
-
|
|
3975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4158
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3976
4159
|
switch (errorCode) {
|
|
3977
4160
|
case "AccessDeniedException":
|
|
3978
4161
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3991,10 +4174,12 @@ const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output,
|
|
|
3991
4174
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3992
4175
|
default:
|
|
3993
4176
|
const parsedBody = parsedOutput.body;
|
|
4177
|
+
const $metadata = deserializeMetadata(output);
|
|
4178
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3994
4179
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4180
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3996
4181
|
$fault: "client",
|
|
3997
|
-
$metadata
|
|
4182
|
+
$metadata,
|
|
3998
4183
|
});
|
|
3999
4184
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4000
4185
|
}
|
|
@@ -4016,8 +4201,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayCommandError = async (output,
|
|
|
4016
4201
|
body: await parseBody(output.body, context),
|
|
4017
4202
|
};
|
|
4018
4203
|
let response;
|
|
4019
|
-
|
|
4020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4204
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4021
4205
|
switch (errorCode) {
|
|
4022
4206
|
case "AccessDeniedException":
|
|
4023
4207
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4036,10 +4220,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayCommandError = async (output,
|
|
|
4036
4220
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4037
4221
|
default:
|
|
4038
4222
|
const parsedBody = parsedOutput.body;
|
|
4223
|
+
const $metadata = deserializeMetadata(output);
|
|
4224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4039
4225
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4041
4227
|
$fault: "client",
|
|
4042
|
-
$metadata
|
|
4228
|
+
$metadata,
|
|
4043
4229
|
});
|
|
4044
4230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4045
4231
|
}
|
|
@@ -4061,8 +4247,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskCommandError = async (out
|
|
|
4061
4247
|
body: await parseBody(output.body, context),
|
|
4062
4248
|
};
|
|
4063
4249
|
let response;
|
|
4064
|
-
|
|
4065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4066
4251
|
switch (errorCode) {
|
|
4067
4252
|
case "AccessDeniedException":
|
|
4068
4253
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4081,10 +4266,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskCommandError = async (out
|
|
|
4081
4266
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4082
4267
|
default:
|
|
4083
4268
|
const parsedBody = parsedOutput.body;
|
|
4269
|
+
const $metadata = deserializeMetadata(output);
|
|
4270
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4084
4271
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4272
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4086
4273
|
$fault: "client",
|
|
4087
|
-
$metadata
|
|
4274
|
+
$metadata,
|
|
4088
4275
|
});
|
|
4089
4276
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4090
4277
|
}
|
|
@@ -4106,8 +4293,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError =
|
|
|
4106
4293
|
body: await parseBody(output.body, context),
|
|
4107
4294
|
};
|
|
4108
4295
|
let response;
|
|
4109
|
-
|
|
4110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4296
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
4297
|
switch (errorCode) {
|
|
4112
4298
|
case "AccessDeniedException":
|
|
4113
4299
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4126,10 +4312,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError =
|
|
|
4126
4312
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4127
4313
|
default:
|
|
4128
4314
|
const parsedBody = parsedOutput.body;
|
|
4315
|
+
const $metadata = deserializeMetadata(output);
|
|
4316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4129
4317
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4131
4319
|
$fault: "client",
|
|
4132
|
-
$metadata
|
|
4320
|
+
$metadata,
|
|
4133
4321
|
});
|
|
4134
4322
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4135
4323
|
}
|
|
@@ -4151,8 +4339,7 @@ const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandErr
|
|
|
4151
4339
|
body: await parseBody(output.body, context),
|
|
4152
4340
|
};
|
|
4153
4341
|
let response;
|
|
4154
|
-
|
|
4155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4156
4343
|
switch (errorCode) {
|
|
4157
4344
|
case "InternalServerException":
|
|
4158
4345
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -4168,10 +4355,12 @@ const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandErr
|
|
|
4168
4355
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4169
4356
|
default:
|
|
4170
4357
|
const parsedBody = parsedOutput.body;
|
|
4358
|
+
const $metadata = deserializeMetadata(output);
|
|
4359
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4171
4360
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4361
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4173
4362
|
$fault: "client",
|
|
4174
|
-
$metadata
|
|
4363
|
+
$metadata,
|
|
4175
4364
|
});
|
|
4176
4365
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4177
4366
|
}
|
|
@@ -4193,8 +4382,7 @@ const deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommandErro
|
|
|
4193
4382
|
body: await parseBody(output.body, context),
|
|
4194
4383
|
};
|
|
4195
4384
|
let response;
|
|
4196
|
-
|
|
4197
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4385
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
4386
|
switch (errorCode) {
|
|
4199
4387
|
case "AccessDeniedException":
|
|
4200
4388
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4213,10 +4401,12 @@ const deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommandErro
|
|
|
4213
4401
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4214
4402
|
default:
|
|
4215
4403
|
const parsedBody = parsedOutput.body;
|
|
4404
|
+
const $metadata = deserializeMetadata(output);
|
|
4405
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4216
4406
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4218
4408
|
$fault: "client",
|
|
4219
|
-
$metadata
|
|
4409
|
+
$metadata,
|
|
4220
4410
|
});
|
|
4221
4411
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4222
4412
|
}
|
|
@@ -4238,8 +4428,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommandErro
|
|
|
4238
4428
|
body: await parseBody(output.body, context),
|
|
4239
4429
|
};
|
|
4240
4430
|
let response;
|
|
4241
|
-
|
|
4242
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4243
4432
|
switch (errorCode) {
|
|
4244
4433
|
case "AccessDeniedException":
|
|
4245
4434
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4261,10 +4450,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommandErro
|
|
|
4261
4450
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4262
4451
|
default:
|
|
4263
4452
|
const parsedBody = parsedOutput.body;
|
|
4453
|
+
const $metadata = deserializeMetadata(output);
|
|
4454
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4264
4455
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4456
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4266
4457
|
$fault: "client",
|
|
4267
|
-
$metadata
|
|
4458
|
+
$metadata,
|
|
4268
4459
|
});
|
|
4269
4460
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4270
4461
|
}
|
|
@@ -4286,8 +4477,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComman
|
|
|
4286
4477
|
body: await parseBody(output.body, context),
|
|
4287
4478
|
};
|
|
4288
4479
|
let response;
|
|
4289
|
-
|
|
4290
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4480
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4291
4481
|
switch (errorCode) {
|
|
4292
4482
|
case "AccessDeniedException":
|
|
4293
4483
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4306,10 +4496,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComman
|
|
|
4306
4496
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4307
4497
|
default:
|
|
4308
4498
|
const parsedBody = parsedOutput.body;
|
|
4499
|
+
const $metadata = deserializeMetadata(output);
|
|
4500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4309
4501
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4311
4503
|
$fault: "client",
|
|
4312
|
-
$metadata
|
|
4504
|
+
$metadata,
|
|
4313
4505
|
});
|
|
4314
4506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4315
4507
|
}
|
|
@@ -4331,8 +4523,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommandError =
|
|
|
4331
4523
|
body: await parseBody(output.body, context),
|
|
4332
4524
|
};
|
|
4333
4525
|
let response;
|
|
4334
|
-
|
|
4335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4336
4527
|
switch (errorCode) {
|
|
4337
4528
|
case "AccessDeniedException":
|
|
4338
4529
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4354,10 +4545,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommandError =
|
|
|
4354
4545
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4355
4546
|
default:
|
|
4356
4547
|
const parsedBody = parsedOutput.body;
|
|
4548
|
+
const $metadata = deserializeMetadata(output);
|
|
4549
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4357
4550
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4551
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4359
4552
|
$fault: "client",
|
|
4360
|
-
$metadata
|
|
4553
|
+
$metadata,
|
|
4361
4554
|
});
|
|
4362
4555
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4363
4556
|
}
|
|
@@ -4379,8 +4572,7 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommandE
|
|
|
4379
4572
|
body: await parseBody(output.body, context),
|
|
4380
4573
|
};
|
|
4381
4574
|
let response;
|
|
4382
|
-
|
|
4383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4575
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4384
4576
|
switch (errorCode) {
|
|
4385
4577
|
case "AccessDeniedException":
|
|
4386
4578
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4399,10 +4591,12 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommandE
|
|
|
4399
4591
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4400
4592
|
default:
|
|
4401
4593
|
const parsedBody = parsedOutput.body;
|
|
4594
|
+
const $metadata = deserializeMetadata(output);
|
|
4595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4402
4596
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4404
4598
|
$fault: "client",
|
|
4405
|
-
$metadata
|
|
4599
|
+
$metadata,
|
|
4406
4600
|
});
|
|
4407
4601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4408
4602
|
}
|
|
@@ -4424,8 +4618,7 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommandError =
|
|
|
4424
4618
|
body: await parseBody(output.body, context),
|
|
4425
4619
|
};
|
|
4426
4620
|
let response;
|
|
4427
|
-
|
|
4428
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4429
4622
|
switch (errorCode) {
|
|
4430
4623
|
case "AccessDeniedException":
|
|
4431
4624
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4447,10 +4640,12 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommandError =
|
|
|
4447
4640
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4448
4641
|
default:
|
|
4449
4642
|
const parsedBody = parsedOutput.body;
|
|
4643
|
+
const $metadata = deserializeMetadata(output);
|
|
4644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4450
4645
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4452
4647
|
$fault: "client",
|
|
4453
|
-
$metadata
|
|
4648
|
+
$metadata,
|
|
4454
4649
|
});
|
|
4455
4650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4456
4651
|
}
|
|
@@ -4496,8 +4691,7 @@ const deserializeAws_restJson1GetDestinationCommandError = async (output, contex
|
|
|
4496
4691
|
body: await parseBody(output.body, context),
|
|
4497
4692
|
};
|
|
4498
4693
|
let response;
|
|
4499
|
-
|
|
4500
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4694
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4501
4695
|
switch (errorCode) {
|
|
4502
4696
|
case "AccessDeniedException":
|
|
4503
4697
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4516,10 +4710,12 @@ const deserializeAws_restJson1GetDestinationCommandError = async (output, contex
|
|
|
4516
4710
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4517
4711
|
default:
|
|
4518
4712
|
const parsedBody = parsedOutput.body;
|
|
4713
|
+
const $metadata = deserializeMetadata(output);
|
|
4714
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4519
4715
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4716
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4521
4717
|
$fault: "client",
|
|
4522
|
-
$metadata
|
|
4718
|
+
$metadata,
|
|
4523
4719
|
});
|
|
4524
4720
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4525
4721
|
}
|
|
@@ -4557,8 +4753,7 @@ const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, cont
|
|
|
4557
4753
|
body: await parseBody(output.body, context),
|
|
4558
4754
|
};
|
|
4559
4755
|
let response;
|
|
4560
|
-
|
|
4561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4756
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4562
4757
|
switch (errorCode) {
|
|
4563
4758
|
case "AccessDeniedException":
|
|
4564
4759
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4577,10 +4772,12 @@ const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, cont
|
|
|
4577
4772
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4578
4773
|
default:
|
|
4579
4774
|
const parsedBody = parsedOutput.body;
|
|
4775
|
+
const $metadata = deserializeMetadata(output);
|
|
4776
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4580
4777
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4581
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4778
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4582
4779
|
$fault: "client",
|
|
4583
|
-
$metadata
|
|
4780
|
+
$metadata,
|
|
4584
4781
|
});
|
|
4585
4782
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4586
4783
|
}
|
|
@@ -4618,8 +4815,7 @@ const deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError =
|
|
|
4618
4815
|
body: await parseBody(output.body, context),
|
|
4619
4816
|
};
|
|
4620
4817
|
let response;
|
|
4621
|
-
|
|
4622
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4623
4819
|
switch (errorCode) {
|
|
4624
4820
|
case "AccessDeniedException":
|
|
4625
4821
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4632,10 +4828,12 @@ const deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError =
|
|
|
4632
4828
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4633
4829
|
default:
|
|
4634
4830
|
const parsedBody = parsedOutput.body;
|
|
4831
|
+
const $metadata = deserializeMetadata(output);
|
|
4832
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4635
4833
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4834
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4637
4835
|
$fault: "client",
|
|
4638
|
-
$metadata
|
|
4836
|
+
$metadata,
|
|
4639
4837
|
});
|
|
4640
4838
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4641
4839
|
}
|
|
@@ -4693,8 +4891,7 @@ const deserializeAws_restJson1GetFuotaTaskCommandError = async (output, context)
|
|
|
4693
4891
|
body: await parseBody(output.body, context),
|
|
4694
4892
|
};
|
|
4695
4893
|
let response;
|
|
4696
|
-
|
|
4697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4894
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4698
4895
|
switch (errorCode) {
|
|
4699
4896
|
case "AccessDeniedException":
|
|
4700
4897
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4713,10 +4910,12 @@ const deserializeAws_restJson1GetFuotaTaskCommandError = async (output, context)
|
|
|
4713
4910
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4714
4911
|
default:
|
|
4715
4912
|
const parsedBody = parsedOutput.body;
|
|
4913
|
+
const $metadata = deserializeMetadata(output);
|
|
4914
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4716
4915
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4717
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4916
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4718
4917
|
$fault: "client",
|
|
4719
|
-
$metadata
|
|
4918
|
+
$metadata,
|
|
4720
4919
|
});
|
|
4721
4920
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4722
4921
|
}
|
|
@@ -4750,8 +4949,7 @@ const deserializeAws_restJson1GetLogLevelsByResourceTypesCommandError = async (o
|
|
|
4750
4949
|
body: await parseBody(output.body, context),
|
|
4751
4950
|
};
|
|
4752
4951
|
let response;
|
|
4753
|
-
|
|
4754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4952
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4755
4953
|
switch (errorCode) {
|
|
4756
4954
|
case "AccessDeniedException":
|
|
4757
4955
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4770,10 +4968,12 @@ const deserializeAws_restJson1GetLogLevelsByResourceTypesCommandError = async (o
|
|
|
4770
4968
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4771
4969
|
default:
|
|
4772
4970
|
const parsedBody = parsedOutput.body;
|
|
4971
|
+
const $metadata = deserializeMetadata(output);
|
|
4972
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4773
4973
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4974
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4775
4975
|
$fault: "client",
|
|
4776
|
-
$metadata
|
|
4976
|
+
$metadata,
|
|
4777
4977
|
});
|
|
4778
4978
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4779
4979
|
}
|
|
@@ -4823,8 +5023,7 @@ const deserializeAws_restJson1GetMulticastGroupCommandError = async (output, con
|
|
|
4823
5023
|
body: await parseBody(output.body, context),
|
|
4824
5024
|
};
|
|
4825
5025
|
let response;
|
|
4826
|
-
|
|
4827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5026
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4828
5027
|
switch (errorCode) {
|
|
4829
5028
|
case "AccessDeniedException":
|
|
4830
5029
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4843,10 +5042,12 @@ const deserializeAws_restJson1GetMulticastGroupCommandError = async (output, con
|
|
|
4843
5042
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4844
5043
|
default:
|
|
4845
5044
|
const parsedBody = parsedOutput.body;
|
|
5045
|
+
const $metadata = deserializeMetadata(output);
|
|
5046
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4846
5047
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5048
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4848
5049
|
$fault: "client",
|
|
4849
|
-
$metadata
|
|
5050
|
+
$metadata,
|
|
4850
5051
|
});
|
|
4851
5052
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4852
5053
|
}
|
|
@@ -4872,8 +5073,7 @@ const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (outp
|
|
|
4872
5073
|
body: await parseBody(output.body, context),
|
|
4873
5074
|
};
|
|
4874
5075
|
let response;
|
|
4875
|
-
|
|
4876
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5076
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4877
5077
|
switch (errorCode) {
|
|
4878
5078
|
case "AccessDeniedException":
|
|
4879
5079
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4892,10 +5092,12 @@ const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (outp
|
|
|
4892
5092
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4893
5093
|
default:
|
|
4894
5094
|
const parsedBody = parsedOutput.body;
|
|
5095
|
+
const $metadata = deserializeMetadata(output);
|
|
5096
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4895
5097
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5098
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4897
5099
|
$fault: "client",
|
|
4898
|
-
$metadata
|
|
5100
|
+
$metadata,
|
|
4899
5101
|
});
|
|
4900
5102
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4901
5103
|
}
|
|
@@ -4941,8 +5143,7 @@ const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = asyn
|
|
|
4941
5143
|
body: await parseBody(output.body, context),
|
|
4942
5144
|
};
|
|
4943
5145
|
let response;
|
|
4944
|
-
|
|
4945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5146
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4946
5147
|
switch (errorCode) {
|
|
4947
5148
|
case "AccessDeniedException":
|
|
4948
5149
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4961,10 +5162,12 @@ const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = asyn
|
|
|
4961
5162
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4962
5163
|
default:
|
|
4963
5164
|
const parsedBody = parsedOutput.body;
|
|
5165
|
+
const $metadata = deserializeMetadata(output);
|
|
5166
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4964
5167
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5168
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4966
5169
|
$fault: "client",
|
|
4967
|
-
$metadata
|
|
5170
|
+
$metadata,
|
|
4968
5171
|
});
|
|
4969
5172
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4970
5173
|
}
|
|
@@ -4994,9 +5197,132 @@ const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, con
|
|
|
4994
5197
|
body: await parseBody(output.body, context),
|
|
4995
5198
|
};
|
|
4996
5199
|
let response;
|
|
4997
|
-
|
|
4998
|
-
|
|
5200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5201
|
+
switch (errorCode) {
|
|
5202
|
+
case "InternalServerException":
|
|
5203
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5204
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5205
|
+
case "ResourceNotFoundException":
|
|
5206
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5207
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5208
|
+
case "ThrottlingException":
|
|
5209
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5210
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5211
|
+
case "ValidationException":
|
|
5212
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
5213
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5214
|
+
default:
|
|
5215
|
+
const parsedBody = parsedOutput.body;
|
|
5216
|
+
const $metadata = deserializeMetadata(output);
|
|
5217
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5218
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5220
|
+
$fault: "client",
|
|
5221
|
+
$metadata,
|
|
5222
|
+
});
|
|
5223
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5224
|
+
}
|
|
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);
|
|
4999
5322
|
switch (errorCode) {
|
|
5323
|
+
case "AccessDeniedException":
|
|
5324
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5325
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5000
5326
|
case "InternalServerException":
|
|
5001
5327
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5002
5328
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -5011,10 +5337,12 @@ const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, con
|
|
|
5011
5337
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5012
5338
|
default:
|
|
5013
5339
|
const parsedBody = parsedOutput.body;
|
|
5340
|
+
const $metadata = deserializeMetadata(output);
|
|
5341
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5014
5342
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5016
5344
|
$fault: "client",
|
|
5017
|
-
$metadata
|
|
5345
|
+
$metadata,
|
|
5018
5346
|
});
|
|
5019
5347
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5020
5348
|
}
|
|
@@ -5052,8 +5380,7 @@ const deserializeAws_restJson1GetResourceEventConfigurationCommandError = async
|
|
|
5052
5380
|
body: await parseBody(output.body, context),
|
|
5053
5381
|
};
|
|
5054
5382
|
let response;
|
|
5055
|
-
|
|
5056
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5057
5384
|
switch (errorCode) {
|
|
5058
5385
|
case "AccessDeniedException":
|
|
5059
5386
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5072,10 +5399,12 @@ const deserializeAws_restJson1GetResourceEventConfigurationCommandError = async
|
|
|
5072
5399
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5073
5400
|
default:
|
|
5074
5401
|
const parsedBody = parsedOutput.body;
|
|
5402
|
+
const $metadata = deserializeMetadata(output);
|
|
5403
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5075
5404
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5077
5406
|
$fault: "client",
|
|
5078
|
-
$metadata
|
|
5407
|
+
$metadata,
|
|
5079
5408
|
});
|
|
5080
5409
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5081
5410
|
}
|
|
@@ -5101,8 +5430,7 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
|
|
|
5101
5430
|
body: await parseBody(output.body, context),
|
|
5102
5431
|
};
|
|
5103
5432
|
let response;
|
|
5104
|
-
|
|
5105
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5433
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5106
5434
|
switch (errorCode) {
|
|
5107
5435
|
case "AccessDeniedException":
|
|
5108
5436
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5121,10 +5449,12 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
|
|
|
5121
5449
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5122
5450
|
default:
|
|
5123
5451
|
const parsedBody = parsedOutput.body;
|
|
5452
|
+
const $metadata = deserializeMetadata(output);
|
|
5453
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5124
5454
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5455
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5126
5456
|
$fault: "client",
|
|
5127
|
-
$metadata
|
|
5457
|
+
$metadata,
|
|
5128
5458
|
});
|
|
5129
5459
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5130
5460
|
}
|
|
@@ -5158,8 +5488,7 @@ const deserializeAws_restJson1GetServiceEndpointCommandError = async (output, co
|
|
|
5158
5488
|
body: await parseBody(output.body, context),
|
|
5159
5489
|
};
|
|
5160
5490
|
let response;
|
|
5161
|
-
|
|
5162
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5163
5492
|
switch (errorCode) {
|
|
5164
5493
|
case "AccessDeniedException":
|
|
5165
5494
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5175,10 +5504,12 @@ const deserializeAws_restJson1GetServiceEndpointCommandError = async (output, co
|
|
|
5175
5504
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5176
5505
|
default:
|
|
5177
5506
|
const parsedBody = parsedOutput.body;
|
|
5507
|
+
const $metadata = deserializeMetadata(output);
|
|
5508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5178
5509
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5180
5511
|
$fault: "client",
|
|
5181
|
-
$metadata
|
|
5512
|
+
$metadata,
|
|
5182
5513
|
});
|
|
5183
5514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5184
5515
|
}
|
|
@@ -5216,8 +5547,7 @@ const deserializeAws_restJson1GetServiceProfileCommandError = async (output, con
|
|
|
5216
5547
|
body: await parseBody(output.body, context),
|
|
5217
5548
|
};
|
|
5218
5549
|
let response;
|
|
5219
|
-
|
|
5220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5550
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5221
5551
|
switch (errorCode) {
|
|
5222
5552
|
case "AccessDeniedException":
|
|
5223
5553
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5236,10 +5566,12 @@ const deserializeAws_restJson1GetServiceProfileCommandError = async (output, con
|
|
|
5236
5566
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5237
5567
|
default:
|
|
5238
5568
|
const parsedBody = parsedOutput.body;
|
|
5569
|
+
const $metadata = deserializeMetadata(output);
|
|
5570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5239
5571
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5241
5573
|
$fault: "client",
|
|
5242
|
-
$metadata
|
|
5574
|
+
$metadata,
|
|
5243
5575
|
});
|
|
5244
5576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5245
5577
|
}
|
|
@@ -5301,8 +5633,7 @@ const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, con
|
|
|
5301
5633
|
body: await parseBody(output.body, context),
|
|
5302
5634
|
};
|
|
5303
5635
|
let response;
|
|
5304
|
-
|
|
5305
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5306
5637
|
switch (errorCode) {
|
|
5307
5638
|
case "AccessDeniedException":
|
|
5308
5639
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5321,10 +5652,12 @@ const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, con
|
|
|
5321
5652
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5322
5653
|
default:
|
|
5323
5654
|
const parsedBody = parsedOutput.body;
|
|
5655
|
+
const $metadata = deserializeMetadata(output);
|
|
5656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5324
5657
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5326
5659
|
$fault: "client",
|
|
5327
|
-
$metadata
|
|
5660
|
+
$metadata,
|
|
5328
5661
|
});
|
|
5329
5662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5330
5663
|
}
|
|
@@ -5362,8 +5695,7 @@ const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (o
|
|
|
5362
5695
|
body: await parseBody(output.body, context),
|
|
5363
5696
|
};
|
|
5364
5697
|
let response;
|
|
5365
|
-
|
|
5366
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5367
5699
|
switch (errorCode) {
|
|
5368
5700
|
case "AccessDeniedException":
|
|
5369
5701
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5382,10 +5714,12 @@ const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (o
|
|
|
5382
5714
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5383
5715
|
default:
|
|
5384
5716
|
const parsedBody = parsedOutput.body;
|
|
5717
|
+
const $metadata = deserializeMetadata(output);
|
|
5718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5385
5719
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5387
5721
|
$fault: "client",
|
|
5388
|
-
$metadata
|
|
5722
|
+
$metadata,
|
|
5389
5723
|
});
|
|
5390
5724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5391
5725
|
}
|
|
@@ -5435,8 +5769,7 @@ const deserializeAws_restJson1GetWirelessGatewayCommandError = async (output, co
|
|
|
5435
5769
|
body: await parseBody(output.body, context),
|
|
5436
5770
|
};
|
|
5437
5771
|
let response;
|
|
5438
|
-
|
|
5439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5772
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5440
5773
|
switch (errorCode) {
|
|
5441
5774
|
case "AccessDeniedException":
|
|
5442
5775
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5455,10 +5788,12 @@ const deserializeAws_restJson1GetWirelessGatewayCommandError = async (output, co
|
|
|
5455
5788
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5456
5789
|
default:
|
|
5457
5790
|
const parsedBody = parsedOutput.body;
|
|
5791
|
+
const $metadata = deserializeMetadata(output);
|
|
5792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5458
5793
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5460
5795
|
$fault: "client",
|
|
5461
|
-
$metadata
|
|
5796
|
+
$metadata,
|
|
5462
5797
|
});
|
|
5463
5798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5464
5799
|
}
|
|
@@ -5488,8 +5823,7 @@ const deserializeAws_restJson1GetWirelessGatewayCertificateCommandError = async
|
|
|
5488
5823
|
body: await parseBody(output.body, context),
|
|
5489
5824
|
};
|
|
5490
5825
|
let response;
|
|
5491
|
-
|
|
5492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5493
5827
|
switch (errorCode) {
|
|
5494
5828
|
case "AccessDeniedException":
|
|
5495
5829
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5508,10 +5842,12 @@ const deserializeAws_restJson1GetWirelessGatewayCertificateCommandError = async
|
|
|
5508
5842
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5509
5843
|
default:
|
|
5510
5844
|
const parsedBody = parsedOutput.body;
|
|
5845
|
+
const $metadata = deserializeMetadata(output);
|
|
5846
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5511
5847
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5512
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5848
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5513
5849
|
$fault: "client",
|
|
5514
|
-
$metadata
|
|
5850
|
+
$metadata,
|
|
5515
5851
|
});
|
|
5516
5852
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5517
5853
|
}
|
|
@@ -5537,8 +5873,7 @@ const deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommandError
|
|
|
5537
5873
|
body: await parseBody(output.body, context),
|
|
5538
5874
|
};
|
|
5539
5875
|
let response;
|
|
5540
|
-
|
|
5541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5876
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5542
5877
|
switch (errorCode) {
|
|
5543
5878
|
case "AccessDeniedException":
|
|
5544
5879
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5557,10 +5892,12 @@ const deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommandError
|
|
|
5557
5892
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5558
5893
|
default:
|
|
5559
5894
|
const parsedBody = parsedOutput.body;
|
|
5895
|
+
const $metadata = deserializeMetadata(output);
|
|
5896
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5560
5897
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5561
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5562
5899
|
$fault: "client",
|
|
5563
|
-
$metadata
|
|
5900
|
+
$metadata,
|
|
5564
5901
|
});
|
|
5565
5902
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5566
5903
|
}
|
|
@@ -5594,8 +5931,7 @@ const deserializeAws_restJson1GetWirelessGatewayStatisticsCommandError = async (
|
|
|
5594
5931
|
body: await parseBody(output.body, context),
|
|
5595
5932
|
};
|
|
5596
5933
|
let response;
|
|
5597
|
-
|
|
5598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5599
5935
|
switch (errorCode) {
|
|
5600
5936
|
case "AccessDeniedException":
|
|
5601
5937
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5614,10 +5950,12 @@ const deserializeAws_restJson1GetWirelessGatewayStatisticsCommandError = async (
|
|
|
5614
5950
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5615
5951
|
default:
|
|
5616
5952
|
const parsedBody = parsedOutput.body;
|
|
5953
|
+
const $metadata = deserializeMetadata(output);
|
|
5954
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5617
5955
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5618
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5956
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5619
5957
|
$fault: "client",
|
|
5620
|
-
$metadata
|
|
5958
|
+
$metadata,
|
|
5621
5959
|
});
|
|
5622
5960
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5623
5961
|
}
|
|
@@ -5659,8 +5997,7 @@ const deserializeAws_restJson1GetWirelessGatewayTaskCommandError = async (output
|
|
|
5659
5997
|
body: await parseBody(output.body, context),
|
|
5660
5998
|
};
|
|
5661
5999
|
let response;
|
|
5662
|
-
|
|
5663
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5664
6001
|
switch (errorCode) {
|
|
5665
6002
|
case "AccessDeniedException":
|
|
5666
6003
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5679,10 +6016,12 @@ const deserializeAws_restJson1GetWirelessGatewayTaskCommandError = async (output
|
|
|
5679
6016
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5680
6017
|
default:
|
|
5681
6018
|
const parsedBody = parsedOutput.body;
|
|
6019
|
+
const $metadata = deserializeMetadata(output);
|
|
6020
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5682
6021
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6022
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5684
6023
|
$fault: "client",
|
|
5685
|
-
$metadata
|
|
6024
|
+
$metadata,
|
|
5686
6025
|
});
|
|
5687
6026
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5688
6027
|
}
|
|
@@ -5720,8 +6059,7 @@ const deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommandError = asy
|
|
|
5720
6059
|
body: await parseBody(output.body, context),
|
|
5721
6060
|
};
|
|
5722
6061
|
let response;
|
|
5723
|
-
|
|
5724
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5725
6063
|
switch (errorCode) {
|
|
5726
6064
|
case "AccessDeniedException":
|
|
5727
6065
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5740,10 +6078,12 @@ const deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommandError = asy
|
|
|
5740
6078
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5741
6079
|
default:
|
|
5742
6080
|
const parsedBody = parsedOutput.body;
|
|
6081
|
+
const $metadata = deserializeMetadata(output);
|
|
6082
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5743
6083
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6084
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5745
6085
|
$fault: "client",
|
|
5746
|
-
$metadata
|
|
6086
|
+
$metadata,
|
|
5747
6087
|
});
|
|
5748
6088
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5749
6089
|
}
|
|
@@ -5773,8 +6113,7 @@ const deserializeAws_restJson1ListDestinationsCommandError = async (output, cont
|
|
|
5773
6113
|
body: await parseBody(output.body, context),
|
|
5774
6114
|
};
|
|
5775
6115
|
let response;
|
|
5776
|
-
|
|
5777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6116
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5778
6117
|
switch (errorCode) {
|
|
5779
6118
|
case "AccessDeniedException":
|
|
5780
6119
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5790,10 +6129,12 @@ const deserializeAws_restJson1ListDestinationsCommandError = async (output, cont
|
|
|
5790
6129
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5791
6130
|
default:
|
|
5792
6131
|
const parsedBody = parsedOutput.body;
|
|
6132
|
+
const $metadata = deserializeMetadata(output);
|
|
6133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5793
6134
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5795
6136
|
$fault: "client",
|
|
5796
|
-
$metadata
|
|
6137
|
+
$metadata,
|
|
5797
6138
|
});
|
|
5798
6139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5799
6140
|
}
|
|
@@ -5823,8 +6164,7 @@ const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, co
|
|
|
5823
6164
|
body: await parseBody(output.body, context),
|
|
5824
6165
|
};
|
|
5825
6166
|
let response;
|
|
5826
|
-
|
|
5827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6167
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5828
6168
|
switch (errorCode) {
|
|
5829
6169
|
case "AccessDeniedException":
|
|
5830
6170
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5840,10 +6180,12 @@ const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, co
|
|
|
5840
6180
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5841
6181
|
default:
|
|
5842
6182
|
const parsedBody = parsedOutput.body;
|
|
6183
|
+
const $metadata = deserializeMetadata(output);
|
|
6184
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5843
6185
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6186
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5845
6187
|
$fault: "client",
|
|
5846
|
-
$metadata
|
|
6188
|
+
$metadata,
|
|
5847
6189
|
});
|
|
5848
6190
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5849
6191
|
}
|
|
@@ -5873,8 +6215,7 @@ const deserializeAws_restJson1ListEventConfigurationsCommandError = async (outpu
|
|
|
5873
6215
|
body: await parseBody(output.body, context),
|
|
5874
6216
|
};
|
|
5875
6217
|
let response;
|
|
5876
|
-
|
|
5877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5878
6219
|
switch (errorCode) {
|
|
5879
6220
|
case "AccessDeniedException":
|
|
5880
6221
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5890,10 +6231,12 @@ const deserializeAws_restJson1ListEventConfigurationsCommandError = async (outpu
|
|
|
5890
6231
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5891
6232
|
default:
|
|
5892
6233
|
const parsedBody = parsedOutput.body;
|
|
6234
|
+
const $metadata = deserializeMetadata(output);
|
|
6235
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5893
6236
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6237
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5895
6238
|
$fault: "client",
|
|
5896
|
-
$metadata
|
|
6239
|
+
$metadata,
|
|
5897
6240
|
});
|
|
5898
6241
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5899
6242
|
}
|
|
@@ -5923,8 +6266,7 @@ const deserializeAws_restJson1ListFuotaTasksCommandError = async (output, contex
|
|
|
5923
6266
|
body: await parseBody(output.body, context),
|
|
5924
6267
|
};
|
|
5925
6268
|
let response;
|
|
5926
|
-
|
|
5927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5928
6270
|
switch (errorCode) {
|
|
5929
6271
|
case "AccessDeniedException":
|
|
5930
6272
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5940,10 +6282,12 @@ const deserializeAws_restJson1ListFuotaTasksCommandError = async (output, contex
|
|
|
5940
6282
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5941
6283
|
default:
|
|
5942
6284
|
const parsedBody = parsedOutput.body;
|
|
6285
|
+
const $metadata = deserializeMetadata(output);
|
|
6286
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5943
6287
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6288
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5945
6289
|
$fault: "client",
|
|
5946
|
-
$metadata
|
|
6290
|
+
$metadata,
|
|
5947
6291
|
});
|
|
5948
6292
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5949
6293
|
}
|
|
@@ -5973,8 +6317,7 @@ const deserializeAws_restJson1ListMulticastGroupsCommandError = async (output, c
|
|
|
5973
6317
|
body: await parseBody(output.body, context),
|
|
5974
6318
|
};
|
|
5975
6319
|
let response;
|
|
5976
|
-
|
|
5977
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6320
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5978
6321
|
switch (errorCode) {
|
|
5979
6322
|
case "AccessDeniedException":
|
|
5980
6323
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5990,10 +6333,12 @@ const deserializeAws_restJson1ListMulticastGroupsCommandError = async (output, c
|
|
|
5990
6333
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5991
6334
|
default:
|
|
5992
6335
|
const parsedBody = parsedOutput.body;
|
|
6336
|
+
const $metadata = deserializeMetadata(output);
|
|
6337
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5993
6338
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6339
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5995
6340
|
$fault: "client",
|
|
5996
|
-
$metadata
|
|
6341
|
+
$metadata,
|
|
5997
6342
|
});
|
|
5998
6343
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5999
6344
|
}
|
|
@@ -6023,8 +6368,7 @@ const deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = async
|
|
|
6023
6368
|
body: await parseBody(output.body, context),
|
|
6024
6369
|
};
|
|
6025
6370
|
let response;
|
|
6026
|
-
|
|
6027
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6371
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6028
6372
|
switch (errorCode) {
|
|
6029
6373
|
case "AccessDeniedException":
|
|
6030
6374
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6043,10 +6387,12 @@ const deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = async
|
|
|
6043
6387
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6044
6388
|
default:
|
|
6045
6389
|
const parsedBody = parsedOutput.body;
|
|
6390
|
+
const $metadata = deserializeMetadata(output);
|
|
6391
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6046
6392
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6393
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6048
6394
|
$fault: "client",
|
|
6049
|
-
$metadata
|
|
6395
|
+
$metadata,
|
|
6050
6396
|
});
|
|
6051
6397
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6052
6398
|
}
|
|
@@ -6076,8 +6422,7 @@ const deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = as
|
|
|
6076
6422
|
body: await parseBody(output.body, context),
|
|
6077
6423
|
};
|
|
6078
6424
|
let response;
|
|
6079
|
-
|
|
6080
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6081
6426
|
switch (errorCode) {
|
|
6082
6427
|
case "AccessDeniedException":
|
|
6083
6428
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6093,10 +6438,12 @@ const deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = as
|
|
|
6093
6438
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6094
6439
|
default:
|
|
6095
6440
|
const parsedBody = parsedOutput.body;
|
|
6441
|
+
const $metadata = deserializeMetadata(output);
|
|
6442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6096
6443
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6097
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6098
6445
|
$fault: "client",
|
|
6099
|
-
$metadata
|
|
6446
|
+
$metadata,
|
|
6100
6447
|
});
|
|
6101
6448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6102
6449
|
}
|
|
@@ -6126,8 +6473,7 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
6126
6473
|
body: await parseBody(output.body, context),
|
|
6127
6474
|
};
|
|
6128
6475
|
let response;
|
|
6129
|
-
|
|
6130
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6131
6477
|
switch (errorCode) {
|
|
6132
6478
|
case "InternalServerException":
|
|
6133
6479
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6143,10 +6489,63 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
6143
6489
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6144
6490
|
default:
|
|
6145
6491
|
const parsedBody = parsedOutput.body;
|
|
6492
|
+
const $metadata = deserializeMetadata(output);
|
|
6493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6146
6494
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6495
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6148
6496
|
$fault: "client",
|
|
6149
|
-
$metadata
|
|
6497
|
+
$metadata,
|
|
6498
|
+
});
|
|
6499
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6500
|
+
}
|
|
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,
|
|
6150
6549
|
});
|
|
6151
6550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6152
6551
|
}
|
|
@@ -6176,8 +6575,7 @@ const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, co
|
|
|
6176
6575
|
body: await parseBody(output.body, context),
|
|
6177
6576
|
};
|
|
6178
6577
|
let response;
|
|
6179
|
-
|
|
6180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6181
6579
|
switch (errorCode) {
|
|
6182
6580
|
case "AccessDeniedException":
|
|
6183
6581
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6196,10 +6594,12 @@ const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, co
|
|
|
6196
6594
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6197
6595
|
default:
|
|
6198
6596
|
const parsedBody = parsedOutput.body;
|
|
6597
|
+
const $metadata = deserializeMetadata(output);
|
|
6598
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6199
6599
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6600
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6201
6601
|
$fault: "client",
|
|
6202
|
-
$metadata
|
|
6602
|
+
$metadata,
|
|
6203
6603
|
});
|
|
6204
6604
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6205
6605
|
}
|
|
@@ -6229,8 +6629,7 @@ const deserializeAws_restJson1ListServiceProfilesCommandError = async (output, c
|
|
|
6229
6629
|
body: await parseBody(output.body, context),
|
|
6230
6630
|
};
|
|
6231
6631
|
let response;
|
|
6232
|
-
|
|
6233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6234
6633
|
switch (errorCode) {
|
|
6235
6634
|
case "AccessDeniedException":
|
|
6236
6635
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6246,10 +6645,12 @@ const deserializeAws_restJson1ListServiceProfilesCommandError = async (output, c
|
|
|
6246
6645
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6247
6646
|
default:
|
|
6248
6647
|
const parsedBody = parsedOutput.body;
|
|
6648
|
+
const $metadata = deserializeMetadata(output);
|
|
6649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6249
6650
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6251
6652
|
$fault: "client",
|
|
6252
|
-
$metadata
|
|
6653
|
+
$metadata,
|
|
6253
6654
|
});
|
|
6254
6655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6255
6656
|
}
|
|
@@ -6275,8 +6676,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
6275
6676
|
body: await parseBody(output.body, context),
|
|
6276
6677
|
};
|
|
6277
6678
|
let response;
|
|
6278
|
-
|
|
6279
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6679
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6280
6680
|
switch (errorCode) {
|
|
6281
6681
|
case "ConflictException":
|
|
6282
6682
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -6295,10 +6695,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
6295
6695
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6296
6696
|
default:
|
|
6297
6697
|
const parsedBody = parsedOutput.body;
|
|
6698
|
+
const $metadata = deserializeMetadata(output);
|
|
6699
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6298
6700
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6701
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6300
6702
|
$fault: "client",
|
|
6301
|
-
$metadata
|
|
6703
|
+
$metadata,
|
|
6302
6704
|
});
|
|
6303
6705
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6304
6706
|
}
|
|
@@ -6328,8 +6730,7 @@ const deserializeAws_restJson1ListWirelessDevicesCommandError = async (output, c
|
|
|
6328
6730
|
body: await parseBody(output.body, context),
|
|
6329
6731
|
};
|
|
6330
6732
|
let response;
|
|
6331
|
-
|
|
6332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6733
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6333
6734
|
switch (errorCode) {
|
|
6334
6735
|
case "AccessDeniedException":
|
|
6335
6736
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6345,10 +6746,12 @@ const deserializeAws_restJson1ListWirelessDevicesCommandError = async (output, c
|
|
|
6345
6746
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6346
6747
|
default:
|
|
6347
6748
|
const parsedBody = parsedOutput.body;
|
|
6749
|
+
const $metadata = deserializeMetadata(output);
|
|
6750
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6348
6751
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6349
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6752
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6350
6753
|
$fault: "client",
|
|
6351
|
-
$metadata
|
|
6754
|
+
$metadata,
|
|
6352
6755
|
});
|
|
6353
6756
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6354
6757
|
}
|
|
@@ -6378,8 +6781,7 @@ const deserializeAws_restJson1ListWirelessGatewaysCommandError = async (output,
|
|
|
6378
6781
|
body: await parseBody(output.body, context),
|
|
6379
6782
|
};
|
|
6380
6783
|
let response;
|
|
6381
|
-
|
|
6382
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6784
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6383
6785
|
switch (errorCode) {
|
|
6384
6786
|
case "AccessDeniedException":
|
|
6385
6787
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6395,10 +6797,12 @@ const deserializeAws_restJson1ListWirelessGatewaysCommandError = async (output,
|
|
|
6395
6797
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6396
6798
|
default:
|
|
6397
6799
|
const parsedBody = parsedOutput.body;
|
|
6800
|
+
const $metadata = deserializeMetadata(output);
|
|
6801
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6398
6802
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6399
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6803
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6400
6804
|
$fault: "client",
|
|
6401
|
-
$metadata
|
|
6805
|
+
$metadata,
|
|
6402
6806
|
});
|
|
6403
6807
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6404
6808
|
}
|
|
@@ -6428,8 +6832,7 @@ const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = a
|
|
|
6428
6832
|
body: await parseBody(output.body, context),
|
|
6429
6833
|
};
|
|
6430
6834
|
let response;
|
|
6431
|
-
|
|
6432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6835
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6433
6836
|
switch (errorCode) {
|
|
6434
6837
|
case "AccessDeniedException":
|
|
6435
6838
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6445,10 +6848,58 @@ const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = a
|
|
|
6445
6848
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6446
6849
|
default:
|
|
6447
6850
|
const parsedBody = parsedOutput.body;
|
|
6851
|
+
const $metadata = deserializeMetadata(output);
|
|
6852
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6853
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6854
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6855
|
+
$fault: "client",
|
|
6856
|
+
$metadata,
|
|
6857
|
+
});
|
|
6858
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6859
|
+
}
|
|
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;
|
|
6448
6899
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6900
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6450
6901
|
$fault: "client",
|
|
6451
|
-
$metadata
|
|
6902
|
+
$metadata,
|
|
6452
6903
|
});
|
|
6453
6904
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6454
6905
|
}
|
|
@@ -6470,8 +6921,7 @@ const deserializeAws_restJson1PutResourceLogLevelCommandError = async (output, c
|
|
|
6470
6921
|
body: await parseBody(output.body, context),
|
|
6471
6922
|
};
|
|
6472
6923
|
let response;
|
|
6473
|
-
|
|
6474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6924
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6475
6925
|
switch (errorCode) {
|
|
6476
6926
|
case "AccessDeniedException":
|
|
6477
6927
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6490,10 +6940,12 @@ const deserializeAws_restJson1PutResourceLogLevelCommandError = async (output, c
|
|
|
6490
6940
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6491
6941
|
default:
|
|
6492
6942
|
const parsedBody = parsedOutput.body;
|
|
6943
|
+
const $metadata = deserializeMetadata(output);
|
|
6944
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6493
6945
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6946
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6495
6947
|
$fault: "client",
|
|
6496
|
-
$metadata
|
|
6948
|
+
$metadata,
|
|
6497
6949
|
});
|
|
6498
6950
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6499
6951
|
}
|
|
@@ -6515,8 +6967,7 @@ const deserializeAws_restJson1ResetAllResourceLogLevelsCommandError = async (out
|
|
|
6515
6967
|
body: await parseBody(output.body, context),
|
|
6516
6968
|
};
|
|
6517
6969
|
let response;
|
|
6518
|
-
|
|
6519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6970
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6520
6971
|
switch (errorCode) {
|
|
6521
6972
|
case "AccessDeniedException":
|
|
6522
6973
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6535,10 +6986,12 @@ const deserializeAws_restJson1ResetAllResourceLogLevelsCommandError = async (out
|
|
|
6535
6986
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6536
6987
|
default:
|
|
6537
6988
|
const parsedBody = parsedOutput.body;
|
|
6989
|
+
const $metadata = deserializeMetadata(output);
|
|
6990
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6538
6991
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6992
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6540
6993
|
$fault: "client",
|
|
6541
|
-
$metadata
|
|
6994
|
+
$metadata,
|
|
6542
6995
|
});
|
|
6543
6996
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6544
6997
|
}
|
|
@@ -6560,8 +7013,7 @@ const deserializeAws_restJson1ResetResourceLogLevelCommandError = async (output,
|
|
|
6560
7013
|
body: await parseBody(output.body, context),
|
|
6561
7014
|
};
|
|
6562
7015
|
let response;
|
|
6563
|
-
|
|
6564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7016
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6565
7017
|
switch (errorCode) {
|
|
6566
7018
|
case "AccessDeniedException":
|
|
6567
7019
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6580,10 +7032,12 @@ const deserializeAws_restJson1ResetResourceLogLevelCommandError = async (output,
|
|
|
6580
7032
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6581
7033
|
default:
|
|
6582
7034
|
const parsedBody = parsedOutput.body;
|
|
7035
|
+
const $metadata = deserializeMetadata(output);
|
|
7036
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6583
7037
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7038
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6585
7039
|
$fault: "client",
|
|
6586
|
-
$metadata
|
|
7040
|
+
$metadata,
|
|
6587
7041
|
});
|
|
6588
7042
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6589
7043
|
}
|
|
@@ -6609,8 +7063,7 @@ const deserializeAws_restJson1SendDataToMulticastGroupCommandError = async (outp
|
|
|
6609
7063
|
body: await parseBody(output.body, context),
|
|
6610
7064
|
};
|
|
6611
7065
|
let response;
|
|
6612
|
-
|
|
6613
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7066
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6614
7067
|
switch (errorCode) {
|
|
6615
7068
|
case "AccessDeniedException":
|
|
6616
7069
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6632,10 +7085,12 @@ const deserializeAws_restJson1SendDataToMulticastGroupCommandError = async (outp
|
|
|
6632
7085
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6633
7086
|
default:
|
|
6634
7087
|
const parsedBody = parsedOutput.body;
|
|
7088
|
+
const $metadata = deserializeMetadata(output);
|
|
7089
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6635
7090
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7091
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6637
7092
|
$fault: "client",
|
|
6638
|
-
$metadata
|
|
7093
|
+
$metadata,
|
|
6639
7094
|
});
|
|
6640
7095
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6641
7096
|
}
|
|
@@ -6661,8 +7116,7 @@ const deserializeAws_restJson1SendDataToWirelessDeviceCommandError = async (outp
|
|
|
6661
7116
|
body: await parseBody(output.body, context),
|
|
6662
7117
|
};
|
|
6663
7118
|
let response;
|
|
6664
|
-
|
|
6665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6666
7120
|
switch (errorCode) {
|
|
6667
7121
|
case "InternalServerException":
|
|
6668
7122
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6678,10 +7132,12 @@ const deserializeAws_restJson1SendDataToWirelessDeviceCommandError = async (outp
|
|
|
6678
7132
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6679
7133
|
default:
|
|
6680
7134
|
const parsedBody = parsedOutput.body;
|
|
7135
|
+
const $metadata = deserializeMetadata(output);
|
|
7136
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6681
7137
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6682
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7138
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6683
7139
|
$fault: "client",
|
|
6684
|
-
$metadata
|
|
7140
|
+
$metadata,
|
|
6685
7141
|
});
|
|
6686
7142
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6687
7143
|
}
|
|
@@ -6703,8 +7159,7 @@ const deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroup
|
|
|
6703
7159
|
body: await parseBody(output.body, context),
|
|
6704
7160
|
};
|
|
6705
7161
|
let response;
|
|
6706
|
-
|
|
6707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7162
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6708
7163
|
switch (errorCode) {
|
|
6709
7164
|
case "AccessDeniedException":
|
|
6710
7165
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6723,10 +7178,12 @@ const deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroup
|
|
|
6723
7178
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6724
7179
|
default:
|
|
6725
7180
|
const parsedBody = parsedOutput.body;
|
|
7181
|
+
const $metadata = deserializeMetadata(output);
|
|
7182
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6726
7183
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7184
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6728
7185
|
$fault: "client",
|
|
6729
|
-
$metadata
|
|
7186
|
+
$metadata,
|
|
6730
7187
|
});
|
|
6731
7188
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6732
7189
|
}
|
|
@@ -6748,8 +7205,7 @@ const deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGr
|
|
|
6748
7205
|
body: await parseBody(output.body, context),
|
|
6749
7206
|
};
|
|
6750
7207
|
let response;
|
|
6751
|
-
|
|
6752
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6753
7209
|
switch (errorCode) {
|
|
6754
7210
|
case "AccessDeniedException":
|
|
6755
7211
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6768,10 +7224,12 @@ const deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGr
|
|
|
6768
7224
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6769
7225
|
default:
|
|
6770
7226
|
const parsedBody = parsedOutput.body;
|
|
7227
|
+
const $metadata = deserializeMetadata(output);
|
|
7228
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6771
7229
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6772
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7230
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6773
7231
|
$fault: "client",
|
|
6774
|
-
$metadata
|
|
7232
|
+
$metadata,
|
|
6775
7233
|
});
|
|
6776
7234
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6777
7235
|
}
|
|
@@ -6793,8 +7251,7 @@ const deserializeAws_restJson1StartFuotaTaskCommandError = async (output, contex
|
|
|
6793
7251
|
body: await parseBody(output.body, context),
|
|
6794
7252
|
};
|
|
6795
7253
|
let response;
|
|
6796
|
-
|
|
6797
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6798
7255
|
switch (errorCode) {
|
|
6799
7256
|
case "AccessDeniedException":
|
|
6800
7257
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6816,10 +7273,12 @@ const deserializeAws_restJson1StartFuotaTaskCommandError = async (output, contex
|
|
|
6816
7273
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6817
7274
|
default:
|
|
6818
7275
|
const parsedBody = parsedOutput.body;
|
|
7276
|
+
const $metadata = deserializeMetadata(output);
|
|
7277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6819
7278
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6821
7280
|
$fault: "client",
|
|
6822
|
-
$metadata
|
|
7281
|
+
$metadata,
|
|
6823
7282
|
});
|
|
6824
7283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6825
7284
|
}
|
|
@@ -6841,8 +7300,7 @@ const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (ou
|
|
|
6841
7300
|
body: await parseBody(output.body, context),
|
|
6842
7301
|
};
|
|
6843
7302
|
let response;
|
|
6844
|
-
|
|
6845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6846
7304
|
switch (errorCode) {
|
|
6847
7305
|
case "AccessDeniedException":
|
|
6848
7306
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6864,10 +7322,12 @@ const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (ou
|
|
|
6864
7322
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6865
7323
|
default:
|
|
6866
7324
|
const parsedBody = parsedOutput.body;
|
|
7325
|
+
const $metadata = deserializeMetadata(output);
|
|
7326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6867
7327
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6869
7329
|
$fault: "client",
|
|
6870
|
-
$metadata
|
|
7330
|
+
$metadata,
|
|
6871
7331
|
});
|
|
6872
7332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6873
7333
|
}
|
|
@@ -6889,8 +7349,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6889
7349
|
body: await parseBody(output.body, context),
|
|
6890
7350
|
};
|
|
6891
7351
|
let response;
|
|
6892
|
-
|
|
6893
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7352
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6894
7353
|
switch (errorCode) {
|
|
6895
7354
|
case "ConflictException":
|
|
6896
7355
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -6912,10 +7371,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6912
7371
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6913
7372
|
default:
|
|
6914
7373
|
const parsedBody = parsedOutput.body;
|
|
7374
|
+
const $metadata = deserializeMetadata(output);
|
|
7375
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6915
7376
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6916
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7377
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6917
7378
|
$fault: "client",
|
|
6918
|
-
$metadata
|
|
7379
|
+
$metadata,
|
|
6919
7380
|
});
|
|
6920
7381
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6921
7382
|
}
|
|
@@ -6941,8 +7402,7 @@ const deserializeAws_restJson1TestWirelessDeviceCommandError = async (output, co
|
|
|
6941
7402
|
body: await parseBody(output.body, context),
|
|
6942
7403
|
};
|
|
6943
7404
|
let response;
|
|
6944
|
-
|
|
6945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6946
7406
|
switch (errorCode) {
|
|
6947
7407
|
case "InternalServerException":
|
|
6948
7408
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6958,10 +7418,12 @@ const deserializeAws_restJson1TestWirelessDeviceCommandError = async (output, co
|
|
|
6958
7418
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6959
7419
|
default:
|
|
6960
7420
|
const parsedBody = parsedOutput.body;
|
|
7421
|
+
const $metadata = deserializeMetadata(output);
|
|
7422
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6961
7423
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7424
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6963
7425
|
$fault: "client",
|
|
6964
|
-
$metadata
|
|
7426
|
+
$metadata,
|
|
6965
7427
|
});
|
|
6966
7428
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6967
7429
|
}
|
|
@@ -6983,8 +7445,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6983
7445
|
body: await parseBody(output.body, context),
|
|
6984
7446
|
};
|
|
6985
7447
|
let response;
|
|
6986
|
-
|
|
6987
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6988
7449
|
switch (errorCode) {
|
|
6989
7450
|
case "ConflictException":
|
|
6990
7451
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -7003,10 +7464,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
7003
7464
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7004
7465
|
default:
|
|
7005
7466
|
const parsedBody = parsedOutput.body;
|
|
7467
|
+
const $metadata = deserializeMetadata(output);
|
|
7468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7006
7469
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7008
7471
|
$fault: "client",
|
|
7009
|
-
$metadata
|
|
7472
|
+
$metadata,
|
|
7010
7473
|
});
|
|
7011
7474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7012
7475
|
}
|
|
@@ -7028,8 +7491,7 @@ const deserializeAws_restJson1UpdateDestinationCommandError = async (output, con
|
|
|
7028
7491
|
body: await parseBody(output.body, context),
|
|
7029
7492
|
};
|
|
7030
7493
|
let response;
|
|
7031
|
-
|
|
7032
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7033
7495
|
switch (errorCode) {
|
|
7034
7496
|
case "AccessDeniedException":
|
|
7035
7497
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7048,10 +7510,12 @@ const deserializeAws_restJson1UpdateDestinationCommandError = async (output, con
|
|
|
7048
7510
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7049
7511
|
default:
|
|
7050
7512
|
const parsedBody = parsedOutput.body;
|
|
7513
|
+
const $metadata = deserializeMetadata(output);
|
|
7514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7051
7515
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7052
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7053
7517
|
$fault: "client",
|
|
7054
|
-
$metadata
|
|
7518
|
+
$metadata,
|
|
7055
7519
|
});
|
|
7056
7520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7057
7521
|
}
|
|
@@ -7073,8 +7537,7 @@ const deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandErro
|
|
|
7073
7537
|
body: await parseBody(output.body, context),
|
|
7074
7538
|
};
|
|
7075
7539
|
let response;
|
|
7076
|
-
|
|
7077
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7078
7541
|
switch (errorCode) {
|
|
7079
7542
|
case "AccessDeniedException":
|
|
7080
7543
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7090,10 +7553,12 @@ const deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandErro
|
|
|
7090
7553
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7091
7554
|
default:
|
|
7092
7555
|
const parsedBody = parsedOutput.body;
|
|
7556
|
+
const $metadata = deserializeMetadata(output);
|
|
7557
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7093
7558
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7095
7560
|
$fault: "client",
|
|
7096
|
-
$metadata
|
|
7561
|
+
$metadata,
|
|
7097
7562
|
});
|
|
7098
7563
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7099
7564
|
}
|
|
@@ -7115,8 +7580,7 @@ const deserializeAws_restJson1UpdateFuotaTaskCommandError = async (output, conte
|
|
|
7115
7580
|
body: await parseBody(output.body, context),
|
|
7116
7581
|
};
|
|
7117
7582
|
let response;
|
|
7118
|
-
|
|
7119
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7120
7584
|
switch (errorCode) {
|
|
7121
7585
|
case "AccessDeniedException":
|
|
7122
7586
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7138,10 +7602,12 @@ const deserializeAws_restJson1UpdateFuotaTaskCommandError = async (output, conte
|
|
|
7138
7602
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7139
7603
|
default:
|
|
7140
7604
|
const parsedBody = parsedOutput.body;
|
|
7605
|
+
const $metadata = deserializeMetadata(output);
|
|
7606
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7141
7607
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7142
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7608
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7143
7609
|
$fault: "client",
|
|
7144
|
-
$metadata
|
|
7610
|
+
$metadata,
|
|
7145
7611
|
});
|
|
7146
7612
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7147
7613
|
}
|
|
@@ -7163,8 +7629,7 @@ const deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommandError = async
|
|
|
7163
7629
|
body: await parseBody(output.body, context),
|
|
7164
7630
|
};
|
|
7165
7631
|
let response;
|
|
7166
|
-
|
|
7167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7168
7633
|
switch (errorCode) {
|
|
7169
7634
|
case "AccessDeniedException":
|
|
7170
7635
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7186,10 +7651,12 @@ const deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommandError = async
|
|
|
7186
7651
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7187
7652
|
default:
|
|
7188
7653
|
const parsedBody = parsedOutput.body;
|
|
7654
|
+
const $metadata = deserializeMetadata(output);
|
|
7655
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7189
7656
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7190
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7657
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7191
7658
|
$fault: "client",
|
|
7192
|
-
$metadata
|
|
7659
|
+
$metadata,
|
|
7193
7660
|
});
|
|
7194
7661
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7195
7662
|
}
|
|
@@ -7211,8 +7678,7 @@ const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output,
|
|
|
7211
7678
|
body: await parseBody(output.body, context),
|
|
7212
7679
|
};
|
|
7213
7680
|
let response;
|
|
7214
|
-
|
|
7215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7681
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7216
7682
|
switch (errorCode) {
|
|
7217
7683
|
case "AccessDeniedException":
|
|
7218
7684
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7234,10 +7700,12 @@ const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output,
|
|
|
7234
7700
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7235
7701
|
default:
|
|
7236
7702
|
const parsedBody = parsedOutput.body;
|
|
7703
|
+
const $metadata = deserializeMetadata(output);
|
|
7704
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7237
7705
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7706
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7239
7707
|
$fault: "client",
|
|
7240
|
-
$metadata
|
|
7708
|
+
$metadata,
|
|
7241
7709
|
});
|
|
7242
7710
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7243
7711
|
}
|
|
@@ -7259,8 +7727,7 @@ const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = a
|
|
|
7259
7727
|
body: await parseBody(output.body, context),
|
|
7260
7728
|
};
|
|
7261
7729
|
let response;
|
|
7262
|
-
|
|
7263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7264
7731
|
switch (errorCode) {
|
|
7265
7732
|
case "AccessDeniedException":
|
|
7266
7733
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7279,10 +7746,12 @@ const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = a
|
|
|
7279
7746
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7280
7747
|
default:
|
|
7281
7748
|
const parsedBody = parsedOutput.body;
|
|
7749
|
+
const $metadata = deserializeMetadata(output);
|
|
7750
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7282
7751
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7752
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7284
7753
|
$fault: "client",
|
|
7285
|
-
$metadata
|
|
7754
|
+
$metadata,
|
|
7286
7755
|
});
|
|
7287
7756
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7288
7757
|
}
|
|
@@ -7304,8 +7773,7 @@ const deserializeAws_restJson1UpdatePartnerAccountCommandError = async (output,
|
|
|
7304
7773
|
body: await parseBody(output.body, context),
|
|
7305
7774
|
};
|
|
7306
7775
|
let response;
|
|
7307
|
-
|
|
7308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7776
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7309
7777
|
switch (errorCode) {
|
|
7310
7778
|
case "InternalServerException":
|
|
7311
7779
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -7321,10 +7789,58 @@ const deserializeAws_restJson1UpdatePartnerAccountCommandError = async (output,
|
|
|
7321
7789
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7322
7790
|
default:
|
|
7323
7791
|
const parsedBody = parsedOutput.body;
|
|
7792
|
+
const $metadata = deserializeMetadata(output);
|
|
7793
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7324
7794
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7795
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7326
7796
|
$fault: "client",
|
|
7327
|
-
$metadata
|
|
7797
|
+
$metadata,
|
|
7798
|
+
});
|
|
7799
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7800
|
+
}
|
|
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,
|
|
7328
7844
|
});
|
|
7329
7845
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7330
7846
|
}
|
|
@@ -7346,8 +7862,7 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
|
|
|
7346
7862
|
body: await parseBody(output.body, context),
|
|
7347
7863
|
};
|
|
7348
7864
|
let response;
|
|
7349
|
-
|
|
7350
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7351
7866
|
switch (errorCode) {
|
|
7352
7867
|
case "AccessDeniedException":
|
|
7353
7868
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7369,10 +7884,12 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
|
|
|
7369
7884
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7370
7885
|
default:
|
|
7371
7886
|
const parsedBody = parsedOutput.body;
|
|
7887
|
+
const $metadata = deserializeMetadata(output);
|
|
7888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7372
7889
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7374
7891
|
$fault: "client",
|
|
7375
|
-
$metadata
|
|
7892
|
+
$metadata,
|
|
7376
7893
|
});
|
|
7377
7894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7378
7895
|
}
|
|
@@ -7394,8 +7911,7 @@ const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output,
|
|
|
7394
7911
|
body: await parseBody(output.body, context),
|
|
7395
7912
|
};
|
|
7396
7913
|
let response;
|
|
7397
|
-
|
|
7398
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7399
7915
|
switch (errorCode) {
|
|
7400
7916
|
case "AccessDeniedException":
|
|
7401
7917
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7414,10 +7930,12 @@ const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output,
|
|
|
7414
7930
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7415
7931
|
default:
|
|
7416
7932
|
const parsedBody = parsedOutput.body;
|
|
7933
|
+
const $metadata = deserializeMetadata(output);
|
|
7934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7417
7935
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7418
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7419
7937
|
$fault: "client",
|
|
7420
|
-
$metadata
|
|
7938
|
+
$metadata,
|
|
7421
7939
|
});
|
|
7422
7940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7423
7941
|
}
|
|
@@ -7439,8 +7957,7 @@ const deserializeAws_restJson1UpdateWirelessGatewayCommandError = async (output,
|
|
|
7439
7957
|
body: await parseBody(output.body, context),
|
|
7440
7958
|
};
|
|
7441
7959
|
let response;
|
|
7442
|
-
|
|
7443
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7444
7961
|
switch (errorCode) {
|
|
7445
7962
|
case "AccessDeniedException":
|
|
7446
7963
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7459,10 +7976,12 @@ const deserializeAws_restJson1UpdateWirelessGatewayCommandError = async (output,
|
|
|
7459
7976
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7460
7977
|
default:
|
|
7461
7978
|
const parsedBody = parsedOutput.body;
|
|
7979
|
+
const $metadata = deserializeMetadata(output);
|
|
7980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7462
7981
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7464
7983
|
$fault: "client",
|
|
7465
|
-
$metadata
|
|
7984
|
+
$metadata,
|
|
7466
7985
|
});
|
|
7467
7986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7468
7987
|
}
|
|
@@ -7637,6 +8156,8 @@ const serializeAws_restJson1FPorts = (input, context) => {
|
|
|
7637
8156
|
...(input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync }),
|
|
7638
8157
|
...(input.Fuota !== undefined && input.Fuota !== null && { Fuota: input.Fuota }),
|
|
7639
8158
|
...(input.Multicast !== undefined && input.Multicast !== null && { Multicast: input.Multicast }),
|
|
8159
|
+
...(input.Positioning !== undefined &&
|
|
8160
|
+
input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
|
|
7640
8161
|
};
|
|
7641
8162
|
};
|
|
7642
8163
|
const serializeAws_restJson1JoinEuiFilters = (input, context) => {
|
|
@@ -7825,6 +8346,8 @@ const serializeAws_restJson1LoRaWANUpdateDevice = (input, context) => {
|
|
|
7825
8346
|
input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) }),
|
|
7826
8347
|
...(input.DeviceProfileId !== undefined &&
|
|
7827
8348
|
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId }),
|
|
8349
|
+
...(input.FPorts !== undefined &&
|
|
8350
|
+
input.FPorts !== null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) }),
|
|
7828
8351
|
...(input.ServiceProfileId !== undefined &&
|
|
7829
8352
|
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }),
|
|
7830
8353
|
};
|
|
@@ -7874,6 +8397,31 @@ const serializeAws_restJson1OtaaV1_1 = (input, context) => {
|
|
|
7874
8397
|
...(input.NwkKey !== undefined && input.NwkKey !== null && { NwkKey: input.NwkKey }),
|
|
7875
8398
|
};
|
|
7876
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
|
+
};
|
|
7877
8425
|
const serializeAws_restJson1ProximityEventConfiguration = (input, context) => {
|
|
7878
8426
|
return {
|
|
7879
8427
|
...(input.Sidewalk !== undefined &&
|
|
@@ -7892,6 +8440,12 @@ const serializeAws_restJson1ProximityResourceTypeEventConfiguration = (input, co
|
|
|
7892
8440
|
}),
|
|
7893
8441
|
};
|
|
7894
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
|
+
};
|
|
7895
8449
|
const serializeAws_restJson1SessionKeysAbpV1_0_x = (input, context) => {
|
|
7896
8450
|
return {
|
|
7897
8451
|
...(input.AppSKey !== undefined && input.AppSKey !== null && { AppSKey: input.AppSKey }),
|
|
@@ -7980,6 +8534,12 @@ const serializeAws_restJson1UpdateAbpV1_1 = (input, context) => {
|
|
|
7980
8534
|
...(input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }),
|
|
7981
8535
|
};
|
|
7982
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
|
+
};
|
|
7983
8543
|
const serializeAws_restJson1UpdateWirelessGatewayTaskCreate = (input, context) => {
|
|
7984
8544
|
return {
|
|
7985
8545
|
...(input.LoRaWAN !== undefined &&
|
|
@@ -8110,6 +8670,12 @@ const deserializeAws_restJson1AbpV1_1 = (output, context) => {
|
|
|
8110
8670
|
: undefined,
|
|
8111
8671
|
};
|
|
8112
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
|
+
};
|
|
8113
8679
|
const deserializeAws_restJson1CertificateList = (output, context) => {
|
|
8114
8680
|
return {
|
|
8115
8681
|
SigningAlg: (0, smithy_client_1.expectString)(output.SigningAlg),
|
|
@@ -8270,6 +8836,9 @@ const deserializeAws_restJson1FPorts = (output, context) => {
|
|
|
8270
8836
|
ClockSync: (0, smithy_client_1.expectInt32)(output.ClockSync),
|
|
8271
8837
|
Fuota: (0, smithy_client_1.expectInt32)(output.Fuota),
|
|
8272
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,
|
|
8273
8842
|
};
|
|
8274
8843
|
};
|
|
8275
8844
|
const deserializeAws_restJson1FuotaTask = (output, context) => {
|
|
@@ -8610,6 +9179,52 @@ const deserializeAws_restJson1OtaaV1_1 = (output, context) => {
|
|
|
8610
9179
|
NwkKey: (0, smithy_client_1.expectString)(output.NwkKey),
|
|
8611
9180
|
};
|
|
8612
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
|
+
};
|
|
8613
9228
|
const deserializeAws_restJson1ProximityEventConfiguration = (output, context) => {
|
|
8614
9229
|
return {
|
|
8615
9230
|
Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
|
|
@@ -8625,6 +9240,14 @@ const deserializeAws_restJson1ProximityResourceTypeEventConfiguration = (output,
|
|
|
8625
9240
|
: undefined,
|
|
8626
9241
|
};
|
|
8627
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
|
+
};
|
|
8628
9251
|
const deserializeAws_restJson1ServiceProfile = (output, context) => {
|
|
8629
9252
|
return {
|
|
8630
9253
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -8980,5 +9603,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
8980
9603
|
if (data["__type"] !== undefined) {
|
|
8981
9604
|
return sanitizeErrorCode(data["__type"]);
|
|
8982
9605
|
}
|
|
8983
|
-
return "";
|
|
8984
9606
|
};
|