@aws-sdk/client-iot-wireless 3.118.1 → 3.127.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 +1263 -793
- 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 +1281 -706
- 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 +26 -26
|
@@ -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");
|
|
@@ -19,10 +19,8 @@ const serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = async
|
|
|
19
19
|
let body;
|
|
20
20
|
body = JSON.stringify({
|
|
21
21
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
22
|
-
...(input.Sidewalk
|
|
23
|
-
|
|
24
|
-
...(input.Tags !== undefined &&
|
|
25
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
22
|
+
...(input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) }),
|
|
23
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
26
24
|
});
|
|
27
25
|
return new protocol_http_1.HttpRequest({
|
|
28
26
|
protocol,
|
|
@@ -53,8 +51,7 @@ const serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = async
|
|
|
53
51
|
}
|
|
54
52
|
let body;
|
|
55
53
|
body = JSON.stringify({
|
|
56
|
-
...(input.MulticastGroupId
|
|
57
|
-
input.MulticastGroupId !== null && { MulticastGroupId: input.MulticastGroupId }),
|
|
54
|
+
...(input.MulticastGroupId != null && { MulticastGroupId: input.MulticastGroupId }),
|
|
58
55
|
});
|
|
59
56
|
return new protocol_http_1.HttpRequest({
|
|
60
57
|
protocol,
|
|
@@ -85,8 +82,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = async
|
|
|
85
82
|
}
|
|
86
83
|
let body;
|
|
87
84
|
body = JSON.stringify({
|
|
88
|
-
...(input.WirelessDeviceId
|
|
89
|
-
input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId }),
|
|
85
|
+
...(input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId }),
|
|
90
86
|
});
|
|
91
87
|
return new protocol_http_1.HttpRequest({
|
|
92
88
|
protocol,
|
|
@@ -117,8 +113,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = a
|
|
|
117
113
|
}
|
|
118
114
|
let body;
|
|
119
115
|
body = JSON.stringify({
|
|
120
|
-
...(input.WirelessDeviceId
|
|
121
|
-
input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId }),
|
|
116
|
+
...(input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId }),
|
|
122
117
|
});
|
|
123
118
|
return new protocol_http_1.HttpRequest({
|
|
124
119
|
protocol,
|
|
@@ -149,7 +144,7 @@ const serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = async (inp
|
|
|
149
144
|
}
|
|
150
145
|
let body;
|
|
151
146
|
body = JSON.stringify({
|
|
152
|
-
...(input.ThingArn
|
|
147
|
+
...(input.ThingArn != null && { ThingArn: input.ThingArn }),
|
|
153
148
|
});
|
|
154
149
|
return new protocol_http_1.HttpRequest({
|
|
155
150
|
protocol,
|
|
@@ -180,8 +175,7 @@ const serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = asy
|
|
|
180
175
|
}
|
|
181
176
|
let body;
|
|
182
177
|
body = JSON.stringify({
|
|
183
|
-
...(input.IotCertificateId
|
|
184
|
-
input.IotCertificateId !== null && { IotCertificateId: input.IotCertificateId }),
|
|
178
|
+
...(input.IotCertificateId != null && { IotCertificateId: input.IotCertificateId }),
|
|
185
179
|
});
|
|
186
180
|
return new protocol_http_1.HttpRequest({
|
|
187
181
|
protocol,
|
|
@@ -212,7 +206,7 @@ const serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = async (in
|
|
|
212
206
|
}
|
|
213
207
|
let body;
|
|
214
208
|
body = JSON.stringify({
|
|
215
|
-
...(input.ThingArn
|
|
209
|
+
...(input.ThingArn != null && { ThingArn: input.ThingArn }),
|
|
216
210
|
});
|
|
217
211
|
return new protocol_http_1.HttpRequest({
|
|
218
212
|
protocol,
|
|
@@ -261,14 +255,12 @@ const serializeAws_restJson1CreateDestinationCommand = async (input, context) =>
|
|
|
261
255
|
let body;
|
|
262
256
|
body = JSON.stringify({
|
|
263
257
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
264
|
-
...(input.Description
|
|
265
|
-
...(input.Expression
|
|
266
|
-
...(input.ExpressionType
|
|
267
|
-
|
|
268
|
-
...(input.
|
|
269
|
-
...(input.
|
|
270
|
-
...(input.Tags !== undefined &&
|
|
271
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
258
|
+
...(input.Description != null && { Description: input.Description }),
|
|
259
|
+
...(input.Expression != null && { Expression: input.Expression }),
|
|
260
|
+
...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
|
|
261
|
+
...(input.Name != null && { Name: input.Name }),
|
|
262
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
263
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
272
264
|
});
|
|
273
265
|
return new protocol_http_1.HttpRequest({
|
|
274
266
|
protocol,
|
|
@@ -291,11 +283,9 @@ const serializeAws_restJson1CreateDeviceProfileCommand = async (input, context)
|
|
|
291
283
|
let body;
|
|
292
284
|
body = JSON.stringify({
|
|
293
285
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
294
|
-
...(input.LoRaWAN
|
|
295
|
-
|
|
296
|
-
...(input.
|
|
297
|
-
...(input.Tags !== undefined &&
|
|
298
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
286
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) }),
|
|
287
|
+
...(input.Name != null && { Name: input.Name }),
|
|
288
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
299
289
|
});
|
|
300
290
|
return new protocol_http_1.HttpRequest({
|
|
301
291
|
protocol,
|
|
@@ -318,16 +308,12 @@ const serializeAws_restJson1CreateFuotaTaskCommand = async (input, context) => {
|
|
|
318
308
|
let body;
|
|
319
309
|
body = JSON.stringify({
|
|
320
310
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
321
|
-
...(input.Description
|
|
322
|
-
...(input.FirmwareUpdateImage
|
|
323
|
-
|
|
324
|
-
...(input.
|
|
325
|
-
|
|
326
|
-
...(input.
|
|
327
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
|
|
328
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
329
|
-
...(input.Tags !== undefined &&
|
|
330
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
311
|
+
...(input.Description != null && { Description: input.Description }),
|
|
312
|
+
...(input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage }),
|
|
313
|
+
...(input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole }),
|
|
314
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
|
|
315
|
+
...(input.Name != null && { Name: input.Name }),
|
|
316
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
331
317
|
});
|
|
332
318
|
return new protocol_http_1.HttpRequest({
|
|
333
319
|
protocol,
|
|
@@ -350,12 +336,10 @@ const serializeAws_restJson1CreateMulticastGroupCommand = async (input, context)
|
|
|
350
336
|
let body;
|
|
351
337
|
body = JSON.stringify({
|
|
352
338
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
353
|
-
...(input.Description
|
|
354
|
-
...(input.LoRaWAN
|
|
355
|
-
|
|
356
|
-
...(input.
|
|
357
|
-
...(input.Tags !== undefined &&
|
|
358
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
339
|
+
...(input.Description != null && { Description: input.Description }),
|
|
340
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) }),
|
|
341
|
+
...(input.Name != null && { Name: input.Name }),
|
|
342
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
359
343
|
});
|
|
360
344
|
return new protocol_http_1.HttpRequest({
|
|
361
345
|
protocol,
|
|
@@ -378,18 +362,16 @@ const serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = async (i
|
|
|
378
362
|
let body;
|
|
379
363
|
body = JSON.stringify({
|
|
380
364
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
381
|
-
...(input.Description
|
|
382
|
-
...(input.Name
|
|
383
|
-
...(input.Tags
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
...(input.WirelessDevices
|
|
388
|
-
input.WirelessDevices !== null && {
|
|
365
|
+
...(input.Description != null && { Description: input.Description }),
|
|
366
|
+
...(input.Name != null && { Name: input.Name }),
|
|
367
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
368
|
+
...(input.TraceContent != null && {
|
|
369
|
+
TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
|
|
370
|
+
}),
|
|
371
|
+
...(input.WirelessDevices != null && {
|
|
389
372
|
WirelessDevices: serializeAws_restJson1WirelessDeviceList(input.WirelessDevices, context),
|
|
390
373
|
}),
|
|
391
|
-
...(input.WirelessGateways
|
|
392
|
-
input.WirelessGateways !== null && {
|
|
374
|
+
...(input.WirelessGateways != null && {
|
|
393
375
|
WirelessGateways: serializeAws_restJson1WirelessGatewayList(input.WirelessGateways, context),
|
|
394
376
|
}),
|
|
395
377
|
});
|
|
@@ -414,11 +396,9 @@ const serializeAws_restJson1CreateServiceProfileCommand = async (input, context)
|
|
|
414
396
|
let body;
|
|
415
397
|
body = JSON.stringify({
|
|
416
398
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
417
|
-
...(input.LoRaWAN
|
|
418
|
-
|
|
419
|
-
...(input.
|
|
420
|
-
...(input.Tags !== undefined &&
|
|
421
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
399
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) }),
|
|
400
|
+
...(input.Name != null && { Name: input.Name }),
|
|
401
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
422
402
|
});
|
|
423
403
|
return new protocol_http_1.HttpRequest({
|
|
424
404
|
protocol,
|
|
@@ -441,15 +421,12 @@ const serializeAws_restJson1CreateWirelessDeviceCommand = async (input, context)
|
|
|
441
421
|
let body;
|
|
442
422
|
body = JSON.stringify({
|
|
443
423
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
444
|
-
...(input.Description
|
|
445
|
-
...(input.DestinationName
|
|
446
|
-
|
|
447
|
-
...(input.
|
|
448
|
-
|
|
449
|
-
...(input.
|
|
450
|
-
...(input.Tags !== undefined &&
|
|
451
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
452
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
424
|
+
...(input.Description != null && { Description: input.Description }),
|
|
425
|
+
...(input.DestinationName != null && { DestinationName: input.DestinationName }),
|
|
426
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) }),
|
|
427
|
+
...(input.Name != null && { Name: input.Name }),
|
|
428
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
429
|
+
...(input.Type != null && { Type: input.Type }),
|
|
453
430
|
});
|
|
454
431
|
return new protocol_http_1.HttpRequest({
|
|
455
432
|
protocol,
|
|
@@ -472,12 +449,10 @@ const serializeAws_restJson1CreateWirelessGatewayCommand = async (input, context
|
|
|
472
449
|
let body;
|
|
473
450
|
body = JSON.stringify({
|
|
474
451
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
475
|
-
...(input.Description
|
|
476
|
-
...(input.LoRaWAN
|
|
477
|
-
|
|
478
|
-
...(input.
|
|
479
|
-
...(input.Tags !== undefined &&
|
|
480
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
452
|
+
...(input.Description != null && { Description: input.Description }),
|
|
453
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) }),
|
|
454
|
+
...(input.Name != null && { Name: input.Name }),
|
|
455
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
481
456
|
});
|
|
482
457
|
return new protocol_http_1.HttpRequest({
|
|
483
458
|
protocol,
|
|
@@ -508,8 +483,7 @@ const serializeAws_restJson1CreateWirelessGatewayTaskCommand = async (input, con
|
|
|
508
483
|
}
|
|
509
484
|
let body;
|
|
510
485
|
body = JSON.stringify({
|
|
511
|
-
...(input.WirelessGatewayTaskDefinitionId
|
|
512
|
-
input.WirelessGatewayTaskDefinitionId !== null && {
|
|
486
|
+
...(input.WirelessGatewayTaskDefinitionId != null && {
|
|
513
487
|
WirelessGatewayTaskDefinitionId: input.WirelessGatewayTaskDefinitionId,
|
|
514
488
|
}),
|
|
515
489
|
});
|
|
@@ -533,14 +507,11 @@ const serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = async (
|
|
|
533
507
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions";
|
|
534
508
|
let body;
|
|
535
509
|
body = JSON.stringify({
|
|
536
|
-
...(input.AutoCreateTasks
|
|
537
|
-
input.AutoCreateTasks !== null && { AutoCreateTasks: input.AutoCreateTasks }),
|
|
510
|
+
...(input.AutoCreateTasks != null && { AutoCreateTasks: input.AutoCreateTasks }),
|
|
538
511
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
539
|
-
...(input.Name
|
|
540
|
-
...(input.Tags
|
|
541
|
-
|
|
542
|
-
...(input.Update !== undefined &&
|
|
543
|
-
input.Update !== null && {
|
|
512
|
+
...(input.Name != null && { Name: input.Name }),
|
|
513
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
514
|
+
...(input.Update != null && {
|
|
544
515
|
Update: serializeAws_restJson1UpdateWirelessGatewayTaskCreate(input.Update, context),
|
|
545
516
|
}),
|
|
546
517
|
});
|
|
@@ -1291,6 +1262,67 @@ const serializeAws_restJson1GetPartnerAccountCommand = async (input, context) =>
|
|
|
1291
1262
|
});
|
|
1292
1263
|
};
|
|
1293
1264
|
exports.serializeAws_restJson1GetPartnerAccountCommand = serializeAws_restJson1GetPartnerAccountCommand;
|
|
1265
|
+
const serializeAws_restJson1GetPositionCommand = async (input, context) => {
|
|
1266
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1267
|
+
const headers = {};
|
|
1268
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
1269
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1270
|
+
const labelValue = input.ResourceIdentifier;
|
|
1271
|
+
if (labelValue.length <= 0) {
|
|
1272
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1273
|
+
}
|
|
1274
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1275
|
+
}
|
|
1276
|
+
else {
|
|
1277
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1278
|
+
}
|
|
1279
|
+
const query = {
|
|
1280
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
1281
|
+
};
|
|
1282
|
+
let body;
|
|
1283
|
+
return new protocol_http_1.HttpRequest({
|
|
1284
|
+
protocol,
|
|
1285
|
+
hostname,
|
|
1286
|
+
port,
|
|
1287
|
+
method: "GET",
|
|
1288
|
+
headers,
|
|
1289
|
+
path: resolvedPath,
|
|
1290
|
+
query,
|
|
1291
|
+
body,
|
|
1292
|
+
});
|
|
1293
|
+
};
|
|
1294
|
+
exports.serializeAws_restJson1GetPositionCommand = serializeAws_restJson1GetPositionCommand;
|
|
1295
|
+
const serializeAws_restJson1GetPositionConfigurationCommand = async (input, context) => {
|
|
1296
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1297
|
+
const headers = {};
|
|
1298
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1299
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
1300
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1301
|
+
const labelValue = input.ResourceIdentifier;
|
|
1302
|
+
if (labelValue.length <= 0) {
|
|
1303
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1304
|
+
}
|
|
1305
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1306
|
+
}
|
|
1307
|
+
else {
|
|
1308
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1309
|
+
}
|
|
1310
|
+
const query = {
|
|
1311
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
1312
|
+
};
|
|
1313
|
+
let body;
|
|
1314
|
+
return new protocol_http_1.HttpRequest({
|
|
1315
|
+
protocol,
|
|
1316
|
+
hostname,
|
|
1317
|
+
port,
|
|
1318
|
+
method: "GET",
|
|
1319
|
+
headers,
|
|
1320
|
+
path: resolvedPath,
|
|
1321
|
+
query,
|
|
1322
|
+
body,
|
|
1323
|
+
});
|
|
1324
|
+
};
|
|
1325
|
+
exports.serializeAws_restJson1GetPositionConfigurationCommand = serializeAws_restJson1GetPositionConfigurationCommand;
|
|
1294
1326
|
const serializeAws_restJson1GetResourceEventConfigurationCommand = async (input, context) => {
|
|
1295
1327
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1296
1328
|
const headers = {};
|
|
@@ -1796,6 +1828,28 @@ const serializeAws_restJson1ListPartnerAccountsCommand = async (input, context)
|
|
|
1796
1828
|
});
|
|
1797
1829
|
};
|
|
1798
1830
|
exports.serializeAws_restJson1ListPartnerAccountsCommand = serializeAws_restJson1ListPartnerAccountsCommand;
|
|
1831
|
+
const serializeAws_restJson1ListPositionConfigurationsCommand = async (input, context) => {
|
|
1832
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1833
|
+
const headers = {};
|
|
1834
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/position-configurations";
|
|
1835
|
+
const query = {
|
|
1836
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
1837
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
1838
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
1839
|
+
};
|
|
1840
|
+
let body;
|
|
1841
|
+
return new protocol_http_1.HttpRequest({
|
|
1842
|
+
protocol,
|
|
1843
|
+
hostname,
|
|
1844
|
+
port,
|
|
1845
|
+
method: "GET",
|
|
1846
|
+
headers,
|
|
1847
|
+
path: resolvedPath,
|
|
1848
|
+
query,
|
|
1849
|
+
body,
|
|
1850
|
+
});
|
|
1851
|
+
};
|
|
1852
|
+
exports.serializeAws_restJson1ListPositionConfigurationsCommand = serializeAws_restJson1ListPositionConfigurationsCommand;
|
|
1799
1853
|
const serializeAws_restJson1ListQueuedMessagesCommand = async (input, context) => {
|
|
1800
1854
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1801
1855
|
const headers = {};
|
|
@@ -1939,6 +1993,45 @@ const serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = async (i
|
|
|
1939
1993
|
});
|
|
1940
1994
|
};
|
|
1941
1995
|
exports.serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand;
|
|
1996
|
+
const serializeAws_restJson1PutPositionConfigurationCommand = async (input, context) => {
|
|
1997
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1998
|
+
const headers = {
|
|
1999
|
+
"content-type": "application/json",
|
|
2000
|
+
};
|
|
2001
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2002
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
2003
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2004
|
+
const labelValue = input.ResourceIdentifier;
|
|
2005
|
+
if (labelValue.length <= 0) {
|
|
2006
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2007
|
+
}
|
|
2008
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2009
|
+
}
|
|
2010
|
+
else {
|
|
2011
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2012
|
+
}
|
|
2013
|
+
const query = {
|
|
2014
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
2015
|
+
};
|
|
2016
|
+
let body;
|
|
2017
|
+
body = JSON.stringify({
|
|
2018
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
2019
|
+
...(input.Solvers != null && {
|
|
2020
|
+
Solvers: serializeAws_restJson1PositionSolverConfigurations(input.Solvers, context),
|
|
2021
|
+
}),
|
|
2022
|
+
});
|
|
2023
|
+
return new protocol_http_1.HttpRequest({
|
|
2024
|
+
protocol,
|
|
2025
|
+
hostname,
|
|
2026
|
+
port,
|
|
2027
|
+
method: "PUT",
|
|
2028
|
+
headers,
|
|
2029
|
+
path: resolvedPath,
|
|
2030
|
+
query,
|
|
2031
|
+
body,
|
|
2032
|
+
});
|
|
2033
|
+
};
|
|
2034
|
+
exports.serializeAws_restJson1PutPositionConfigurationCommand = serializeAws_restJson1PutPositionConfigurationCommand;
|
|
1942
2035
|
const serializeAws_restJson1PutResourceLogLevelCommand = async (input, context) => {
|
|
1943
2036
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1944
2037
|
const headers = {
|
|
@@ -1960,7 +2053,7 @@ const serializeAws_restJson1PutResourceLogLevelCommand = async (input, context)
|
|
|
1960
2053
|
};
|
|
1961
2054
|
let body;
|
|
1962
2055
|
body = JSON.stringify({
|
|
1963
|
-
...(input.LogLevel
|
|
2056
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
1964
2057
|
});
|
|
1965
2058
|
return new protocol_http_1.HttpRequest({
|
|
1966
2059
|
protocol,
|
|
@@ -2041,9 +2134,8 @@ const serializeAws_restJson1SendDataToMulticastGroupCommand = async (input, cont
|
|
|
2041
2134
|
}
|
|
2042
2135
|
let body;
|
|
2043
2136
|
body = JSON.stringify({
|
|
2044
|
-
...(input.PayloadData
|
|
2045
|
-
...(input.WirelessMetadata
|
|
2046
|
-
input.WirelessMetadata !== null && {
|
|
2137
|
+
...(input.PayloadData != null && { PayloadData: input.PayloadData }),
|
|
2138
|
+
...(input.WirelessMetadata != null && {
|
|
2047
2139
|
WirelessMetadata: serializeAws_restJson1MulticastWirelessMetadata(input.WirelessMetadata, context),
|
|
2048
2140
|
}),
|
|
2049
2141
|
});
|
|
@@ -2076,10 +2168,9 @@ const serializeAws_restJson1SendDataToWirelessDeviceCommand = async (input, cont
|
|
|
2076
2168
|
}
|
|
2077
2169
|
let body;
|
|
2078
2170
|
body = JSON.stringify({
|
|
2079
|
-
...(input.PayloadData
|
|
2080
|
-
...(input.TransmitMode
|
|
2081
|
-
...(input.WirelessMetadata
|
|
2082
|
-
input.WirelessMetadata !== null && {
|
|
2171
|
+
...(input.PayloadData != null && { PayloadData: input.PayloadData }),
|
|
2172
|
+
...(input.TransmitMode != null && { TransmitMode: input.TransmitMode }),
|
|
2173
|
+
...(input.WirelessMetadata != null && {
|
|
2083
2174
|
WirelessMetadata: serializeAws_restJson1WirelessMetadata(input.WirelessMetadata, context),
|
|
2084
2175
|
}),
|
|
2085
2176
|
});
|
|
@@ -2112,9 +2203,8 @@ const serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCo
|
|
|
2112
2203
|
}
|
|
2113
2204
|
let body;
|
|
2114
2205
|
body = JSON.stringify({
|
|
2115
|
-
...(input.QueryString
|
|
2116
|
-
...(input.Tags
|
|
2117
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2206
|
+
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
2207
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2118
2208
|
});
|
|
2119
2209
|
return new protocol_http_1.HttpRequest({
|
|
2120
2210
|
protocol,
|
|
@@ -2145,9 +2235,8 @@ const serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGrou
|
|
|
2145
2235
|
}
|
|
2146
2236
|
let body;
|
|
2147
2237
|
body = JSON.stringify({
|
|
2148
|
-
...(input.QueryString
|
|
2149
|
-
...(input.Tags
|
|
2150
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2238
|
+
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
2239
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2151
2240
|
});
|
|
2152
2241
|
return new protocol_http_1.HttpRequest({
|
|
2153
2242
|
protocol,
|
|
@@ -2178,8 +2267,7 @@ const serializeAws_restJson1StartFuotaTaskCommand = async (input, context) => {
|
|
|
2178
2267
|
}
|
|
2179
2268
|
let body;
|
|
2180
2269
|
body = JSON.stringify({
|
|
2181
|
-
...(input.LoRaWAN
|
|
2182
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) }),
|
|
2270
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) }),
|
|
2183
2271
|
});
|
|
2184
2272
|
return new protocol_http_1.HttpRequest({
|
|
2185
2273
|
protocol,
|
|
@@ -2210,8 +2298,7 @@ const serializeAws_restJson1StartMulticastGroupSessionCommand = async (input, co
|
|
|
2210
2298
|
}
|
|
2211
2299
|
let body;
|
|
2212
2300
|
body = JSON.stringify({
|
|
2213
|
-
...(input.LoRaWAN
|
|
2214
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) }),
|
|
2301
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) }),
|
|
2215
2302
|
});
|
|
2216
2303
|
return new protocol_http_1.HttpRequest({
|
|
2217
2304
|
protocol,
|
|
@@ -2235,8 +2322,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
2235
2322
|
};
|
|
2236
2323
|
let body;
|
|
2237
2324
|
body = JSON.stringify({
|
|
2238
|
-
...(input.Tags
|
|
2239
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2325
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2240
2326
|
});
|
|
2241
2327
|
return new protocol_http_1.HttpRequest({
|
|
2242
2328
|
protocol,
|
|
@@ -2315,11 +2401,10 @@ const serializeAws_restJson1UpdateDestinationCommand = async (input, context) =>
|
|
|
2315
2401
|
}
|
|
2316
2402
|
let body;
|
|
2317
2403
|
body = JSON.stringify({
|
|
2318
|
-
...(input.Description
|
|
2319
|
-
...(input.Expression
|
|
2320
|
-
...(input.ExpressionType
|
|
2321
|
-
|
|
2322
|
-
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
2404
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2405
|
+
...(input.Expression != null && { Expression: input.Expression }),
|
|
2406
|
+
...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
|
|
2407
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
2323
2408
|
});
|
|
2324
2409
|
return new protocol_http_1.HttpRequest({
|
|
2325
2410
|
protocol,
|
|
@@ -2340,18 +2425,14 @@ const serializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand = asy
|
|
|
2340
2425
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types";
|
|
2341
2426
|
let body;
|
|
2342
2427
|
body = JSON.stringify({
|
|
2343
|
-
...(input.ConnectionStatus
|
|
2344
|
-
input.ConnectionStatus !== null && {
|
|
2428
|
+
...(input.ConnectionStatus != null && {
|
|
2345
2429
|
ConnectionStatus: serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration(input.ConnectionStatus, context),
|
|
2346
2430
|
}),
|
|
2347
|
-
...(input.DeviceRegistrationState
|
|
2348
|
-
input.DeviceRegistrationState !== null && {
|
|
2431
|
+
...(input.DeviceRegistrationState != null && {
|
|
2349
2432
|
DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration(input.DeviceRegistrationState, context),
|
|
2350
2433
|
}),
|
|
2351
|
-
...(input.Join
|
|
2352
|
-
|
|
2353
|
-
...(input.Proximity !== undefined &&
|
|
2354
|
-
input.Proximity !== null && {
|
|
2434
|
+
...(input.Join != null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) }),
|
|
2435
|
+
...(input.Proximity != null && {
|
|
2355
2436
|
Proximity: serializeAws_restJson1ProximityResourceTypeEventConfiguration(input.Proximity, context),
|
|
2356
2437
|
}),
|
|
2357
2438
|
});
|
|
@@ -2384,14 +2465,11 @@ const serializeAws_restJson1UpdateFuotaTaskCommand = async (input, context) => {
|
|
|
2384
2465
|
}
|
|
2385
2466
|
let body;
|
|
2386
2467
|
body = JSON.stringify({
|
|
2387
|
-
...(input.Description
|
|
2388
|
-
...(input.FirmwareUpdateImage
|
|
2389
|
-
|
|
2390
|
-
...(input.
|
|
2391
|
-
|
|
2392
|
-
...(input.LoRaWAN !== undefined &&
|
|
2393
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
|
|
2394
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2468
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2469
|
+
...(input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage }),
|
|
2470
|
+
...(input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole }),
|
|
2471
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) }),
|
|
2472
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2395
2473
|
});
|
|
2396
2474
|
return new protocol_http_1.HttpRequest({
|
|
2397
2475
|
protocol,
|
|
@@ -2412,14 +2490,11 @@ const serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = async (input
|
|
|
2412
2490
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
|
|
2413
2491
|
let body;
|
|
2414
2492
|
body = JSON.stringify({
|
|
2415
|
-
...(input.DefaultLogLevel
|
|
2416
|
-
|
|
2417
|
-
...(input.WirelessDeviceLogOptions !== undefined &&
|
|
2418
|
-
input.WirelessDeviceLogOptions !== null && {
|
|
2493
|
+
...(input.DefaultLogLevel != null && { DefaultLogLevel: input.DefaultLogLevel }),
|
|
2494
|
+
...(input.WirelessDeviceLogOptions != null && {
|
|
2419
2495
|
WirelessDeviceLogOptions: serializeAws_restJson1WirelessDeviceLogOptionList(input.WirelessDeviceLogOptions, context),
|
|
2420
2496
|
}),
|
|
2421
|
-
...(input.WirelessGatewayLogOptions
|
|
2422
|
-
input.WirelessGatewayLogOptions !== null && {
|
|
2497
|
+
...(input.WirelessGatewayLogOptions != null && {
|
|
2423
2498
|
WirelessGatewayLogOptions: serializeAws_restJson1WirelessGatewayLogOptionList(input.WirelessGatewayLogOptions, context),
|
|
2424
2499
|
}),
|
|
2425
2500
|
});
|
|
@@ -2452,10 +2527,9 @@ const serializeAws_restJson1UpdateMulticastGroupCommand = async (input, context)
|
|
|
2452
2527
|
}
|
|
2453
2528
|
let body;
|
|
2454
2529
|
body = JSON.stringify({
|
|
2455
|
-
...(input.Description
|
|
2456
|
-
...(input.LoRaWAN
|
|
2457
|
-
|
|
2458
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2530
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2531
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) }),
|
|
2532
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2459
2533
|
});
|
|
2460
2534
|
return new protocol_http_1.HttpRequest({
|
|
2461
2535
|
protocol,
|
|
@@ -2487,23 +2561,20 @@ const serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = async (i
|
|
|
2487
2561
|
}
|
|
2488
2562
|
let body;
|
|
2489
2563
|
body = JSON.stringify({
|
|
2490
|
-
...(input.Description
|
|
2491
|
-
...(input.TraceContent
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2564
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2565
|
+
...(input.TraceContent != null && {
|
|
2566
|
+
TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
|
|
2567
|
+
}),
|
|
2568
|
+
...(input.WirelessDevicesToAdd != null && {
|
|
2495
2569
|
WirelessDevicesToAdd: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToAdd, context),
|
|
2496
2570
|
}),
|
|
2497
|
-
...(input.WirelessDevicesToRemove
|
|
2498
|
-
input.WirelessDevicesToRemove !== null && {
|
|
2571
|
+
...(input.WirelessDevicesToRemove != null && {
|
|
2499
2572
|
WirelessDevicesToRemove: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToRemove, context),
|
|
2500
2573
|
}),
|
|
2501
|
-
...(input.WirelessGatewaysToAdd
|
|
2502
|
-
input.WirelessGatewaysToAdd !== null && {
|
|
2574
|
+
...(input.WirelessGatewaysToAdd != null && {
|
|
2503
2575
|
WirelessGatewaysToAdd: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToAdd, context),
|
|
2504
2576
|
}),
|
|
2505
|
-
...(input.WirelessGatewaysToRemove
|
|
2506
|
-
input.WirelessGatewaysToRemove !== null && {
|
|
2577
|
+
...(input.WirelessGatewaysToRemove != null && {
|
|
2507
2578
|
WirelessGatewaysToRemove: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToRemove, context),
|
|
2508
2579
|
}),
|
|
2509
2580
|
});
|
|
@@ -2539,8 +2610,7 @@ const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, context)
|
|
|
2539
2610
|
};
|
|
2540
2611
|
let body;
|
|
2541
2612
|
body = JSON.stringify({
|
|
2542
|
-
...(input.Sidewalk
|
|
2543
|
-
input.Sidewalk !== null && { Sidewalk: serializeAws_restJson1SidewalkUpdateAccount(input.Sidewalk, context) }),
|
|
2613
|
+
...(input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkUpdateAccount(input.Sidewalk, context) }),
|
|
2544
2614
|
});
|
|
2545
2615
|
return new protocol_http_1.HttpRequest({
|
|
2546
2616
|
protocol,
|
|
@@ -2554,6 +2624,41 @@ const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, context)
|
|
|
2554
2624
|
});
|
|
2555
2625
|
};
|
|
2556
2626
|
exports.serializeAws_restJson1UpdatePartnerAccountCommand = serializeAws_restJson1UpdatePartnerAccountCommand;
|
|
2627
|
+
const serializeAws_restJson1UpdatePositionCommand = async (input, context) => {
|
|
2628
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2629
|
+
const headers = {
|
|
2630
|
+
"content-type": "application/json",
|
|
2631
|
+
};
|
|
2632
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
|
|
2633
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2634
|
+
const labelValue = input.ResourceIdentifier;
|
|
2635
|
+
if (labelValue.length <= 0) {
|
|
2636
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2637
|
+
}
|
|
2638
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2639
|
+
}
|
|
2640
|
+
else {
|
|
2641
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2642
|
+
}
|
|
2643
|
+
const query = {
|
|
2644
|
+
...(input.ResourceType !== undefined && { resourceType: input.ResourceType }),
|
|
2645
|
+
};
|
|
2646
|
+
let body;
|
|
2647
|
+
body = JSON.stringify({
|
|
2648
|
+
...(input.Position != null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) }),
|
|
2649
|
+
});
|
|
2650
|
+
return new protocol_http_1.HttpRequest({
|
|
2651
|
+
protocol,
|
|
2652
|
+
hostname,
|
|
2653
|
+
port,
|
|
2654
|
+
method: "PATCH",
|
|
2655
|
+
headers,
|
|
2656
|
+
path: resolvedPath,
|
|
2657
|
+
query,
|
|
2658
|
+
body,
|
|
2659
|
+
});
|
|
2660
|
+
};
|
|
2661
|
+
exports.serializeAws_restJson1UpdatePositionCommand = serializeAws_restJson1UpdatePositionCommand;
|
|
2557
2662
|
const serializeAws_restJson1UpdateResourceEventConfigurationCommand = async (input, context) => {
|
|
2558
2663
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2559
2664
|
const headers = {
|
|
@@ -2576,18 +2681,14 @@ const serializeAws_restJson1UpdateResourceEventConfigurationCommand = async (inp
|
|
|
2576
2681
|
};
|
|
2577
2682
|
let body;
|
|
2578
2683
|
body = JSON.stringify({
|
|
2579
|
-
...(input.ConnectionStatus
|
|
2580
|
-
input.ConnectionStatus !== null && {
|
|
2684
|
+
...(input.ConnectionStatus != null && {
|
|
2581
2685
|
ConnectionStatus: serializeAws_restJson1ConnectionStatusEventConfiguration(input.ConnectionStatus, context),
|
|
2582
2686
|
}),
|
|
2583
|
-
...(input.DeviceRegistrationState
|
|
2584
|
-
input.DeviceRegistrationState !== null && {
|
|
2687
|
+
...(input.DeviceRegistrationState != null && {
|
|
2585
2688
|
DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateEventConfiguration(input.DeviceRegistrationState, context),
|
|
2586
2689
|
}),
|
|
2587
|
-
...(input.Join
|
|
2588
|
-
|
|
2589
|
-
...(input.Proximity !== undefined &&
|
|
2590
|
-
input.Proximity !== null && {
|
|
2690
|
+
...(input.Join != null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) }),
|
|
2691
|
+
...(input.Proximity != null && {
|
|
2591
2692
|
Proximity: serializeAws_restJson1ProximityEventConfiguration(input.Proximity, context),
|
|
2592
2693
|
}),
|
|
2593
2694
|
});
|
|
@@ -2621,12 +2722,10 @@ const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, context)
|
|
|
2621
2722
|
}
|
|
2622
2723
|
let body;
|
|
2623
2724
|
body = JSON.stringify({
|
|
2624
|
-
...(input.Description
|
|
2625
|
-
...(input.DestinationName
|
|
2626
|
-
|
|
2627
|
-
...(input.
|
|
2628
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) }),
|
|
2629
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2725
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2726
|
+
...(input.DestinationName != null && { DestinationName: input.DestinationName }),
|
|
2727
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) }),
|
|
2728
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2630
2729
|
});
|
|
2631
2730
|
return new protocol_http_1.HttpRequest({
|
|
2632
2731
|
protocol,
|
|
@@ -2657,14 +2756,14 @@ const serializeAws_restJson1UpdateWirelessGatewayCommand = async (input, context
|
|
|
2657
2756
|
}
|
|
2658
2757
|
let body;
|
|
2659
2758
|
body = JSON.stringify({
|
|
2660
|
-
...(input.Description
|
|
2661
|
-
...(input.JoinEuiFilters
|
|
2662
|
-
input.JoinEuiFilters !== null && {
|
|
2759
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2760
|
+
...(input.JoinEuiFilters != null && {
|
|
2663
2761
|
JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
|
|
2664
2762
|
}),
|
|
2665
|
-
...(input.Name
|
|
2666
|
-
...(input.NetIdFilters
|
|
2667
|
-
|
|
2763
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2764
|
+
...(input.NetIdFilters != null && {
|
|
2765
|
+
NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
|
|
2766
|
+
}),
|
|
2668
2767
|
});
|
|
2669
2768
|
return new protocol_http_1.HttpRequest({
|
|
2670
2769
|
protocol,
|
|
@@ -2702,8 +2801,7 @@ const deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommandError
|
|
|
2702
2801
|
body: await parseBody(output.body, context),
|
|
2703
2802
|
};
|
|
2704
2803
|
let response;
|
|
2705
|
-
|
|
2706
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
2805
|
switch (errorCode) {
|
|
2708
2806
|
case "AccessDeniedException":
|
|
2709
2807
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2725,10 +2823,12 @@ const deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommandError
|
|
|
2725
2823
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2726
2824
|
default:
|
|
2727
2825
|
const parsedBody = parsedOutput.body;
|
|
2826
|
+
const $metadata = deserializeMetadata(output);
|
|
2827
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2728
2828
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2729
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2829
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2730
2830
|
$fault: "client",
|
|
2731
|
-
$metadata
|
|
2831
|
+
$metadata,
|
|
2732
2832
|
});
|
|
2733
2833
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2734
2834
|
}
|
|
@@ -2750,8 +2850,7 @@ const deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommandError =
|
|
|
2750
2850
|
body: await parseBody(output.body, context),
|
|
2751
2851
|
};
|
|
2752
2852
|
let response;
|
|
2753
|
-
|
|
2754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
2854
|
switch (errorCode) {
|
|
2756
2855
|
case "AccessDeniedException":
|
|
2757
2856
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2773,10 +2872,12 @@ const deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommandError =
|
|
|
2773
2872
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2774
2873
|
default:
|
|
2775
2874
|
const parsedBody = parsedOutput.body;
|
|
2875
|
+
const $metadata = deserializeMetadata(output);
|
|
2876
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2776
2877
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2778
2879
|
$fault: "client",
|
|
2779
|
-
$metadata
|
|
2880
|
+
$metadata,
|
|
2780
2881
|
});
|
|
2781
2882
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2782
2883
|
}
|
|
@@ -2798,8 +2899,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommandError =
|
|
|
2798
2899
|
body: await parseBody(output.body, context),
|
|
2799
2900
|
};
|
|
2800
2901
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2903
|
switch (errorCode) {
|
|
2804
2904
|
case "AccessDeniedException":
|
|
2805
2905
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2821,10 +2921,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommandError =
|
|
|
2821
2921
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2822
2922
|
default:
|
|
2823
2923
|
const parsedBody = parsedOutput.body;
|
|
2924
|
+
const $metadata = deserializeMetadata(output);
|
|
2925
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2824
2926
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2826
2928
|
$fault: "client",
|
|
2827
|
-
$metadata
|
|
2929
|
+
$metadata,
|
|
2828
2930
|
});
|
|
2829
2931
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2932
|
}
|
|
@@ -2846,8 +2948,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommandEr
|
|
|
2846
2948
|
body: await parseBody(output.body, context),
|
|
2847
2949
|
};
|
|
2848
2950
|
let response;
|
|
2849
|
-
|
|
2850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2951
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2851
2952
|
switch (errorCode) {
|
|
2852
2953
|
case "AccessDeniedException":
|
|
2853
2954
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2869,10 +2970,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommandEr
|
|
|
2869
2970
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2870
2971
|
default:
|
|
2871
2972
|
const parsedBody = parsedOutput.body;
|
|
2973
|
+
const $metadata = deserializeMetadata(output);
|
|
2974
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2872
2975
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2976
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2874
2977
|
$fault: "client",
|
|
2875
|
-
$metadata
|
|
2978
|
+
$metadata,
|
|
2876
2979
|
});
|
|
2877
2980
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2878
2981
|
}
|
|
@@ -2894,8 +2997,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithThingCommandError = asy
|
|
|
2894
2997
|
body: await parseBody(output.body, context),
|
|
2895
2998
|
};
|
|
2896
2999
|
let response;
|
|
2897
|
-
|
|
2898
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
3001
|
switch (errorCode) {
|
|
2900
3002
|
case "AccessDeniedException":
|
|
2901
3003
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2917,10 +3019,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithThingCommandError = asy
|
|
|
2917
3019
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2918
3020
|
default:
|
|
2919
3021
|
const parsedBody = parsedOutput.body;
|
|
3022
|
+
const $metadata = deserializeMetadata(output);
|
|
3023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2920
3024
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2922
3026
|
$fault: "client",
|
|
2923
|
-
$metadata
|
|
3027
|
+
$metadata,
|
|
2924
3028
|
});
|
|
2925
3029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2926
3030
|
}
|
|
@@ -2946,8 +3050,7 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommandErro
|
|
|
2946
3050
|
body: await parseBody(output.body, context),
|
|
2947
3051
|
};
|
|
2948
3052
|
let response;
|
|
2949
|
-
|
|
2950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2951
3054
|
switch (errorCode) {
|
|
2952
3055
|
case "AccessDeniedException":
|
|
2953
3056
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2969,10 +3072,12 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommandErro
|
|
|
2969
3072
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2970
3073
|
default:
|
|
2971
3074
|
const parsedBody = parsedOutput.body;
|
|
3075
|
+
const $metadata = deserializeMetadata(output);
|
|
3076
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2972
3077
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3078
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2974
3079
|
$fault: "client",
|
|
2975
|
-
$metadata
|
|
3080
|
+
$metadata,
|
|
2976
3081
|
});
|
|
2977
3082
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2978
3083
|
}
|
|
@@ -2994,8 +3099,7 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithThingCommandError = as
|
|
|
2994
3099
|
body: await parseBody(output.body, context),
|
|
2995
3100
|
};
|
|
2996
3101
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3102
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
3103
|
switch (errorCode) {
|
|
3000
3104
|
case "AccessDeniedException":
|
|
3001
3105
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3017,10 +3121,12 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithThingCommandError = as
|
|
|
3017
3121
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3018
3122
|
default:
|
|
3019
3123
|
const parsedBody = parsedOutput.body;
|
|
3124
|
+
const $metadata = deserializeMetadata(output);
|
|
3125
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3020
3126
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3127
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3022
3128
|
$fault: "client",
|
|
3023
|
-
$metadata
|
|
3129
|
+
$metadata,
|
|
3024
3130
|
});
|
|
3025
3131
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3026
3132
|
}
|
|
@@ -3042,8 +3148,7 @@ const deserializeAws_restJson1CancelMulticastGroupSessionCommandError = async (o
|
|
|
3042
3148
|
body: await parseBody(output.body, context),
|
|
3043
3149
|
};
|
|
3044
3150
|
let response;
|
|
3045
|
-
|
|
3046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3047
3152
|
switch (errorCode) {
|
|
3048
3153
|
case "AccessDeniedException":
|
|
3049
3154
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3065,10 +3170,12 @@ const deserializeAws_restJson1CancelMulticastGroupSessionCommandError = async (o
|
|
|
3065
3170
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3066
3171
|
default:
|
|
3067
3172
|
const parsedBody = parsedOutput.body;
|
|
3173
|
+
const $metadata = deserializeMetadata(output);
|
|
3174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3068
3175
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3070
3177
|
$fault: "client",
|
|
3071
|
-
$metadata
|
|
3178
|
+
$metadata,
|
|
3072
3179
|
});
|
|
3073
3180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3074
3181
|
}
|
|
@@ -3098,8 +3205,7 @@ const deserializeAws_restJson1CreateDestinationCommandError = async (output, con
|
|
|
3098
3205
|
body: await parseBody(output.body, context),
|
|
3099
3206
|
};
|
|
3100
3207
|
let response;
|
|
3101
|
-
|
|
3102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
3209
|
switch (errorCode) {
|
|
3104
3210
|
case "AccessDeniedException":
|
|
3105
3211
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3121,10 +3227,12 @@ const deserializeAws_restJson1CreateDestinationCommandError = async (output, con
|
|
|
3121
3227
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3122
3228
|
default:
|
|
3123
3229
|
const parsedBody = parsedOutput.body;
|
|
3230
|
+
const $metadata = deserializeMetadata(output);
|
|
3231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3124
3232
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3126
3234
|
$fault: "client",
|
|
3127
|
-
$metadata
|
|
3235
|
+
$metadata,
|
|
3128
3236
|
});
|
|
3129
3237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3130
3238
|
}
|
|
@@ -3154,8 +3262,7 @@ const deserializeAws_restJson1CreateDeviceProfileCommandError = async (output, c
|
|
|
3154
3262
|
body: await parseBody(output.body, context),
|
|
3155
3263
|
};
|
|
3156
3264
|
let response;
|
|
3157
|
-
|
|
3158
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3159
3266
|
switch (errorCode) {
|
|
3160
3267
|
case "AccessDeniedException":
|
|
3161
3268
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3174,10 +3281,12 @@ const deserializeAws_restJson1CreateDeviceProfileCommandError = async (output, c
|
|
|
3174
3281
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3175
3282
|
default:
|
|
3176
3283
|
const parsedBody = parsedOutput.body;
|
|
3284
|
+
const $metadata = deserializeMetadata(output);
|
|
3285
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3177
3286
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3178
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3287
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3179
3288
|
$fault: "client",
|
|
3180
|
-
$metadata
|
|
3289
|
+
$metadata,
|
|
3181
3290
|
});
|
|
3182
3291
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3183
3292
|
}
|
|
@@ -3207,8 +3316,7 @@ const deserializeAws_restJson1CreateFuotaTaskCommandError = async (output, conte
|
|
|
3207
3316
|
body: await parseBody(output.body, context),
|
|
3208
3317
|
};
|
|
3209
3318
|
let response;
|
|
3210
|
-
|
|
3211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
3320
|
switch (errorCode) {
|
|
3213
3321
|
case "AccessDeniedException":
|
|
3214
3322
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3230,10 +3338,12 @@ const deserializeAws_restJson1CreateFuotaTaskCommandError = async (output, conte
|
|
|
3230
3338
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3231
3339
|
default:
|
|
3232
3340
|
const parsedBody = parsedOutput.body;
|
|
3341
|
+
const $metadata = deserializeMetadata(output);
|
|
3342
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3233
3343
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3234
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3344
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3235
3345
|
$fault: "client",
|
|
3236
|
-
$metadata
|
|
3346
|
+
$metadata,
|
|
3237
3347
|
});
|
|
3238
3348
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3239
3349
|
}
|
|
@@ -3263,8 +3373,7 @@ const deserializeAws_restJson1CreateMulticastGroupCommandError = async (output,
|
|
|
3263
3373
|
body: await parseBody(output.body, context),
|
|
3264
3374
|
};
|
|
3265
3375
|
let response;
|
|
3266
|
-
|
|
3267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3268
3377
|
switch (errorCode) {
|
|
3269
3378
|
case "AccessDeniedException":
|
|
3270
3379
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3286,10 +3395,12 @@ const deserializeAws_restJson1CreateMulticastGroupCommandError = async (output,
|
|
|
3286
3395
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3287
3396
|
default:
|
|
3288
3397
|
const parsedBody = parsedOutput.body;
|
|
3398
|
+
const $metadata = deserializeMetadata(output);
|
|
3399
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3289
3400
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3401
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3291
3402
|
$fault: "client",
|
|
3292
|
-
$metadata
|
|
3403
|
+
$metadata,
|
|
3293
3404
|
});
|
|
3294
3405
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3295
3406
|
}
|
|
@@ -3319,8 +3430,7 @@ const deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = a
|
|
|
3319
3430
|
body: await parseBody(output.body, context),
|
|
3320
3431
|
};
|
|
3321
3432
|
let response;
|
|
3322
|
-
|
|
3323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3324
3434
|
switch (errorCode) {
|
|
3325
3435
|
case "AccessDeniedException":
|
|
3326
3436
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3342,10 +3452,12 @@ const deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = a
|
|
|
3342
3452
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3343
3453
|
default:
|
|
3344
3454
|
const parsedBody = parsedOutput.body;
|
|
3455
|
+
const $metadata = deserializeMetadata(output);
|
|
3456
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3345
3457
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3458
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3347
3459
|
$fault: "client",
|
|
3348
|
-
$metadata
|
|
3460
|
+
$metadata,
|
|
3349
3461
|
});
|
|
3350
3462
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3351
3463
|
}
|
|
@@ -3375,8 +3487,7 @@ const deserializeAws_restJson1CreateServiceProfileCommandError = async (output,
|
|
|
3375
3487
|
body: await parseBody(output.body, context),
|
|
3376
3488
|
};
|
|
3377
3489
|
let response;
|
|
3378
|
-
|
|
3379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3380
3491
|
switch (errorCode) {
|
|
3381
3492
|
case "AccessDeniedException":
|
|
3382
3493
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3395,10 +3506,12 @@ const deserializeAws_restJson1CreateServiceProfileCommandError = async (output,
|
|
|
3395
3506
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3396
3507
|
default:
|
|
3397
3508
|
const parsedBody = parsedOutput.body;
|
|
3509
|
+
const $metadata = deserializeMetadata(output);
|
|
3510
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3398
3511
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3399
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3512
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3400
3513
|
$fault: "client",
|
|
3401
|
-
$metadata
|
|
3514
|
+
$metadata,
|
|
3402
3515
|
});
|
|
3403
3516
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3404
3517
|
}
|
|
@@ -3428,8 +3541,7 @@ const deserializeAws_restJson1CreateWirelessDeviceCommandError = async (output,
|
|
|
3428
3541
|
body: await parseBody(output.body, context),
|
|
3429
3542
|
};
|
|
3430
3543
|
let response;
|
|
3431
|
-
|
|
3432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
3545
|
switch (errorCode) {
|
|
3434
3546
|
case "AccessDeniedException":
|
|
3435
3547
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3451,10 +3563,12 @@ const deserializeAws_restJson1CreateWirelessDeviceCommandError = async (output,
|
|
|
3451
3563
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3452
3564
|
default:
|
|
3453
3565
|
const parsedBody = parsedOutput.body;
|
|
3566
|
+
const $metadata = deserializeMetadata(output);
|
|
3567
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3454
3568
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3569
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3456
3570
|
$fault: "client",
|
|
3457
|
-
$metadata
|
|
3571
|
+
$metadata,
|
|
3458
3572
|
});
|
|
3459
3573
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3460
3574
|
}
|
|
@@ -3484,8 +3598,7 @@ const deserializeAws_restJson1CreateWirelessGatewayCommandError = async (output,
|
|
|
3484
3598
|
body: await parseBody(output.body, context),
|
|
3485
3599
|
};
|
|
3486
3600
|
let response;
|
|
3487
|
-
|
|
3488
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3489
3602
|
switch (errorCode) {
|
|
3490
3603
|
case "AccessDeniedException":
|
|
3491
3604
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3504,10 +3617,12 @@ const deserializeAws_restJson1CreateWirelessGatewayCommandError = async (output,
|
|
|
3504
3617
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3505
3618
|
default:
|
|
3506
3619
|
const parsedBody = parsedOutput.body;
|
|
3620
|
+
const $metadata = deserializeMetadata(output);
|
|
3621
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3507
3622
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3623
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3509
3624
|
$fault: "client",
|
|
3510
|
-
$metadata
|
|
3625
|
+
$metadata,
|
|
3511
3626
|
});
|
|
3512
3627
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3513
3628
|
}
|
|
@@ -3537,8 +3652,7 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskCommandError = async (out
|
|
|
3537
3652
|
body: await parseBody(output.body, context),
|
|
3538
3653
|
};
|
|
3539
3654
|
let response;
|
|
3540
|
-
|
|
3541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3542
3656
|
switch (errorCode) {
|
|
3543
3657
|
case "AccessDeniedException":
|
|
3544
3658
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3560,10 +3674,12 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskCommandError = async (out
|
|
|
3560
3674
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3561
3675
|
default:
|
|
3562
3676
|
const parsedBody = parsedOutput.body;
|
|
3677
|
+
const $metadata = deserializeMetadata(output);
|
|
3678
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3563
3679
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3680
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3565
3681
|
$fault: "client",
|
|
3566
|
-
$metadata
|
|
3682
|
+
$metadata,
|
|
3567
3683
|
});
|
|
3568
3684
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3569
3685
|
}
|
|
@@ -3593,8 +3709,7 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommandError =
|
|
|
3593
3709
|
body: await parseBody(output.body, context),
|
|
3594
3710
|
};
|
|
3595
3711
|
let response;
|
|
3596
|
-
|
|
3597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3712
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3598
3713
|
switch (errorCode) {
|
|
3599
3714
|
case "AccessDeniedException":
|
|
3600
3715
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3616,10 +3731,12 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommandError =
|
|
|
3616
3731
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3617
3732
|
default:
|
|
3618
3733
|
const parsedBody = parsedOutput.body;
|
|
3734
|
+
const $metadata = deserializeMetadata(output);
|
|
3735
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3619
3736
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3621
3738
|
$fault: "client",
|
|
3622
|
-
$metadata
|
|
3739
|
+
$metadata,
|
|
3623
3740
|
});
|
|
3624
3741
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3625
3742
|
}
|
|
@@ -3641,8 +3758,7 @@ const deserializeAws_restJson1DeleteDestinationCommandError = async (output, con
|
|
|
3641
3758
|
body: await parseBody(output.body, context),
|
|
3642
3759
|
};
|
|
3643
3760
|
let response;
|
|
3644
|
-
|
|
3645
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3646
3762
|
switch (errorCode) {
|
|
3647
3763
|
case "AccessDeniedException":
|
|
3648
3764
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3664,10 +3780,12 @@ const deserializeAws_restJson1DeleteDestinationCommandError = async (output, con
|
|
|
3664
3780
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3665
3781
|
default:
|
|
3666
3782
|
const parsedBody = parsedOutput.body;
|
|
3783
|
+
const $metadata = deserializeMetadata(output);
|
|
3784
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3667
3785
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3786
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3669
3787
|
$fault: "client",
|
|
3670
|
-
$metadata
|
|
3788
|
+
$metadata,
|
|
3671
3789
|
});
|
|
3672
3790
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3673
3791
|
}
|
|
@@ -3689,8 +3807,7 @@ const deserializeAws_restJson1DeleteDeviceProfileCommandError = async (output, c
|
|
|
3689
3807
|
body: await parseBody(output.body, context),
|
|
3690
3808
|
};
|
|
3691
3809
|
let response;
|
|
3692
|
-
|
|
3693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3810
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3694
3811
|
switch (errorCode) {
|
|
3695
3812
|
case "AccessDeniedException":
|
|
3696
3813
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3712,10 +3829,12 @@ const deserializeAws_restJson1DeleteDeviceProfileCommandError = async (output, c
|
|
|
3712
3829
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3713
3830
|
default:
|
|
3714
3831
|
const parsedBody = parsedOutput.body;
|
|
3832
|
+
const $metadata = deserializeMetadata(output);
|
|
3833
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3715
3834
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3716
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3835
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3717
3836
|
$fault: "client",
|
|
3718
|
-
$metadata
|
|
3837
|
+
$metadata,
|
|
3719
3838
|
});
|
|
3720
3839
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3721
3840
|
}
|
|
@@ -3737,8 +3856,7 @@ const deserializeAws_restJson1DeleteFuotaTaskCommandError = async (output, conte
|
|
|
3737
3856
|
body: await parseBody(output.body, context),
|
|
3738
3857
|
};
|
|
3739
3858
|
let response;
|
|
3740
|
-
|
|
3741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3859
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
3860
|
switch (errorCode) {
|
|
3743
3861
|
case "AccessDeniedException":
|
|
3744
3862
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3757,10 +3875,12 @@ const deserializeAws_restJson1DeleteFuotaTaskCommandError = async (output, conte
|
|
|
3757
3875
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3758
3876
|
default:
|
|
3759
3877
|
const parsedBody = parsedOutput.body;
|
|
3878
|
+
const $metadata = deserializeMetadata(output);
|
|
3879
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3760
3880
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3762
3882
|
$fault: "client",
|
|
3763
|
-
$metadata
|
|
3883
|
+
$metadata,
|
|
3764
3884
|
});
|
|
3765
3885
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3766
3886
|
}
|
|
@@ -3782,8 +3902,7 @@ const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output,
|
|
|
3782
3902
|
body: await parseBody(output.body, context),
|
|
3783
3903
|
};
|
|
3784
3904
|
let response;
|
|
3785
|
-
|
|
3786
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3787
3906
|
switch (errorCode) {
|
|
3788
3907
|
case "AccessDeniedException":
|
|
3789
3908
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3805,10 +3924,12 @@ const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output,
|
|
|
3805
3924
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3806
3925
|
default:
|
|
3807
3926
|
const parsedBody = parsedOutput.body;
|
|
3927
|
+
const $metadata = deserializeMetadata(output);
|
|
3928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3808
3929
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3810
3931
|
$fault: "client",
|
|
3811
|
-
$metadata
|
|
3932
|
+
$metadata,
|
|
3812
3933
|
});
|
|
3813
3934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3814
3935
|
}
|
|
@@ -3830,8 +3951,7 @@ const deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = a
|
|
|
3830
3951
|
body: await parseBody(output.body, context),
|
|
3831
3952
|
};
|
|
3832
3953
|
let response;
|
|
3833
|
-
|
|
3834
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
3955
|
switch (errorCode) {
|
|
3836
3956
|
case "AccessDeniedException":
|
|
3837
3957
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3853,10 +3973,12 @@ const deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = a
|
|
|
3853
3973
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3854
3974
|
default:
|
|
3855
3975
|
const parsedBody = parsedOutput.body;
|
|
3976
|
+
const $metadata = deserializeMetadata(output);
|
|
3977
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3856
3978
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3979
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3858
3980
|
$fault: "client",
|
|
3859
|
-
$metadata
|
|
3981
|
+
$metadata,
|
|
3860
3982
|
});
|
|
3861
3983
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3862
3984
|
}
|
|
@@ -3878,8 +4000,7 @@ const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output,
|
|
|
3878
4000
|
body: await parseBody(output.body, context),
|
|
3879
4001
|
};
|
|
3880
4002
|
let response;
|
|
3881
|
-
|
|
3882
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3883
4004
|
switch (errorCode) {
|
|
3884
4005
|
case "AccessDeniedException":
|
|
3885
4006
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3898,10 +4019,12 @@ const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output,
|
|
|
3898
4019
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3899
4020
|
default:
|
|
3900
4021
|
const parsedBody = parsedOutput.body;
|
|
4022
|
+
const $metadata = deserializeMetadata(output);
|
|
4023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3901
4024
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3902
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3903
4026
|
$fault: "client",
|
|
3904
|
-
$metadata
|
|
4027
|
+
$metadata,
|
|
3905
4028
|
});
|
|
3906
4029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3907
4030
|
}
|
|
@@ -3923,8 +4046,7 @@ const deserializeAws_restJson1DeleteServiceProfileCommandError = async (output,
|
|
|
3923
4046
|
body: await parseBody(output.body, context),
|
|
3924
4047
|
};
|
|
3925
4048
|
let response;
|
|
3926
|
-
|
|
3927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3928
4050
|
switch (errorCode) {
|
|
3929
4051
|
case "AccessDeniedException":
|
|
3930
4052
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3946,10 +4068,12 @@ const deserializeAws_restJson1DeleteServiceProfileCommandError = async (output,
|
|
|
3946
4068
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3947
4069
|
default:
|
|
3948
4070
|
const parsedBody = parsedOutput.body;
|
|
4071
|
+
const $metadata = deserializeMetadata(output);
|
|
4072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3949
4073
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3950
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3951
4075
|
$fault: "client",
|
|
3952
|
-
$metadata
|
|
4076
|
+
$metadata,
|
|
3953
4077
|
});
|
|
3954
4078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3955
4079
|
}
|
|
@@ -3971,8 +4095,7 @@ const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output,
|
|
|
3971
4095
|
body: await parseBody(output.body, context),
|
|
3972
4096
|
};
|
|
3973
4097
|
let response;
|
|
3974
|
-
|
|
3975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4098
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3976
4099
|
switch (errorCode) {
|
|
3977
4100
|
case "AccessDeniedException":
|
|
3978
4101
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3991,10 +4114,12 @@ const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output,
|
|
|
3991
4114
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3992
4115
|
default:
|
|
3993
4116
|
const parsedBody = parsedOutput.body;
|
|
4117
|
+
const $metadata = deserializeMetadata(output);
|
|
4118
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3994
4119
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4120
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3996
4121
|
$fault: "client",
|
|
3997
|
-
$metadata
|
|
4122
|
+
$metadata,
|
|
3998
4123
|
});
|
|
3999
4124
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4000
4125
|
}
|
|
@@ -4016,8 +4141,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayCommandError = async (output,
|
|
|
4016
4141
|
body: await parseBody(output.body, context),
|
|
4017
4142
|
};
|
|
4018
4143
|
let response;
|
|
4019
|
-
|
|
4020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4144
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4021
4145
|
switch (errorCode) {
|
|
4022
4146
|
case "AccessDeniedException":
|
|
4023
4147
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4036,10 +4160,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayCommandError = async (output,
|
|
|
4036
4160
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4037
4161
|
default:
|
|
4038
4162
|
const parsedBody = parsedOutput.body;
|
|
4163
|
+
const $metadata = deserializeMetadata(output);
|
|
4164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4039
4165
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4041
4167
|
$fault: "client",
|
|
4042
|
-
$metadata
|
|
4168
|
+
$metadata,
|
|
4043
4169
|
});
|
|
4044
4170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4045
4171
|
}
|
|
@@ -4061,8 +4187,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskCommandError = async (out
|
|
|
4061
4187
|
body: await parseBody(output.body, context),
|
|
4062
4188
|
};
|
|
4063
4189
|
let response;
|
|
4064
|
-
|
|
4065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4066
4191
|
switch (errorCode) {
|
|
4067
4192
|
case "AccessDeniedException":
|
|
4068
4193
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4081,10 +4206,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskCommandError = async (out
|
|
|
4081
4206
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4082
4207
|
default:
|
|
4083
4208
|
const parsedBody = parsedOutput.body;
|
|
4209
|
+
const $metadata = deserializeMetadata(output);
|
|
4210
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4084
4211
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4212
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4086
4213
|
$fault: "client",
|
|
4087
|
-
$metadata
|
|
4214
|
+
$metadata,
|
|
4088
4215
|
});
|
|
4089
4216
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4090
4217
|
}
|
|
@@ -4106,8 +4233,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError =
|
|
|
4106
4233
|
body: await parseBody(output.body, context),
|
|
4107
4234
|
};
|
|
4108
4235
|
let response;
|
|
4109
|
-
|
|
4110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
4237
|
switch (errorCode) {
|
|
4112
4238
|
case "AccessDeniedException":
|
|
4113
4239
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4126,10 +4252,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError =
|
|
|
4126
4252
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4127
4253
|
default:
|
|
4128
4254
|
const parsedBody = parsedOutput.body;
|
|
4255
|
+
const $metadata = deserializeMetadata(output);
|
|
4256
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4129
4257
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4131
4259
|
$fault: "client",
|
|
4132
|
-
$metadata
|
|
4260
|
+
$metadata,
|
|
4133
4261
|
});
|
|
4134
4262
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4135
4263
|
}
|
|
@@ -4151,8 +4279,7 @@ const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandErr
|
|
|
4151
4279
|
body: await parseBody(output.body, context),
|
|
4152
4280
|
};
|
|
4153
4281
|
let response;
|
|
4154
|
-
|
|
4155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4282
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4156
4283
|
switch (errorCode) {
|
|
4157
4284
|
case "InternalServerException":
|
|
4158
4285
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -4168,10 +4295,12 @@ const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandErr
|
|
|
4168
4295
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4169
4296
|
default:
|
|
4170
4297
|
const parsedBody = parsedOutput.body;
|
|
4298
|
+
const $metadata = deserializeMetadata(output);
|
|
4299
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4171
4300
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4301
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4173
4302
|
$fault: "client",
|
|
4174
|
-
$metadata
|
|
4303
|
+
$metadata,
|
|
4175
4304
|
});
|
|
4176
4305
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4177
4306
|
}
|
|
@@ -4193,8 +4322,7 @@ const deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommandErro
|
|
|
4193
4322
|
body: await parseBody(output.body, context),
|
|
4194
4323
|
};
|
|
4195
4324
|
let response;
|
|
4196
|
-
|
|
4197
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4325
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
4326
|
switch (errorCode) {
|
|
4199
4327
|
case "AccessDeniedException":
|
|
4200
4328
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4213,10 +4341,12 @@ const deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommandErro
|
|
|
4213
4341
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4214
4342
|
default:
|
|
4215
4343
|
const parsedBody = parsedOutput.body;
|
|
4344
|
+
const $metadata = deserializeMetadata(output);
|
|
4345
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4216
4346
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4347
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4218
4348
|
$fault: "client",
|
|
4219
|
-
$metadata
|
|
4349
|
+
$metadata,
|
|
4220
4350
|
});
|
|
4221
4351
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4222
4352
|
}
|
|
@@ -4238,8 +4368,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommandErro
|
|
|
4238
4368
|
body: await parseBody(output.body, context),
|
|
4239
4369
|
};
|
|
4240
4370
|
let response;
|
|
4241
|
-
|
|
4242
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4371
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4243
4372
|
switch (errorCode) {
|
|
4244
4373
|
case "AccessDeniedException":
|
|
4245
4374
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4261,10 +4390,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommandErro
|
|
|
4261
4390
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4262
4391
|
default:
|
|
4263
4392
|
const parsedBody = parsedOutput.body;
|
|
4393
|
+
const $metadata = deserializeMetadata(output);
|
|
4394
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4264
4395
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4266
4397
|
$fault: "client",
|
|
4267
|
-
$metadata
|
|
4398
|
+
$metadata,
|
|
4268
4399
|
});
|
|
4269
4400
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4270
4401
|
}
|
|
@@ -4286,8 +4417,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComman
|
|
|
4286
4417
|
body: await parseBody(output.body, context),
|
|
4287
4418
|
};
|
|
4288
4419
|
let response;
|
|
4289
|
-
|
|
4290
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4291
4421
|
switch (errorCode) {
|
|
4292
4422
|
case "AccessDeniedException":
|
|
4293
4423
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4306,10 +4436,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComman
|
|
|
4306
4436
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4307
4437
|
default:
|
|
4308
4438
|
const parsedBody = parsedOutput.body;
|
|
4439
|
+
const $metadata = deserializeMetadata(output);
|
|
4440
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4309
4441
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4442
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4311
4443
|
$fault: "client",
|
|
4312
|
-
$metadata
|
|
4444
|
+
$metadata,
|
|
4313
4445
|
});
|
|
4314
4446
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4315
4447
|
}
|
|
@@ -4331,8 +4463,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommandError =
|
|
|
4331
4463
|
body: await parseBody(output.body, context),
|
|
4332
4464
|
};
|
|
4333
4465
|
let response;
|
|
4334
|
-
|
|
4335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4336
4467
|
switch (errorCode) {
|
|
4337
4468
|
case "AccessDeniedException":
|
|
4338
4469
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4354,10 +4485,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommandError =
|
|
|
4354
4485
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4355
4486
|
default:
|
|
4356
4487
|
const parsedBody = parsedOutput.body;
|
|
4488
|
+
const $metadata = deserializeMetadata(output);
|
|
4489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4357
4490
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4359
4492
|
$fault: "client",
|
|
4360
|
-
$metadata
|
|
4493
|
+
$metadata,
|
|
4361
4494
|
});
|
|
4362
4495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4363
4496
|
}
|
|
@@ -4379,8 +4512,7 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommandE
|
|
|
4379
4512
|
body: await parseBody(output.body, context),
|
|
4380
4513
|
};
|
|
4381
4514
|
let response;
|
|
4382
|
-
|
|
4383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4384
4516
|
switch (errorCode) {
|
|
4385
4517
|
case "AccessDeniedException":
|
|
4386
4518
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4399,10 +4531,12 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommandE
|
|
|
4399
4531
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4400
4532
|
default:
|
|
4401
4533
|
const parsedBody = parsedOutput.body;
|
|
4534
|
+
const $metadata = deserializeMetadata(output);
|
|
4535
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4402
4536
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4537
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4404
4538
|
$fault: "client",
|
|
4405
|
-
$metadata
|
|
4539
|
+
$metadata,
|
|
4406
4540
|
});
|
|
4407
4541
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4408
4542
|
}
|
|
@@ -4424,8 +4558,7 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommandError =
|
|
|
4424
4558
|
body: await parseBody(output.body, context),
|
|
4425
4559
|
};
|
|
4426
4560
|
let response;
|
|
4427
|
-
|
|
4428
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4561
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4429
4562
|
switch (errorCode) {
|
|
4430
4563
|
case "AccessDeniedException":
|
|
4431
4564
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4447,10 +4580,12 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommandError =
|
|
|
4447
4580
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4448
4581
|
default:
|
|
4449
4582
|
const parsedBody = parsedOutput.body;
|
|
4583
|
+
const $metadata = deserializeMetadata(output);
|
|
4584
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4450
4585
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4586
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4452
4587
|
$fault: "client",
|
|
4453
|
-
$metadata
|
|
4588
|
+
$metadata,
|
|
4454
4589
|
});
|
|
4455
4590
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4456
4591
|
}
|
|
@@ -4496,8 +4631,7 @@ const deserializeAws_restJson1GetDestinationCommandError = async (output, contex
|
|
|
4496
4631
|
body: await parseBody(output.body, context),
|
|
4497
4632
|
};
|
|
4498
4633
|
let response;
|
|
4499
|
-
|
|
4500
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4634
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4501
4635
|
switch (errorCode) {
|
|
4502
4636
|
case "AccessDeniedException":
|
|
4503
4637
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4516,10 +4650,12 @@ const deserializeAws_restJson1GetDestinationCommandError = async (output, contex
|
|
|
4516
4650
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4517
4651
|
default:
|
|
4518
4652
|
const parsedBody = parsedOutput.body;
|
|
4653
|
+
const $metadata = deserializeMetadata(output);
|
|
4654
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4519
4655
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4656
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4521
4657
|
$fault: "client",
|
|
4522
|
-
$metadata
|
|
4658
|
+
$metadata,
|
|
4523
4659
|
});
|
|
4524
4660
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4525
4661
|
}
|
|
@@ -4557,8 +4693,7 @@ const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, cont
|
|
|
4557
4693
|
body: await parseBody(output.body, context),
|
|
4558
4694
|
};
|
|
4559
4695
|
let response;
|
|
4560
|
-
|
|
4561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4562
4697
|
switch (errorCode) {
|
|
4563
4698
|
case "AccessDeniedException":
|
|
4564
4699
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4577,10 +4712,12 @@ const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, cont
|
|
|
4577
4712
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4578
4713
|
default:
|
|
4579
4714
|
const parsedBody = parsedOutput.body;
|
|
4715
|
+
const $metadata = deserializeMetadata(output);
|
|
4716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4580
4717
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4581
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4582
4719
|
$fault: "client",
|
|
4583
|
-
$metadata
|
|
4720
|
+
$metadata,
|
|
4584
4721
|
});
|
|
4585
4722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4586
4723
|
}
|
|
@@ -4618,8 +4755,7 @@ const deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError =
|
|
|
4618
4755
|
body: await parseBody(output.body, context),
|
|
4619
4756
|
};
|
|
4620
4757
|
let response;
|
|
4621
|
-
|
|
4622
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4623
4759
|
switch (errorCode) {
|
|
4624
4760
|
case "AccessDeniedException":
|
|
4625
4761
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4632,10 +4768,12 @@ const deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError =
|
|
|
4632
4768
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4633
4769
|
default:
|
|
4634
4770
|
const parsedBody = parsedOutput.body;
|
|
4771
|
+
const $metadata = deserializeMetadata(output);
|
|
4772
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4635
4773
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4774
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4637
4775
|
$fault: "client",
|
|
4638
|
-
$metadata
|
|
4776
|
+
$metadata,
|
|
4639
4777
|
});
|
|
4640
4778
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4641
4779
|
}
|
|
@@ -4693,8 +4831,7 @@ const deserializeAws_restJson1GetFuotaTaskCommandError = async (output, context)
|
|
|
4693
4831
|
body: await parseBody(output.body, context),
|
|
4694
4832
|
};
|
|
4695
4833
|
let response;
|
|
4696
|
-
|
|
4697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4834
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4698
4835
|
switch (errorCode) {
|
|
4699
4836
|
case "AccessDeniedException":
|
|
4700
4837
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4713,10 +4850,12 @@ const deserializeAws_restJson1GetFuotaTaskCommandError = async (output, context)
|
|
|
4713
4850
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4714
4851
|
default:
|
|
4715
4852
|
const parsedBody = parsedOutput.body;
|
|
4853
|
+
const $metadata = deserializeMetadata(output);
|
|
4854
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4716
4855
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4717
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4718
4857
|
$fault: "client",
|
|
4719
|
-
$metadata
|
|
4858
|
+
$metadata,
|
|
4720
4859
|
});
|
|
4721
4860
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4722
4861
|
}
|
|
@@ -4750,8 +4889,7 @@ const deserializeAws_restJson1GetLogLevelsByResourceTypesCommandError = async (o
|
|
|
4750
4889
|
body: await parseBody(output.body, context),
|
|
4751
4890
|
};
|
|
4752
4891
|
let response;
|
|
4753
|
-
|
|
4754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4892
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4755
4893
|
switch (errorCode) {
|
|
4756
4894
|
case "AccessDeniedException":
|
|
4757
4895
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4770,10 +4908,12 @@ const deserializeAws_restJson1GetLogLevelsByResourceTypesCommandError = async (o
|
|
|
4770
4908
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4771
4909
|
default:
|
|
4772
4910
|
const parsedBody = parsedOutput.body;
|
|
4911
|
+
const $metadata = deserializeMetadata(output);
|
|
4912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4773
4913
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4775
4915
|
$fault: "client",
|
|
4776
|
-
$metadata
|
|
4916
|
+
$metadata,
|
|
4777
4917
|
});
|
|
4778
4918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4779
4919
|
}
|
|
@@ -4823,8 +4963,7 @@ const deserializeAws_restJson1GetMulticastGroupCommandError = async (output, con
|
|
|
4823
4963
|
body: await parseBody(output.body, context),
|
|
4824
4964
|
};
|
|
4825
4965
|
let response;
|
|
4826
|
-
|
|
4827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4828
4967
|
switch (errorCode) {
|
|
4829
4968
|
case "AccessDeniedException":
|
|
4830
4969
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4843,10 +4982,12 @@ const deserializeAws_restJson1GetMulticastGroupCommandError = async (output, con
|
|
|
4843
4982
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4844
4983
|
default:
|
|
4845
4984
|
const parsedBody = parsedOutput.body;
|
|
4985
|
+
const $metadata = deserializeMetadata(output);
|
|
4986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4846
4987
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4848
4989
|
$fault: "client",
|
|
4849
|
-
$metadata
|
|
4990
|
+
$metadata,
|
|
4850
4991
|
});
|
|
4851
4992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4852
4993
|
}
|
|
@@ -4872,8 +5013,7 @@ const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (outp
|
|
|
4872
5013
|
body: await parseBody(output.body, context),
|
|
4873
5014
|
};
|
|
4874
5015
|
let response;
|
|
4875
|
-
|
|
4876
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5016
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4877
5017
|
switch (errorCode) {
|
|
4878
5018
|
case "AccessDeniedException":
|
|
4879
5019
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4892,10 +5032,12 @@ const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (outp
|
|
|
4892
5032
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4893
5033
|
default:
|
|
4894
5034
|
const parsedBody = parsedOutput.body;
|
|
5035
|
+
const $metadata = deserializeMetadata(output);
|
|
5036
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4895
5037
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5038
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4897
5039
|
$fault: "client",
|
|
4898
|
-
$metadata
|
|
5040
|
+
$metadata,
|
|
4899
5041
|
});
|
|
4900
5042
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4901
5043
|
}
|
|
@@ -4941,8 +5083,7 @@ const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = asyn
|
|
|
4941
5083
|
body: await parseBody(output.body, context),
|
|
4942
5084
|
};
|
|
4943
5085
|
let response;
|
|
4944
|
-
|
|
4945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5086
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4946
5087
|
switch (errorCode) {
|
|
4947
5088
|
case "AccessDeniedException":
|
|
4948
5089
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4961,10 +5102,12 @@ const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = asyn
|
|
|
4961
5102
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4962
5103
|
default:
|
|
4963
5104
|
const parsedBody = parsedOutput.body;
|
|
5105
|
+
const $metadata = deserializeMetadata(output);
|
|
5106
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4964
5107
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4966
5109
|
$fault: "client",
|
|
4967
|
-
$metadata
|
|
5110
|
+
$metadata,
|
|
4968
5111
|
});
|
|
4969
5112
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4970
5113
|
}
|
|
@@ -4994,9 +5137,132 @@ const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, con
|
|
|
4994
5137
|
body: await parseBody(output.body, context),
|
|
4995
5138
|
};
|
|
4996
5139
|
let response;
|
|
4997
|
-
|
|
4998
|
-
|
|
5140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5141
|
+
switch (errorCode) {
|
|
5142
|
+
case "InternalServerException":
|
|
5143
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5144
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5145
|
+
case "ResourceNotFoundException":
|
|
5146
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5147
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5148
|
+
case "ThrottlingException":
|
|
5149
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5150
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5151
|
+
case "ValidationException":
|
|
5152
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
5153
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5154
|
+
default:
|
|
5155
|
+
const parsedBody = parsedOutput.body;
|
|
5156
|
+
const $metadata = deserializeMetadata(output);
|
|
5157
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5158
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5160
|
+
$fault: "client",
|
|
5161
|
+
$metadata,
|
|
5162
|
+
});
|
|
5163
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5164
|
+
}
|
|
5165
|
+
};
|
|
5166
|
+
const deserializeAws_restJson1GetPositionCommand = async (output, context) => {
|
|
5167
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5168
|
+
return deserializeAws_restJson1GetPositionCommandError(output, context);
|
|
5169
|
+
}
|
|
5170
|
+
const contents = {
|
|
5171
|
+
$metadata: deserializeMetadata(output),
|
|
5172
|
+
Accuracy: undefined,
|
|
5173
|
+
Position: undefined,
|
|
5174
|
+
SolverProvider: undefined,
|
|
5175
|
+
SolverType: undefined,
|
|
5176
|
+
SolverVersion: undefined,
|
|
5177
|
+
Timestamp: undefined,
|
|
5178
|
+
};
|
|
5179
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5180
|
+
if (data.Accuracy !== undefined && data.Accuracy !== null) {
|
|
5181
|
+
contents.Accuracy = deserializeAws_restJson1Accuracy(data.Accuracy, context);
|
|
5182
|
+
}
|
|
5183
|
+
if (data.Position !== undefined && data.Position !== null) {
|
|
5184
|
+
contents.Position = deserializeAws_restJson1PositionCoordinate(data.Position, context);
|
|
5185
|
+
}
|
|
5186
|
+
if (data.SolverProvider !== undefined && data.SolverProvider !== null) {
|
|
5187
|
+
contents.SolverProvider = (0, smithy_client_1.expectString)(data.SolverProvider);
|
|
5188
|
+
}
|
|
5189
|
+
if (data.SolverType !== undefined && data.SolverType !== null) {
|
|
5190
|
+
contents.SolverType = (0, smithy_client_1.expectString)(data.SolverType);
|
|
5191
|
+
}
|
|
5192
|
+
if (data.SolverVersion !== undefined && data.SolverVersion !== null) {
|
|
5193
|
+
contents.SolverVersion = (0, smithy_client_1.expectString)(data.SolverVersion);
|
|
5194
|
+
}
|
|
5195
|
+
if (data.Timestamp !== undefined && data.Timestamp !== null) {
|
|
5196
|
+
contents.Timestamp = (0, smithy_client_1.expectString)(data.Timestamp);
|
|
5197
|
+
}
|
|
5198
|
+
return Promise.resolve(contents);
|
|
5199
|
+
};
|
|
5200
|
+
exports.deserializeAws_restJson1GetPositionCommand = deserializeAws_restJson1GetPositionCommand;
|
|
5201
|
+
const deserializeAws_restJson1GetPositionCommandError = async (output, context) => {
|
|
5202
|
+
const parsedOutput = {
|
|
5203
|
+
...output,
|
|
5204
|
+
body: await parseBody(output.body, context),
|
|
5205
|
+
};
|
|
5206
|
+
let response;
|
|
5207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5208
|
+
switch (errorCode) {
|
|
5209
|
+
case "AccessDeniedException":
|
|
5210
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5211
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5212
|
+
case "InternalServerException":
|
|
5213
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5214
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5215
|
+
case "ResourceNotFoundException":
|
|
5216
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5217
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5218
|
+
case "ThrottlingException":
|
|
5219
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5220
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5221
|
+
case "ValidationException":
|
|
5222
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
5223
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5224
|
+
default:
|
|
5225
|
+
const parsedBody = parsedOutput.body;
|
|
5226
|
+
const $metadata = deserializeMetadata(output);
|
|
5227
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5228
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5229
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5230
|
+
$fault: "client",
|
|
5231
|
+
$metadata,
|
|
5232
|
+
});
|
|
5233
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5234
|
+
}
|
|
5235
|
+
};
|
|
5236
|
+
const deserializeAws_restJson1GetPositionConfigurationCommand = async (output, context) => {
|
|
5237
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5238
|
+
return deserializeAws_restJson1GetPositionConfigurationCommandError(output, context);
|
|
5239
|
+
}
|
|
5240
|
+
const contents = {
|
|
5241
|
+
$metadata: deserializeMetadata(output),
|
|
5242
|
+
Destination: undefined,
|
|
5243
|
+
Solvers: undefined,
|
|
5244
|
+
};
|
|
5245
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5246
|
+
if (data.Destination !== undefined && data.Destination !== null) {
|
|
5247
|
+
contents.Destination = (0, smithy_client_1.expectString)(data.Destination);
|
|
5248
|
+
}
|
|
5249
|
+
if (data.Solvers !== undefined && data.Solvers !== null) {
|
|
5250
|
+
contents.Solvers = deserializeAws_restJson1PositionSolverDetails(data.Solvers, context);
|
|
5251
|
+
}
|
|
5252
|
+
return Promise.resolve(contents);
|
|
5253
|
+
};
|
|
5254
|
+
exports.deserializeAws_restJson1GetPositionConfigurationCommand = deserializeAws_restJson1GetPositionConfigurationCommand;
|
|
5255
|
+
const deserializeAws_restJson1GetPositionConfigurationCommandError = async (output, context) => {
|
|
5256
|
+
const parsedOutput = {
|
|
5257
|
+
...output,
|
|
5258
|
+
body: await parseBody(output.body, context),
|
|
5259
|
+
};
|
|
5260
|
+
let response;
|
|
5261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4999
5262
|
switch (errorCode) {
|
|
5263
|
+
case "AccessDeniedException":
|
|
5264
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5265
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5000
5266
|
case "InternalServerException":
|
|
5001
5267
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5002
5268
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -5011,10 +5277,12 @@ const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, con
|
|
|
5011
5277
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5012
5278
|
default:
|
|
5013
5279
|
const parsedBody = parsedOutput.body;
|
|
5280
|
+
const $metadata = deserializeMetadata(output);
|
|
5281
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5014
5282
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5016
5284
|
$fault: "client",
|
|
5017
|
-
$metadata
|
|
5285
|
+
$metadata,
|
|
5018
5286
|
});
|
|
5019
5287
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5020
5288
|
}
|
|
@@ -5052,8 +5320,7 @@ const deserializeAws_restJson1GetResourceEventConfigurationCommandError = async
|
|
|
5052
5320
|
body: await parseBody(output.body, context),
|
|
5053
5321
|
};
|
|
5054
5322
|
let response;
|
|
5055
|
-
|
|
5056
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5323
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5057
5324
|
switch (errorCode) {
|
|
5058
5325
|
case "AccessDeniedException":
|
|
5059
5326
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5072,10 +5339,12 @@ const deserializeAws_restJson1GetResourceEventConfigurationCommandError = async
|
|
|
5072
5339
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5073
5340
|
default:
|
|
5074
5341
|
const parsedBody = parsedOutput.body;
|
|
5342
|
+
const $metadata = deserializeMetadata(output);
|
|
5343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5075
5344
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5077
5346
|
$fault: "client",
|
|
5078
|
-
$metadata
|
|
5347
|
+
$metadata,
|
|
5079
5348
|
});
|
|
5080
5349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5081
5350
|
}
|
|
@@ -5101,8 +5370,7 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
|
|
|
5101
5370
|
body: await parseBody(output.body, context),
|
|
5102
5371
|
};
|
|
5103
5372
|
let response;
|
|
5104
|
-
|
|
5105
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5373
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5106
5374
|
switch (errorCode) {
|
|
5107
5375
|
case "AccessDeniedException":
|
|
5108
5376
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5121,10 +5389,12 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
|
|
|
5121
5389
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5122
5390
|
default:
|
|
5123
5391
|
const parsedBody = parsedOutput.body;
|
|
5392
|
+
const $metadata = deserializeMetadata(output);
|
|
5393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5124
5394
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5126
5396
|
$fault: "client",
|
|
5127
|
-
$metadata
|
|
5397
|
+
$metadata,
|
|
5128
5398
|
});
|
|
5129
5399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5130
5400
|
}
|
|
@@ -5158,8 +5428,7 @@ const deserializeAws_restJson1GetServiceEndpointCommandError = async (output, co
|
|
|
5158
5428
|
body: await parseBody(output.body, context),
|
|
5159
5429
|
};
|
|
5160
5430
|
let response;
|
|
5161
|
-
|
|
5162
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5163
5432
|
switch (errorCode) {
|
|
5164
5433
|
case "AccessDeniedException":
|
|
5165
5434
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5175,10 +5444,12 @@ const deserializeAws_restJson1GetServiceEndpointCommandError = async (output, co
|
|
|
5175
5444
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5176
5445
|
default:
|
|
5177
5446
|
const parsedBody = parsedOutput.body;
|
|
5447
|
+
const $metadata = deserializeMetadata(output);
|
|
5448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5178
5449
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5180
5451
|
$fault: "client",
|
|
5181
|
-
$metadata
|
|
5452
|
+
$metadata,
|
|
5182
5453
|
});
|
|
5183
5454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5184
5455
|
}
|
|
@@ -5216,8 +5487,7 @@ const deserializeAws_restJson1GetServiceProfileCommandError = async (output, con
|
|
|
5216
5487
|
body: await parseBody(output.body, context),
|
|
5217
5488
|
};
|
|
5218
5489
|
let response;
|
|
5219
|
-
|
|
5220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5221
5491
|
switch (errorCode) {
|
|
5222
5492
|
case "AccessDeniedException":
|
|
5223
5493
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5236,10 +5506,12 @@ const deserializeAws_restJson1GetServiceProfileCommandError = async (output, con
|
|
|
5236
5506
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5237
5507
|
default:
|
|
5238
5508
|
const parsedBody = parsedOutput.body;
|
|
5509
|
+
const $metadata = deserializeMetadata(output);
|
|
5510
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5239
5511
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5512
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5241
5513
|
$fault: "client",
|
|
5242
|
-
$metadata
|
|
5514
|
+
$metadata,
|
|
5243
5515
|
});
|
|
5244
5516
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5245
5517
|
}
|
|
@@ -5301,8 +5573,7 @@ const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, con
|
|
|
5301
5573
|
body: await parseBody(output.body, context),
|
|
5302
5574
|
};
|
|
5303
5575
|
let response;
|
|
5304
|
-
|
|
5305
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5306
5577
|
switch (errorCode) {
|
|
5307
5578
|
case "AccessDeniedException":
|
|
5308
5579
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5321,10 +5592,12 @@ const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, con
|
|
|
5321
5592
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5322
5593
|
default:
|
|
5323
5594
|
const parsedBody = parsedOutput.body;
|
|
5595
|
+
const $metadata = deserializeMetadata(output);
|
|
5596
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5324
5597
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5598
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5326
5599
|
$fault: "client",
|
|
5327
|
-
$metadata
|
|
5600
|
+
$metadata,
|
|
5328
5601
|
});
|
|
5329
5602
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5330
5603
|
}
|
|
@@ -5362,8 +5635,7 @@ const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (o
|
|
|
5362
5635
|
body: await parseBody(output.body, context),
|
|
5363
5636
|
};
|
|
5364
5637
|
let response;
|
|
5365
|
-
|
|
5366
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5367
5639
|
switch (errorCode) {
|
|
5368
5640
|
case "AccessDeniedException":
|
|
5369
5641
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5382,10 +5654,12 @@ const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (o
|
|
|
5382
5654
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5383
5655
|
default:
|
|
5384
5656
|
const parsedBody = parsedOutput.body;
|
|
5657
|
+
const $metadata = deserializeMetadata(output);
|
|
5658
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5385
5659
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5660
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5387
5661
|
$fault: "client",
|
|
5388
|
-
$metadata
|
|
5662
|
+
$metadata,
|
|
5389
5663
|
});
|
|
5390
5664
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5391
5665
|
}
|
|
@@ -5435,8 +5709,7 @@ const deserializeAws_restJson1GetWirelessGatewayCommandError = async (output, co
|
|
|
5435
5709
|
body: await parseBody(output.body, context),
|
|
5436
5710
|
};
|
|
5437
5711
|
let response;
|
|
5438
|
-
|
|
5439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5712
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5440
5713
|
switch (errorCode) {
|
|
5441
5714
|
case "AccessDeniedException":
|
|
5442
5715
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5455,10 +5728,12 @@ const deserializeAws_restJson1GetWirelessGatewayCommandError = async (output, co
|
|
|
5455
5728
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5456
5729
|
default:
|
|
5457
5730
|
const parsedBody = parsedOutput.body;
|
|
5731
|
+
const $metadata = deserializeMetadata(output);
|
|
5732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5458
5733
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5460
5735
|
$fault: "client",
|
|
5461
|
-
$metadata
|
|
5736
|
+
$metadata,
|
|
5462
5737
|
});
|
|
5463
5738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5464
5739
|
}
|
|
@@ -5488,8 +5763,7 @@ const deserializeAws_restJson1GetWirelessGatewayCertificateCommandError = async
|
|
|
5488
5763
|
body: await parseBody(output.body, context),
|
|
5489
5764
|
};
|
|
5490
5765
|
let response;
|
|
5491
|
-
|
|
5492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5493
5767
|
switch (errorCode) {
|
|
5494
5768
|
case "AccessDeniedException":
|
|
5495
5769
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5508,10 +5782,12 @@ const deserializeAws_restJson1GetWirelessGatewayCertificateCommandError = async
|
|
|
5508
5782
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5509
5783
|
default:
|
|
5510
5784
|
const parsedBody = parsedOutput.body;
|
|
5785
|
+
const $metadata = deserializeMetadata(output);
|
|
5786
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5511
5787
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5512
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5513
5789
|
$fault: "client",
|
|
5514
|
-
$metadata
|
|
5790
|
+
$metadata,
|
|
5515
5791
|
});
|
|
5516
5792
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5517
5793
|
}
|
|
@@ -5537,8 +5813,7 @@ const deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommandError
|
|
|
5537
5813
|
body: await parseBody(output.body, context),
|
|
5538
5814
|
};
|
|
5539
5815
|
let response;
|
|
5540
|
-
|
|
5541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5816
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5542
5817
|
switch (errorCode) {
|
|
5543
5818
|
case "AccessDeniedException":
|
|
5544
5819
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5557,10 +5832,12 @@ const deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommandError
|
|
|
5557
5832
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5558
5833
|
default:
|
|
5559
5834
|
const parsedBody = parsedOutput.body;
|
|
5835
|
+
const $metadata = deserializeMetadata(output);
|
|
5836
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5560
5837
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5561
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5838
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5562
5839
|
$fault: "client",
|
|
5563
|
-
$metadata
|
|
5840
|
+
$metadata,
|
|
5564
5841
|
});
|
|
5565
5842
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5566
5843
|
}
|
|
@@ -5594,8 +5871,7 @@ const deserializeAws_restJson1GetWirelessGatewayStatisticsCommandError = async (
|
|
|
5594
5871
|
body: await parseBody(output.body, context),
|
|
5595
5872
|
};
|
|
5596
5873
|
let response;
|
|
5597
|
-
|
|
5598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5599
5875
|
switch (errorCode) {
|
|
5600
5876
|
case "AccessDeniedException":
|
|
5601
5877
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5614,10 +5890,12 @@ const deserializeAws_restJson1GetWirelessGatewayStatisticsCommandError = async (
|
|
|
5614
5890
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5615
5891
|
default:
|
|
5616
5892
|
const parsedBody = parsedOutput.body;
|
|
5893
|
+
const $metadata = deserializeMetadata(output);
|
|
5894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5617
5895
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5618
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5619
5897
|
$fault: "client",
|
|
5620
|
-
$metadata
|
|
5898
|
+
$metadata,
|
|
5621
5899
|
});
|
|
5622
5900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5623
5901
|
}
|
|
@@ -5659,8 +5937,7 @@ const deserializeAws_restJson1GetWirelessGatewayTaskCommandError = async (output
|
|
|
5659
5937
|
body: await parseBody(output.body, context),
|
|
5660
5938
|
};
|
|
5661
5939
|
let response;
|
|
5662
|
-
|
|
5663
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5664
5941
|
switch (errorCode) {
|
|
5665
5942
|
case "AccessDeniedException":
|
|
5666
5943
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5679,10 +5956,12 @@ const deserializeAws_restJson1GetWirelessGatewayTaskCommandError = async (output
|
|
|
5679
5956
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5680
5957
|
default:
|
|
5681
5958
|
const parsedBody = parsedOutput.body;
|
|
5959
|
+
const $metadata = deserializeMetadata(output);
|
|
5960
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5682
5961
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5962
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5684
5963
|
$fault: "client",
|
|
5685
|
-
$metadata
|
|
5964
|
+
$metadata,
|
|
5686
5965
|
});
|
|
5687
5966
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5688
5967
|
}
|
|
@@ -5720,8 +5999,7 @@ const deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommandError = asy
|
|
|
5720
5999
|
body: await parseBody(output.body, context),
|
|
5721
6000
|
};
|
|
5722
6001
|
let response;
|
|
5723
|
-
|
|
5724
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5725
6003
|
switch (errorCode) {
|
|
5726
6004
|
case "AccessDeniedException":
|
|
5727
6005
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5740,10 +6018,12 @@ const deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommandError = asy
|
|
|
5740
6018
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5741
6019
|
default:
|
|
5742
6020
|
const parsedBody = parsedOutput.body;
|
|
6021
|
+
const $metadata = deserializeMetadata(output);
|
|
6022
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5743
6023
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6024
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5745
6025
|
$fault: "client",
|
|
5746
|
-
$metadata
|
|
6026
|
+
$metadata,
|
|
5747
6027
|
});
|
|
5748
6028
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5749
6029
|
}
|
|
@@ -5773,8 +6053,7 @@ const deserializeAws_restJson1ListDestinationsCommandError = async (output, cont
|
|
|
5773
6053
|
body: await parseBody(output.body, context),
|
|
5774
6054
|
};
|
|
5775
6055
|
let response;
|
|
5776
|
-
|
|
5777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5778
6057
|
switch (errorCode) {
|
|
5779
6058
|
case "AccessDeniedException":
|
|
5780
6059
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5790,10 +6069,12 @@ const deserializeAws_restJson1ListDestinationsCommandError = async (output, cont
|
|
|
5790
6069
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5791
6070
|
default:
|
|
5792
6071
|
const parsedBody = parsedOutput.body;
|
|
6072
|
+
const $metadata = deserializeMetadata(output);
|
|
6073
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5793
6074
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6075
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5795
6076
|
$fault: "client",
|
|
5796
|
-
$metadata
|
|
6077
|
+
$metadata,
|
|
5797
6078
|
});
|
|
5798
6079
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5799
6080
|
}
|
|
@@ -5823,8 +6104,7 @@ const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, co
|
|
|
5823
6104
|
body: await parseBody(output.body, context),
|
|
5824
6105
|
};
|
|
5825
6106
|
let response;
|
|
5826
|
-
|
|
5827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5828
6108
|
switch (errorCode) {
|
|
5829
6109
|
case "AccessDeniedException":
|
|
5830
6110
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5840,10 +6120,12 @@ const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, co
|
|
|
5840
6120
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5841
6121
|
default:
|
|
5842
6122
|
const parsedBody = parsedOutput.body;
|
|
6123
|
+
const $metadata = deserializeMetadata(output);
|
|
6124
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5843
6125
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6126
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5845
6127
|
$fault: "client",
|
|
5846
|
-
$metadata
|
|
6128
|
+
$metadata,
|
|
5847
6129
|
});
|
|
5848
6130
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5849
6131
|
}
|
|
@@ -5873,8 +6155,7 @@ const deserializeAws_restJson1ListEventConfigurationsCommandError = async (outpu
|
|
|
5873
6155
|
body: await parseBody(output.body, context),
|
|
5874
6156
|
};
|
|
5875
6157
|
let response;
|
|
5876
|
-
|
|
5877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6158
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5878
6159
|
switch (errorCode) {
|
|
5879
6160
|
case "AccessDeniedException":
|
|
5880
6161
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5890,10 +6171,12 @@ const deserializeAws_restJson1ListEventConfigurationsCommandError = async (outpu
|
|
|
5890
6171
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5891
6172
|
default:
|
|
5892
6173
|
const parsedBody = parsedOutput.body;
|
|
6174
|
+
const $metadata = deserializeMetadata(output);
|
|
6175
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5893
6176
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6177
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5895
6178
|
$fault: "client",
|
|
5896
|
-
$metadata
|
|
6179
|
+
$metadata,
|
|
5897
6180
|
});
|
|
5898
6181
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5899
6182
|
}
|
|
@@ -5923,8 +6206,7 @@ const deserializeAws_restJson1ListFuotaTasksCommandError = async (output, contex
|
|
|
5923
6206
|
body: await parseBody(output.body, context),
|
|
5924
6207
|
};
|
|
5925
6208
|
let response;
|
|
5926
|
-
|
|
5927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6209
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5928
6210
|
switch (errorCode) {
|
|
5929
6211
|
case "AccessDeniedException":
|
|
5930
6212
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5940,10 +6222,12 @@ const deserializeAws_restJson1ListFuotaTasksCommandError = async (output, contex
|
|
|
5940
6222
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5941
6223
|
default:
|
|
5942
6224
|
const parsedBody = parsedOutput.body;
|
|
6225
|
+
const $metadata = deserializeMetadata(output);
|
|
6226
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5943
6227
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6228
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5945
6229
|
$fault: "client",
|
|
5946
|
-
$metadata
|
|
6230
|
+
$metadata,
|
|
5947
6231
|
});
|
|
5948
6232
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5949
6233
|
}
|
|
@@ -5973,8 +6257,7 @@ const deserializeAws_restJson1ListMulticastGroupsCommandError = async (output, c
|
|
|
5973
6257
|
body: await parseBody(output.body, context),
|
|
5974
6258
|
};
|
|
5975
6259
|
let response;
|
|
5976
|
-
|
|
5977
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5978
6261
|
switch (errorCode) {
|
|
5979
6262
|
case "AccessDeniedException":
|
|
5980
6263
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5990,10 +6273,12 @@ const deserializeAws_restJson1ListMulticastGroupsCommandError = async (output, c
|
|
|
5990
6273
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5991
6274
|
default:
|
|
5992
6275
|
const parsedBody = parsedOutput.body;
|
|
6276
|
+
const $metadata = deserializeMetadata(output);
|
|
6277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5993
6278
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5995
6280
|
$fault: "client",
|
|
5996
|
-
$metadata
|
|
6281
|
+
$metadata,
|
|
5997
6282
|
});
|
|
5998
6283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5999
6284
|
}
|
|
@@ -6023,8 +6308,7 @@ const deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = async
|
|
|
6023
6308
|
body: await parseBody(output.body, context),
|
|
6024
6309
|
};
|
|
6025
6310
|
let response;
|
|
6026
|
-
|
|
6027
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6028
6312
|
switch (errorCode) {
|
|
6029
6313
|
case "AccessDeniedException":
|
|
6030
6314
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6043,10 +6327,12 @@ const deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = async
|
|
|
6043
6327
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6044
6328
|
default:
|
|
6045
6329
|
const parsedBody = parsedOutput.body;
|
|
6330
|
+
const $metadata = deserializeMetadata(output);
|
|
6331
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6046
6332
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6333
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6048
6334
|
$fault: "client",
|
|
6049
|
-
$metadata
|
|
6335
|
+
$metadata,
|
|
6050
6336
|
});
|
|
6051
6337
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6052
6338
|
}
|
|
@@ -6076,8 +6362,7 @@ const deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = as
|
|
|
6076
6362
|
body: await parseBody(output.body, context),
|
|
6077
6363
|
};
|
|
6078
6364
|
let response;
|
|
6079
|
-
|
|
6080
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6365
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6081
6366
|
switch (errorCode) {
|
|
6082
6367
|
case "AccessDeniedException":
|
|
6083
6368
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6093,10 +6378,12 @@ const deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = as
|
|
|
6093
6378
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6094
6379
|
default:
|
|
6095
6380
|
const parsedBody = parsedOutput.body;
|
|
6381
|
+
const $metadata = deserializeMetadata(output);
|
|
6382
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6096
6383
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6097
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6384
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6098
6385
|
$fault: "client",
|
|
6099
|
-
$metadata
|
|
6386
|
+
$metadata,
|
|
6100
6387
|
});
|
|
6101
6388
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6102
6389
|
}
|
|
@@ -6126,8 +6413,7 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
6126
6413
|
body: await parseBody(output.body, context),
|
|
6127
6414
|
};
|
|
6128
6415
|
let response;
|
|
6129
|
-
|
|
6130
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6131
6417
|
switch (errorCode) {
|
|
6132
6418
|
case "InternalServerException":
|
|
6133
6419
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6143,10 +6429,63 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
6143
6429
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6144
6430
|
default:
|
|
6145
6431
|
const parsedBody = parsedOutput.body;
|
|
6432
|
+
const $metadata = deserializeMetadata(output);
|
|
6433
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6146
6434
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6435
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6148
6436
|
$fault: "client",
|
|
6149
|
-
$metadata
|
|
6437
|
+
$metadata,
|
|
6438
|
+
});
|
|
6439
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6440
|
+
}
|
|
6441
|
+
};
|
|
6442
|
+
const deserializeAws_restJson1ListPositionConfigurationsCommand = async (output, context) => {
|
|
6443
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6444
|
+
return deserializeAws_restJson1ListPositionConfigurationsCommandError(output, context);
|
|
6445
|
+
}
|
|
6446
|
+
const contents = {
|
|
6447
|
+
$metadata: deserializeMetadata(output),
|
|
6448
|
+
NextToken: undefined,
|
|
6449
|
+
PositionConfigurationList: undefined,
|
|
6450
|
+
};
|
|
6451
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6452
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
6453
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
6454
|
+
}
|
|
6455
|
+
if (data.PositionConfigurationList !== undefined && data.PositionConfigurationList !== null) {
|
|
6456
|
+
contents.PositionConfigurationList = deserializeAws_restJson1PositionConfigurationList(data.PositionConfigurationList, context);
|
|
6457
|
+
}
|
|
6458
|
+
return Promise.resolve(contents);
|
|
6459
|
+
};
|
|
6460
|
+
exports.deserializeAws_restJson1ListPositionConfigurationsCommand = deserializeAws_restJson1ListPositionConfigurationsCommand;
|
|
6461
|
+
const deserializeAws_restJson1ListPositionConfigurationsCommandError = async (output, context) => {
|
|
6462
|
+
const parsedOutput = {
|
|
6463
|
+
...output,
|
|
6464
|
+
body: await parseBody(output.body, context),
|
|
6465
|
+
};
|
|
6466
|
+
let response;
|
|
6467
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6468
|
+
switch (errorCode) {
|
|
6469
|
+
case "AccessDeniedException":
|
|
6470
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6471
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6472
|
+
case "InternalServerException":
|
|
6473
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6474
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6475
|
+
case "ThrottlingException":
|
|
6476
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6477
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6478
|
+
case "ValidationException":
|
|
6479
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
6480
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6481
|
+
default:
|
|
6482
|
+
const parsedBody = parsedOutput.body;
|
|
6483
|
+
const $metadata = deserializeMetadata(output);
|
|
6484
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6485
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6486
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6487
|
+
$fault: "client",
|
|
6488
|
+
$metadata,
|
|
6150
6489
|
});
|
|
6151
6490
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6152
6491
|
}
|
|
@@ -6176,8 +6515,7 @@ const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, co
|
|
|
6176
6515
|
body: await parseBody(output.body, context),
|
|
6177
6516
|
};
|
|
6178
6517
|
let response;
|
|
6179
|
-
|
|
6180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6518
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6181
6519
|
switch (errorCode) {
|
|
6182
6520
|
case "AccessDeniedException":
|
|
6183
6521
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6196,10 +6534,12 @@ const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, co
|
|
|
6196
6534
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6197
6535
|
default:
|
|
6198
6536
|
const parsedBody = parsedOutput.body;
|
|
6537
|
+
const $metadata = deserializeMetadata(output);
|
|
6538
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6199
6539
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6201
6541
|
$fault: "client",
|
|
6202
|
-
$metadata
|
|
6542
|
+
$metadata,
|
|
6203
6543
|
});
|
|
6204
6544
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6205
6545
|
}
|
|
@@ -6229,8 +6569,7 @@ const deserializeAws_restJson1ListServiceProfilesCommandError = async (output, c
|
|
|
6229
6569
|
body: await parseBody(output.body, context),
|
|
6230
6570
|
};
|
|
6231
6571
|
let response;
|
|
6232
|
-
|
|
6233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6572
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6234
6573
|
switch (errorCode) {
|
|
6235
6574
|
case "AccessDeniedException":
|
|
6236
6575
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6246,10 +6585,12 @@ const deserializeAws_restJson1ListServiceProfilesCommandError = async (output, c
|
|
|
6246
6585
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6247
6586
|
default:
|
|
6248
6587
|
const parsedBody = parsedOutput.body;
|
|
6588
|
+
const $metadata = deserializeMetadata(output);
|
|
6589
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6249
6590
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6251
6592
|
$fault: "client",
|
|
6252
|
-
$metadata
|
|
6593
|
+
$metadata,
|
|
6253
6594
|
});
|
|
6254
6595
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6255
6596
|
}
|
|
@@ -6275,8 +6616,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
6275
6616
|
body: await parseBody(output.body, context),
|
|
6276
6617
|
};
|
|
6277
6618
|
let response;
|
|
6278
|
-
|
|
6279
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6619
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6280
6620
|
switch (errorCode) {
|
|
6281
6621
|
case "ConflictException":
|
|
6282
6622
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -6295,10 +6635,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
6295
6635
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6296
6636
|
default:
|
|
6297
6637
|
const parsedBody = parsedOutput.body;
|
|
6638
|
+
const $metadata = deserializeMetadata(output);
|
|
6639
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6298
6640
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6641
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6300
6642
|
$fault: "client",
|
|
6301
|
-
$metadata
|
|
6643
|
+
$metadata,
|
|
6302
6644
|
});
|
|
6303
6645
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6304
6646
|
}
|
|
@@ -6328,8 +6670,7 @@ const deserializeAws_restJson1ListWirelessDevicesCommandError = async (output, c
|
|
|
6328
6670
|
body: await parseBody(output.body, context),
|
|
6329
6671
|
};
|
|
6330
6672
|
let response;
|
|
6331
|
-
|
|
6332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6333
6674
|
switch (errorCode) {
|
|
6334
6675
|
case "AccessDeniedException":
|
|
6335
6676
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6345,10 +6686,12 @@ const deserializeAws_restJson1ListWirelessDevicesCommandError = async (output, c
|
|
|
6345
6686
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6346
6687
|
default:
|
|
6347
6688
|
const parsedBody = parsedOutput.body;
|
|
6689
|
+
const $metadata = deserializeMetadata(output);
|
|
6690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6348
6691
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6349
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6350
6693
|
$fault: "client",
|
|
6351
|
-
$metadata
|
|
6694
|
+
$metadata,
|
|
6352
6695
|
});
|
|
6353
6696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6354
6697
|
}
|
|
@@ -6378,8 +6721,7 @@ const deserializeAws_restJson1ListWirelessGatewaysCommandError = async (output,
|
|
|
6378
6721
|
body: await parseBody(output.body, context),
|
|
6379
6722
|
};
|
|
6380
6723
|
let response;
|
|
6381
|
-
|
|
6382
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6724
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6383
6725
|
switch (errorCode) {
|
|
6384
6726
|
case "AccessDeniedException":
|
|
6385
6727
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6395,10 +6737,12 @@ const deserializeAws_restJson1ListWirelessGatewaysCommandError = async (output,
|
|
|
6395
6737
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6396
6738
|
default:
|
|
6397
6739
|
const parsedBody = parsedOutput.body;
|
|
6740
|
+
const $metadata = deserializeMetadata(output);
|
|
6741
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6398
6742
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6399
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6743
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6400
6744
|
$fault: "client",
|
|
6401
|
-
$metadata
|
|
6745
|
+
$metadata,
|
|
6402
6746
|
});
|
|
6403
6747
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6404
6748
|
}
|
|
@@ -6428,8 +6772,7 @@ const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = a
|
|
|
6428
6772
|
body: await parseBody(output.body, context),
|
|
6429
6773
|
};
|
|
6430
6774
|
let response;
|
|
6431
|
-
|
|
6432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6775
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6433
6776
|
switch (errorCode) {
|
|
6434
6777
|
case "AccessDeniedException":
|
|
6435
6778
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6445,10 +6788,58 @@ const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = a
|
|
|
6445
6788
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6446
6789
|
default:
|
|
6447
6790
|
const parsedBody = parsedOutput.body;
|
|
6791
|
+
const $metadata = deserializeMetadata(output);
|
|
6792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6448
6793
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6450
6795
|
$fault: "client",
|
|
6451
|
-
$metadata
|
|
6796
|
+
$metadata,
|
|
6797
|
+
});
|
|
6798
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6799
|
+
}
|
|
6800
|
+
};
|
|
6801
|
+
const deserializeAws_restJson1PutPositionConfigurationCommand = async (output, context) => {
|
|
6802
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6803
|
+
return deserializeAws_restJson1PutPositionConfigurationCommandError(output, context);
|
|
6804
|
+
}
|
|
6805
|
+
const contents = {
|
|
6806
|
+
$metadata: deserializeMetadata(output),
|
|
6807
|
+
};
|
|
6808
|
+
await collectBody(output.body, context);
|
|
6809
|
+
return Promise.resolve(contents);
|
|
6810
|
+
};
|
|
6811
|
+
exports.deserializeAws_restJson1PutPositionConfigurationCommand = deserializeAws_restJson1PutPositionConfigurationCommand;
|
|
6812
|
+
const deserializeAws_restJson1PutPositionConfigurationCommandError = async (output, context) => {
|
|
6813
|
+
const parsedOutput = {
|
|
6814
|
+
...output,
|
|
6815
|
+
body: await parseBody(output.body, context),
|
|
6816
|
+
};
|
|
6817
|
+
let response;
|
|
6818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6819
|
+
switch (errorCode) {
|
|
6820
|
+
case "AccessDeniedException":
|
|
6821
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6822
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6823
|
+
case "InternalServerException":
|
|
6824
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6825
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6826
|
+
case "ResourceNotFoundException":
|
|
6827
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6828
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6829
|
+
case "ThrottlingException":
|
|
6830
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6831
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6832
|
+
case "ValidationException":
|
|
6833
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
6834
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6835
|
+
default:
|
|
6836
|
+
const parsedBody = parsedOutput.body;
|
|
6837
|
+
const $metadata = deserializeMetadata(output);
|
|
6838
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6839
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6840
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6841
|
+
$fault: "client",
|
|
6842
|
+
$metadata,
|
|
6452
6843
|
});
|
|
6453
6844
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6454
6845
|
}
|
|
@@ -6470,8 +6861,7 @@ const deserializeAws_restJson1PutResourceLogLevelCommandError = async (output, c
|
|
|
6470
6861
|
body: await parseBody(output.body, context),
|
|
6471
6862
|
};
|
|
6472
6863
|
let response;
|
|
6473
|
-
|
|
6474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6864
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6475
6865
|
switch (errorCode) {
|
|
6476
6866
|
case "AccessDeniedException":
|
|
6477
6867
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6490,10 +6880,12 @@ const deserializeAws_restJson1PutResourceLogLevelCommandError = async (output, c
|
|
|
6490
6880
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6491
6881
|
default:
|
|
6492
6882
|
const parsedBody = parsedOutput.body;
|
|
6883
|
+
const $metadata = deserializeMetadata(output);
|
|
6884
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6493
6885
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6886
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6495
6887
|
$fault: "client",
|
|
6496
|
-
$metadata
|
|
6888
|
+
$metadata,
|
|
6497
6889
|
});
|
|
6498
6890
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6499
6891
|
}
|
|
@@ -6515,8 +6907,7 @@ const deserializeAws_restJson1ResetAllResourceLogLevelsCommandError = async (out
|
|
|
6515
6907
|
body: await parseBody(output.body, context),
|
|
6516
6908
|
};
|
|
6517
6909
|
let response;
|
|
6518
|
-
|
|
6519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6520
6911
|
switch (errorCode) {
|
|
6521
6912
|
case "AccessDeniedException":
|
|
6522
6913
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6535,10 +6926,12 @@ const deserializeAws_restJson1ResetAllResourceLogLevelsCommandError = async (out
|
|
|
6535
6926
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6536
6927
|
default:
|
|
6537
6928
|
const parsedBody = parsedOutput.body;
|
|
6929
|
+
const $metadata = deserializeMetadata(output);
|
|
6930
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6538
6931
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6932
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6540
6933
|
$fault: "client",
|
|
6541
|
-
$metadata
|
|
6934
|
+
$metadata,
|
|
6542
6935
|
});
|
|
6543
6936
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6544
6937
|
}
|
|
@@ -6560,8 +6953,7 @@ const deserializeAws_restJson1ResetResourceLogLevelCommandError = async (output,
|
|
|
6560
6953
|
body: await parseBody(output.body, context),
|
|
6561
6954
|
};
|
|
6562
6955
|
let response;
|
|
6563
|
-
|
|
6564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6565
6957
|
switch (errorCode) {
|
|
6566
6958
|
case "AccessDeniedException":
|
|
6567
6959
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6580,10 +6972,12 @@ const deserializeAws_restJson1ResetResourceLogLevelCommandError = async (output,
|
|
|
6580
6972
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6581
6973
|
default:
|
|
6582
6974
|
const parsedBody = parsedOutput.body;
|
|
6975
|
+
const $metadata = deserializeMetadata(output);
|
|
6976
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6583
6977
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6978
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6585
6979
|
$fault: "client",
|
|
6586
|
-
$metadata
|
|
6980
|
+
$metadata,
|
|
6587
6981
|
});
|
|
6588
6982
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6589
6983
|
}
|
|
@@ -6609,8 +7003,7 @@ const deserializeAws_restJson1SendDataToMulticastGroupCommandError = async (outp
|
|
|
6609
7003
|
body: await parseBody(output.body, context),
|
|
6610
7004
|
};
|
|
6611
7005
|
let response;
|
|
6612
|
-
|
|
6613
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6614
7007
|
switch (errorCode) {
|
|
6615
7008
|
case "AccessDeniedException":
|
|
6616
7009
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6632,10 +7025,12 @@ const deserializeAws_restJson1SendDataToMulticastGroupCommandError = async (outp
|
|
|
6632
7025
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6633
7026
|
default:
|
|
6634
7027
|
const parsedBody = parsedOutput.body;
|
|
7028
|
+
const $metadata = deserializeMetadata(output);
|
|
7029
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6635
7030
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6637
7032
|
$fault: "client",
|
|
6638
|
-
$metadata
|
|
7033
|
+
$metadata,
|
|
6639
7034
|
});
|
|
6640
7035
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6641
7036
|
}
|
|
@@ -6661,8 +7056,7 @@ const deserializeAws_restJson1SendDataToWirelessDeviceCommandError = async (outp
|
|
|
6661
7056
|
body: await parseBody(output.body, context),
|
|
6662
7057
|
};
|
|
6663
7058
|
let response;
|
|
6664
|
-
|
|
6665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7059
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6666
7060
|
switch (errorCode) {
|
|
6667
7061
|
case "InternalServerException":
|
|
6668
7062
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6678,10 +7072,12 @@ const deserializeAws_restJson1SendDataToWirelessDeviceCommandError = async (outp
|
|
|
6678
7072
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6679
7073
|
default:
|
|
6680
7074
|
const parsedBody = parsedOutput.body;
|
|
7075
|
+
const $metadata = deserializeMetadata(output);
|
|
7076
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6681
7077
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6682
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7078
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6683
7079
|
$fault: "client",
|
|
6684
|
-
$metadata
|
|
7080
|
+
$metadata,
|
|
6685
7081
|
});
|
|
6686
7082
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6687
7083
|
}
|
|
@@ -6703,8 +7099,7 @@ const deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroup
|
|
|
6703
7099
|
body: await parseBody(output.body, context),
|
|
6704
7100
|
};
|
|
6705
7101
|
let response;
|
|
6706
|
-
|
|
6707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7102
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6708
7103
|
switch (errorCode) {
|
|
6709
7104
|
case "AccessDeniedException":
|
|
6710
7105
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6723,10 +7118,12 @@ const deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroup
|
|
|
6723
7118
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6724
7119
|
default:
|
|
6725
7120
|
const parsedBody = parsedOutput.body;
|
|
7121
|
+
const $metadata = deserializeMetadata(output);
|
|
7122
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6726
7123
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7124
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6728
7125
|
$fault: "client",
|
|
6729
|
-
$metadata
|
|
7126
|
+
$metadata,
|
|
6730
7127
|
});
|
|
6731
7128
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6732
7129
|
}
|
|
@@ -6748,8 +7145,7 @@ const deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGr
|
|
|
6748
7145
|
body: await parseBody(output.body, context),
|
|
6749
7146
|
};
|
|
6750
7147
|
let response;
|
|
6751
|
-
|
|
6752
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6753
7149
|
switch (errorCode) {
|
|
6754
7150
|
case "AccessDeniedException":
|
|
6755
7151
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6768,10 +7164,12 @@ const deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGr
|
|
|
6768
7164
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6769
7165
|
default:
|
|
6770
7166
|
const parsedBody = parsedOutput.body;
|
|
7167
|
+
const $metadata = deserializeMetadata(output);
|
|
7168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6771
7169
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6772
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6773
7171
|
$fault: "client",
|
|
6774
|
-
$metadata
|
|
7172
|
+
$metadata,
|
|
6775
7173
|
});
|
|
6776
7174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6777
7175
|
}
|
|
@@ -6793,8 +7191,7 @@ const deserializeAws_restJson1StartFuotaTaskCommandError = async (output, contex
|
|
|
6793
7191
|
body: await parseBody(output.body, context),
|
|
6794
7192
|
};
|
|
6795
7193
|
let response;
|
|
6796
|
-
|
|
6797
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6798
7195
|
switch (errorCode) {
|
|
6799
7196
|
case "AccessDeniedException":
|
|
6800
7197
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6816,10 +7213,12 @@ const deserializeAws_restJson1StartFuotaTaskCommandError = async (output, contex
|
|
|
6816
7213
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6817
7214
|
default:
|
|
6818
7215
|
const parsedBody = parsedOutput.body;
|
|
7216
|
+
const $metadata = deserializeMetadata(output);
|
|
7217
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6819
7218
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6821
7220
|
$fault: "client",
|
|
6822
|
-
$metadata
|
|
7221
|
+
$metadata,
|
|
6823
7222
|
});
|
|
6824
7223
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6825
7224
|
}
|
|
@@ -6841,8 +7240,7 @@ const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (ou
|
|
|
6841
7240
|
body: await parseBody(output.body, context),
|
|
6842
7241
|
};
|
|
6843
7242
|
let response;
|
|
6844
|
-
|
|
6845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7243
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6846
7244
|
switch (errorCode) {
|
|
6847
7245
|
case "AccessDeniedException":
|
|
6848
7246
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6864,10 +7262,12 @@ const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (ou
|
|
|
6864
7262
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6865
7263
|
default:
|
|
6866
7264
|
const parsedBody = parsedOutput.body;
|
|
7265
|
+
const $metadata = deserializeMetadata(output);
|
|
7266
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6867
7267
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7268
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6869
7269
|
$fault: "client",
|
|
6870
|
-
$metadata
|
|
7270
|
+
$metadata,
|
|
6871
7271
|
});
|
|
6872
7272
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6873
7273
|
}
|
|
@@ -6889,8 +7289,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6889
7289
|
body: await parseBody(output.body, context),
|
|
6890
7290
|
};
|
|
6891
7291
|
let response;
|
|
6892
|
-
|
|
6893
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6894
7293
|
switch (errorCode) {
|
|
6895
7294
|
case "ConflictException":
|
|
6896
7295
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -6912,10 +7311,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6912
7311
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6913
7312
|
default:
|
|
6914
7313
|
const parsedBody = parsedOutput.body;
|
|
7314
|
+
const $metadata = deserializeMetadata(output);
|
|
7315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6915
7316
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6916
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6917
7318
|
$fault: "client",
|
|
6918
|
-
$metadata
|
|
7319
|
+
$metadata,
|
|
6919
7320
|
});
|
|
6920
7321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6921
7322
|
}
|
|
@@ -6941,8 +7342,7 @@ const deserializeAws_restJson1TestWirelessDeviceCommandError = async (output, co
|
|
|
6941
7342
|
body: await parseBody(output.body, context),
|
|
6942
7343
|
};
|
|
6943
7344
|
let response;
|
|
6944
|
-
|
|
6945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6946
7346
|
switch (errorCode) {
|
|
6947
7347
|
case "InternalServerException":
|
|
6948
7348
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6958,10 +7358,12 @@ const deserializeAws_restJson1TestWirelessDeviceCommandError = async (output, co
|
|
|
6958
7358
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6959
7359
|
default:
|
|
6960
7360
|
const parsedBody = parsedOutput.body;
|
|
7361
|
+
const $metadata = deserializeMetadata(output);
|
|
7362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6961
7363
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6963
7365
|
$fault: "client",
|
|
6964
|
-
$metadata
|
|
7366
|
+
$metadata,
|
|
6965
7367
|
});
|
|
6966
7368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6967
7369
|
}
|
|
@@ -6983,8 +7385,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6983
7385
|
body: await parseBody(output.body, context),
|
|
6984
7386
|
};
|
|
6985
7387
|
let response;
|
|
6986
|
-
|
|
6987
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7388
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6988
7389
|
switch (errorCode) {
|
|
6989
7390
|
case "ConflictException":
|
|
6990
7391
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -7003,10 +7404,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
7003
7404
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7004
7405
|
default:
|
|
7005
7406
|
const parsedBody = parsedOutput.body;
|
|
7407
|
+
const $metadata = deserializeMetadata(output);
|
|
7408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7006
7409
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7008
7411
|
$fault: "client",
|
|
7009
|
-
$metadata
|
|
7412
|
+
$metadata,
|
|
7010
7413
|
});
|
|
7011
7414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7012
7415
|
}
|
|
@@ -7028,8 +7431,7 @@ const deserializeAws_restJson1UpdateDestinationCommandError = async (output, con
|
|
|
7028
7431
|
body: await parseBody(output.body, context),
|
|
7029
7432
|
};
|
|
7030
7433
|
let response;
|
|
7031
|
-
|
|
7032
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7434
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7033
7435
|
switch (errorCode) {
|
|
7034
7436
|
case "AccessDeniedException":
|
|
7035
7437
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7048,10 +7450,12 @@ const deserializeAws_restJson1UpdateDestinationCommandError = async (output, con
|
|
|
7048
7450
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7049
7451
|
default:
|
|
7050
7452
|
const parsedBody = parsedOutput.body;
|
|
7453
|
+
const $metadata = deserializeMetadata(output);
|
|
7454
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7051
7455
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7052
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7456
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7053
7457
|
$fault: "client",
|
|
7054
|
-
$metadata
|
|
7458
|
+
$metadata,
|
|
7055
7459
|
});
|
|
7056
7460
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7057
7461
|
}
|
|
@@ -7073,8 +7477,7 @@ const deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandErro
|
|
|
7073
7477
|
body: await parseBody(output.body, context),
|
|
7074
7478
|
};
|
|
7075
7479
|
let response;
|
|
7076
|
-
|
|
7077
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7480
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7078
7481
|
switch (errorCode) {
|
|
7079
7482
|
case "AccessDeniedException":
|
|
7080
7483
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7090,10 +7493,12 @@ const deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandErro
|
|
|
7090
7493
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7091
7494
|
default:
|
|
7092
7495
|
const parsedBody = parsedOutput.body;
|
|
7496
|
+
const $metadata = deserializeMetadata(output);
|
|
7497
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7093
7498
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7499
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7095
7500
|
$fault: "client",
|
|
7096
|
-
$metadata
|
|
7501
|
+
$metadata,
|
|
7097
7502
|
});
|
|
7098
7503
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7099
7504
|
}
|
|
@@ -7115,8 +7520,7 @@ const deserializeAws_restJson1UpdateFuotaTaskCommandError = async (output, conte
|
|
|
7115
7520
|
body: await parseBody(output.body, context),
|
|
7116
7521
|
};
|
|
7117
7522
|
let response;
|
|
7118
|
-
|
|
7119
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7523
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7120
7524
|
switch (errorCode) {
|
|
7121
7525
|
case "AccessDeniedException":
|
|
7122
7526
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7138,10 +7542,12 @@ const deserializeAws_restJson1UpdateFuotaTaskCommandError = async (output, conte
|
|
|
7138
7542
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7139
7543
|
default:
|
|
7140
7544
|
const parsedBody = parsedOutput.body;
|
|
7545
|
+
const $metadata = deserializeMetadata(output);
|
|
7546
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7141
7547
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7142
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7548
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7143
7549
|
$fault: "client",
|
|
7144
|
-
$metadata
|
|
7550
|
+
$metadata,
|
|
7145
7551
|
});
|
|
7146
7552
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7147
7553
|
}
|
|
@@ -7163,8 +7569,7 @@ const deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommandError = async
|
|
|
7163
7569
|
body: await parseBody(output.body, context),
|
|
7164
7570
|
};
|
|
7165
7571
|
let response;
|
|
7166
|
-
|
|
7167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7572
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7168
7573
|
switch (errorCode) {
|
|
7169
7574
|
case "AccessDeniedException":
|
|
7170
7575
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7186,10 +7591,12 @@ const deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommandError = async
|
|
|
7186
7591
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7187
7592
|
default:
|
|
7188
7593
|
const parsedBody = parsedOutput.body;
|
|
7594
|
+
const $metadata = deserializeMetadata(output);
|
|
7595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7189
7596
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7190
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7191
7598
|
$fault: "client",
|
|
7192
|
-
$metadata
|
|
7599
|
+
$metadata,
|
|
7193
7600
|
});
|
|
7194
7601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7195
7602
|
}
|
|
@@ -7211,8 +7618,7 @@ const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output,
|
|
|
7211
7618
|
body: await parseBody(output.body, context),
|
|
7212
7619
|
};
|
|
7213
7620
|
let response;
|
|
7214
|
-
|
|
7215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7216
7622
|
switch (errorCode) {
|
|
7217
7623
|
case "AccessDeniedException":
|
|
7218
7624
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7234,10 +7640,12 @@ const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output,
|
|
|
7234
7640
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7235
7641
|
default:
|
|
7236
7642
|
const parsedBody = parsedOutput.body;
|
|
7643
|
+
const $metadata = deserializeMetadata(output);
|
|
7644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7237
7645
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7239
7647
|
$fault: "client",
|
|
7240
|
-
$metadata
|
|
7648
|
+
$metadata,
|
|
7241
7649
|
});
|
|
7242
7650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7243
7651
|
}
|
|
@@ -7259,8 +7667,7 @@ const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = a
|
|
|
7259
7667
|
body: await parseBody(output.body, context),
|
|
7260
7668
|
};
|
|
7261
7669
|
let response;
|
|
7262
|
-
|
|
7263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7264
7671
|
switch (errorCode) {
|
|
7265
7672
|
case "AccessDeniedException":
|
|
7266
7673
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7279,10 +7686,12 @@ const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = a
|
|
|
7279
7686
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7280
7687
|
default:
|
|
7281
7688
|
const parsedBody = parsedOutput.body;
|
|
7689
|
+
const $metadata = deserializeMetadata(output);
|
|
7690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7282
7691
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7284
7693
|
$fault: "client",
|
|
7285
|
-
$metadata
|
|
7694
|
+
$metadata,
|
|
7286
7695
|
});
|
|
7287
7696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7288
7697
|
}
|
|
@@ -7304,8 +7713,7 @@ const deserializeAws_restJson1UpdatePartnerAccountCommandError = async (output,
|
|
|
7304
7713
|
body: await parseBody(output.body, context),
|
|
7305
7714
|
};
|
|
7306
7715
|
let response;
|
|
7307
|
-
|
|
7308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7309
7717
|
switch (errorCode) {
|
|
7310
7718
|
case "InternalServerException":
|
|
7311
7719
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -7321,10 +7729,58 @@ const deserializeAws_restJson1UpdatePartnerAccountCommandError = async (output,
|
|
|
7321
7729
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7322
7730
|
default:
|
|
7323
7731
|
const parsedBody = parsedOutput.body;
|
|
7732
|
+
const $metadata = deserializeMetadata(output);
|
|
7733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7324
7734
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7326
7736
|
$fault: "client",
|
|
7327
|
-
$metadata
|
|
7737
|
+
$metadata,
|
|
7738
|
+
});
|
|
7739
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7740
|
+
}
|
|
7741
|
+
};
|
|
7742
|
+
const deserializeAws_restJson1UpdatePositionCommand = async (output, context) => {
|
|
7743
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
7744
|
+
return deserializeAws_restJson1UpdatePositionCommandError(output, context);
|
|
7745
|
+
}
|
|
7746
|
+
const contents = {
|
|
7747
|
+
$metadata: deserializeMetadata(output),
|
|
7748
|
+
};
|
|
7749
|
+
await collectBody(output.body, context);
|
|
7750
|
+
return Promise.resolve(contents);
|
|
7751
|
+
};
|
|
7752
|
+
exports.deserializeAws_restJson1UpdatePositionCommand = deserializeAws_restJson1UpdatePositionCommand;
|
|
7753
|
+
const deserializeAws_restJson1UpdatePositionCommandError = async (output, context) => {
|
|
7754
|
+
const parsedOutput = {
|
|
7755
|
+
...output,
|
|
7756
|
+
body: await parseBody(output.body, context),
|
|
7757
|
+
};
|
|
7758
|
+
let response;
|
|
7759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7760
|
+
switch (errorCode) {
|
|
7761
|
+
case "AccessDeniedException":
|
|
7762
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
7763
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
7764
|
+
case "InternalServerException":
|
|
7765
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
7766
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
7767
|
+
case "ResourceNotFoundException":
|
|
7768
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
7769
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
7770
|
+
case "ThrottlingException":
|
|
7771
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
7772
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
7773
|
+
case "ValidationException":
|
|
7774
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
7775
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7776
|
+
default:
|
|
7777
|
+
const parsedBody = parsedOutput.body;
|
|
7778
|
+
const $metadata = deserializeMetadata(output);
|
|
7779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7780
|
+
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7782
|
+
$fault: "client",
|
|
7783
|
+
$metadata,
|
|
7328
7784
|
});
|
|
7329
7785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7330
7786
|
}
|
|
@@ -7346,8 +7802,7 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
|
|
|
7346
7802
|
body: await parseBody(output.body, context),
|
|
7347
7803
|
};
|
|
7348
7804
|
let response;
|
|
7349
|
-
|
|
7350
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7351
7806
|
switch (errorCode) {
|
|
7352
7807
|
case "AccessDeniedException":
|
|
7353
7808
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7369,10 +7824,12 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
|
|
|
7369
7824
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7370
7825
|
default:
|
|
7371
7826
|
const parsedBody = parsedOutput.body;
|
|
7827
|
+
const $metadata = deserializeMetadata(output);
|
|
7828
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7372
7829
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7830
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7374
7831
|
$fault: "client",
|
|
7375
|
-
$metadata
|
|
7832
|
+
$metadata,
|
|
7376
7833
|
});
|
|
7377
7834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7378
7835
|
}
|
|
@@ -7394,8 +7851,7 @@ const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output,
|
|
|
7394
7851
|
body: await parseBody(output.body, context),
|
|
7395
7852
|
};
|
|
7396
7853
|
let response;
|
|
7397
|
-
|
|
7398
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7399
7855
|
switch (errorCode) {
|
|
7400
7856
|
case "AccessDeniedException":
|
|
7401
7857
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7414,10 +7870,12 @@ const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output,
|
|
|
7414
7870
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7415
7871
|
default:
|
|
7416
7872
|
const parsedBody = parsedOutput.body;
|
|
7873
|
+
const $metadata = deserializeMetadata(output);
|
|
7874
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7417
7875
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7418
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7876
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7419
7877
|
$fault: "client",
|
|
7420
|
-
$metadata
|
|
7878
|
+
$metadata,
|
|
7421
7879
|
});
|
|
7422
7880
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7423
7881
|
}
|
|
@@ -7439,8 +7897,7 @@ const deserializeAws_restJson1UpdateWirelessGatewayCommandError = async (output,
|
|
|
7439
7897
|
body: await parseBody(output.body, context),
|
|
7440
7898
|
};
|
|
7441
7899
|
let response;
|
|
7442
|
-
|
|
7443
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7444
7901
|
switch (errorCode) {
|
|
7445
7902
|
case "AccessDeniedException":
|
|
7446
7903
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7459,10 +7916,12 @@ const deserializeAws_restJson1UpdateWirelessGatewayCommandError = async (output,
|
|
|
7459
7916
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7460
7917
|
default:
|
|
7461
7918
|
const parsedBody = parsedOutput.body;
|
|
7919
|
+
const $metadata = deserializeMetadata(output);
|
|
7920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7462
7921
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7464
7923
|
$fault: "client",
|
|
7465
|
-
$metadata
|
|
7924
|
+
$metadata,
|
|
7466
7925
|
});
|
|
7467
7926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7468
7927
|
}
|
|
@@ -7568,56 +8027,50 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
7568
8027
|
};
|
|
7569
8028
|
const serializeAws_restJson1AbpV1_0_x = (input, context) => {
|
|
7570
8029
|
return {
|
|
7571
|
-
...(input.DevAddr
|
|
7572
|
-
...(input.FCntStart
|
|
7573
|
-
...(input.SessionKeys
|
|
7574
|
-
input.SessionKeys !== null && {
|
|
8030
|
+
...(input.DevAddr != null && { DevAddr: input.DevAddr }),
|
|
8031
|
+
...(input.FCntStart != null && { FCntStart: input.FCntStart }),
|
|
8032
|
+
...(input.SessionKeys != null && {
|
|
7575
8033
|
SessionKeys: serializeAws_restJson1SessionKeysAbpV1_0_x(input.SessionKeys, context),
|
|
7576
8034
|
}),
|
|
7577
8035
|
};
|
|
7578
8036
|
};
|
|
7579
8037
|
const serializeAws_restJson1AbpV1_1 = (input, context) => {
|
|
7580
8038
|
return {
|
|
7581
|
-
...(input.DevAddr
|
|
7582
|
-
...(input.FCntStart
|
|
7583
|
-
...(input.SessionKeys
|
|
7584
|
-
input.SessionKeys !== null && {
|
|
8039
|
+
...(input.DevAddr != null && { DevAddr: input.DevAddr }),
|
|
8040
|
+
...(input.FCntStart != null && { FCntStart: input.FCntStart }),
|
|
8041
|
+
...(input.SessionKeys != null && {
|
|
7585
8042
|
SessionKeys: serializeAws_restJson1SessionKeysAbpV1_1(input.SessionKeys, context),
|
|
7586
8043
|
}),
|
|
7587
8044
|
};
|
|
7588
8045
|
};
|
|
7589
8046
|
const serializeAws_restJson1ConnectionStatusEventConfiguration = (input, context) => {
|
|
7590
8047
|
return {
|
|
7591
|
-
...(input.LoRaWAN
|
|
7592
|
-
input.LoRaWAN !== null && {
|
|
8048
|
+
...(input.LoRaWAN != null && {
|
|
7593
8049
|
LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(input.LoRaWAN, context),
|
|
7594
8050
|
}),
|
|
7595
|
-
...(input.WirelessGatewayIdEventTopic
|
|
7596
|
-
|
|
8051
|
+
...(input.WirelessGatewayIdEventTopic != null && {
|
|
8052
|
+
WirelessGatewayIdEventTopic: input.WirelessGatewayIdEventTopic,
|
|
8053
|
+
}),
|
|
7597
8054
|
};
|
|
7598
8055
|
};
|
|
7599
8056
|
const serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = (input, context) => {
|
|
7600
8057
|
return {
|
|
7601
|
-
...(input.LoRaWAN
|
|
7602
|
-
input.LoRaWAN !== null && {
|
|
8058
|
+
...(input.LoRaWAN != null && {
|
|
7603
8059
|
LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(input.LoRaWAN, context),
|
|
7604
8060
|
}),
|
|
7605
8061
|
};
|
|
7606
8062
|
};
|
|
7607
8063
|
const serializeAws_restJson1DeviceRegistrationStateEventConfiguration = (input, context) => {
|
|
7608
8064
|
return {
|
|
7609
|
-
...(input.Sidewalk
|
|
7610
|
-
input.Sidewalk !== null && {
|
|
8065
|
+
...(input.Sidewalk != null && {
|
|
7611
8066
|
Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
|
|
7612
8067
|
}),
|
|
7613
|
-
...(input.WirelessDeviceIdEventTopic
|
|
7614
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
|
|
8068
|
+
...(input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
|
|
7615
8069
|
};
|
|
7616
8070
|
};
|
|
7617
8071
|
const serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = (input, context) => {
|
|
7618
8072
|
return {
|
|
7619
|
-
...(input.Sidewalk
|
|
7620
|
-
input.Sidewalk !== null && {
|
|
8073
|
+
...(input.Sidewalk != null && {
|
|
7621
8074
|
Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
|
|
7622
8075
|
}),
|
|
7623
8076
|
};
|
|
@@ -7634,9 +8087,10 @@ const serializeAws_restJson1FactoryPresetFreqsList = (input, context) => {
|
|
|
7634
8087
|
};
|
|
7635
8088
|
const serializeAws_restJson1FPorts = (input, context) => {
|
|
7636
8089
|
return {
|
|
7637
|
-
...(input.ClockSync
|
|
7638
|
-
...(input.Fuota
|
|
7639
|
-
...(input.Multicast
|
|
8090
|
+
...(input.ClockSync != null && { ClockSync: input.ClockSync }),
|
|
8091
|
+
...(input.Fuota != null && { Fuota: input.Fuota }),
|
|
8092
|
+
...(input.Multicast != null && { Multicast: input.Multicast }),
|
|
8093
|
+
...(input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
|
|
7640
8094
|
};
|
|
7641
8095
|
};
|
|
7642
8096
|
const serializeAws_restJson1JoinEuiFilters = (input, context) => {
|
|
@@ -7661,193 +8115,161 @@ const serializeAws_restJson1JoinEuiRange = (input, context) => {
|
|
|
7661
8115
|
};
|
|
7662
8116
|
const serializeAws_restJson1JoinEventConfiguration = (input, context) => {
|
|
7663
8117
|
return {
|
|
7664
|
-
...(input.LoRaWAN
|
|
7665
|
-
input.LoRaWAN !== null && {
|
|
8118
|
+
...(input.LoRaWAN != null && {
|
|
7666
8119
|
LoRaWAN: serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(input.LoRaWAN, context),
|
|
7667
8120
|
}),
|
|
7668
|
-
...(input.WirelessDeviceIdEventTopic
|
|
7669
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
|
|
8121
|
+
...(input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
|
|
7670
8122
|
};
|
|
7671
8123
|
};
|
|
7672
8124
|
const serializeAws_restJson1JoinResourceTypeEventConfiguration = (input, context) => {
|
|
7673
8125
|
return {
|
|
7674
|
-
...(input.LoRaWAN
|
|
7675
|
-
input.LoRaWAN !== null && {
|
|
8126
|
+
...(input.LoRaWAN != null && {
|
|
7676
8127
|
LoRaWAN: serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(input.LoRaWAN, context),
|
|
7677
8128
|
}),
|
|
7678
8129
|
};
|
|
7679
8130
|
};
|
|
7680
8131
|
const serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations = (input, context) => {
|
|
7681
8132
|
return {
|
|
7682
|
-
...(input.GatewayEuiEventTopic
|
|
7683
|
-
input.GatewayEuiEventTopic !== null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }),
|
|
8133
|
+
...(input.GatewayEuiEventTopic != null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }),
|
|
7684
8134
|
};
|
|
7685
8135
|
};
|
|
7686
8136
|
const serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration = (input, context) => {
|
|
7687
8137
|
return {
|
|
7688
|
-
...(input.WirelessGatewayEventTopic
|
|
7689
|
-
input.WirelessGatewayEventTopic !== null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }),
|
|
8138
|
+
...(input.WirelessGatewayEventTopic != null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }),
|
|
7690
8139
|
};
|
|
7691
8140
|
};
|
|
7692
8141
|
const serializeAws_restJson1LoRaWANDevice = (input, context) => {
|
|
7693
8142
|
return {
|
|
7694
|
-
...(input.AbpV1_0_x
|
|
7695
|
-
|
|
7696
|
-
...(input.
|
|
7697
|
-
|
|
7698
|
-
...(input.
|
|
7699
|
-
...(input.
|
|
7700
|
-
|
|
7701
|
-
...(input.
|
|
7702
|
-
input.FPorts !== null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) }),
|
|
7703
|
-
...(input.OtaaV1_0_x !== undefined &&
|
|
7704
|
-
input.OtaaV1_0_x !== null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) }),
|
|
7705
|
-
...(input.OtaaV1_1 !== undefined &&
|
|
7706
|
-
input.OtaaV1_1 !== null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) }),
|
|
7707
|
-
...(input.ServiceProfileId !== undefined &&
|
|
7708
|
-
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }),
|
|
8143
|
+
...(input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) }),
|
|
8144
|
+
...(input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1AbpV1_1(input.AbpV1_1, context) }),
|
|
8145
|
+
...(input.DevEui != null && { DevEui: input.DevEui }),
|
|
8146
|
+
...(input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId }),
|
|
8147
|
+
...(input.FPorts != null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) }),
|
|
8148
|
+
...(input.OtaaV1_0_x != null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) }),
|
|
8149
|
+
...(input.OtaaV1_1 != null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) }),
|
|
8150
|
+
...(input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }),
|
|
7709
8151
|
};
|
|
7710
8152
|
};
|
|
7711
8153
|
const serializeAws_restJson1LoRaWANDeviceProfile = (input, context) => {
|
|
7712
8154
|
return {
|
|
7713
|
-
...(input.ClassBTimeout
|
|
7714
|
-
...(input.ClassCTimeout
|
|
7715
|
-
...(input.FactoryPresetFreqsList
|
|
7716
|
-
input.FactoryPresetFreqsList !== null && {
|
|
8155
|
+
...(input.ClassBTimeout != null && { ClassBTimeout: input.ClassBTimeout }),
|
|
8156
|
+
...(input.ClassCTimeout != null && { ClassCTimeout: input.ClassCTimeout }),
|
|
8157
|
+
...(input.FactoryPresetFreqsList != null && {
|
|
7717
8158
|
FactoryPresetFreqsList: serializeAws_restJson1FactoryPresetFreqsList(input.FactoryPresetFreqsList, context),
|
|
7718
8159
|
}),
|
|
7719
|
-
...(input.MacVersion
|
|
7720
|
-
...(input.MaxDutyCycle
|
|
7721
|
-
...(input.MaxEirp
|
|
7722
|
-
...(input.PingSlotDr
|
|
7723
|
-
...(input.PingSlotFreq
|
|
7724
|
-
...(input.PingSlotPeriod
|
|
7725
|
-
|
|
7726
|
-
...(input.
|
|
7727
|
-
|
|
7728
|
-
...(input.
|
|
7729
|
-
...(input.
|
|
7730
|
-
...(input.
|
|
7731
|
-
...(input.
|
|
7732
|
-
...(input.
|
|
7733
|
-
...(input.
|
|
7734
|
-
|
|
7735
|
-
...(input.SupportsClassB !== undefined &&
|
|
7736
|
-
input.SupportsClassB !== null && { SupportsClassB: input.SupportsClassB }),
|
|
7737
|
-
...(input.SupportsClassC !== undefined &&
|
|
7738
|
-
input.SupportsClassC !== null && { SupportsClassC: input.SupportsClassC }),
|
|
7739
|
-
...(input.SupportsJoin !== undefined && input.SupportsJoin !== null && { SupportsJoin: input.SupportsJoin }),
|
|
8160
|
+
...(input.MacVersion != null && { MacVersion: input.MacVersion }),
|
|
8161
|
+
...(input.MaxDutyCycle != null && { MaxDutyCycle: input.MaxDutyCycle }),
|
|
8162
|
+
...(input.MaxEirp != null && { MaxEirp: input.MaxEirp }),
|
|
8163
|
+
...(input.PingSlotDr != null && { PingSlotDr: input.PingSlotDr }),
|
|
8164
|
+
...(input.PingSlotFreq != null && { PingSlotFreq: input.PingSlotFreq }),
|
|
8165
|
+
...(input.PingSlotPeriod != null && { PingSlotPeriod: input.PingSlotPeriod }),
|
|
8166
|
+
...(input.RegParamsRevision != null && { RegParamsRevision: input.RegParamsRevision }),
|
|
8167
|
+
...(input.RfRegion != null && { RfRegion: input.RfRegion }),
|
|
8168
|
+
...(input.RxDataRate2 != null && { RxDataRate2: input.RxDataRate2 }),
|
|
8169
|
+
...(input.RxDelay1 != null && { RxDelay1: input.RxDelay1 }),
|
|
8170
|
+
...(input.RxDrOffset1 != null && { RxDrOffset1: input.RxDrOffset1 }),
|
|
8171
|
+
...(input.RxFreq2 != null && { RxFreq2: input.RxFreq2 }),
|
|
8172
|
+
...(input.Supports32BitFCnt != null && { Supports32BitFCnt: input.Supports32BitFCnt }),
|
|
8173
|
+
...(input.SupportsClassB != null && { SupportsClassB: input.SupportsClassB }),
|
|
8174
|
+
...(input.SupportsClassC != null && { SupportsClassC: input.SupportsClassC }),
|
|
8175
|
+
...(input.SupportsJoin != null && { SupportsJoin: input.SupportsJoin }),
|
|
7740
8176
|
};
|
|
7741
8177
|
};
|
|
7742
8178
|
const serializeAws_restJson1LoRaWANFuotaTask = (input, context) => {
|
|
7743
8179
|
return {
|
|
7744
|
-
...(input.RfRegion
|
|
8180
|
+
...(input.RfRegion != null && { RfRegion: input.RfRegion }),
|
|
7745
8181
|
};
|
|
7746
8182
|
};
|
|
7747
8183
|
const serializeAws_restJson1LoRaWANGateway = (input, context) => {
|
|
7748
8184
|
return {
|
|
7749
|
-
...(input.GatewayEui
|
|
7750
|
-
...(input.JoinEuiFilters
|
|
7751
|
-
input.JoinEuiFilters !== null && {
|
|
8185
|
+
...(input.GatewayEui != null && { GatewayEui: input.GatewayEui }),
|
|
8186
|
+
...(input.JoinEuiFilters != null && {
|
|
7752
8187
|
JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
|
|
7753
8188
|
}),
|
|
7754
|
-
...(input.NetIdFilters
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
...(input.
|
|
7758
|
-
|
|
8189
|
+
...(input.NetIdFilters != null && {
|
|
8190
|
+
NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
|
|
8191
|
+
}),
|
|
8192
|
+
...(input.RfRegion != null && { RfRegion: input.RfRegion }),
|
|
8193
|
+
...(input.SubBands != null && { SubBands: serializeAws_restJson1SubBands(input.SubBands, context) }),
|
|
7759
8194
|
};
|
|
7760
8195
|
};
|
|
7761
8196
|
const serializeAws_restJson1LoRaWANGatewayVersion = (input, context) => {
|
|
7762
8197
|
return {
|
|
7763
|
-
...(input.Model
|
|
7764
|
-
...(input.PackageVersion
|
|
7765
|
-
|
|
7766
|
-
...(input.Station !== undefined && input.Station !== null && { Station: input.Station }),
|
|
8198
|
+
...(input.Model != null && { Model: input.Model }),
|
|
8199
|
+
...(input.PackageVersion != null && { PackageVersion: input.PackageVersion }),
|
|
8200
|
+
...(input.Station != null && { Station: input.Station }),
|
|
7767
8201
|
};
|
|
7768
8202
|
};
|
|
7769
8203
|
const serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations = (input, context) => {
|
|
7770
8204
|
return {
|
|
7771
|
-
...(input.DevEuiEventTopic
|
|
7772
|
-
input.DevEuiEventTopic !== null && { DevEuiEventTopic: input.DevEuiEventTopic }),
|
|
8205
|
+
...(input.DevEuiEventTopic != null && { DevEuiEventTopic: input.DevEuiEventTopic }),
|
|
7773
8206
|
};
|
|
7774
8207
|
};
|
|
7775
8208
|
const serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration = (input, context) => {
|
|
7776
8209
|
return {
|
|
7777
|
-
...(input.WirelessDeviceEventTopic
|
|
7778
|
-
input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
|
|
8210
|
+
...(input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
|
|
7779
8211
|
};
|
|
7780
8212
|
};
|
|
7781
8213
|
const serializeAws_restJson1LoRaWANMulticast = (input, context) => {
|
|
7782
8214
|
return {
|
|
7783
|
-
...(input.DlClass
|
|
7784
|
-
...(input.RfRegion
|
|
8215
|
+
...(input.DlClass != null && { DlClass: input.DlClass }),
|
|
8216
|
+
...(input.RfRegion != null && { RfRegion: input.RfRegion }),
|
|
7785
8217
|
};
|
|
7786
8218
|
};
|
|
7787
8219
|
const serializeAws_restJson1LoRaWANMulticastMetadata = (input, context) => {
|
|
7788
8220
|
return {
|
|
7789
|
-
...(input.FPort
|
|
8221
|
+
...(input.FPort != null && { FPort: input.FPort }),
|
|
7790
8222
|
};
|
|
7791
8223
|
};
|
|
7792
8224
|
const serializeAws_restJson1LoRaWANMulticastSession = (input, context) => {
|
|
7793
8225
|
return {
|
|
7794
|
-
...(input.DlDr
|
|
7795
|
-
...(input.DlFreq
|
|
7796
|
-
...(input.SessionStartTime
|
|
7797
|
-
input.SessionStartTime !== null && {
|
|
8226
|
+
...(input.DlDr != null && { DlDr: input.DlDr }),
|
|
8227
|
+
...(input.DlFreq != null && { DlFreq: input.DlFreq }),
|
|
8228
|
+
...(input.SessionStartTime != null && {
|
|
7798
8229
|
SessionStartTime: input.SessionStartTime.toISOString().split(".")[0] + "Z",
|
|
7799
8230
|
}),
|
|
7800
|
-
...(input.SessionTimeout
|
|
7801
|
-
input.SessionTimeout !== null && { SessionTimeout: input.SessionTimeout }),
|
|
8231
|
+
...(input.SessionTimeout != null && { SessionTimeout: input.SessionTimeout }),
|
|
7802
8232
|
};
|
|
7803
8233
|
};
|
|
7804
8234
|
const serializeAws_restJson1LoRaWANSendDataToDevice = (input, context) => {
|
|
7805
8235
|
return {
|
|
7806
|
-
...(input.FPort
|
|
8236
|
+
...(input.FPort != null && { FPort: input.FPort }),
|
|
7807
8237
|
};
|
|
7808
8238
|
};
|
|
7809
8239
|
const serializeAws_restJson1LoRaWANServiceProfile = (input, context) => {
|
|
7810
8240
|
return {
|
|
7811
|
-
...(input.AddGwMetadata
|
|
8241
|
+
...(input.AddGwMetadata != null && { AddGwMetadata: input.AddGwMetadata }),
|
|
7812
8242
|
};
|
|
7813
8243
|
};
|
|
7814
8244
|
const serializeAws_restJson1LoRaWANStartFuotaTask = (input, context) => {
|
|
7815
8245
|
return {
|
|
7816
|
-
...(input.StartTime
|
|
7817
|
-
input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }),
|
|
8246
|
+
...(input.StartTime != null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }),
|
|
7818
8247
|
};
|
|
7819
8248
|
};
|
|
7820
8249
|
const serializeAws_restJson1LoRaWANUpdateDevice = (input, context) => {
|
|
7821
8250
|
return {
|
|
7822
|
-
...(input.AbpV1_0_x
|
|
7823
|
-
|
|
7824
|
-
...(input.
|
|
7825
|
-
|
|
7826
|
-
...(input.
|
|
7827
|
-
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId }),
|
|
7828
|
-
...(input.ServiceProfileId !== undefined &&
|
|
7829
|
-
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }),
|
|
8251
|
+
...(input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) }),
|
|
8252
|
+
...(input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) }),
|
|
8253
|
+
...(input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId }),
|
|
8254
|
+
...(input.FPorts != null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) }),
|
|
8255
|
+
...(input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }),
|
|
7830
8256
|
};
|
|
7831
8257
|
};
|
|
7832
8258
|
const serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = (input, context) => {
|
|
7833
8259
|
return {
|
|
7834
|
-
...(input.CurrentVersion
|
|
7835
|
-
input.CurrentVersion !== null && {
|
|
8260
|
+
...(input.CurrentVersion != null && {
|
|
7836
8261
|
CurrentVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.CurrentVersion, context),
|
|
7837
8262
|
}),
|
|
7838
|
-
...(input.SigKeyCrc
|
|
7839
|
-
...(input.UpdateSignature
|
|
7840
|
-
|
|
7841
|
-
...(input.UpdateVersion !== undefined &&
|
|
7842
|
-
input.UpdateVersion !== null && {
|
|
8263
|
+
...(input.SigKeyCrc != null && { SigKeyCrc: input.SigKeyCrc }),
|
|
8264
|
+
...(input.UpdateSignature != null && { UpdateSignature: input.UpdateSignature }),
|
|
8265
|
+
...(input.UpdateVersion != null && {
|
|
7843
8266
|
UpdateVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.UpdateVersion, context),
|
|
7844
8267
|
}),
|
|
7845
8268
|
};
|
|
7846
8269
|
};
|
|
7847
8270
|
const serializeAws_restJson1MulticastWirelessMetadata = (input, context) => {
|
|
7848
8271
|
return {
|
|
7849
|
-
...(input.LoRaWAN
|
|
7850
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }),
|
|
8272
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }),
|
|
7851
8273
|
};
|
|
7852
8274
|
};
|
|
7853
8275
|
const serializeAws_restJson1NetIdFilters = (input, context) => {
|
|
@@ -7862,79 +8284,102 @@ const serializeAws_restJson1NetIdFilters = (input, context) => {
|
|
|
7862
8284
|
};
|
|
7863
8285
|
const serializeAws_restJson1OtaaV1_0_x = (input, context) => {
|
|
7864
8286
|
return {
|
|
7865
|
-
...(input.AppEui
|
|
7866
|
-
...(input.AppKey
|
|
7867
|
-
...(input.GenAppKey
|
|
8287
|
+
...(input.AppEui != null && { AppEui: input.AppEui }),
|
|
8288
|
+
...(input.AppKey != null && { AppKey: input.AppKey }),
|
|
8289
|
+
...(input.GenAppKey != null && { GenAppKey: input.GenAppKey }),
|
|
7868
8290
|
};
|
|
7869
8291
|
};
|
|
7870
8292
|
const serializeAws_restJson1OtaaV1_1 = (input, context) => {
|
|
7871
8293
|
return {
|
|
7872
|
-
...(input.AppKey
|
|
7873
|
-
...(input.JoinEui
|
|
7874
|
-
...(input.NwkKey
|
|
8294
|
+
...(input.AppKey != null && { AppKey: input.AppKey }),
|
|
8295
|
+
...(input.JoinEui != null && { JoinEui: input.JoinEui }),
|
|
8296
|
+
...(input.NwkKey != null && { NwkKey: input.NwkKey }),
|
|
8297
|
+
};
|
|
8298
|
+
};
|
|
8299
|
+
const serializeAws_restJson1PositionCoordinate = (input, context) => {
|
|
8300
|
+
return input
|
|
8301
|
+
.filter((e) => e != null)
|
|
8302
|
+
.map((entry) => {
|
|
8303
|
+
if (entry === null) {
|
|
8304
|
+
return null;
|
|
8305
|
+
}
|
|
8306
|
+
return (0, smithy_client_1.serializeFloat)(entry);
|
|
8307
|
+
});
|
|
8308
|
+
};
|
|
8309
|
+
const serializeAws_restJson1Positioning = (input, context) => {
|
|
8310
|
+
return {
|
|
8311
|
+
...(input.ClockSync != null && { ClockSync: input.ClockSync }),
|
|
8312
|
+
...(input.Gnss != null && { Gnss: input.Gnss }),
|
|
8313
|
+
...(input.Stream != null && { Stream: input.Stream }),
|
|
8314
|
+
};
|
|
8315
|
+
};
|
|
8316
|
+
const serializeAws_restJson1PositionSolverConfigurations = (input, context) => {
|
|
8317
|
+
return {
|
|
8318
|
+
...(input.SemtechGnss != null && {
|
|
8319
|
+
SemtechGnss: serializeAws_restJson1SemtechGnssConfiguration(input.SemtechGnss, context),
|
|
8320
|
+
}),
|
|
7875
8321
|
};
|
|
7876
8322
|
};
|
|
7877
8323
|
const serializeAws_restJson1ProximityEventConfiguration = (input, context) => {
|
|
7878
8324
|
return {
|
|
7879
|
-
...(input.Sidewalk
|
|
7880
|
-
input.Sidewalk !== null && {
|
|
8325
|
+
...(input.Sidewalk != null && {
|
|
7881
8326
|
Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
|
|
7882
8327
|
}),
|
|
7883
|
-
...(input.WirelessDeviceIdEventTopic
|
|
7884
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
|
|
8328
|
+
...(input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }),
|
|
7885
8329
|
};
|
|
7886
8330
|
};
|
|
7887
8331
|
const serializeAws_restJson1ProximityResourceTypeEventConfiguration = (input, context) => {
|
|
7888
8332
|
return {
|
|
7889
|
-
...(input.Sidewalk
|
|
7890
|
-
input.Sidewalk !== null && {
|
|
8333
|
+
...(input.Sidewalk != null && {
|
|
7891
8334
|
Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
|
|
7892
8335
|
}),
|
|
7893
8336
|
};
|
|
7894
8337
|
};
|
|
8338
|
+
const serializeAws_restJson1SemtechGnssConfiguration = (input, context) => {
|
|
8339
|
+
return {
|
|
8340
|
+
...(input.Fec != null && { Fec: input.Fec }),
|
|
8341
|
+
...(input.Status != null && { Status: input.Status }),
|
|
8342
|
+
};
|
|
8343
|
+
};
|
|
7895
8344
|
const serializeAws_restJson1SessionKeysAbpV1_0_x = (input, context) => {
|
|
7896
8345
|
return {
|
|
7897
|
-
...(input.AppSKey
|
|
7898
|
-
...(input.NwkSKey
|
|
8346
|
+
...(input.AppSKey != null && { AppSKey: input.AppSKey }),
|
|
8347
|
+
...(input.NwkSKey != null && { NwkSKey: input.NwkSKey }),
|
|
7899
8348
|
};
|
|
7900
8349
|
};
|
|
7901
8350
|
const serializeAws_restJson1SessionKeysAbpV1_1 = (input, context) => {
|
|
7902
8351
|
return {
|
|
7903
|
-
...(input.AppSKey
|
|
7904
|
-
...(input.FNwkSIntKey
|
|
7905
|
-
...(input.NwkSEncKey
|
|
7906
|
-
...(input.SNwkSIntKey
|
|
8352
|
+
...(input.AppSKey != null && { AppSKey: input.AppSKey }),
|
|
8353
|
+
...(input.FNwkSIntKey != null && { FNwkSIntKey: input.FNwkSIntKey }),
|
|
8354
|
+
...(input.NwkSEncKey != null && { NwkSEncKey: input.NwkSEncKey }),
|
|
8355
|
+
...(input.SNwkSIntKey != null && { SNwkSIntKey: input.SNwkSIntKey }),
|
|
7907
8356
|
};
|
|
7908
8357
|
};
|
|
7909
8358
|
const serializeAws_restJson1SidewalkAccountInfo = (input, context) => {
|
|
7910
8359
|
return {
|
|
7911
|
-
...(input.AmazonId
|
|
7912
|
-
...(input.AppServerPrivateKey
|
|
7913
|
-
input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }),
|
|
8360
|
+
...(input.AmazonId != null && { AmazonId: input.AmazonId }),
|
|
8361
|
+
...(input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }),
|
|
7914
8362
|
};
|
|
7915
8363
|
};
|
|
7916
8364
|
const serializeAws_restJson1SidewalkEventNotificationConfigurations = (input, context) => {
|
|
7917
8365
|
return {
|
|
7918
|
-
...(input.AmazonIdEventTopic
|
|
7919
|
-
input.AmazonIdEventTopic !== null && { AmazonIdEventTopic: input.AmazonIdEventTopic }),
|
|
8366
|
+
...(input.AmazonIdEventTopic != null && { AmazonIdEventTopic: input.AmazonIdEventTopic }),
|
|
7920
8367
|
};
|
|
7921
8368
|
};
|
|
7922
8369
|
const serializeAws_restJson1SidewalkResourceTypeEventConfiguration = (input, context) => {
|
|
7923
8370
|
return {
|
|
7924
|
-
...(input.WirelessDeviceEventTopic
|
|
7925
|
-
input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
|
|
8371
|
+
...(input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }),
|
|
7926
8372
|
};
|
|
7927
8373
|
};
|
|
7928
8374
|
const serializeAws_restJson1SidewalkSendDataToDevice = (input, context) => {
|
|
7929
8375
|
return {
|
|
7930
|
-
...(input.MessageType
|
|
7931
|
-
...(input.Seq
|
|
8376
|
+
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
8377
|
+
...(input.Seq != null && { Seq: input.Seq }),
|
|
7932
8378
|
};
|
|
7933
8379
|
};
|
|
7934
8380
|
const serializeAws_restJson1SidewalkUpdateAccount = (input, context) => {
|
|
7935
8381
|
return {
|
|
7936
|
-
...(input.AppServerPrivateKey
|
|
7937
|
-
input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }),
|
|
8382
|
+
...(input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }),
|
|
7938
8383
|
};
|
|
7939
8384
|
};
|
|
7940
8385
|
const serializeAws_restJson1SubBands = (input, context) => {
|
|
@@ -7949,8 +8394,8 @@ const serializeAws_restJson1SubBands = (input, context) => {
|
|
|
7949
8394
|
};
|
|
7950
8395
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
7951
8396
|
return {
|
|
7952
|
-
...(input.Key
|
|
7953
|
-
...(input.Value
|
|
8397
|
+
...(input.Key != null && { Key: input.Key }),
|
|
8398
|
+
...(input.Value != null && { Value: input.Value }),
|
|
7954
8399
|
};
|
|
7955
8400
|
};
|
|
7956
8401
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -7965,37 +8410,38 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
7965
8410
|
};
|
|
7966
8411
|
const serializeAws_restJson1TraceContent = (input, context) => {
|
|
7967
8412
|
return {
|
|
7968
|
-
...(input.LogLevel
|
|
7969
|
-
...(input.WirelessDeviceFrameInfo
|
|
7970
|
-
input.WirelessDeviceFrameInfo !== null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }),
|
|
8413
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
8414
|
+
...(input.WirelessDeviceFrameInfo != null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }),
|
|
7971
8415
|
};
|
|
7972
8416
|
};
|
|
7973
8417
|
const serializeAws_restJson1UpdateAbpV1_0_x = (input, context) => {
|
|
7974
8418
|
return {
|
|
7975
|
-
...(input.FCntStart
|
|
8419
|
+
...(input.FCntStart != null && { FCntStart: input.FCntStart }),
|
|
7976
8420
|
};
|
|
7977
8421
|
};
|
|
7978
8422
|
const serializeAws_restJson1UpdateAbpV1_1 = (input, context) => {
|
|
7979
8423
|
return {
|
|
7980
|
-
...(input.FCntStart
|
|
8424
|
+
...(input.FCntStart != null && { FCntStart: input.FCntStart }),
|
|
8425
|
+
};
|
|
8426
|
+
};
|
|
8427
|
+
const serializeAws_restJson1UpdateFPorts = (input, context) => {
|
|
8428
|
+
return {
|
|
8429
|
+
...(input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
|
|
7981
8430
|
};
|
|
7982
8431
|
};
|
|
7983
8432
|
const serializeAws_restJson1UpdateWirelessGatewayTaskCreate = (input, context) => {
|
|
7984
8433
|
return {
|
|
7985
|
-
...(input.LoRaWAN
|
|
7986
|
-
input.LoRaWAN !== null && {
|
|
8434
|
+
...(input.LoRaWAN != null && {
|
|
7987
8435
|
LoRaWAN: serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(input.LoRaWAN, context),
|
|
7988
8436
|
}),
|
|
7989
|
-
...(input.UpdateDataRole
|
|
7990
|
-
|
|
7991
|
-
...(input.UpdateDataSource !== undefined &&
|
|
7992
|
-
input.UpdateDataSource !== null && { UpdateDataSource: input.UpdateDataSource }),
|
|
8437
|
+
...(input.UpdateDataRole != null && { UpdateDataRole: input.UpdateDataRole }),
|
|
8438
|
+
...(input.UpdateDataSource != null && { UpdateDataSource: input.UpdateDataSource }),
|
|
7993
8439
|
};
|
|
7994
8440
|
};
|
|
7995
8441
|
const serializeAws_restJson1WirelessDeviceEventLogOption = (input, context) => {
|
|
7996
8442
|
return {
|
|
7997
|
-
...(input.Event
|
|
7998
|
-
...(input.LogLevel
|
|
8443
|
+
...(input.Event != null && { Event: input.Event }),
|
|
8444
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
7999
8445
|
};
|
|
8000
8446
|
};
|
|
8001
8447
|
const serializeAws_restJson1WirelessDeviceEventLogOptionList = (input, context) => {
|
|
@@ -8020,12 +8466,11 @@ const serializeAws_restJson1WirelessDeviceList = (input, context) => {
|
|
|
8020
8466
|
};
|
|
8021
8467
|
const serializeAws_restJson1WirelessDeviceLogOption = (input, context) => {
|
|
8022
8468
|
return {
|
|
8023
|
-
...(input.Events
|
|
8024
|
-
input.Events !== null && {
|
|
8469
|
+
...(input.Events != null && {
|
|
8025
8470
|
Events: serializeAws_restJson1WirelessDeviceEventLogOptionList(input.Events, context),
|
|
8026
8471
|
}),
|
|
8027
|
-
...(input.LogLevel
|
|
8028
|
-
...(input.Type
|
|
8472
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
8473
|
+
...(input.Type != null && { Type: input.Type }),
|
|
8029
8474
|
};
|
|
8030
8475
|
};
|
|
8031
8476
|
const serializeAws_restJson1WirelessDeviceLogOptionList = (input, context) => {
|
|
@@ -8040,8 +8485,8 @@ const serializeAws_restJson1WirelessDeviceLogOptionList = (input, context) => {
|
|
|
8040
8485
|
};
|
|
8041
8486
|
const serializeAws_restJson1WirelessGatewayEventLogOption = (input, context) => {
|
|
8042
8487
|
return {
|
|
8043
|
-
...(input.Event
|
|
8044
|
-
...(input.LogLevel
|
|
8488
|
+
...(input.Event != null && { Event: input.Event }),
|
|
8489
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
8045
8490
|
};
|
|
8046
8491
|
};
|
|
8047
8492
|
const serializeAws_restJson1WirelessGatewayEventLogOptionList = (input, context) => {
|
|
@@ -8066,12 +8511,11 @@ const serializeAws_restJson1WirelessGatewayList = (input, context) => {
|
|
|
8066
8511
|
};
|
|
8067
8512
|
const serializeAws_restJson1WirelessGatewayLogOption = (input, context) => {
|
|
8068
8513
|
return {
|
|
8069
|
-
...(input.Events
|
|
8070
|
-
input.Events !== null && {
|
|
8514
|
+
...(input.Events != null && {
|
|
8071
8515
|
Events: serializeAws_restJson1WirelessGatewayEventLogOptionList(input.Events, context),
|
|
8072
8516
|
}),
|
|
8073
|
-
...(input.LogLevel
|
|
8074
|
-
...(input.Type
|
|
8517
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
8518
|
+
...(input.Type != null && { Type: input.Type }),
|
|
8075
8519
|
};
|
|
8076
8520
|
};
|
|
8077
8521
|
const serializeAws_restJson1WirelessGatewayLogOptionList = (input, context) => {
|
|
@@ -8086,17 +8530,17 @@ const serializeAws_restJson1WirelessGatewayLogOptionList = (input, context) => {
|
|
|
8086
8530
|
};
|
|
8087
8531
|
const serializeAws_restJson1WirelessMetadata = (input, context) => {
|
|
8088
8532
|
return {
|
|
8089
|
-
...(input.LoRaWAN
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8533
|
+
...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANSendDataToDevice(input.LoRaWAN, context) }),
|
|
8534
|
+
...(input.Sidewalk != null && {
|
|
8535
|
+
Sidewalk: serializeAws_restJson1SidewalkSendDataToDevice(input.Sidewalk, context),
|
|
8536
|
+
}),
|
|
8093
8537
|
};
|
|
8094
8538
|
};
|
|
8095
8539
|
const deserializeAws_restJson1AbpV1_0_x = (output, context) => {
|
|
8096
8540
|
return {
|
|
8097
8541
|
DevAddr: (0, smithy_client_1.expectString)(output.DevAddr),
|
|
8098
8542
|
FCntStart: (0, smithy_client_1.expectInt32)(output.FCntStart),
|
|
8099
|
-
SessionKeys: output.SessionKeys
|
|
8543
|
+
SessionKeys: output.SessionKeys != null
|
|
8100
8544
|
? deserializeAws_restJson1SessionKeysAbpV1_0_x(output.SessionKeys, context)
|
|
8101
8545
|
: undefined,
|
|
8102
8546
|
};
|
|
@@ -8105,9 +8549,13 @@ const deserializeAws_restJson1AbpV1_1 = (output, context) => {
|
|
|
8105
8549
|
return {
|
|
8106
8550
|
DevAddr: (0, smithy_client_1.expectString)(output.DevAddr),
|
|
8107
8551
|
FCntStart: (0, smithy_client_1.expectInt32)(output.FCntStart),
|
|
8108
|
-
SessionKeys: output.SessionKeys
|
|
8109
|
-
|
|
8110
|
-
|
|
8552
|
+
SessionKeys: output.SessionKeys != null ? deserializeAws_restJson1SessionKeysAbpV1_1(output.SessionKeys, context) : undefined,
|
|
8553
|
+
};
|
|
8554
|
+
};
|
|
8555
|
+
const deserializeAws_restJson1Accuracy = (output, context) => {
|
|
8556
|
+
return {
|
|
8557
|
+
HorizontalAccuracy: (0, smithy_client_1.limitedParseFloat32)(output.HorizontalAccuracy),
|
|
8558
|
+
VerticalAccuracy: (0, smithy_client_1.limitedParseFloat32)(output.VerticalAccuracy),
|
|
8111
8559
|
};
|
|
8112
8560
|
};
|
|
8113
8561
|
const deserializeAws_restJson1CertificateList = (output, context) => {
|
|
@@ -8118,7 +8566,7 @@ const deserializeAws_restJson1CertificateList = (output, context) => {
|
|
|
8118
8566
|
};
|
|
8119
8567
|
const deserializeAws_restJson1ConnectionStatusEventConfiguration = (output, context) => {
|
|
8120
8568
|
return {
|
|
8121
|
-
LoRaWAN: output.LoRaWAN
|
|
8569
|
+
LoRaWAN: output.LoRaWAN != null
|
|
8122
8570
|
? deserializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(output.LoRaWAN, context)
|
|
8123
8571
|
: undefined,
|
|
8124
8572
|
WirelessGatewayIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessGatewayIdEventTopic),
|
|
@@ -8126,7 +8574,7 @@ const deserializeAws_restJson1ConnectionStatusEventConfiguration = (output, cont
|
|
|
8126
8574
|
};
|
|
8127
8575
|
const deserializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = (output, context) => {
|
|
8128
8576
|
return {
|
|
8129
|
-
LoRaWAN: output.LoRaWAN
|
|
8577
|
+
LoRaWAN: output.LoRaWAN != null
|
|
8130
8578
|
? deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(output.LoRaWAN, context)
|
|
8131
8579
|
: undefined,
|
|
8132
8580
|
};
|
|
@@ -8183,7 +8631,7 @@ const deserializeAws_restJson1DeviceProfileList = (output, context) => {
|
|
|
8183
8631
|
};
|
|
8184
8632
|
const deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = (output, context) => {
|
|
8185
8633
|
return {
|
|
8186
|
-
Sidewalk: output.Sidewalk
|
|
8634
|
+
Sidewalk: output.Sidewalk != null
|
|
8187
8635
|
? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
|
|
8188
8636
|
: undefined,
|
|
8189
8637
|
WirelessDeviceIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessDeviceIdEventTopic),
|
|
@@ -8191,16 +8639,14 @@ const deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = (outpu
|
|
|
8191
8639
|
};
|
|
8192
8640
|
const deserializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = (output, context) => {
|
|
8193
8641
|
return {
|
|
8194
|
-
Sidewalk: output.Sidewalk
|
|
8642
|
+
Sidewalk: output.Sidewalk != null
|
|
8195
8643
|
? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
|
|
8196
8644
|
: undefined,
|
|
8197
8645
|
};
|
|
8198
8646
|
};
|
|
8199
8647
|
const deserializeAws_restJson1DownlinkQueueMessage = (output, context) => {
|
|
8200
8648
|
return {
|
|
8201
|
-
LoRaWAN: output.LoRaWAN
|
|
8202
|
-
? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context)
|
|
8203
|
-
: undefined,
|
|
8649
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context) : undefined,
|
|
8204
8650
|
MessageId: (0, smithy_client_1.expectString)(output.MessageId),
|
|
8205
8651
|
ReceivedAt: (0, smithy_client_1.expectString)(output.ReceivedAt),
|
|
8206
8652
|
TransmitMode: (0, smithy_client_1.expectInt32)(output.TransmitMode),
|
|
@@ -8219,7 +8665,7 @@ const deserializeAws_restJson1DownlinkQueueMessagesList = (output, context) => {
|
|
|
8219
8665
|
};
|
|
8220
8666
|
const deserializeAws_restJson1EventConfigurationItem = (output, context) => {
|
|
8221
8667
|
return {
|
|
8222
|
-
Events: output.Events
|
|
8668
|
+
Events: output.Events != null
|
|
8223
8669
|
? deserializeAws_restJson1EventNotificationItemConfigurations(output.Events, context)
|
|
8224
8670
|
: undefined,
|
|
8225
8671
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
@@ -8240,16 +8686,14 @@ const deserializeAws_restJson1EventConfigurationsList = (output, context) => {
|
|
|
8240
8686
|
};
|
|
8241
8687
|
const deserializeAws_restJson1EventNotificationItemConfigurations = (output, context) => {
|
|
8242
8688
|
return {
|
|
8243
|
-
ConnectionStatus: output.ConnectionStatus
|
|
8689
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
8244
8690
|
? deserializeAws_restJson1ConnectionStatusEventConfiguration(output.ConnectionStatus, context)
|
|
8245
8691
|
: undefined,
|
|
8246
|
-
DeviceRegistrationState: output.DeviceRegistrationState
|
|
8692
|
+
DeviceRegistrationState: output.DeviceRegistrationState != null
|
|
8247
8693
|
? deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(output.DeviceRegistrationState, context)
|
|
8248
8694
|
: undefined,
|
|
8249
|
-
Join: output.Join
|
|
8250
|
-
|
|
8251
|
-
: undefined,
|
|
8252
|
-
Proximity: output.Proximity !== undefined && output.Proximity !== null
|
|
8695
|
+
Join: output.Join != null ? deserializeAws_restJson1JoinEventConfiguration(output.Join, context) : undefined,
|
|
8696
|
+
Proximity: output.Proximity != null
|
|
8253
8697
|
? deserializeAws_restJson1ProximityEventConfiguration(output.Proximity, context)
|
|
8254
8698
|
: undefined,
|
|
8255
8699
|
};
|
|
@@ -8270,6 +8714,7 @@ const deserializeAws_restJson1FPorts = (output, context) => {
|
|
|
8270
8714
|
ClockSync: (0, smithy_client_1.expectInt32)(output.ClockSync),
|
|
8271
8715
|
Fuota: (0, smithy_client_1.expectInt32)(output.Fuota),
|
|
8272
8716
|
Multicast: (0, smithy_client_1.expectInt32)(output.Multicast),
|
|
8717
|
+
Positioning: output.Positioning != null ? deserializeAws_restJson1Positioning(output.Positioning, context) : undefined,
|
|
8273
8718
|
};
|
|
8274
8719
|
};
|
|
8275
8720
|
const deserializeAws_restJson1FuotaTask = (output, context) => {
|
|
@@ -8314,7 +8759,7 @@ const deserializeAws_restJson1JoinEuiRange = (output, context) => {
|
|
|
8314
8759
|
};
|
|
8315
8760
|
const deserializeAws_restJson1JoinEventConfiguration = (output, context) => {
|
|
8316
8761
|
return {
|
|
8317
|
-
LoRaWAN: output.LoRaWAN
|
|
8762
|
+
LoRaWAN: output.LoRaWAN != null
|
|
8318
8763
|
? deserializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(output.LoRaWAN, context)
|
|
8319
8764
|
: undefined,
|
|
8320
8765
|
WirelessDeviceIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessDeviceIdEventTopic),
|
|
@@ -8322,7 +8767,7 @@ const deserializeAws_restJson1JoinEventConfiguration = (output, context) => {
|
|
|
8322
8767
|
};
|
|
8323
8768
|
const deserializeAws_restJson1JoinResourceTypeEventConfiguration = (output, context) => {
|
|
8324
8769
|
return {
|
|
8325
|
-
LoRaWAN: output.LoRaWAN
|
|
8770
|
+
LoRaWAN: output.LoRaWAN != null
|
|
8326
8771
|
? deserializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(output.LoRaWAN, context)
|
|
8327
8772
|
: undefined,
|
|
8328
8773
|
};
|
|
@@ -8339,23 +8784,13 @@ const deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfigurat
|
|
|
8339
8784
|
};
|
|
8340
8785
|
const deserializeAws_restJson1LoRaWANDevice = (output, context) => {
|
|
8341
8786
|
return {
|
|
8342
|
-
AbpV1_0_x: output.AbpV1_0_x
|
|
8343
|
-
|
|
8344
|
-
: undefined,
|
|
8345
|
-
AbpV1_1: output.AbpV1_1 !== undefined && output.AbpV1_1 !== null
|
|
8346
|
-
? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context)
|
|
8347
|
-
: undefined,
|
|
8787
|
+
AbpV1_0_x: output.AbpV1_0_x != null ? deserializeAws_restJson1AbpV1_0_x(output.AbpV1_0_x, context) : undefined,
|
|
8788
|
+
AbpV1_1: output.AbpV1_1 != null ? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context) : undefined,
|
|
8348
8789
|
DevEui: (0, smithy_client_1.expectString)(output.DevEui),
|
|
8349
8790
|
DeviceProfileId: (0, smithy_client_1.expectString)(output.DeviceProfileId),
|
|
8350
|
-
FPorts: output.FPorts
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
OtaaV1_0_x: output.OtaaV1_0_x !== undefined && output.OtaaV1_0_x !== null
|
|
8354
|
-
? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context)
|
|
8355
|
-
: undefined,
|
|
8356
|
-
OtaaV1_1: output.OtaaV1_1 !== undefined && output.OtaaV1_1 !== null
|
|
8357
|
-
? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context)
|
|
8358
|
-
: undefined,
|
|
8791
|
+
FPorts: output.FPorts != null ? deserializeAws_restJson1FPorts(output.FPorts, context) : undefined,
|
|
8792
|
+
OtaaV1_0_x: output.OtaaV1_0_x != null ? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context) : undefined,
|
|
8793
|
+
OtaaV1_1: output.OtaaV1_1 != null ? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context) : undefined,
|
|
8359
8794
|
ServiceProfileId: (0, smithy_client_1.expectString)(output.ServiceProfileId),
|
|
8360
8795
|
};
|
|
8361
8796
|
};
|
|
@@ -8365,7 +8800,7 @@ const deserializeAws_restJson1LoRaWANDeviceMetadata = (output, context) => {
|
|
|
8365
8800
|
DevEui: (0, smithy_client_1.expectString)(output.DevEui),
|
|
8366
8801
|
FPort: (0, smithy_client_1.expectInt32)(output.FPort),
|
|
8367
8802
|
Frequency: (0, smithy_client_1.expectInt32)(output.Frequency),
|
|
8368
|
-
Gateways: output.Gateways
|
|
8803
|
+
Gateways: output.Gateways != null
|
|
8369
8804
|
? deserializeAws_restJson1LoRaWANGatewayMetadataList(output.Gateways, context)
|
|
8370
8805
|
: undefined,
|
|
8371
8806
|
Timestamp: (0, smithy_client_1.expectString)(output.Timestamp),
|
|
@@ -8375,7 +8810,7 @@ const deserializeAws_restJson1LoRaWANDeviceProfile = (output, context) => {
|
|
|
8375
8810
|
return {
|
|
8376
8811
|
ClassBTimeout: (0, smithy_client_1.expectInt32)(output.ClassBTimeout),
|
|
8377
8812
|
ClassCTimeout: (0, smithy_client_1.expectInt32)(output.ClassCTimeout),
|
|
8378
|
-
FactoryPresetFreqsList: output.FactoryPresetFreqsList
|
|
8813
|
+
FactoryPresetFreqsList: output.FactoryPresetFreqsList != null
|
|
8379
8814
|
? deserializeAws_restJson1FactoryPresetFreqsList(output.FactoryPresetFreqsList, context)
|
|
8380
8815
|
: undefined,
|
|
8381
8816
|
MacVersion: (0, smithy_client_1.expectString)(output.MacVersion),
|
|
@@ -8399,29 +8834,23 @@ const deserializeAws_restJson1LoRaWANDeviceProfile = (output, context) => {
|
|
|
8399
8834
|
const deserializeAws_restJson1LoRaWANFuotaTaskGetInfo = (output, context) => {
|
|
8400
8835
|
return {
|
|
8401
8836
|
RfRegion: (0, smithy_client_1.expectString)(output.RfRegion),
|
|
8402
|
-
StartTime: output.StartTime
|
|
8403
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime))
|
|
8404
|
-
: undefined,
|
|
8837
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime)) : undefined,
|
|
8405
8838
|
};
|
|
8406
8839
|
};
|
|
8407
8840
|
const deserializeAws_restJson1LoRaWANGateway = (output, context) => {
|
|
8408
8841
|
return {
|
|
8409
8842
|
GatewayEui: (0, smithy_client_1.expectString)(output.GatewayEui),
|
|
8410
|
-
JoinEuiFilters: output.JoinEuiFilters
|
|
8843
|
+
JoinEuiFilters: output.JoinEuiFilters != null
|
|
8411
8844
|
? deserializeAws_restJson1JoinEuiFilters(output.JoinEuiFilters, context)
|
|
8412
8845
|
: undefined,
|
|
8413
|
-
NetIdFilters: output.NetIdFilters
|
|
8414
|
-
? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context)
|
|
8415
|
-
: undefined,
|
|
8846
|
+
NetIdFilters: output.NetIdFilters != null ? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context) : undefined,
|
|
8416
8847
|
RfRegion: (0, smithy_client_1.expectString)(output.RfRegion),
|
|
8417
|
-
SubBands: output.SubBands
|
|
8418
|
-
? deserializeAws_restJson1SubBands(output.SubBands, context)
|
|
8419
|
-
: undefined,
|
|
8848
|
+
SubBands: output.SubBands != null ? deserializeAws_restJson1SubBands(output.SubBands, context) : undefined,
|
|
8420
8849
|
};
|
|
8421
8850
|
};
|
|
8422
8851
|
const deserializeAws_restJson1LoRaWANGatewayCurrentVersion = (output, context) => {
|
|
8423
8852
|
return {
|
|
8424
|
-
CurrentVersion: output.CurrentVersion
|
|
8853
|
+
CurrentVersion: output.CurrentVersion != null
|
|
8425
8854
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
8426
8855
|
: undefined,
|
|
8427
8856
|
};
|
|
@@ -8501,9 +8930,7 @@ const deserializeAws_restJson1LoRaWANMulticastSession = (output, context) => {
|
|
|
8501
8930
|
return {
|
|
8502
8931
|
DlDr: (0, smithy_client_1.expectInt32)(output.DlDr),
|
|
8503
8932
|
DlFreq: (0, smithy_client_1.expectInt32)(output.DlFreq),
|
|
8504
|
-
SessionStartTime: output.SessionStartTime
|
|
8505
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SessionStartTime))
|
|
8506
|
-
: undefined,
|
|
8933
|
+
SessionStartTime: output.SessionStartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SessionStartTime)) : undefined,
|
|
8507
8934
|
SessionTimeout: (0, smithy_client_1.expectInt32)(output.SessionTimeout),
|
|
8508
8935
|
};
|
|
8509
8936
|
};
|
|
@@ -8514,22 +8941,22 @@ const deserializeAws_restJson1LoRaWANSendDataToDevice = (output, context) => {
|
|
|
8514
8941
|
};
|
|
8515
8942
|
const deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = (output, context) => {
|
|
8516
8943
|
return {
|
|
8517
|
-
CurrentVersion: output.CurrentVersion
|
|
8944
|
+
CurrentVersion: output.CurrentVersion != null
|
|
8518
8945
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
8519
8946
|
: undefined,
|
|
8520
8947
|
SigKeyCrc: (0, smithy_client_1.expectLong)(output.SigKeyCrc),
|
|
8521
8948
|
UpdateSignature: (0, smithy_client_1.expectString)(output.UpdateSignature),
|
|
8522
|
-
UpdateVersion: output.UpdateVersion
|
|
8949
|
+
UpdateVersion: output.UpdateVersion != null
|
|
8523
8950
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
|
|
8524
8951
|
: undefined,
|
|
8525
8952
|
};
|
|
8526
8953
|
};
|
|
8527
8954
|
const deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry = (output, context) => {
|
|
8528
8955
|
return {
|
|
8529
|
-
CurrentVersion: output.CurrentVersion
|
|
8956
|
+
CurrentVersion: output.CurrentVersion != null
|
|
8530
8957
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
8531
8958
|
: undefined,
|
|
8532
|
-
UpdateVersion: output.UpdateVersion
|
|
8959
|
+
UpdateVersion: output.UpdateVersion != null
|
|
8533
8960
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
|
|
8534
8961
|
: undefined,
|
|
8535
8962
|
};
|
|
@@ -8610,9 +9037,51 @@ const deserializeAws_restJson1OtaaV1_1 = (output, context) => {
|
|
|
8610
9037
|
NwkKey: (0, smithy_client_1.expectString)(output.NwkKey),
|
|
8611
9038
|
};
|
|
8612
9039
|
};
|
|
9040
|
+
const deserializeAws_restJson1PositionConfigurationItem = (output, context) => {
|
|
9041
|
+
return {
|
|
9042
|
+
Destination: (0, smithy_client_1.expectString)(output.Destination),
|
|
9043
|
+
ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
|
|
9044
|
+
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
9045
|
+
Solvers: output.Solvers != null ? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context) : undefined,
|
|
9046
|
+
};
|
|
9047
|
+
};
|
|
9048
|
+
const deserializeAws_restJson1PositionConfigurationList = (output, context) => {
|
|
9049
|
+
const retVal = (output || [])
|
|
9050
|
+
.filter((e) => e != null)
|
|
9051
|
+
.map((entry) => {
|
|
9052
|
+
if (entry === null) {
|
|
9053
|
+
return null;
|
|
9054
|
+
}
|
|
9055
|
+
return deserializeAws_restJson1PositionConfigurationItem(entry, context);
|
|
9056
|
+
});
|
|
9057
|
+
return retVal;
|
|
9058
|
+
};
|
|
9059
|
+
const deserializeAws_restJson1PositionCoordinate = (output, context) => {
|
|
9060
|
+
const retVal = (output || [])
|
|
9061
|
+
.filter((e) => e != null)
|
|
9062
|
+
.map((entry) => {
|
|
9063
|
+
if (entry === null) {
|
|
9064
|
+
return null;
|
|
9065
|
+
}
|
|
9066
|
+
return (0, smithy_client_1.limitedParseFloat32)(entry);
|
|
9067
|
+
});
|
|
9068
|
+
return retVal;
|
|
9069
|
+
};
|
|
9070
|
+
const deserializeAws_restJson1Positioning = (output, context) => {
|
|
9071
|
+
return {
|
|
9072
|
+
ClockSync: (0, smithy_client_1.expectInt32)(output.ClockSync),
|
|
9073
|
+
Gnss: (0, smithy_client_1.expectInt32)(output.Gnss),
|
|
9074
|
+
Stream: (0, smithy_client_1.expectInt32)(output.Stream),
|
|
9075
|
+
};
|
|
9076
|
+
};
|
|
9077
|
+
const deserializeAws_restJson1PositionSolverDetails = (output, context) => {
|
|
9078
|
+
return {
|
|
9079
|
+
SemtechGnss: output.SemtechGnss != null ? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context) : undefined,
|
|
9080
|
+
};
|
|
9081
|
+
};
|
|
8613
9082
|
const deserializeAws_restJson1ProximityEventConfiguration = (output, context) => {
|
|
8614
9083
|
return {
|
|
8615
|
-
Sidewalk: output.Sidewalk
|
|
9084
|
+
Sidewalk: output.Sidewalk != null
|
|
8616
9085
|
? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
|
|
8617
9086
|
: undefined,
|
|
8618
9087
|
WirelessDeviceIdEventTopic: (0, smithy_client_1.expectString)(output.WirelessDeviceIdEventTopic),
|
|
@@ -8620,11 +9089,19 @@ const deserializeAws_restJson1ProximityEventConfiguration = (output, context) =>
|
|
|
8620
9089
|
};
|
|
8621
9090
|
const deserializeAws_restJson1ProximityResourceTypeEventConfiguration = (output, context) => {
|
|
8622
9091
|
return {
|
|
8623
|
-
Sidewalk: output.Sidewalk
|
|
9092
|
+
Sidewalk: output.Sidewalk != null
|
|
8624
9093
|
? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
|
|
8625
9094
|
: undefined,
|
|
8626
9095
|
};
|
|
8627
9096
|
};
|
|
9097
|
+
const deserializeAws_restJson1SemtechGnssDetail = (output, context) => {
|
|
9098
|
+
return {
|
|
9099
|
+
Fec: (0, smithy_client_1.expectString)(output.Fec),
|
|
9100
|
+
Provider: (0, smithy_client_1.expectString)(output.Provider),
|
|
9101
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
9102
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
9103
|
+
};
|
|
9104
|
+
};
|
|
8628
9105
|
const deserializeAws_restJson1ServiceProfile = (output, context) => {
|
|
8629
9106
|
return {
|
|
8630
9107
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -8684,7 +9161,7 @@ const deserializeAws_restJson1SidewalkAccountList = (output, context) => {
|
|
|
8684
9161
|
const deserializeAws_restJson1SidewalkDevice = (output, context) => {
|
|
8685
9162
|
return {
|
|
8686
9163
|
AmazonId: (0, smithy_client_1.expectString)(output.AmazonId),
|
|
8687
|
-
DeviceCertificates: output.DeviceCertificates
|
|
9164
|
+
DeviceCertificates: output.DeviceCertificates != null
|
|
8688
9165
|
? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
|
|
8689
9166
|
: undefined,
|
|
8690
9167
|
SidewalkId: (0, smithy_client_1.expectString)(output.SidewalkId),
|
|
@@ -8707,7 +9184,7 @@ const deserializeAws_restJson1SidewalkEventNotificationConfigurations = (output,
|
|
|
8707
9184
|
const deserializeAws_restJson1SidewalkListDevice = (output, context) => {
|
|
8708
9185
|
return {
|
|
8709
9186
|
AmazonId: (0, smithy_client_1.expectString)(output.AmazonId),
|
|
8710
|
-
DeviceCertificates: output.DeviceCertificates
|
|
9187
|
+
DeviceCertificates: output.DeviceCertificates != null
|
|
8711
9188
|
? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
|
|
8712
9189
|
: undefined,
|
|
8713
9190
|
SidewalkId: (0, smithy_client_1.expectString)(output.SidewalkId),
|
|
@@ -8755,7 +9232,7 @@ const deserializeAws_restJson1TraceContent = (output, context) => {
|
|
|
8755
9232
|
};
|
|
8756
9233
|
const deserializeAws_restJson1UpdateWirelessGatewayTaskCreate = (output, context) => {
|
|
8757
9234
|
return {
|
|
8758
|
-
LoRaWAN: output.LoRaWAN
|
|
9235
|
+
LoRaWAN: output.LoRaWAN != null
|
|
8759
9236
|
? deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(output.LoRaWAN, context)
|
|
8760
9237
|
: undefined,
|
|
8761
9238
|
UpdateDataRole: (0, smithy_client_1.expectString)(output.UpdateDataRole),
|
|
@@ -8766,7 +9243,7 @@ const deserializeAws_restJson1UpdateWirelessGatewayTaskEntry = (output, context)
|
|
|
8766
9243
|
return {
|
|
8767
9244
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
8768
9245
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
8769
|
-
LoRaWAN: output.LoRaWAN
|
|
9246
|
+
LoRaWAN: output.LoRaWAN != null
|
|
8770
9247
|
? deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry(output.LoRaWAN, context)
|
|
8771
9248
|
: undefined,
|
|
8772
9249
|
};
|
|
@@ -8801,7 +9278,7 @@ const deserializeAws_restJson1WirelessDeviceList = (output, context) => {
|
|
|
8801
9278
|
};
|
|
8802
9279
|
const deserializeAws_restJson1WirelessDeviceLogOption = (output, context) => {
|
|
8803
9280
|
return {
|
|
8804
|
-
Events: output.Events
|
|
9281
|
+
Events: output.Events != null
|
|
8805
9282
|
? deserializeAws_restJson1WirelessDeviceEventLogOptionList(output.Events, context)
|
|
8806
9283
|
: undefined,
|
|
8807
9284
|
LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
|
|
@@ -8826,15 +9303,11 @@ const deserializeAws_restJson1WirelessDeviceStatistics = (output, context) => {
|
|
|
8826
9303
|
FuotaDeviceStatus: (0, smithy_client_1.expectString)(output.FuotaDeviceStatus),
|
|
8827
9304
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
8828
9305
|
LastUplinkReceivedAt: (0, smithy_client_1.expectString)(output.LastUplinkReceivedAt),
|
|
8829
|
-
LoRaWAN: output.LoRaWAN
|
|
8830
|
-
? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context)
|
|
8831
|
-
: undefined,
|
|
9306
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context) : undefined,
|
|
8832
9307
|
McGroupId: (0, smithy_client_1.expectInt32)(output.McGroupId),
|
|
8833
9308
|
MulticastDeviceStatus: (0, smithy_client_1.expectString)(output.MulticastDeviceStatus),
|
|
8834
9309
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
8835
|
-
Sidewalk: output.Sidewalk
|
|
8836
|
-
? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context)
|
|
8837
|
-
: undefined,
|
|
9310
|
+
Sidewalk: output.Sidewalk != null ? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context) : undefined,
|
|
8838
9311
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
8839
9312
|
};
|
|
8840
9313
|
};
|
|
@@ -8879,7 +9352,7 @@ const deserializeAws_restJson1WirelessGatewayList = (output, context) => {
|
|
|
8879
9352
|
};
|
|
8880
9353
|
const deserializeAws_restJson1WirelessGatewayLogOption = (output, context) => {
|
|
8881
9354
|
return {
|
|
8882
|
-
Events: output.Events
|
|
9355
|
+
Events: output.Events != null
|
|
8883
9356
|
? deserializeAws_restJson1WirelessGatewayEventLogOptionList(output.Events, context)
|
|
8884
9357
|
: undefined,
|
|
8885
9358
|
LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
|
|
@@ -8903,9 +9376,7 @@ const deserializeAws_restJson1WirelessGatewayStatistics = (output, context) => {
|
|
|
8903
9376
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
8904
9377
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
8905
9378
|
LastUplinkReceivedAt: (0, smithy_client_1.expectString)(output.LastUplinkReceivedAt),
|
|
8906
|
-
LoRaWAN: output.LoRaWAN
|
|
8907
|
-
? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context)
|
|
8908
|
-
: undefined,
|
|
9379
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context) : undefined,
|
|
8909
9380
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
8910
9381
|
};
|
|
8911
9382
|
};
|
|
@@ -8980,5 +9451,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
8980
9451
|
if (data["__type"] !== undefined) {
|
|
8981
9452
|
return sanitizeErrorCode(data["__type"]);
|
|
8982
9453
|
}
|
|
8983
|
-
return "";
|
|
8984
9454
|
};
|