@aws-sdk/client-iotfleetwise 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/IoTFleetWise.js +1 -115
- package/dist-cjs/IoTFleetWiseClient.js +1 -43
- package/dist-cjs/commands/AssociateVehicleFleetCommand.js +1 -28
- package/dist-cjs/commands/BatchCreateVehicleCommand.js +1 -28
- package/dist-cjs/commands/BatchUpdateVehicleCommand.js +1 -28
- package/dist-cjs/commands/CreateCampaignCommand.js +1 -28
- package/dist-cjs/commands/CreateDecoderManifestCommand.js +1 -28
- package/dist-cjs/commands/CreateFleetCommand.js +1 -28
- package/dist-cjs/commands/CreateModelManifestCommand.js +1 -28
- package/dist-cjs/commands/CreateSignalCatalogCommand.js +1 -28
- package/dist-cjs/commands/CreateVehicleCommand.js +1 -28
- package/dist-cjs/commands/DeleteCampaignCommand.js +1 -28
- package/dist-cjs/commands/DeleteDecoderManifestCommand.js +1 -28
- package/dist-cjs/commands/DeleteFleetCommand.js +1 -28
- package/dist-cjs/commands/DeleteModelManifestCommand.js +1 -28
- package/dist-cjs/commands/DeleteSignalCatalogCommand.js +1 -28
- package/dist-cjs/commands/DeleteVehicleCommand.js +1 -28
- package/dist-cjs/commands/DisassociateVehicleFleetCommand.js +1 -28
- package/dist-cjs/commands/GetCampaignCommand.js +1 -28
- package/dist-cjs/commands/GetDecoderManifestCommand.js +1 -28
- package/dist-cjs/commands/GetEncryptionConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetFleetCommand.js +1 -28
- package/dist-cjs/commands/GetLoggingOptionsCommand.js +1 -28
- package/dist-cjs/commands/GetModelManifestCommand.js +1 -28
- package/dist-cjs/commands/GetRegisterAccountStatusCommand.js +1 -28
- package/dist-cjs/commands/GetSignalCatalogCommand.js +1 -28
- package/dist-cjs/commands/GetVehicleCommand.js +1 -28
- package/dist-cjs/commands/GetVehicleStatusCommand.js +1 -28
- package/dist-cjs/commands/ImportDecoderManifestCommand.js +1 -28
- package/dist-cjs/commands/ImportSignalCatalogCommand.js +1 -28
- package/dist-cjs/commands/ListCampaignsCommand.js +1 -28
- package/dist-cjs/commands/ListDecoderManifestNetworkInterfacesCommand.js +1 -28
- package/dist-cjs/commands/ListDecoderManifestSignalsCommand.js +1 -28
- package/dist-cjs/commands/ListDecoderManifestsCommand.js +1 -28
- package/dist-cjs/commands/ListFleetsCommand.js +1 -28
- package/dist-cjs/commands/ListFleetsForVehicleCommand.js +1 -28
- package/dist-cjs/commands/ListModelManifestNodesCommand.js +1 -28
- package/dist-cjs/commands/ListModelManifestsCommand.js +1 -28
- package/dist-cjs/commands/ListSignalCatalogNodesCommand.js +1 -28
- package/dist-cjs/commands/ListSignalCatalogsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVehiclesCommand.js +1 -28
- package/dist-cjs/commands/ListVehiclesInFleetCommand.js +1 -28
- package/dist-cjs/commands/PutEncryptionConfigurationCommand.js +1 -28
- package/dist-cjs/commands/PutLoggingOptionsCommand.js +1 -28
- package/dist-cjs/commands/RegisterAccountCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCampaignCommand.js +1 -28
- package/dist-cjs/commands/UpdateDecoderManifestCommand.js +1 -28
- package/dist-cjs/commands/UpdateFleetCommand.js +1 -28
- package/dist-cjs/commands/UpdateModelManifestCommand.js +1 -28
- package/dist-cjs/commands/UpdateSignalCatalogCommand.js +1 -28
- package/dist-cjs/commands/UpdateVehicleCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -55
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5363 -11
- package/dist-cjs/models/IoTFleetWiseServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -402
- package/dist-cjs/pagination/GetVehicleStatusPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCampaignsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDecoderManifestNetworkInterfacesPaginator.js +1 -7
- package/dist-cjs/pagination/ListDecoderManifestSignalsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDecoderManifestsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFleetsForVehiclePaginator.js +1 -7
- package/dist-cjs/pagination/ListFleetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListModelManifestNodesPaginator.js +1 -7
- package/dist-cjs/pagination/ListModelManifestsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSignalCatalogNodesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSignalCatalogsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVehiclesInFleetPaginator.js +1 -7
- package/dist-cjs/pagination/ListVehiclesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -17
- package/dist-cjs/protocols/Aws_json1_0.js +1 -3685
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_json1_0.js +1 -0
- package/dist-types/commands/ListSignalCatalogNodesCommand.d.ts +1 -0
- package/dist-types/commands/ListVehiclesCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +30 -1
- package/dist-types/ts3.4/models/models_0.d.ts +12 -0
- package/package.json +40 -40
|
@@ -1,3685 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_UpdateModelManifestCommand = exports.se_UpdateFleetCommand = exports.se_UpdateDecoderManifestCommand = exports.se_UpdateCampaignCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterAccountCommand = exports.se_PutLoggingOptionsCommand = exports.se_PutEncryptionConfigurationCommand = exports.se_ListVehiclesInFleetCommand = exports.se_ListVehiclesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSignalCatalogsCommand = exports.se_ListSignalCatalogNodesCommand = exports.se_ListModelManifestsCommand = exports.se_ListModelManifestNodesCommand = exports.se_ListFleetsForVehicleCommand = exports.se_ListFleetsCommand = exports.se_ListDecoderManifestSignalsCommand = exports.se_ListDecoderManifestsCommand = exports.se_ListDecoderManifestNetworkInterfacesCommand = exports.se_ListCampaignsCommand = exports.se_ImportSignalCatalogCommand = exports.se_ImportDecoderManifestCommand = exports.se_GetVehicleStatusCommand = exports.se_GetVehicleCommand = exports.se_GetSignalCatalogCommand = exports.se_GetRegisterAccountStatusCommand = exports.se_GetModelManifestCommand = exports.se_GetLoggingOptionsCommand = exports.se_GetFleetCommand = exports.se_GetEncryptionConfigurationCommand = exports.se_GetDecoderManifestCommand = exports.se_GetCampaignCommand = exports.se_DisassociateVehicleFleetCommand = exports.se_DeleteVehicleCommand = exports.se_DeleteSignalCatalogCommand = exports.se_DeleteModelManifestCommand = exports.se_DeleteFleetCommand = exports.se_DeleteDecoderManifestCommand = exports.se_DeleteCampaignCommand = exports.se_CreateVehicleCommand = exports.se_CreateSignalCatalogCommand = exports.se_CreateModelManifestCommand = exports.se_CreateFleetCommand = exports.se_CreateDecoderManifestCommand = exports.se_CreateCampaignCommand = exports.se_BatchUpdateVehicleCommand = exports.se_BatchCreateVehicleCommand = exports.se_AssociateVehicleFleetCommand = void 0;
|
|
4
|
-
exports.de_UpdateDecoderManifestCommand = exports.de_UpdateCampaignCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterAccountCommand = exports.de_PutLoggingOptionsCommand = exports.de_PutEncryptionConfigurationCommand = exports.de_ListVehiclesInFleetCommand = exports.de_ListVehiclesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSignalCatalogsCommand = exports.de_ListSignalCatalogNodesCommand = exports.de_ListModelManifestsCommand = exports.de_ListModelManifestNodesCommand = exports.de_ListFleetsForVehicleCommand = exports.de_ListFleetsCommand = exports.de_ListDecoderManifestSignalsCommand = exports.de_ListDecoderManifestsCommand = exports.de_ListDecoderManifestNetworkInterfacesCommand = exports.de_ListCampaignsCommand = exports.de_ImportSignalCatalogCommand = exports.de_ImportDecoderManifestCommand = exports.de_GetVehicleStatusCommand = exports.de_GetVehicleCommand = exports.de_GetSignalCatalogCommand = exports.de_GetRegisterAccountStatusCommand = exports.de_GetModelManifestCommand = exports.de_GetLoggingOptionsCommand = exports.de_GetFleetCommand = exports.de_GetEncryptionConfigurationCommand = exports.de_GetDecoderManifestCommand = exports.de_GetCampaignCommand = exports.de_DisassociateVehicleFleetCommand = exports.de_DeleteVehicleCommand = exports.de_DeleteSignalCatalogCommand = exports.de_DeleteModelManifestCommand = exports.de_DeleteFleetCommand = exports.de_DeleteDecoderManifestCommand = exports.de_DeleteCampaignCommand = exports.de_CreateVehicleCommand = exports.de_CreateSignalCatalogCommand = exports.de_CreateModelManifestCommand = exports.de_CreateFleetCommand = exports.de_CreateDecoderManifestCommand = exports.de_CreateCampaignCommand = exports.de_BatchUpdateVehicleCommand = exports.de_BatchCreateVehicleCommand = exports.de_AssociateVehicleFleetCommand = exports.se_UpdateVehicleCommand = exports.se_UpdateSignalCatalogCommand = void 0;
|
|
5
|
-
exports.de_UpdateVehicleCommand = exports.de_UpdateSignalCatalogCommand = exports.de_UpdateModelManifestCommand = exports.de_UpdateFleetCommand = void 0;
|
|
6
|
-
const core_1 = require("@aws-sdk/core");
|
|
7
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const IoTFleetWiseServiceException_1 = require("../models/IoTFleetWiseServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_AssociateVehicleFleetCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("AssociateVehicleFleet");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_AssociateVehicleFleetCommand = se_AssociateVehicleFleetCommand;
|
|
18
|
-
const se_BatchCreateVehicleCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("BatchCreateVehicle");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_BatchCreateVehicleCommand = se_BatchCreateVehicleCommand;
|
|
25
|
-
const se_BatchUpdateVehicleCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("BatchUpdateVehicle");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_BatchUpdateVehicleCommand = se_BatchUpdateVehicleCommand;
|
|
32
|
-
const se_CreateCampaignCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("CreateCampaign");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify(se_CreateCampaignRequest(input, context));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_CreateCampaignCommand = se_CreateCampaignCommand;
|
|
39
|
-
const se_CreateDecoderManifestCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CreateDecoderManifest");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(se_CreateDecoderManifestRequest(input, context));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreateDecoderManifestCommand = se_CreateDecoderManifestCommand;
|
|
46
|
-
const se_CreateFleetCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateFleet");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateFleetCommand = se_CreateFleetCommand;
|
|
53
|
-
const se_CreateModelManifestCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateModelManifest");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateModelManifestCommand = se_CreateModelManifestCommand;
|
|
60
|
-
const se_CreateSignalCatalogCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateSignalCatalog");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(se_CreateSignalCatalogRequest(input, context));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateSignalCatalogCommand = se_CreateSignalCatalogCommand;
|
|
67
|
-
const se_CreateVehicleCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateVehicle");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CreateVehicleCommand = se_CreateVehicleCommand;
|
|
74
|
-
const se_DeleteCampaignCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("DeleteCampaign");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_DeleteCampaignCommand = se_DeleteCampaignCommand;
|
|
81
|
-
const se_DeleteDecoderManifestCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("DeleteDecoderManifest");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteDecoderManifestCommand = se_DeleteDecoderManifestCommand;
|
|
88
|
-
const se_DeleteFleetCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteFleet");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteFleetCommand = se_DeleteFleetCommand;
|
|
95
|
-
const se_DeleteModelManifestCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteModelManifest");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteModelManifestCommand = se_DeleteModelManifestCommand;
|
|
102
|
-
const se_DeleteSignalCatalogCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteSignalCatalog");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteSignalCatalogCommand = se_DeleteSignalCatalogCommand;
|
|
109
|
-
const se_DeleteVehicleCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteVehicle");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteVehicleCommand = se_DeleteVehicleCommand;
|
|
116
|
-
const se_DisassociateVehicleFleetCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DisassociateVehicleFleet");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DisassociateVehicleFleetCommand = se_DisassociateVehicleFleetCommand;
|
|
123
|
-
const se_GetCampaignCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("GetCampaign");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_GetCampaignCommand = se_GetCampaignCommand;
|
|
130
|
-
const se_GetDecoderManifestCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("GetDecoderManifest");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_GetDecoderManifestCommand = se_GetDecoderManifestCommand;
|
|
137
|
-
const se_GetEncryptionConfigurationCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("GetEncryptionConfiguration");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_GetEncryptionConfigurationCommand = se_GetEncryptionConfigurationCommand;
|
|
144
|
-
const se_GetFleetCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("GetFleet");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_GetFleetCommand = se_GetFleetCommand;
|
|
151
|
-
const se_GetLoggingOptionsCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("GetLoggingOptions");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_GetLoggingOptionsCommand = se_GetLoggingOptionsCommand;
|
|
158
|
-
const se_GetModelManifestCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("GetModelManifest");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_GetModelManifestCommand = se_GetModelManifestCommand;
|
|
165
|
-
const se_GetRegisterAccountStatusCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("GetRegisterAccountStatus");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_GetRegisterAccountStatusCommand = se_GetRegisterAccountStatusCommand;
|
|
172
|
-
const se_GetSignalCatalogCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("GetSignalCatalog");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_GetSignalCatalogCommand = se_GetSignalCatalogCommand;
|
|
179
|
-
const se_GetVehicleCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("GetVehicle");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_GetVehicleCommand = se_GetVehicleCommand;
|
|
186
|
-
const se_GetVehicleStatusCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("GetVehicleStatus");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_GetVehicleStatusCommand = se_GetVehicleStatusCommand;
|
|
193
|
-
const se_ImportDecoderManifestCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("ImportDecoderManifest");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify(se_ImportDecoderManifestRequest(input, context));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_ImportDecoderManifestCommand = se_ImportDecoderManifestCommand;
|
|
200
|
-
const se_ImportSignalCatalogCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("ImportSignalCatalog");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_ImportSignalCatalogCommand = se_ImportSignalCatalogCommand;
|
|
207
|
-
const se_ListCampaignsCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("ListCampaigns");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_ListCampaignsCommand = se_ListCampaignsCommand;
|
|
214
|
-
const se_ListDecoderManifestNetworkInterfacesCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("ListDecoderManifestNetworkInterfaces");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_ListDecoderManifestNetworkInterfacesCommand = se_ListDecoderManifestNetworkInterfacesCommand;
|
|
221
|
-
const se_ListDecoderManifestsCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("ListDecoderManifests");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_ListDecoderManifestsCommand = se_ListDecoderManifestsCommand;
|
|
228
|
-
const se_ListDecoderManifestSignalsCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("ListDecoderManifestSignals");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_ListDecoderManifestSignalsCommand = se_ListDecoderManifestSignalsCommand;
|
|
235
|
-
const se_ListFleetsCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("ListFleets");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_ListFleetsCommand = se_ListFleetsCommand;
|
|
242
|
-
const se_ListFleetsForVehicleCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("ListFleetsForVehicle");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_ListFleetsForVehicleCommand = se_ListFleetsForVehicleCommand;
|
|
249
|
-
const se_ListModelManifestNodesCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("ListModelManifestNodes");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_ListModelManifestNodesCommand = se_ListModelManifestNodesCommand;
|
|
256
|
-
const se_ListModelManifestsCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("ListModelManifests");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_ListModelManifestsCommand = se_ListModelManifestsCommand;
|
|
263
|
-
const se_ListSignalCatalogNodesCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("ListSignalCatalogNodes");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_ListSignalCatalogNodesCommand = se_ListSignalCatalogNodesCommand;
|
|
270
|
-
const se_ListSignalCatalogsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ListSignalCatalogs");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_ListSignalCatalogsCommand = se_ListSignalCatalogsCommand;
|
|
277
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
284
|
-
const se_ListVehiclesCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("ListVehicles");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_ListVehiclesCommand = se_ListVehiclesCommand;
|
|
291
|
-
const se_ListVehiclesInFleetCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("ListVehiclesInFleet");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_ListVehiclesInFleetCommand = se_ListVehiclesInFleetCommand;
|
|
298
|
-
const se_PutEncryptionConfigurationCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("PutEncryptionConfiguration");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_PutEncryptionConfigurationCommand = se_PutEncryptionConfigurationCommand;
|
|
305
|
-
const se_PutLoggingOptionsCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("PutLoggingOptions");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_PutLoggingOptionsCommand = se_PutLoggingOptionsCommand;
|
|
312
|
-
const se_RegisterAccountCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("RegisterAccount");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_RegisterAccountCommand = se_RegisterAccountCommand;
|
|
319
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("TagResource");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
326
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("UntagResource");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
333
|
-
const se_UpdateCampaignCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("UpdateCampaign");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_UpdateCampaignCommand = se_UpdateCampaignCommand;
|
|
340
|
-
const se_UpdateDecoderManifestCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("UpdateDecoderManifest");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify(se_UpdateDecoderManifestRequest(input, context));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_UpdateDecoderManifestCommand = se_UpdateDecoderManifestCommand;
|
|
347
|
-
const se_UpdateFleetCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("UpdateFleet");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_UpdateFleetCommand = se_UpdateFleetCommand;
|
|
354
|
-
const se_UpdateModelManifestCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("UpdateModelManifest");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_UpdateModelManifestCommand = se_UpdateModelManifestCommand;
|
|
361
|
-
const se_UpdateSignalCatalogCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("UpdateSignalCatalog");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify(se_UpdateSignalCatalogRequest(input, context));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_UpdateSignalCatalogCommand = se_UpdateSignalCatalogCommand;
|
|
368
|
-
const se_UpdateVehicleCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("UpdateVehicle");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_UpdateVehicleCommand = se_UpdateVehicleCommand;
|
|
375
|
-
const de_AssociateVehicleFleetCommand = async (output, context) => {
|
|
376
|
-
if (output.statusCode >= 300) {
|
|
377
|
-
return de_AssociateVehicleFleetCommandError(output, context);
|
|
378
|
-
}
|
|
379
|
-
const data = await parseBody(output.body, context);
|
|
380
|
-
let contents = {};
|
|
381
|
-
contents = (0, smithy_client_1._json)(data);
|
|
382
|
-
const response = {
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
...contents,
|
|
385
|
-
};
|
|
386
|
-
return response;
|
|
387
|
-
};
|
|
388
|
-
exports.de_AssociateVehicleFleetCommand = de_AssociateVehicleFleetCommand;
|
|
389
|
-
const de_AssociateVehicleFleetCommandError = async (output, context) => {
|
|
390
|
-
const parsedOutput = {
|
|
391
|
-
...output,
|
|
392
|
-
body: await parseErrorBody(output.body, context),
|
|
393
|
-
};
|
|
394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
|
-
switch (errorCode) {
|
|
396
|
-
case "AccessDeniedException":
|
|
397
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
398
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
399
|
-
case "InternalServerException":
|
|
400
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
402
|
-
case "LimitExceededException":
|
|
403
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
404
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
405
|
-
case "ResourceNotFoundException":
|
|
406
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
407
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
408
|
-
case "ThrottlingException":
|
|
409
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
410
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
411
|
-
case "ValidationException":
|
|
412
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
413
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
414
|
-
default:
|
|
415
|
-
const parsedBody = parsedOutput.body;
|
|
416
|
-
return throwDefaultError({
|
|
417
|
-
output,
|
|
418
|
-
parsedBody,
|
|
419
|
-
errorCode,
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
const de_BatchCreateVehicleCommand = async (output, context) => {
|
|
424
|
-
if (output.statusCode >= 300) {
|
|
425
|
-
return de_BatchCreateVehicleCommandError(output, context);
|
|
426
|
-
}
|
|
427
|
-
const data = await parseBody(output.body, context);
|
|
428
|
-
let contents = {};
|
|
429
|
-
contents = (0, smithy_client_1._json)(data);
|
|
430
|
-
const response = {
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
...contents,
|
|
433
|
-
};
|
|
434
|
-
return response;
|
|
435
|
-
};
|
|
436
|
-
exports.de_BatchCreateVehicleCommand = de_BatchCreateVehicleCommand;
|
|
437
|
-
const de_BatchCreateVehicleCommandError = async (output, context) => {
|
|
438
|
-
const parsedOutput = {
|
|
439
|
-
...output,
|
|
440
|
-
body: await parseErrorBody(output.body, context),
|
|
441
|
-
};
|
|
442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
-
switch (errorCode) {
|
|
444
|
-
case "AccessDeniedException":
|
|
445
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
446
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
447
|
-
case "InternalServerException":
|
|
448
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
449
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
450
|
-
case "LimitExceededException":
|
|
451
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
452
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ThrottlingException":
|
|
454
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
455
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ValidationException":
|
|
457
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
458
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
459
|
-
default:
|
|
460
|
-
const parsedBody = parsedOutput.body;
|
|
461
|
-
return throwDefaultError({
|
|
462
|
-
output,
|
|
463
|
-
parsedBody,
|
|
464
|
-
errorCode,
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
const de_BatchUpdateVehicleCommand = async (output, context) => {
|
|
469
|
-
if (output.statusCode >= 300) {
|
|
470
|
-
return de_BatchUpdateVehicleCommandError(output, context);
|
|
471
|
-
}
|
|
472
|
-
const data = await parseBody(output.body, context);
|
|
473
|
-
let contents = {};
|
|
474
|
-
contents = (0, smithy_client_1._json)(data);
|
|
475
|
-
const response = {
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
...contents,
|
|
478
|
-
};
|
|
479
|
-
return response;
|
|
480
|
-
};
|
|
481
|
-
exports.de_BatchUpdateVehicleCommand = de_BatchUpdateVehicleCommand;
|
|
482
|
-
const de_BatchUpdateVehicleCommandError = async (output, context) => {
|
|
483
|
-
const parsedOutput = {
|
|
484
|
-
...output,
|
|
485
|
-
body: await parseErrorBody(output.body, context),
|
|
486
|
-
};
|
|
487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
|
-
switch (errorCode) {
|
|
489
|
-
case "AccessDeniedException":
|
|
490
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
491
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
492
|
-
case "InternalServerException":
|
|
493
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
494
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ThrottlingException":
|
|
496
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
497
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ValidationException":
|
|
499
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
500
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
const de_CreateCampaignCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode >= 300) {
|
|
512
|
-
return de_CreateCampaignCommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const data = await parseBody(output.body, context);
|
|
515
|
-
let contents = {};
|
|
516
|
-
contents = (0, smithy_client_1._json)(data);
|
|
517
|
-
const response = {
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
...contents,
|
|
520
|
-
};
|
|
521
|
-
return response;
|
|
522
|
-
};
|
|
523
|
-
exports.de_CreateCampaignCommand = de_CreateCampaignCommand;
|
|
524
|
-
const de_CreateCampaignCommandError = async (output, context) => {
|
|
525
|
-
const parsedOutput = {
|
|
526
|
-
...output,
|
|
527
|
-
body: await parseErrorBody(output.body, context),
|
|
528
|
-
};
|
|
529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
-
switch (errorCode) {
|
|
531
|
-
case "AccessDeniedException":
|
|
532
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
533
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ConflictException":
|
|
535
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
536
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
537
|
-
case "InternalServerException":
|
|
538
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
539
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
540
|
-
case "LimitExceededException":
|
|
541
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
542
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ResourceNotFoundException":
|
|
544
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ThrottlingException":
|
|
547
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ValidationException":
|
|
550
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
|
-
default:
|
|
553
|
-
const parsedBody = parsedOutput.body;
|
|
554
|
-
return throwDefaultError({
|
|
555
|
-
output,
|
|
556
|
-
parsedBody,
|
|
557
|
-
errorCode,
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
const de_CreateDecoderManifestCommand = async (output, context) => {
|
|
562
|
-
if (output.statusCode >= 300) {
|
|
563
|
-
return de_CreateDecoderManifestCommandError(output, context);
|
|
564
|
-
}
|
|
565
|
-
const data = await parseBody(output.body, context);
|
|
566
|
-
let contents = {};
|
|
567
|
-
contents = (0, smithy_client_1._json)(data);
|
|
568
|
-
const response = {
|
|
569
|
-
$metadata: deserializeMetadata(output),
|
|
570
|
-
...contents,
|
|
571
|
-
};
|
|
572
|
-
return response;
|
|
573
|
-
};
|
|
574
|
-
exports.de_CreateDecoderManifestCommand = de_CreateDecoderManifestCommand;
|
|
575
|
-
const de_CreateDecoderManifestCommandError = async (output, context) => {
|
|
576
|
-
const parsedOutput = {
|
|
577
|
-
...output,
|
|
578
|
-
body: await parseErrorBody(output.body, context),
|
|
579
|
-
};
|
|
580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
|
-
switch (errorCode) {
|
|
582
|
-
case "AccessDeniedException":
|
|
583
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
584
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
585
|
-
case "ConflictException":
|
|
586
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
587
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
588
|
-
case "DecoderManifestValidationException":
|
|
589
|
-
case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
|
|
590
|
-
throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
|
|
591
|
-
case "InternalServerException":
|
|
592
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
594
|
-
case "LimitExceededException":
|
|
595
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
596
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ResourceNotFoundException":
|
|
598
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
599
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
600
|
-
case "ThrottlingException":
|
|
601
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
602
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ValidationException":
|
|
604
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
605
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
606
|
-
default:
|
|
607
|
-
const parsedBody = parsedOutput.body;
|
|
608
|
-
return throwDefaultError({
|
|
609
|
-
output,
|
|
610
|
-
parsedBody,
|
|
611
|
-
errorCode,
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
const de_CreateFleetCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode >= 300) {
|
|
617
|
-
return de_CreateFleetCommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const data = await parseBody(output.body, context);
|
|
620
|
-
let contents = {};
|
|
621
|
-
contents = (0, smithy_client_1._json)(data);
|
|
622
|
-
const response = {
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
...contents,
|
|
625
|
-
};
|
|
626
|
-
return response;
|
|
627
|
-
};
|
|
628
|
-
exports.de_CreateFleetCommand = de_CreateFleetCommand;
|
|
629
|
-
const de_CreateFleetCommandError = async (output, context) => {
|
|
630
|
-
const parsedOutput = {
|
|
631
|
-
...output,
|
|
632
|
-
body: await parseErrorBody(output.body, context),
|
|
633
|
-
};
|
|
634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
|
-
switch (errorCode) {
|
|
636
|
-
case "AccessDeniedException":
|
|
637
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
638
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ConflictException":
|
|
640
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
641
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InternalServerException":
|
|
643
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
645
|
-
case "LimitExceededException":
|
|
646
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
647
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ResourceNotFoundException":
|
|
649
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ThrottlingException":
|
|
652
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
653
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ValidationException":
|
|
655
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
656
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
657
|
-
default:
|
|
658
|
-
const parsedBody = parsedOutput.body;
|
|
659
|
-
return throwDefaultError({
|
|
660
|
-
output,
|
|
661
|
-
parsedBody,
|
|
662
|
-
errorCode,
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
const de_CreateModelManifestCommand = async (output, context) => {
|
|
667
|
-
if (output.statusCode >= 300) {
|
|
668
|
-
return de_CreateModelManifestCommandError(output, context);
|
|
669
|
-
}
|
|
670
|
-
const data = await parseBody(output.body, context);
|
|
671
|
-
let contents = {};
|
|
672
|
-
contents = (0, smithy_client_1._json)(data);
|
|
673
|
-
const response = {
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
...contents,
|
|
676
|
-
};
|
|
677
|
-
return response;
|
|
678
|
-
};
|
|
679
|
-
exports.de_CreateModelManifestCommand = de_CreateModelManifestCommand;
|
|
680
|
-
const de_CreateModelManifestCommandError = async (output, context) => {
|
|
681
|
-
const parsedOutput = {
|
|
682
|
-
...output,
|
|
683
|
-
body: await parseErrorBody(output.body, context),
|
|
684
|
-
};
|
|
685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
|
-
switch (errorCode) {
|
|
687
|
-
case "AccessDeniedException":
|
|
688
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
689
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ConflictException":
|
|
691
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
692
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
693
|
-
case "InternalServerException":
|
|
694
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
695
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
696
|
-
case "InvalidSignalsException":
|
|
697
|
-
case "com.amazonaws.iotfleetwise#InvalidSignalsException":
|
|
698
|
-
throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
|
|
699
|
-
case "LimitExceededException":
|
|
700
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
701
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ResourceNotFoundException":
|
|
703
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ThrottlingException":
|
|
706
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
707
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
708
|
-
case "ValidationException":
|
|
709
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
const de_CreateSignalCatalogCommand = async (output, context) => {
|
|
721
|
-
if (output.statusCode >= 300) {
|
|
722
|
-
return de_CreateSignalCatalogCommandError(output, context);
|
|
723
|
-
}
|
|
724
|
-
const data = await parseBody(output.body, context);
|
|
725
|
-
let contents = {};
|
|
726
|
-
contents = (0, smithy_client_1._json)(data);
|
|
727
|
-
const response = {
|
|
728
|
-
$metadata: deserializeMetadata(output),
|
|
729
|
-
...contents,
|
|
730
|
-
};
|
|
731
|
-
return response;
|
|
732
|
-
};
|
|
733
|
-
exports.de_CreateSignalCatalogCommand = de_CreateSignalCatalogCommand;
|
|
734
|
-
const de_CreateSignalCatalogCommandError = async (output, context) => {
|
|
735
|
-
const parsedOutput = {
|
|
736
|
-
...output,
|
|
737
|
-
body: await parseErrorBody(output.body, context),
|
|
738
|
-
};
|
|
739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
|
-
switch (errorCode) {
|
|
741
|
-
case "AccessDeniedException":
|
|
742
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
743
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ConflictException":
|
|
745
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
746
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
747
|
-
case "InternalServerException":
|
|
748
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
749
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
750
|
-
case "InvalidNodeException":
|
|
751
|
-
case "com.amazonaws.iotfleetwise#InvalidNodeException":
|
|
752
|
-
throw await de_InvalidNodeExceptionRes(parsedOutput, context);
|
|
753
|
-
case "InvalidSignalsException":
|
|
754
|
-
case "com.amazonaws.iotfleetwise#InvalidSignalsException":
|
|
755
|
-
throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
|
|
756
|
-
case "LimitExceededException":
|
|
757
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
758
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ThrottlingException":
|
|
760
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
761
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ValidationException":
|
|
763
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
764
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
|
-
default:
|
|
766
|
-
const parsedBody = parsedOutput.body;
|
|
767
|
-
return throwDefaultError({
|
|
768
|
-
output,
|
|
769
|
-
parsedBody,
|
|
770
|
-
errorCode,
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
};
|
|
774
|
-
const de_CreateVehicleCommand = async (output, context) => {
|
|
775
|
-
if (output.statusCode >= 300) {
|
|
776
|
-
return de_CreateVehicleCommandError(output, context);
|
|
777
|
-
}
|
|
778
|
-
const data = await parseBody(output.body, context);
|
|
779
|
-
let contents = {};
|
|
780
|
-
contents = (0, smithy_client_1._json)(data);
|
|
781
|
-
const response = {
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
...contents,
|
|
784
|
-
};
|
|
785
|
-
return response;
|
|
786
|
-
};
|
|
787
|
-
exports.de_CreateVehicleCommand = de_CreateVehicleCommand;
|
|
788
|
-
const de_CreateVehicleCommandError = async (output, context) => {
|
|
789
|
-
const parsedOutput = {
|
|
790
|
-
...output,
|
|
791
|
-
body: await parseErrorBody(output.body, context),
|
|
792
|
-
};
|
|
793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
|
-
switch (errorCode) {
|
|
795
|
-
case "AccessDeniedException":
|
|
796
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
797
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ConflictException":
|
|
799
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
800
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
801
|
-
case "InternalServerException":
|
|
802
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
803
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
804
|
-
case "LimitExceededException":
|
|
805
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
806
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ResourceNotFoundException":
|
|
808
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
|
-
case "ThrottlingException":
|
|
811
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
812
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ValidationException":
|
|
814
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
815
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
816
|
-
default:
|
|
817
|
-
const parsedBody = parsedOutput.body;
|
|
818
|
-
return throwDefaultError({
|
|
819
|
-
output,
|
|
820
|
-
parsedBody,
|
|
821
|
-
errorCode,
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
|
-
const de_DeleteCampaignCommand = async (output, context) => {
|
|
826
|
-
if (output.statusCode >= 300) {
|
|
827
|
-
return de_DeleteCampaignCommandError(output, context);
|
|
828
|
-
}
|
|
829
|
-
const data = await parseBody(output.body, context);
|
|
830
|
-
let contents = {};
|
|
831
|
-
contents = (0, smithy_client_1._json)(data);
|
|
832
|
-
const response = {
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
...contents,
|
|
835
|
-
};
|
|
836
|
-
return response;
|
|
837
|
-
};
|
|
838
|
-
exports.de_DeleteCampaignCommand = de_DeleteCampaignCommand;
|
|
839
|
-
const de_DeleteCampaignCommandError = async (output, context) => {
|
|
840
|
-
const parsedOutput = {
|
|
841
|
-
...output,
|
|
842
|
-
body: await parseErrorBody(output.body, context),
|
|
843
|
-
};
|
|
844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
|
-
switch (errorCode) {
|
|
846
|
-
case "AccessDeniedException":
|
|
847
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
848
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
849
|
-
case "InternalServerException":
|
|
850
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
851
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ResourceNotFoundException":
|
|
853
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ThrottlingException":
|
|
856
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ValidationException":
|
|
859
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
const de_DeleteDecoderManifestCommand = async (output, context) => {
|
|
871
|
-
if (output.statusCode >= 300) {
|
|
872
|
-
return de_DeleteDecoderManifestCommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const data = await parseBody(output.body, context);
|
|
875
|
-
let contents = {};
|
|
876
|
-
contents = (0, smithy_client_1._json)(data);
|
|
877
|
-
const response = {
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
...contents,
|
|
880
|
-
};
|
|
881
|
-
return response;
|
|
882
|
-
};
|
|
883
|
-
exports.de_DeleteDecoderManifestCommand = de_DeleteDecoderManifestCommand;
|
|
884
|
-
const de_DeleteDecoderManifestCommandError = async (output, context) => {
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context),
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "AccessDeniedException":
|
|
892
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
893
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ConflictException":
|
|
895
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
896
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
897
|
-
case "InternalServerException":
|
|
898
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
899
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ThrottlingException":
|
|
901
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
902
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ValidationException":
|
|
904
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
906
|
-
default:
|
|
907
|
-
const parsedBody = parsedOutput.body;
|
|
908
|
-
return throwDefaultError({
|
|
909
|
-
output,
|
|
910
|
-
parsedBody,
|
|
911
|
-
errorCode,
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
|
-
const de_DeleteFleetCommand = async (output, context) => {
|
|
916
|
-
if (output.statusCode >= 300) {
|
|
917
|
-
return de_DeleteFleetCommandError(output, context);
|
|
918
|
-
}
|
|
919
|
-
const data = await parseBody(output.body, context);
|
|
920
|
-
let contents = {};
|
|
921
|
-
contents = (0, smithy_client_1._json)(data);
|
|
922
|
-
const response = {
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
...contents,
|
|
925
|
-
};
|
|
926
|
-
return response;
|
|
927
|
-
};
|
|
928
|
-
exports.de_DeleteFleetCommand = de_DeleteFleetCommand;
|
|
929
|
-
const de_DeleteFleetCommandError = async (output, context) => {
|
|
930
|
-
const parsedOutput = {
|
|
931
|
-
...output,
|
|
932
|
-
body: await parseErrorBody(output.body, context),
|
|
933
|
-
};
|
|
934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
|
-
switch (errorCode) {
|
|
936
|
-
case "AccessDeniedException":
|
|
937
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
938
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
939
|
-
case "InternalServerException":
|
|
940
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
941
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ThrottlingException":
|
|
943
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
944
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ValidationException":
|
|
946
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
947
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
948
|
-
default:
|
|
949
|
-
const parsedBody = parsedOutput.body;
|
|
950
|
-
return throwDefaultError({
|
|
951
|
-
output,
|
|
952
|
-
parsedBody,
|
|
953
|
-
errorCode,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
const de_DeleteModelManifestCommand = async (output, context) => {
|
|
958
|
-
if (output.statusCode >= 300) {
|
|
959
|
-
return de_DeleteModelManifestCommandError(output, context);
|
|
960
|
-
}
|
|
961
|
-
const data = await parseBody(output.body, context);
|
|
962
|
-
let contents = {};
|
|
963
|
-
contents = (0, smithy_client_1._json)(data);
|
|
964
|
-
const response = {
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
...contents,
|
|
967
|
-
};
|
|
968
|
-
return response;
|
|
969
|
-
};
|
|
970
|
-
exports.de_DeleteModelManifestCommand = de_DeleteModelManifestCommand;
|
|
971
|
-
const de_DeleteModelManifestCommandError = async (output, context) => {
|
|
972
|
-
const parsedOutput = {
|
|
973
|
-
...output,
|
|
974
|
-
body: await parseErrorBody(output.body, context),
|
|
975
|
-
};
|
|
976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
-
switch (errorCode) {
|
|
978
|
-
case "AccessDeniedException":
|
|
979
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
980
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ConflictException":
|
|
982
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
983
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
984
|
-
case "InternalServerException":
|
|
985
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ThrottlingException":
|
|
988
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
989
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
990
|
-
case "ValidationException":
|
|
991
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
992
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
993
|
-
default:
|
|
994
|
-
const parsedBody = parsedOutput.body;
|
|
995
|
-
return throwDefaultError({
|
|
996
|
-
output,
|
|
997
|
-
parsedBody,
|
|
998
|
-
errorCode,
|
|
999
|
-
});
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
const de_DeleteSignalCatalogCommand = async (output, context) => {
|
|
1003
|
-
if (output.statusCode >= 300) {
|
|
1004
|
-
return de_DeleteSignalCatalogCommandError(output, context);
|
|
1005
|
-
}
|
|
1006
|
-
const data = await parseBody(output.body, context);
|
|
1007
|
-
let contents = {};
|
|
1008
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1009
|
-
const response = {
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
...contents,
|
|
1012
|
-
};
|
|
1013
|
-
return response;
|
|
1014
|
-
};
|
|
1015
|
-
exports.de_DeleteSignalCatalogCommand = de_DeleteSignalCatalogCommand;
|
|
1016
|
-
const de_DeleteSignalCatalogCommandError = async (output, context) => {
|
|
1017
|
-
const parsedOutput = {
|
|
1018
|
-
...output,
|
|
1019
|
-
body: await parseErrorBody(output.body, context),
|
|
1020
|
-
};
|
|
1021
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
|
-
switch (errorCode) {
|
|
1023
|
-
case "AccessDeniedException":
|
|
1024
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1025
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ConflictException":
|
|
1027
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
1028
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "InternalServerException":
|
|
1030
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1031
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ThrottlingException":
|
|
1033
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1034
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ValidationException":
|
|
1036
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1037
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1038
|
-
default:
|
|
1039
|
-
const parsedBody = parsedOutput.body;
|
|
1040
|
-
return throwDefaultError({
|
|
1041
|
-
output,
|
|
1042
|
-
parsedBody,
|
|
1043
|
-
errorCode,
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
};
|
|
1047
|
-
const de_DeleteVehicleCommand = async (output, context) => {
|
|
1048
|
-
if (output.statusCode >= 300) {
|
|
1049
|
-
return de_DeleteVehicleCommandError(output, context);
|
|
1050
|
-
}
|
|
1051
|
-
const data = await parseBody(output.body, context);
|
|
1052
|
-
let contents = {};
|
|
1053
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1054
|
-
const response = {
|
|
1055
|
-
$metadata: deserializeMetadata(output),
|
|
1056
|
-
...contents,
|
|
1057
|
-
};
|
|
1058
|
-
return response;
|
|
1059
|
-
};
|
|
1060
|
-
exports.de_DeleteVehicleCommand = de_DeleteVehicleCommand;
|
|
1061
|
-
const de_DeleteVehicleCommandError = async (output, context) => {
|
|
1062
|
-
const parsedOutput = {
|
|
1063
|
-
...output,
|
|
1064
|
-
body: await parseErrorBody(output.body, context),
|
|
1065
|
-
};
|
|
1066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1067
|
-
switch (errorCode) {
|
|
1068
|
-
case "AccessDeniedException":
|
|
1069
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1070
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "InternalServerException":
|
|
1072
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1073
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ThrottlingException":
|
|
1075
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ValidationException":
|
|
1078
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
const de_DisassociateVehicleFleetCommand = async (output, context) => {
|
|
1090
|
-
if (output.statusCode >= 300) {
|
|
1091
|
-
return de_DisassociateVehicleFleetCommandError(output, context);
|
|
1092
|
-
}
|
|
1093
|
-
const data = await parseBody(output.body, context);
|
|
1094
|
-
let contents = {};
|
|
1095
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1096
|
-
const response = {
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
...contents,
|
|
1099
|
-
};
|
|
1100
|
-
return response;
|
|
1101
|
-
};
|
|
1102
|
-
exports.de_DisassociateVehicleFleetCommand = de_DisassociateVehicleFleetCommand;
|
|
1103
|
-
const de_DisassociateVehicleFleetCommandError = async (output, context) => {
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "AccessDeniedException":
|
|
1111
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1112
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "InternalServerException":
|
|
1114
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1115
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ResourceNotFoundException":
|
|
1117
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1118
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ThrottlingException":
|
|
1120
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1121
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ValidationException":
|
|
1123
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1124
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1125
|
-
default:
|
|
1126
|
-
const parsedBody = parsedOutput.body;
|
|
1127
|
-
return throwDefaultError({
|
|
1128
|
-
output,
|
|
1129
|
-
parsedBody,
|
|
1130
|
-
errorCode,
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
};
|
|
1134
|
-
const de_GetCampaignCommand = async (output, context) => {
|
|
1135
|
-
if (output.statusCode >= 300) {
|
|
1136
|
-
return de_GetCampaignCommandError(output, context);
|
|
1137
|
-
}
|
|
1138
|
-
const data = await parseBody(output.body, context);
|
|
1139
|
-
let contents = {};
|
|
1140
|
-
contents = de_GetCampaignResponse(data, context);
|
|
1141
|
-
const response = {
|
|
1142
|
-
$metadata: deserializeMetadata(output),
|
|
1143
|
-
...contents,
|
|
1144
|
-
};
|
|
1145
|
-
return response;
|
|
1146
|
-
};
|
|
1147
|
-
exports.de_GetCampaignCommand = de_GetCampaignCommand;
|
|
1148
|
-
const de_GetCampaignCommandError = async (output, context) => {
|
|
1149
|
-
const parsedOutput = {
|
|
1150
|
-
...output,
|
|
1151
|
-
body: await parseErrorBody(output.body, context),
|
|
1152
|
-
};
|
|
1153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
|
-
switch (errorCode) {
|
|
1155
|
-
case "AccessDeniedException":
|
|
1156
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1157
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "InternalServerException":
|
|
1159
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1160
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ResourceNotFoundException":
|
|
1162
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1163
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ThrottlingException":
|
|
1165
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1166
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ValidationException":
|
|
1168
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1169
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1170
|
-
default:
|
|
1171
|
-
const parsedBody = parsedOutput.body;
|
|
1172
|
-
return throwDefaultError({
|
|
1173
|
-
output,
|
|
1174
|
-
parsedBody,
|
|
1175
|
-
errorCode,
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
const de_GetDecoderManifestCommand = async (output, context) => {
|
|
1180
|
-
if (output.statusCode >= 300) {
|
|
1181
|
-
return de_GetDecoderManifestCommandError(output, context);
|
|
1182
|
-
}
|
|
1183
|
-
const data = await parseBody(output.body, context);
|
|
1184
|
-
let contents = {};
|
|
1185
|
-
contents = de_GetDecoderManifestResponse(data, context);
|
|
1186
|
-
const response = {
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
...contents,
|
|
1189
|
-
};
|
|
1190
|
-
return response;
|
|
1191
|
-
};
|
|
1192
|
-
exports.de_GetDecoderManifestCommand = de_GetDecoderManifestCommand;
|
|
1193
|
-
const de_GetDecoderManifestCommandError = async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context),
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ResourceNotFoundException":
|
|
1207
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ThrottlingException":
|
|
1210
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1211
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ValidationException":
|
|
1213
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1214
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody,
|
|
1220
|
-
errorCode,
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
const de_GetEncryptionConfigurationCommand = async (output, context) => {
|
|
1225
|
-
if (output.statusCode >= 300) {
|
|
1226
|
-
return de_GetEncryptionConfigurationCommandError(output, context);
|
|
1227
|
-
}
|
|
1228
|
-
const data = await parseBody(output.body, context);
|
|
1229
|
-
let contents = {};
|
|
1230
|
-
contents = de_GetEncryptionConfigurationResponse(data, context);
|
|
1231
|
-
const response = {
|
|
1232
|
-
$metadata: deserializeMetadata(output),
|
|
1233
|
-
...contents,
|
|
1234
|
-
};
|
|
1235
|
-
return response;
|
|
1236
|
-
};
|
|
1237
|
-
exports.de_GetEncryptionConfigurationCommand = de_GetEncryptionConfigurationCommand;
|
|
1238
|
-
const de_GetEncryptionConfigurationCommandError = async (output, context) => {
|
|
1239
|
-
const parsedOutput = {
|
|
1240
|
-
...output,
|
|
1241
|
-
body: await parseErrorBody(output.body, context),
|
|
1242
|
-
};
|
|
1243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
-
switch (errorCode) {
|
|
1245
|
-
case "AccessDeniedException":
|
|
1246
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1247
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "InternalServerException":
|
|
1249
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1250
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ResourceNotFoundException":
|
|
1252
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1253
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ThrottlingException":
|
|
1255
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1256
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ValidationException":
|
|
1258
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1260
|
-
default:
|
|
1261
|
-
const parsedBody = parsedOutput.body;
|
|
1262
|
-
return throwDefaultError({
|
|
1263
|
-
output,
|
|
1264
|
-
parsedBody,
|
|
1265
|
-
errorCode,
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
};
|
|
1269
|
-
const de_GetFleetCommand = async (output, context) => {
|
|
1270
|
-
if (output.statusCode >= 300) {
|
|
1271
|
-
return de_GetFleetCommandError(output, context);
|
|
1272
|
-
}
|
|
1273
|
-
const data = await parseBody(output.body, context);
|
|
1274
|
-
let contents = {};
|
|
1275
|
-
contents = de_GetFleetResponse(data, context);
|
|
1276
|
-
const response = {
|
|
1277
|
-
$metadata: deserializeMetadata(output),
|
|
1278
|
-
...contents,
|
|
1279
|
-
};
|
|
1280
|
-
return response;
|
|
1281
|
-
};
|
|
1282
|
-
exports.de_GetFleetCommand = de_GetFleetCommand;
|
|
1283
|
-
const de_GetFleetCommandError = async (output, context) => {
|
|
1284
|
-
const parsedOutput = {
|
|
1285
|
-
...output,
|
|
1286
|
-
body: await parseErrorBody(output.body, context),
|
|
1287
|
-
};
|
|
1288
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1289
|
-
switch (errorCode) {
|
|
1290
|
-
case "AccessDeniedException":
|
|
1291
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1292
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "InternalServerException":
|
|
1294
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1295
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ResourceNotFoundException":
|
|
1297
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1298
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ThrottlingException":
|
|
1300
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1301
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ValidationException":
|
|
1303
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1304
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1305
|
-
default:
|
|
1306
|
-
const parsedBody = parsedOutput.body;
|
|
1307
|
-
return throwDefaultError({
|
|
1308
|
-
output,
|
|
1309
|
-
parsedBody,
|
|
1310
|
-
errorCode,
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
};
|
|
1314
|
-
const de_GetLoggingOptionsCommand = async (output, context) => {
|
|
1315
|
-
if (output.statusCode >= 300) {
|
|
1316
|
-
return de_GetLoggingOptionsCommandError(output, context);
|
|
1317
|
-
}
|
|
1318
|
-
const data = await parseBody(output.body, context);
|
|
1319
|
-
let contents = {};
|
|
1320
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1321
|
-
const response = {
|
|
1322
|
-
$metadata: deserializeMetadata(output),
|
|
1323
|
-
...contents,
|
|
1324
|
-
};
|
|
1325
|
-
return response;
|
|
1326
|
-
};
|
|
1327
|
-
exports.de_GetLoggingOptionsCommand = de_GetLoggingOptionsCommand;
|
|
1328
|
-
const de_GetLoggingOptionsCommandError = async (output, context) => {
|
|
1329
|
-
const parsedOutput = {
|
|
1330
|
-
...output,
|
|
1331
|
-
body: await parseErrorBody(output.body, context),
|
|
1332
|
-
};
|
|
1333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
-
switch (errorCode) {
|
|
1335
|
-
case "AccessDeniedException":
|
|
1336
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1337
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InternalServerException":
|
|
1339
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "ThrottlingException":
|
|
1342
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1343
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1344
|
-
default:
|
|
1345
|
-
const parsedBody = parsedOutput.body;
|
|
1346
|
-
return throwDefaultError({
|
|
1347
|
-
output,
|
|
1348
|
-
parsedBody,
|
|
1349
|
-
errorCode,
|
|
1350
|
-
});
|
|
1351
|
-
}
|
|
1352
|
-
};
|
|
1353
|
-
const de_GetModelManifestCommand = async (output, context) => {
|
|
1354
|
-
if (output.statusCode >= 300) {
|
|
1355
|
-
return de_GetModelManifestCommandError(output, context);
|
|
1356
|
-
}
|
|
1357
|
-
const data = await parseBody(output.body, context);
|
|
1358
|
-
let contents = {};
|
|
1359
|
-
contents = de_GetModelManifestResponse(data, context);
|
|
1360
|
-
const response = {
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
...contents,
|
|
1363
|
-
};
|
|
1364
|
-
return response;
|
|
1365
|
-
};
|
|
1366
|
-
exports.de_GetModelManifestCommand = de_GetModelManifestCommand;
|
|
1367
|
-
const de_GetModelManifestCommandError = async (output, context) => {
|
|
1368
|
-
const parsedOutput = {
|
|
1369
|
-
...output,
|
|
1370
|
-
body: await parseErrorBody(output.body, context),
|
|
1371
|
-
};
|
|
1372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
-
switch (errorCode) {
|
|
1374
|
-
case "AccessDeniedException":
|
|
1375
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1376
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InternalServerException":
|
|
1378
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1379
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ResourceNotFoundException":
|
|
1381
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1382
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ThrottlingException":
|
|
1384
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1385
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ValidationException":
|
|
1387
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode,
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
|
-
const de_GetRegisterAccountStatusCommand = async (output, context) => {
|
|
1399
|
-
if (output.statusCode >= 300) {
|
|
1400
|
-
return de_GetRegisterAccountStatusCommandError(output, context);
|
|
1401
|
-
}
|
|
1402
|
-
const data = await parseBody(output.body, context);
|
|
1403
|
-
let contents = {};
|
|
1404
|
-
contents = de_GetRegisterAccountStatusResponse(data, context);
|
|
1405
|
-
const response = {
|
|
1406
|
-
$metadata: deserializeMetadata(output),
|
|
1407
|
-
...contents,
|
|
1408
|
-
};
|
|
1409
|
-
return response;
|
|
1410
|
-
};
|
|
1411
|
-
exports.de_GetRegisterAccountStatusCommand = de_GetRegisterAccountStatusCommand;
|
|
1412
|
-
const de_GetRegisterAccountStatusCommandError = async (output, context) => {
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context),
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "AccessDeniedException":
|
|
1420
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "InternalServerException":
|
|
1423
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1424
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ResourceNotFoundException":
|
|
1426
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ThrottlingException":
|
|
1429
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ValidationException":
|
|
1432
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1434
|
-
default:
|
|
1435
|
-
const parsedBody = parsedOutput.body;
|
|
1436
|
-
return throwDefaultError({
|
|
1437
|
-
output,
|
|
1438
|
-
parsedBody,
|
|
1439
|
-
errorCode,
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
};
|
|
1443
|
-
const de_GetSignalCatalogCommand = async (output, context) => {
|
|
1444
|
-
if (output.statusCode >= 300) {
|
|
1445
|
-
return de_GetSignalCatalogCommandError(output, context);
|
|
1446
|
-
}
|
|
1447
|
-
const data = await parseBody(output.body, context);
|
|
1448
|
-
let contents = {};
|
|
1449
|
-
contents = de_GetSignalCatalogResponse(data, context);
|
|
1450
|
-
const response = {
|
|
1451
|
-
$metadata: deserializeMetadata(output),
|
|
1452
|
-
...contents,
|
|
1453
|
-
};
|
|
1454
|
-
return response;
|
|
1455
|
-
};
|
|
1456
|
-
exports.de_GetSignalCatalogCommand = de_GetSignalCatalogCommand;
|
|
1457
|
-
const de_GetSignalCatalogCommandError = async (output, context) => {
|
|
1458
|
-
const parsedOutput = {
|
|
1459
|
-
...output,
|
|
1460
|
-
body: await parseErrorBody(output.body, context),
|
|
1461
|
-
};
|
|
1462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
-
switch (errorCode) {
|
|
1464
|
-
case "AccessDeniedException":
|
|
1465
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "InternalServerException":
|
|
1468
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ResourceNotFoundException":
|
|
1471
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ThrottlingException":
|
|
1474
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ValidationException":
|
|
1477
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1479
|
-
default:
|
|
1480
|
-
const parsedBody = parsedOutput.body;
|
|
1481
|
-
return throwDefaultError({
|
|
1482
|
-
output,
|
|
1483
|
-
parsedBody,
|
|
1484
|
-
errorCode,
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
};
|
|
1488
|
-
const de_GetVehicleCommand = async (output, context) => {
|
|
1489
|
-
if (output.statusCode >= 300) {
|
|
1490
|
-
return de_GetVehicleCommandError(output, context);
|
|
1491
|
-
}
|
|
1492
|
-
const data = await parseBody(output.body, context);
|
|
1493
|
-
let contents = {};
|
|
1494
|
-
contents = de_GetVehicleResponse(data, context);
|
|
1495
|
-
const response = {
|
|
1496
|
-
$metadata: deserializeMetadata(output),
|
|
1497
|
-
...contents,
|
|
1498
|
-
};
|
|
1499
|
-
return response;
|
|
1500
|
-
};
|
|
1501
|
-
exports.de_GetVehicleCommand = de_GetVehicleCommand;
|
|
1502
|
-
const de_GetVehicleCommandError = async (output, context) => {
|
|
1503
|
-
const parsedOutput = {
|
|
1504
|
-
...output,
|
|
1505
|
-
body: await parseErrorBody(output.body, context),
|
|
1506
|
-
};
|
|
1507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
|
-
switch (errorCode) {
|
|
1509
|
-
case "AccessDeniedException":
|
|
1510
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "InternalServerException":
|
|
1513
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1514
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ResourceNotFoundException":
|
|
1516
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ThrottlingException":
|
|
1519
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "ValidationException":
|
|
1522
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1524
|
-
default:
|
|
1525
|
-
const parsedBody = parsedOutput.body;
|
|
1526
|
-
return throwDefaultError({
|
|
1527
|
-
output,
|
|
1528
|
-
parsedBody,
|
|
1529
|
-
errorCode,
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
};
|
|
1533
|
-
const de_GetVehicleStatusCommand = async (output, context) => {
|
|
1534
|
-
if (output.statusCode >= 300) {
|
|
1535
|
-
return de_GetVehicleStatusCommandError(output, context);
|
|
1536
|
-
}
|
|
1537
|
-
const data = await parseBody(output.body, context);
|
|
1538
|
-
let contents = {};
|
|
1539
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1540
|
-
const response = {
|
|
1541
|
-
$metadata: deserializeMetadata(output),
|
|
1542
|
-
...contents,
|
|
1543
|
-
};
|
|
1544
|
-
return response;
|
|
1545
|
-
};
|
|
1546
|
-
exports.de_GetVehicleStatusCommand = de_GetVehicleStatusCommand;
|
|
1547
|
-
const de_GetVehicleStatusCommandError = async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context),
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "AccessDeniedException":
|
|
1555
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1556
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "InternalServerException":
|
|
1558
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1559
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ResourceNotFoundException":
|
|
1561
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ThrottlingException":
|
|
1564
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1565
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ValidationException":
|
|
1567
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1568
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1569
|
-
default:
|
|
1570
|
-
const parsedBody = parsedOutput.body;
|
|
1571
|
-
return throwDefaultError({
|
|
1572
|
-
output,
|
|
1573
|
-
parsedBody,
|
|
1574
|
-
errorCode,
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
};
|
|
1578
|
-
const de_ImportDecoderManifestCommand = async (output, context) => {
|
|
1579
|
-
if (output.statusCode >= 300) {
|
|
1580
|
-
return de_ImportDecoderManifestCommandError(output, context);
|
|
1581
|
-
}
|
|
1582
|
-
const data = await parseBody(output.body, context);
|
|
1583
|
-
let contents = {};
|
|
1584
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1585
|
-
const response = {
|
|
1586
|
-
$metadata: deserializeMetadata(output),
|
|
1587
|
-
...contents,
|
|
1588
|
-
};
|
|
1589
|
-
return response;
|
|
1590
|
-
};
|
|
1591
|
-
exports.de_ImportDecoderManifestCommand = de_ImportDecoderManifestCommand;
|
|
1592
|
-
const de_ImportDecoderManifestCommandError = async (output, context) => {
|
|
1593
|
-
const parsedOutput = {
|
|
1594
|
-
...output,
|
|
1595
|
-
body: await parseErrorBody(output.body, context),
|
|
1596
|
-
};
|
|
1597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
|
-
switch (errorCode) {
|
|
1599
|
-
case "AccessDeniedException":
|
|
1600
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1601
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1602
|
-
case "ConflictException":
|
|
1603
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
1604
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "DecoderManifestValidationException":
|
|
1606
|
-
case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
|
|
1607
|
-
throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "InternalServerException":
|
|
1609
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1610
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "InvalidSignalsException":
|
|
1612
|
-
case "com.amazonaws.iotfleetwise#InvalidSignalsException":
|
|
1613
|
-
throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ResourceNotFoundException":
|
|
1615
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ThrottlingException":
|
|
1618
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1619
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "ValidationException":
|
|
1621
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1622
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1623
|
-
default:
|
|
1624
|
-
const parsedBody = parsedOutput.body;
|
|
1625
|
-
return throwDefaultError({
|
|
1626
|
-
output,
|
|
1627
|
-
parsedBody,
|
|
1628
|
-
errorCode,
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
const de_ImportSignalCatalogCommand = async (output, context) => {
|
|
1633
|
-
if (output.statusCode >= 300) {
|
|
1634
|
-
return de_ImportSignalCatalogCommandError(output, context);
|
|
1635
|
-
}
|
|
1636
|
-
const data = await parseBody(output.body, context);
|
|
1637
|
-
let contents = {};
|
|
1638
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1639
|
-
const response = {
|
|
1640
|
-
$metadata: deserializeMetadata(output),
|
|
1641
|
-
...contents,
|
|
1642
|
-
};
|
|
1643
|
-
return response;
|
|
1644
|
-
};
|
|
1645
|
-
exports.de_ImportSignalCatalogCommand = de_ImportSignalCatalogCommand;
|
|
1646
|
-
const de_ImportSignalCatalogCommandError = async (output, context) => {
|
|
1647
|
-
const parsedOutput = {
|
|
1648
|
-
...output,
|
|
1649
|
-
body: await parseErrorBody(output.body, context),
|
|
1650
|
-
};
|
|
1651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1652
|
-
switch (errorCode) {
|
|
1653
|
-
case "AccessDeniedException":
|
|
1654
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1655
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ConflictException":
|
|
1657
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
1658
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "InternalServerException":
|
|
1660
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1661
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "InvalidSignalsException":
|
|
1663
|
-
case "com.amazonaws.iotfleetwise#InvalidSignalsException":
|
|
1664
|
-
throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "LimitExceededException":
|
|
1666
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
1667
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ResourceNotFoundException":
|
|
1669
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ThrottlingException":
|
|
1672
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1673
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ValidationException":
|
|
1675
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1676
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1677
|
-
default:
|
|
1678
|
-
const parsedBody = parsedOutput.body;
|
|
1679
|
-
return throwDefaultError({
|
|
1680
|
-
output,
|
|
1681
|
-
parsedBody,
|
|
1682
|
-
errorCode,
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
};
|
|
1686
|
-
const de_ListCampaignsCommand = async (output, context) => {
|
|
1687
|
-
if (output.statusCode >= 300) {
|
|
1688
|
-
return de_ListCampaignsCommandError(output, context);
|
|
1689
|
-
}
|
|
1690
|
-
const data = await parseBody(output.body, context);
|
|
1691
|
-
let contents = {};
|
|
1692
|
-
contents = de_ListCampaignsResponse(data, context);
|
|
1693
|
-
const response = {
|
|
1694
|
-
$metadata: deserializeMetadata(output),
|
|
1695
|
-
...contents,
|
|
1696
|
-
};
|
|
1697
|
-
return response;
|
|
1698
|
-
};
|
|
1699
|
-
exports.de_ListCampaignsCommand = de_ListCampaignsCommand;
|
|
1700
|
-
const de_ListCampaignsCommandError = async (output, context) => {
|
|
1701
|
-
const parsedOutput = {
|
|
1702
|
-
...output,
|
|
1703
|
-
body: await parseErrorBody(output.body, context),
|
|
1704
|
-
};
|
|
1705
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1706
|
-
switch (errorCode) {
|
|
1707
|
-
case "AccessDeniedException":
|
|
1708
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1709
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "InternalServerException":
|
|
1711
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1712
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ThrottlingException":
|
|
1714
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1715
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "ValidationException":
|
|
1717
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1718
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
return throwDefaultError({
|
|
1722
|
-
output,
|
|
1723
|
-
parsedBody,
|
|
1724
|
-
errorCode,
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
};
|
|
1728
|
-
const de_ListDecoderManifestNetworkInterfacesCommand = async (output, context) => {
|
|
1729
|
-
if (output.statusCode >= 300) {
|
|
1730
|
-
return de_ListDecoderManifestNetworkInterfacesCommandError(output, context);
|
|
1731
|
-
}
|
|
1732
|
-
const data = await parseBody(output.body, context);
|
|
1733
|
-
let contents = {};
|
|
1734
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1735
|
-
const response = {
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
...contents,
|
|
1738
|
-
};
|
|
1739
|
-
return response;
|
|
1740
|
-
};
|
|
1741
|
-
exports.de_ListDecoderManifestNetworkInterfacesCommand = de_ListDecoderManifestNetworkInterfacesCommand;
|
|
1742
|
-
const de_ListDecoderManifestNetworkInterfacesCommandError = async (output, context) => {
|
|
1743
|
-
const parsedOutput = {
|
|
1744
|
-
...output,
|
|
1745
|
-
body: await parseErrorBody(output.body, context),
|
|
1746
|
-
};
|
|
1747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
-
switch (errorCode) {
|
|
1749
|
-
case "AccessDeniedException":
|
|
1750
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1751
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "InternalServerException":
|
|
1753
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1754
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "ResourceNotFoundException":
|
|
1756
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1757
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "ThrottlingException":
|
|
1759
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1760
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "ValidationException":
|
|
1762
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1763
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1764
|
-
default:
|
|
1765
|
-
const parsedBody = parsedOutput.body;
|
|
1766
|
-
return throwDefaultError({
|
|
1767
|
-
output,
|
|
1768
|
-
parsedBody,
|
|
1769
|
-
errorCode,
|
|
1770
|
-
});
|
|
1771
|
-
}
|
|
1772
|
-
};
|
|
1773
|
-
const de_ListDecoderManifestsCommand = async (output, context) => {
|
|
1774
|
-
if (output.statusCode >= 300) {
|
|
1775
|
-
return de_ListDecoderManifestsCommandError(output, context);
|
|
1776
|
-
}
|
|
1777
|
-
const data = await parseBody(output.body, context);
|
|
1778
|
-
let contents = {};
|
|
1779
|
-
contents = de_ListDecoderManifestsResponse(data, context);
|
|
1780
|
-
const response = {
|
|
1781
|
-
$metadata: deserializeMetadata(output),
|
|
1782
|
-
...contents,
|
|
1783
|
-
};
|
|
1784
|
-
return response;
|
|
1785
|
-
};
|
|
1786
|
-
exports.de_ListDecoderManifestsCommand = de_ListDecoderManifestsCommand;
|
|
1787
|
-
const de_ListDecoderManifestsCommandError = async (output, context) => {
|
|
1788
|
-
const parsedOutput = {
|
|
1789
|
-
...output,
|
|
1790
|
-
body: await parseErrorBody(output.body, context),
|
|
1791
|
-
};
|
|
1792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
-
switch (errorCode) {
|
|
1794
|
-
case "AccessDeniedException":
|
|
1795
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1796
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "InternalServerException":
|
|
1798
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1799
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "ThrottlingException":
|
|
1801
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1802
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "ValidationException":
|
|
1804
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1805
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1806
|
-
default:
|
|
1807
|
-
const parsedBody = parsedOutput.body;
|
|
1808
|
-
return throwDefaultError({
|
|
1809
|
-
output,
|
|
1810
|
-
parsedBody,
|
|
1811
|
-
errorCode,
|
|
1812
|
-
});
|
|
1813
|
-
}
|
|
1814
|
-
};
|
|
1815
|
-
const de_ListDecoderManifestSignalsCommand = async (output, context) => {
|
|
1816
|
-
if (output.statusCode >= 300) {
|
|
1817
|
-
return de_ListDecoderManifestSignalsCommandError(output, context);
|
|
1818
|
-
}
|
|
1819
|
-
const data = await parseBody(output.body, context);
|
|
1820
|
-
let contents = {};
|
|
1821
|
-
contents = de_ListDecoderManifestSignalsResponse(data, context);
|
|
1822
|
-
const response = {
|
|
1823
|
-
$metadata: deserializeMetadata(output),
|
|
1824
|
-
...contents,
|
|
1825
|
-
};
|
|
1826
|
-
return response;
|
|
1827
|
-
};
|
|
1828
|
-
exports.de_ListDecoderManifestSignalsCommand = de_ListDecoderManifestSignalsCommand;
|
|
1829
|
-
const de_ListDecoderManifestSignalsCommandError = async (output, context) => {
|
|
1830
|
-
const parsedOutput = {
|
|
1831
|
-
...output,
|
|
1832
|
-
body: await parseErrorBody(output.body, context),
|
|
1833
|
-
};
|
|
1834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
|
-
switch (errorCode) {
|
|
1836
|
-
case "AccessDeniedException":
|
|
1837
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1838
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "InternalServerException":
|
|
1840
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1841
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ResourceNotFoundException":
|
|
1843
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1844
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "ThrottlingException":
|
|
1846
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1847
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ValidationException":
|
|
1849
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1850
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1851
|
-
default:
|
|
1852
|
-
const parsedBody = parsedOutput.body;
|
|
1853
|
-
return throwDefaultError({
|
|
1854
|
-
output,
|
|
1855
|
-
parsedBody,
|
|
1856
|
-
errorCode,
|
|
1857
|
-
});
|
|
1858
|
-
}
|
|
1859
|
-
};
|
|
1860
|
-
const de_ListFleetsCommand = async (output, context) => {
|
|
1861
|
-
if (output.statusCode >= 300) {
|
|
1862
|
-
return de_ListFleetsCommandError(output, context);
|
|
1863
|
-
}
|
|
1864
|
-
const data = await parseBody(output.body, context);
|
|
1865
|
-
let contents = {};
|
|
1866
|
-
contents = de_ListFleetsResponse(data, context);
|
|
1867
|
-
const response = {
|
|
1868
|
-
$metadata: deserializeMetadata(output),
|
|
1869
|
-
...contents,
|
|
1870
|
-
};
|
|
1871
|
-
return response;
|
|
1872
|
-
};
|
|
1873
|
-
exports.de_ListFleetsCommand = de_ListFleetsCommand;
|
|
1874
|
-
const de_ListFleetsCommandError = async (output, context) => {
|
|
1875
|
-
const parsedOutput = {
|
|
1876
|
-
...output,
|
|
1877
|
-
body: await parseErrorBody(output.body, context),
|
|
1878
|
-
};
|
|
1879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
|
-
switch (errorCode) {
|
|
1881
|
-
case "AccessDeniedException":
|
|
1882
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1883
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "InternalServerException":
|
|
1885
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1886
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "ResourceNotFoundException":
|
|
1888
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1889
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "ThrottlingException":
|
|
1891
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1892
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ValidationException":
|
|
1894
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1895
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1896
|
-
default:
|
|
1897
|
-
const parsedBody = parsedOutput.body;
|
|
1898
|
-
return throwDefaultError({
|
|
1899
|
-
output,
|
|
1900
|
-
parsedBody,
|
|
1901
|
-
errorCode,
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
};
|
|
1905
|
-
const de_ListFleetsForVehicleCommand = async (output, context) => {
|
|
1906
|
-
if (output.statusCode >= 300) {
|
|
1907
|
-
return de_ListFleetsForVehicleCommandError(output, context);
|
|
1908
|
-
}
|
|
1909
|
-
const data = await parseBody(output.body, context);
|
|
1910
|
-
let contents = {};
|
|
1911
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1912
|
-
const response = {
|
|
1913
|
-
$metadata: deserializeMetadata(output),
|
|
1914
|
-
...contents,
|
|
1915
|
-
};
|
|
1916
|
-
return response;
|
|
1917
|
-
};
|
|
1918
|
-
exports.de_ListFleetsForVehicleCommand = de_ListFleetsForVehicleCommand;
|
|
1919
|
-
const de_ListFleetsForVehicleCommandError = async (output, context) => {
|
|
1920
|
-
const parsedOutput = {
|
|
1921
|
-
...output,
|
|
1922
|
-
body: await parseErrorBody(output.body, context),
|
|
1923
|
-
};
|
|
1924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
|
-
switch (errorCode) {
|
|
1926
|
-
case "AccessDeniedException":
|
|
1927
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1928
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "InternalServerException":
|
|
1930
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1931
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "ResourceNotFoundException":
|
|
1933
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1934
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1935
|
-
case "ThrottlingException":
|
|
1936
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1937
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "ValidationException":
|
|
1939
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1940
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1941
|
-
default:
|
|
1942
|
-
const parsedBody = parsedOutput.body;
|
|
1943
|
-
return throwDefaultError({
|
|
1944
|
-
output,
|
|
1945
|
-
parsedBody,
|
|
1946
|
-
errorCode,
|
|
1947
|
-
});
|
|
1948
|
-
}
|
|
1949
|
-
};
|
|
1950
|
-
const de_ListModelManifestNodesCommand = async (output, context) => {
|
|
1951
|
-
if (output.statusCode >= 300) {
|
|
1952
|
-
return de_ListModelManifestNodesCommandError(output, context);
|
|
1953
|
-
}
|
|
1954
|
-
const data = await parseBody(output.body, context);
|
|
1955
|
-
let contents = {};
|
|
1956
|
-
contents = de_ListModelManifestNodesResponse(data, context);
|
|
1957
|
-
const response = {
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
...contents,
|
|
1960
|
-
};
|
|
1961
|
-
return response;
|
|
1962
|
-
};
|
|
1963
|
-
exports.de_ListModelManifestNodesCommand = de_ListModelManifestNodesCommand;
|
|
1964
|
-
const de_ListModelManifestNodesCommandError = async (output, context) => {
|
|
1965
|
-
const parsedOutput = {
|
|
1966
|
-
...output,
|
|
1967
|
-
body: await parseErrorBody(output.body, context),
|
|
1968
|
-
};
|
|
1969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
|
-
switch (errorCode) {
|
|
1971
|
-
case "AccessDeniedException":
|
|
1972
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1973
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1974
|
-
case "InternalServerException":
|
|
1975
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1976
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "LimitExceededException":
|
|
1978
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
1979
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ResourceNotFoundException":
|
|
1981
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "ThrottlingException":
|
|
1984
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1985
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ValidationException":
|
|
1987
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1988
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1989
|
-
default:
|
|
1990
|
-
const parsedBody = parsedOutput.body;
|
|
1991
|
-
return throwDefaultError({
|
|
1992
|
-
output,
|
|
1993
|
-
parsedBody,
|
|
1994
|
-
errorCode,
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
};
|
|
1998
|
-
const de_ListModelManifestsCommand = async (output, context) => {
|
|
1999
|
-
if (output.statusCode >= 300) {
|
|
2000
|
-
return de_ListModelManifestsCommandError(output, context);
|
|
2001
|
-
}
|
|
2002
|
-
const data = await parseBody(output.body, context);
|
|
2003
|
-
let contents = {};
|
|
2004
|
-
contents = de_ListModelManifestsResponse(data, context);
|
|
2005
|
-
const response = {
|
|
2006
|
-
$metadata: deserializeMetadata(output),
|
|
2007
|
-
...contents,
|
|
2008
|
-
};
|
|
2009
|
-
return response;
|
|
2010
|
-
};
|
|
2011
|
-
exports.de_ListModelManifestsCommand = de_ListModelManifestsCommand;
|
|
2012
|
-
const de_ListModelManifestsCommandError = async (output, context) => {
|
|
2013
|
-
const parsedOutput = {
|
|
2014
|
-
...output,
|
|
2015
|
-
body: await parseErrorBody(output.body, context),
|
|
2016
|
-
};
|
|
2017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
|
-
switch (errorCode) {
|
|
2019
|
-
case "AccessDeniedException":
|
|
2020
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2021
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "InternalServerException":
|
|
2023
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2024
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "ThrottlingException":
|
|
2026
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2027
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ValidationException":
|
|
2029
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2031
|
-
default:
|
|
2032
|
-
const parsedBody = parsedOutput.body;
|
|
2033
|
-
return throwDefaultError({
|
|
2034
|
-
output,
|
|
2035
|
-
parsedBody,
|
|
2036
|
-
errorCode,
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
};
|
|
2040
|
-
const de_ListSignalCatalogNodesCommand = async (output, context) => {
|
|
2041
|
-
if (output.statusCode >= 300) {
|
|
2042
|
-
return de_ListSignalCatalogNodesCommandError(output, context);
|
|
2043
|
-
}
|
|
2044
|
-
const data = await parseBody(output.body, context);
|
|
2045
|
-
let contents = {};
|
|
2046
|
-
contents = de_ListSignalCatalogNodesResponse(data, context);
|
|
2047
|
-
const response = {
|
|
2048
|
-
$metadata: deserializeMetadata(output),
|
|
2049
|
-
...contents,
|
|
2050
|
-
};
|
|
2051
|
-
return response;
|
|
2052
|
-
};
|
|
2053
|
-
exports.de_ListSignalCatalogNodesCommand = de_ListSignalCatalogNodesCommand;
|
|
2054
|
-
const de_ListSignalCatalogNodesCommandError = async (output, context) => {
|
|
2055
|
-
const parsedOutput = {
|
|
2056
|
-
...output,
|
|
2057
|
-
body: await parseErrorBody(output.body, context),
|
|
2058
|
-
};
|
|
2059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
|
-
switch (errorCode) {
|
|
2061
|
-
case "AccessDeniedException":
|
|
2062
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2063
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "InternalServerException":
|
|
2065
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "LimitExceededException":
|
|
2068
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
2069
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2070
|
-
case "ResourceNotFoundException":
|
|
2071
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2072
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ThrottlingException":
|
|
2074
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2075
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "ValidationException":
|
|
2077
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2078
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2079
|
-
default:
|
|
2080
|
-
const parsedBody = parsedOutput.body;
|
|
2081
|
-
return throwDefaultError({
|
|
2082
|
-
output,
|
|
2083
|
-
parsedBody,
|
|
2084
|
-
errorCode,
|
|
2085
|
-
});
|
|
2086
|
-
}
|
|
2087
|
-
};
|
|
2088
|
-
const de_ListSignalCatalogsCommand = async (output, context) => {
|
|
2089
|
-
if (output.statusCode >= 300) {
|
|
2090
|
-
return de_ListSignalCatalogsCommandError(output, context);
|
|
2091
|
-
}
|
|
2092
|
-
const data = await parseBody(output.body, context);
|
|
2093
|
-
let contents = {};
|
|
2094
|
-
contents = de_ListSignalCatalogsResponse(data, context);
|
|
2095
|
-
const response = {
|
|
2096
|
-
$metadata: deserializeMetadata(output),
|
|
2097
|
-
...contents,
|
|
2098
|
-
};
|
|
2099
|
-
return response;
|
|
2100
|
-
};
|
|
2101
|
-
exports.de_ListSignalCatalogsCommand = de_ListSignalCatalogsCommand;
|
|
2102
|
-
const de_ListSignalCatalogsCommandError = async (output, context) => {
|
|
2103
|
-
const parsedOutput = {
|
|
2104
|
-
...output,
|
|
2105
|
-
body: await parseErrorBody(output.body, context),
|
|
2106
|
-
};
|
|
2107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
|
-
switch (errorCode) {
|
|
2109
|
-
case "AccessDeniedException":
|
|
2110
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2111
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "InternalServerException":
|
|
2113
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2114
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ThrottlingException":
|
|
2116
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2117
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "ValidationException":
|
|
2119
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2120
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2121
|
-
default:
|
|
2122
|
-
const parsedBody = parsedOutput.body;
|
|
2123
|
-
return throwDefaultError({
|
|
2124
|
-
output,
|
|
2125
|
-
parsedBody,
|
|
2126
|
-
errorCode,
|
|
2127
|
-
});
|
|
2128
|
-
}
|
|
2129
|
-
};
|
|
2130
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2131
|
-
if (output.statusCode >= 300) {
|
|
2132
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2133
|
-
}
|
|
2134
|
-
const data = await parseBody(output.body, context);
|
|
2135
|
-
let contents = {};
|
|
2136
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2137
|
-
const response = {
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
...contents,
|
|
2140
|
-
};
|
|
2141
|
-
return response;
|
|
2142
|
-
};
|
|
2143
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2144
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2145
|
-
const parsedOutput = {
|
|
2146
|
-
...output,
|
|
2147
|
-
body: await parseErrorBody(output.body, context),
|
|
2148
|
-
};
|
|
2149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
|
-
switch (errorCode) {
|
|
2151
|
-
case "AccessDeniedException":
|
|
2152
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2153
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "InternalServerException":
|
|
2155
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2156
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2157
|
-
case "ResourceNotFoundException":
|
|
2158
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2159
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "ThrottlingException":
|
|
2161
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2162
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "ValidationException":
|
|
2164
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2166
|
-
default:
|
|
2167
|
-
const parsedBody = parsedOutput.body;
|
|
2168
|
-
return throwDefaultError({
|
|
2169
|
-
output,
|
|
2170
|
-
parsedBody,
|
|
2171
|
-
errorCode,
|
|
2172
|
-
});
|
|
2173
|
-
}
|
|
2174
|
-
};
|
|
2175
|
-
const de_ListVehiclesCommand = async (output, context) => {
|
|
2176
|
-
if (output.statusCode >= 300) {
|
|
2177
|
-
return de_ListVehiclesCommandError(output, context);
|
|
2178
|
-
}
|
|
2179
|
-
const data = await parseBody(output.body, context);
|
|
2180
|
-
let contents = {};
|
|
2181
|
-
contents = de_ListVehiclesResponse(data, context);
|
|
2182
|
-
const response = {
|
|
2183
|
-
$metadata: deserializeMetadata(output),
|
|
2184
|
-
...contents,
|
|
2185
|
-
};
|
|
2186
|
-
return response;
|
|
2187
|
-
};
|
|
2188
|
-
exports.de_ListVehiclesCommand = de_ListVehiclesCommand;
|
|
2189
|
-
const de_ListVehiclesCommandError = async (output, context) => {
|
|
2190
|
-
const parsedOutput = {
|
|
2191
|
-
...output,
|
|
2192
|
-
body: await parseErrorBody(output.body, context),
|
|
2193
|
-
};
|
|
2194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
|
-
switch (errorCode) {
|
|
2196
|
-
case "AccessDeniedException":
|
|
2197
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2198
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "InternalServerException":
|
|
2200
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2201
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "ThrottlingException":
|
|
2203
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2204
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "ValidationException":
|
|
2206
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2208
|
-
default:
|
|
2209
|
-
const parsedBody = parsedOutput.body;
|
|
2210
|
-
return throwDefaultError({
|
|
2211
|
-
output,
|
|
2212
|
-
parsedBody,
|
|
2213
|
-
errorCode,
|
|
2214
|
-
});
|
|
2215
|
-
}
|
|
2216
|
-
};
|
|
2217
|
-
const de_ListVehiclesInFleetCommand = async (output, context) => {
|
|
2218
|
-
if (output.statusCode >= 300) {
|
|
2219
|
-
return de_ListVehiclesInFleetCommandError(output, context);
|
|
2220
|
-
}
|
|
2221
|
-
const data = await parseBody(output.body, context);
|
|
2222
|
-
let contents = {};
|
|
2223
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2224
|
-
const response = {
|
|
2225
|
-
$metadata: deserializeMetadata(output),
|
|
2226
|
-
...contents,
|
|
2227
|
-
};
|
|
2228
|
-
return response;
|
|
2229
|
-
};
|
|
2230
|
-
exports.de_ListVehiclesInFleetCommand = de_ListVehiclesInFleetCommand;
|
|
2231
|
-
const de_ListVehiclesInFleetCommandError = async (output, context) => {
|
|
2232
|
-
const parsedOutput = {
|
|
2233
|
-
...output,
|
|
2234
|
-
body: await parseErrorBody(output.body, context),
|
|
2235
|
-
};
|
|
2236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
-
switch (errorCode) {
|
|
2238
|
-
case "AccessDeniedException":
|
|
2239
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2240
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "InternalServerException":
|
|
2242
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2243
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ResourceNotFoundException":
|
|
2245
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ThrottlingException":
|
|
2248
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2249
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ValidationException":
|
|
2251
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2252
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode,
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
|
-
const de_PutEncryptionConfigurationCommand = async (output, context) => {
|
|
2263
|
-
if (output.statusCode >= 300) {
|
|
2264
|
-
return de_PutEncryptionConfigurationCommandError(output, context);
|
|
2265
|
-
}
|
|
2266
|
-
const data = await parseBody(output.body, context);
|
|
2267
|
-
let contents = {};
|
|
2268
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2269
|
-
const response = {
|
|
2270
|
-
$metadata: deserializeMetadata(output),
|
|
2271
|
-
...contents,
|
|
2272
|
-
};
|
|
2273
|
-
return response;
|
|
2274
|
-
};
|
|
2275
|
-
exports.de_PutEncryptionConfigurationCommand = de_PutEncryptionConfigurationCommand;
|
|
2276
|
-
const de_PutEncryptionConfigurationCommandError = async (output, context) => {
|
|
2277
|
-
const parsedOutput = {
|
|
2278
|
-
...output,
|
|
2279
|
-
body: await parseErrorBody(output.body, context),
|
|
2280
|
-
};
|
|
2281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
|
-
switch (errorCode) {
|
|
2283
|
-
case "AccessDeniedException":
|
|
2284
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2285
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ConflictException":
|
|
2287
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2288
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "InternalServerException":
|
|
2290
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2291
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "ResourceNotFoundException":
|
|
2293
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ThrottlingException":
|
|
2296
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2297
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "ValidationException":
|
|
2299
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2300
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2301
|
-
default:
|
|
2302
|
-
const parsedBody = parsedOutput.body;
|
|
2303
|
-
return throwDefaultError({
|
|
2304
|
-
output,
|
|
2305
|
-
parsedBody,
|
|
2306
|
-
errorCode,
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
};
|
|
2310
|
-
const de_PutLoggingOptionsCommand = async (output, context) => {
|
|
2311
|
-
if (output.statusCode >= 300) {
|
|
2312
|
-
return de_PutLoggingOptionsCommandError(output, context);
|
|
2313
|
-
}
|
|
2314
|
-
const data = await parseBody(output.body, context);
|
|
2315
|
-
let contents = {};
|
|
2316
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2317
|
-
const response = {
|
|
2318
|
-
$metadata: deserializeMetadata(output),
|
|
2319
|
-
...contents,
|
|
2320
|
-
};
|
|
2321
|
-
return response;
|
|
2322
|
-
};
|
|
2323
|
-
exports.de_PutLoggingOptionsCommand = de_PutLoggingOptionsCommand;
|
|
2324
|
-
const de_PutLoggingOptionsCommandError = async (output, context) => {
|
|
2325
|
-
const parsedOutput = {
|
|
2326
|
-
...output,
|
|
2327
|
-
body: await parseErrorBody(output.body, context),
|
|
2328
|
-
};
|
|
2329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
|
-
switch (errorCode) {
|
|
2331
|
-
case "AccessDeniedException":
|
|
2332
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2333
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "ConflictException":
|
|
2335
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2336
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "InternalServerException":
|
|
2338
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2339
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "ResourceNotFoundException":
|
|
2341
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2342
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "ThrottlingException":
|
|
2344
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2345
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "ValidationException":
|
|
2347
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2348
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2349
|
-
default:
|
|
2350
|
-
const parsedBody = parsedOutput.body;
|
|
2351
|
-
return throwDefaultError({
|
|
2352
|
-
output,
|
|
2353
|
-
parsedBody,
|
|
2354
|
-
errorCode,
|
|
2355
|
-
});
|
|
2356
|
-
}
|
|
2357
|
-
};
|
|
2358
|
-
const de_RegisterAccountCommand = async (output, context) => {
|
|
2359
|
-
if (output.statusCode >= 300) {
|
|
2360
|
-
return de_RegisterAccountCommandError(output, context);
|
|
2361
|
-
}
|
|
2362
|
-
const data = await parseBody(output.body, context);
|
|
2363
|
-
let contents = {};
|
|
2364
|
-
contents = de_RegisterAccountResponse(data, context);
|
|
2365
|
-
const response = {
|
|
2366
|
-
$metadata: deserializeMetadata(output),
|
|
2367
|
-
...contents,
|
|
2368
|
-
};
|
|
2369
|
-
return response;
|
|
2370
|
-
};
|
|
2371
|
-
exports.de_RegisterAccountCommand = de_RegisterAccountCommand;
|
|
2372
|
-
const de_RegisterAccountCommandError = async (output, context) => {
|
|
2373
|
-
const parsedOutput = {
|
|
2374
|
-
...output,
|
|
2375
|
-
body: await parseErrorBody(output.body, context),
|
|
2376
|
-
};
|
|
2377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2378
|
-
switch (errorCode) {
|
|
2379
|
-
case "AccessDeniedException":
|
|
2380
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2381
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ConflictException":
|
|
2383
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2384
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "InternalServerException":
|
|
2386
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2387
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ResourceNotFoundException":
|
|
2389
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "ThrottlingException":
|
|
2392
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2393
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "ValidationException":
|
|
2395
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2396
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2397
|
-
default:
|
|
2398
|
-
const parsedBody = parsedOutput.body;
|
|
2399
|
-
return throwDefaultError({
|
|
2400
|
-
output,
|
|
2401
|
-
parsedBody,
|
|
2402
|
-
errorCode,
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
};
|
|
2406
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2407
|
-
if (output.statusCode >= 300) {
|
|
2408
|
-
return de_TagResourceCommandError(output, context);
|
|
2409
|
-
}
|
|
2410
|
-
const data = await parseBody(output.body, context);
|
|
2411
|
-
let contents = {};
|
|
2412
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2413
|
-
const response = {
|
|
2414
|
-
$metadata: deserializeMetadata(output),
|
|
2415
|
-
...contents,
|
|
2416
|
-
};
|
|
2417
|
-
return response;
|
|
2418
|
-
};
|
|
2419
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2420
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2421
|
-
const parsedOutput = {
|
|
2422
|
-
...output,
|
|
2423
|
-
body: await parseErrorBody(output.body, context),
|
|
2424
|
-
};
|
|
2425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
|
-
switch (errorCode) {
|
|
2427
|
-
case "AccessDeniedException":
|
|
2428
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2429
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "InternalServerException":
|
|
2431
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "ResourceNotFoundException":
|
|
2434
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2435
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "ThrottlingException":
|
|
2437
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2438
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ValidationException":
|
|
2440
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2441
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2442
|
-
default:
|
|
2443
|
-
const parsedBody = parsedOutput.body;
|
|
2444
|
-
return throwDefaultError({
|
|
2445
|
-
output,
|
|
2446
|
-
parsedBody,
|
|
2447
|
-
errorCode,
|
|
2448
|
-
});
|
|
2449
|
-
}
|
|
2450
|
-
};
|
|
2451
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2452
|
-
if (output.statusCode >= 300) {
|
|
2453
|
-
return de_UntagResourceCommandError(output, context);
|
|
2454
|
-
}
|
|
2455
|
-
const data = await parseBody(output.body, context);
|
|
2456
|
-
let contents = {};
|
|
2457
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2458
|
-
const response = {
|
|
2459
|
-
$metadata: deserializeMetadata(output),
|
|
2460
|
-
...contents,
|
|
2461
|
-
};
|
|
2462
|
-
return response;
|
|
2463
|
-
};
|
|
2464
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2465
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2466
|
-
const parsedOutput = {
|
|
2467
|
-
...output,
|
|
2468
|
-
body: await parseErrorBody(output.body, context),
|
|
2469
|
-
};
|
|
2470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2471
|
-
switch (errorCode) {
|
|
2472
|
-
case "AccessDeniedException":
|
|
2473
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2474
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "InternalServerException":
|
|
2476
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "ResourceNotFoundException":
|
|
2479
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "ThrottlingException":
|
|
2482
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2483
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "ValidationException":
|
|
2485
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2487
|
-
default:
|
|
2488
|
-
const parsedBody = parsedOutput.body;
|
|
2489
|
-
return throwDefaultError({
|
|
2490
|
-
output,
|
|
2491
|
-
parsedBody,
|
|
2492
|
-
errorCode,
|
|
2493
|
-
});
|
|
2494
|
-
}
|
|
2495
|
-
};
|
|
2496
|
-
const de_UpdateCampaignCommand = async (output, context) => {
|
|
2497
|
-
if (output.statusCode >= 300) {
|
|
2498
|
-
return de_UpdateCampaignCommandError(output, context);
|
|
2499
|
-
}
|
|
2500
|
-
const data = await parseBody(output.body, context);
|
|
2501
|
-
let contents = {};
|
|
2502
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2503
|
-
const response = {
|
|
2504
|
-
$metadata: deserializeMetadata(output),
|
|
2505
|
-
...contents,
|
|
2506
|
-
};
|
|
2507
|
-
return response;
|
|
2508
|
-
};
|
|
2509
|
-
exports.de_UpdateCampaignCommand = de_UpdateCampaignCommand;
|
|
2510
|
-
const de_UpdateCampaignCommandError = async (output, context) => {
|
|
2511
|
-
const parsedOutput = {
|
|
2512
|
-
...output,
|
|
2513
|
-
body: await parseErrorBody(output.body, context),
|
|
2514
|
-
};
|
|
2515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
|
-
switch (errorCode) {
|
|
2517
|
-
case "AccessDeniedException":
|
|
2518
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2519
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "ConflictException":
|
|
2521
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2522
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "InternalServerException":
|
|
2524
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2525
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "ResourceNotFoundException":
|
|
2527
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2528
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ThrottlingException":
|
|
2530
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2531
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "ValidationException":
|
|
2533
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2535
|
-
default:
|
|
2536
|
-
const parsedBody = parsedOutput.body;
|
|
2537
|
-
return throwDefaultError({
|
|
2538
|
-
output,
|
|
2539
|
-
parsedBody,
|
|
2540
|
-
errorCode,
|
|
2541
|
-
});
|
|
2542
|
-
}
|
|
2543
|
-
};
|
|
2544
|
-
const de_UpdateDecoderManifestCommand = async (output, context) => {
|
|
2545
|
-
if (output.statusCode >= 300) {
|
|
2546
|
-
return de_UpdateDecoderManifestCommandError(output, context);
|
|
2547
|
-
}
|
|
2548
|
-
const data = await parseBody(output.body, context);
|
|
2549
|
-
let contents = {};
|
|
2550
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2551
|
-
const response = {
|
|
2552
|
-
$metadata: deserializeMetadata(output),
|
|
2553
|
-
...contents,
|
|
2554
|
-
};
|
|
2555
|
-
return response;
|
|
2556
|
-
};
|
|
2557
|
-
exports.de_UpdateDecoderManifestCommand = de_UpdateDecoderManifestCommand;
|
|
2558
|
-
const de_UpdateDecoderManifestCommandError = async (output, context) => {
|
|
2559
|
-
const parsedOutput = {
|
|
2560
|
-
...output,
|
|
2561
|
-
body: await parseErrorBody(output.body, context),
|
|
2562
|
-
};
|
|
2563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2564
|
-
switch (errorCode) {
|
|
2565
|
-
case "AccessDeniedException":
|
|
2566
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2567
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ConflictException":
|
|
2569
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2570
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "DecoderManifestValidationException":
|
|
2572
|
-
case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
|
|
2573
|
-
throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "InternalServerException":
|
|
2575
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2576
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "LimitExceededException":
|
|
2578
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
2579
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "ResourceNotFoundException":
|
|
2581
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2582
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2583
|
-
case "ThrottlingException":
|
|
2584
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2585
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2586
|
-
case "ValidationException":
|
|
2587
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2588
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2589
|
-
default:
|
|
2590
|
-
const parsedBody = parsedOutput.body;
|
|
2591
|
-
return throwDefaultError({
|
|
2592
|
-
output,
|
|
2593
|
-
parsedBody,
|
|
2594
|
-
errorCode,
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
};
|
|
2598
|
-
const de_UpdateFleetCommand = async (output, context) => {
|
|
2599
|
-
if (output.statusCode >= 300) {
|
|
2600
|
-
return de_UpdateFleetCommandError(output, context);
|
|
2601
|
-
}
|
|
2602
|
-
const data = await parseBody(output.body, context);
|
|
2603
|
-
let contents = {};
|
|
2604
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2605
|
-
const response = {
|
|
2606
|
-
$metadata: deserializeMetadata(output),
|
|
2607
|
-
...contents,
|
|
2608
|
-
};
|
|
2609
|
-
return response;
|
|
2610
|
-
};
|
|
2611
|
-
exports.de_UpdateFleetCommand = de_UpdateFleetCommand;
|
|
2612
|
-
const de_UpdateFleetCommandError = async (output, context) => {
|
|
2613
|
-
const parsedOutput = {
|
|
2614
|
-
...output,
|
|
2615
|
-
body: await parseErrorBody(output.body, context),
|
|
2616
|
-
};
|
|
2617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
|
-
switch (errorCode) {
|
|
2619
|
-
case "AccessDeniedException":
|
|
2620
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2621
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "ConflictException":
|
|
2623
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2624
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "InternalServerException":
|
|
2626
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2627
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ResourceNotFoundException":
|
|
2629
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ThrottlingException":
|
|
2632
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2633
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "ValidationException":
|
|
2635
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2636
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2637
|
-
default:
|
|
2638
|
-
const parsedBody = parsedOutput.body;
|
|
2639
|
-
return throwDefaultError({
|
|
2640
|
-
output,
|
|
2641
|
-
parsedBody,
|
|
2642
|
-
errorCode,
|
|
2643
|
-
});
|
|
2644
|
-
}
|
|
2645
|
-
};
|
|
2646
|
-
const de_UpdateModelManifestCommand = async (output, context) => {
|
|
2647
|
-
if (output.statusCode >= 300) {
|
|
2648
|
-
return de_UpdateModelManifestCommandError(output, context);
|
|
2649
|
-
}
|
|
2650
|
-
const data = await parseBody(output.body, context);
|
|
2651
|
-
let contents = {};
|
|
2652
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2653
|
-
const response = {
|
|
2654
|
-
$metadata: deserializeMetadata(output),
|
|
2655
|
-
...contents,
|
|
2656
|
-
};
|
|
2657
|
-
return response;
|
|
2658
|
-
};
|
|
2659
|
-
exports.de_UpdateModelManifestCommand = de_UpdateModelManifestCommand;
|
|
2660
|
-
const de_UpdateModelManifestCommandError = async (output, context) => {
|
|
2661
|
-
const parsedOutput = {
|
|
2662
|
-
...output,
|
|
2663
|
-
body: await parseErrorBody(output.body, context),
|
|
2664
|
-
};
|
|
2665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
|
-
switch (errorCode) {
|
|
2667
|
-
case "AccessDeniedException":
|
|
2668
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2669
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "ConflictException":
|
|
2671
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2672
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "InternalServerException":
|
|
2674
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2675
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "InvalidSignalsException":
|
|
2677
|
-
case "com.amazonaws.iotfleetwise#InvalidSignalsException":
|
|
2678
|
-
throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
|
|
2679
|
-
case "ResourceNotFoundException":
|
|
2680
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2681
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2682
|
-
case "ThrottlingException":
|
|
2683
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2684
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2685
|
-
case "ValidationException":
|
|
2686
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2687
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2688
|
-
default:
|
|
2689
|
-
const parsedBody = parsedOutput.body;
|
|
2690
|
-
return throwDefaultError({
|
|
2691
|
-
output,
|
|
2692
|
-
parsedBody,
|
|
2693
|
-
errorCode,
|
|
2694
|
-
});
|
|
2695
|
-
}
|
|
2696
|
-
};
|
|
2697
|
-
const de_UpdateSignalCatalogCommand = async (output, context) => {
|
|
2698
|
-
if (output.statusCode >= 300) {
|
|
2699
|
-
return de_UpdateSignalCatalogCommandError(output, context);
|
|
2700
|
-
}
|
|
2701
|
-
const data = await parseBody(output.body, context);
|
|
2702
|
-
let contents = {};
|
|
2703
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2704
|
-
const response = {
|
|
2705
|
-
$metadata: deserializeMetadata(output),
|
|
2706
|
-
...contents,
|
|
2707
|
-
};
|
|
2708
|
-
return response;
|
|
2709
|
-
};
|
|
2710
|
-
exports.de_UpdateSignalCatalogCommand = de_UpdateSignalCatalogCommand;
|
|
2711
|
-
const de_UpdateSignalCatalogCommandError = async (output, context) => {
|
|
2712
|
-
const parsedOutput = {
|
|
2713
|
-
...output,
|
|
2714
|
-
body: await parseErrorBody(output.body, context),
|
|
2715
|
-
};
|
|
2716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
-
switch (errorCode) {
|
|
2718
|
-
case "AccessDeniedException":
|
|
2719
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2720
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ConflictException":
|
|
2722
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2723
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "InternalServerException":
|
|
2725
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2726
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "InvalidNodeException":
|
|
2728
|
-
case "com.amazonaws.iotfleetwise#InvalidNodeException":
|
|
2729
|
-
throw await de_InvalidNodeExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "InvalidSignalsException":
|
|
2731
|
-
case "com.amazonaws.iotfleetwise#InvalidSignalsException":
|
|
2732
|
-
throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
|
|
2733
|
-
case "LimitExceededException":
|
|
2734
|
-
case "com.amazonaws.iotfleetwise#LimitExceededException":
|
|
2735
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2736
|
-
case "ResourceNotFoundException":
|
|
2737
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2738
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2739
|
-
case "ThrottlingException":
|
|
2740
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2741
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2742
|
-
case "ValidationException":
|
|
2743
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2744
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2745
|
-
default:
|
|
2746
|
-
const parsedBody = parsedOutput.body;
|
|
2747
|
-
return throwDefaultError({
|
|
2748
|
-
output,
|
|
2749
|
-
parsedBody,
|
|
2750
|
-
errorCode,
|
|
2751
|
-
});
|
|
2752
|
-
}
|
|
2753
|
-
};
|
|
2754
|
-
const de_UpdateVehicleCommand = async (output, context) => {
|
|
2755
|
-
if (output.statusCode >= 300) {
|
|
2756
|
-
return de_UpdateVehicleCommandError(output, context);
|
|
2757
|
-
}
|
|
2758
|
-
const data = await parseBody(output.body, context);
|
|
2759
|
-
let contents = {};
|
|
2760
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2761
|
-
const response = {
|
|
2762
|
-
$metadata: deserializeMetadata(output),
|
|
2763
|
-
...contents,
|
|
2764
|
-
};
|
|
2765
|
-
return response;
|
|
2766
|
-
};
|
|
2767
|
-
exports.de_UpdateVehicleCommand = de_UpdateVehicleCommand;
|
|
2768
|
-
const de_UpdateVehicleCommandError = async (output, context) => {
|
|
2769
|
-
const parsedOutput = {
|
|
2770
|
-
...output,
|
|
2771
|
-
body: await parseErrorBody(output.body, context),
|
|
2772
|
-
};
|
|
2773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
|
-
switch (errorCode) {
|
|
2775
|
-
case "AccessDeniedException":
|
|
2776
|
-
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "ConflictException":
|
|
2779
|
-
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "InternalServerException":
|
|
2782
|
-
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2783
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "ResourceNotFoundException":
|
|
2785
|
-
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2786
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "ThrottlingException":
|
|
2788
|
-
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2789
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ValidationException":
|
|
2791
|
-
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2792
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2793
|
-
default:
|
|
2794
|
-
const parsedBody = parsedOutput.body;
|
|
2795
|
-
return throwDefaultError({
|
|
2796
|
-
output,
|
|
2797
|
-
parsedBody,
|
|
2798
|
-
errorCode,
|
|
2799
|
-
});
|
|
2800
|
-
}
|
|
2801
|
-
};
|
|
2802
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2803
|
-
const body = parsedOutput.body;
|
|
2804
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2805
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
2806
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2807
|
-
...deserialized,
|
|
2808
|
-
});
|
|
2809
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2810
|
-
};
|
|
2811
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2812
|
-
const body = parsedOutput.body;
|
|
2813
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2814
|
-
const exception = new models_0_1.ConflictException({
|
|
2815
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2816
|
-
...deserialized,
|
|
2817
|
-
});
|
|
2818
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2819
|
-
};
|
|
2820
|
-
const de_DecoderManifestValidationExceptionRes = async (parsedOutput, context) => {
|
|
2821
|
-
const body = parsedOutput.body;
|
|
2822
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2823
|
-
const exception = new models_0_1.DecoderManifestValidationException({
|
|
2824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2825
|
-
...deserialized,
|
|
2826
|
-
});
|
|
2827
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2828
|
-
};
|
|
2829
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2830
|
-
const body = parsedOutput.body;
|
|
2831
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2832
|
-
const exception = new models_0_1.InternalServerException({
|
|
2833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2834
|
-
...deserialized,
|
|
2835
|
-
});
|
|
2836
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2837
|
-
};
|
|
2838
|
-
const de_InvalidNodeExceptionRes = async (parsedOutput, context) => {
|
|
2839
|
-
const body = parsedOutput.body;
|
|
2840
|
-
const deserialized = de_InvalidNodeException(body, context);
|
|
2841
|
-
const exception = new models_0_1.InvalidNodeException({
|
|
2842
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2843
|
-
...deserialized,
|
|
2844
|
-
});
|
|
2845
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2846
|
-
};
|
|
2847
|
-
const de_InvalidSignalsExceptionRes = async (parsedOutput, context) => {
|
|
2848
|
-
const body = parsedOutput.body;
|
|
2849
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2850
|
-
const exception = new models_0_1.InvalidSignalsException({
|
|
2851
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2852
|
-
...deserialized,
|
|
2853
|
-
});
|
|
2854
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2855
|
-
};
|
|
2856
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2857
|
-
const body = parsedOutput.body;
|
|
2858
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2859
|
-
const exception = new models_0_1.LimitExceededException({
|
|
2860
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2861
|
-
...deserialized,
|
|
2862
|
-
});
|
|
2863
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2864
|
-
};
|
|
2865
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2866
|
-
const body = parsedOutput.body;
|
|
2867
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2868
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2869
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2870
|
-
...deserialized,
|
|
2871
|
-
});
|
|
2872
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2873
|
-
};
|
|
2874
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2875
|
-
const body = parsedOutput.body;
|
|
2876
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2877
|
-
const exception = new models_0_1.ThrottlingException({
|
|
2878
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2879
|
-
...deserialized,
|
|
2880
|
-
});
|
|
2881
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2882
|
-
};
|
|
2883
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2884
|
-
const body = parsedOutput.body;
|
|
2885
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2886
|
-
const exception = new models_0_1.ValidationException({
|
|
2887
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2888
|
-
...deserialized,
|
|
2889
|
-
});
|
|
2890
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2891
|
-
};
|
|
2892
|
-
const se_Actuator = (input, context) => {
|
|
2893
|
-
return (0, smithy_client_1.take)(input, {
|
|
2894
|
-
allowedValues: smithy_client_1._json,
|
|
2895
|
-
assignedValue: [],
|
|
2896
|
-
comment: [],
|
|
2897
|
-
dataType: [],
|
|
2898
|
-
deprecationMessage: [],
|
|
2899
|
-
description: [],
|
|
2900
|
-
fullyQualifiedName: [],
|
|
2901
|
-
max: smithy_client_1.serializeFloat,
|
|
2902
|
-
min: smithy_client_1.serializeFloat,
|
|
2903
|
-
structFullyQualifiedName: [],
|
|
2904
|
-
unit: [],
|
|
2905
|
-
});
|
|
2906
|
-
};
|
|
2907
|
-
const se_Attribute = (input, context) => {
|
|
2908
|
-
return (0, smithy_client_1.take)(input, {
|
|
2909
|
-
allowedValues: smithy_client_1._json,
|
|
2910
|
-
assignedValue: [],
|
|
2911
|
-
comment: [],
|
|
2912
|
-
dataType: [],
|
|
2913
|
-
defaultValue: [],
|
|
2914
|
-
deprecationMessage: [],
|
|
2915
|
-
description: [],
|
|
2916
|
-
fullyQualifiedName: [],
|
|
2917
|
-
max: smithy_client_1.serializeFloat,
|
|
2918
|
-
min: smithy_client_1.serializeFloat,
|
|
2919
|
-
unit: [],
|
|
2920
|
-
});
|
|
2921
|
-
};
|
|
2922
|
-
const se_CanDbcDefinition = (input, context) => {
|
|
2923
|
-
return (0, smithy_client_1.take)(input, {
|
|
2924
|
-
canDbcFiles: (_) => se_NetworkFilesList(_, context),
|
|
2925
|
-
networkInterface: [],
|
|
2926
|
-
signalsMap: smithy_client_1._json,
|
|
2927
|
-
});
|
|
2928
|
-
};
|
|
2929
|
-
const se_CanSignal = (input, context) => {
|
|
2930
|
-
return (0, smithy_client_1.take)(input, {
|
|
2931
|
-
factor: smithy_client_1.serializeFloat,
|
|
2932
|
-
isBigEndian: [],
|
|
2933
|
-
isSigned: [],
|
|
2934
|
-
length: [],
|
|
2935
|
-
messageId: [],
|
|
2936
|
-
name: [],
|
|
2937
|
-
offset: smithy_client_1.serializeFloat,
|
|
2938
|
-
startBit: [],
|
|
2939
|
-
});
|
|
2940
|
-
};
|
|
2941
|
-
const se_CreateCampaignRequest = (input, context) => {
|
|
2942
|
-
return (0, smithy_client_1.take)(input, {
|
|
2943
|
-
collectionScheme: smithy_client_1._json,
|
|
2944
|
-
compression: [],
|
|
2945
|
-
dataDestinationConfigs: smithy_client_1._json,
|
|
2946
|
-
dataExtraDimensions: smithy_client_1._json,
|
|
2947
|
-
description: [],
|
|
2948
|
-
diagnosticsMode: [],
|
|
2949
|
-
expiryTime: (_) => Math.round(_.getTime() / 1000),
|
|
2950
|
-
name: [],
|
|
2951
|
-
postTriggerCollectionDuration: [],
|
|
2952
|
-
priority: [],
|
|
2953
|
-
signalCatalogArn: [],
|
|
2954
|
-
signalsToCollect: smithy_client_1._json,
|
|
2955
|
-
spoolingMode: [],
|
|
2956
|
-
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2957
|
-
tags: smithy_client_1._json,
|
|
2958
|
-
targetArn: [],
|
|
2959
|
-
});
|
|
2960
|
-
};
|
|
2961
|
-
const se_CreateDecoderManifestRequest = (input, context) => {
|
|
2962
|
-
return (0, smithy_client_1.take)(input, {
|
|
2963
|
-
description: [],
|
|
2964
|
-
modelManifestArn: [],
|
|
2965
|
-
name: [],
|
|
2966
|
-
networkInterfaces: smithy_client_1._json,
|
|
2967
|
-
signalDecoders: (_) => se_SignalDecoders(_, context),
|
|
2968
|
-
tags: smithy_client_1._json,
|
|
2969
|
-
});
|
|
2970
|
-
};
|
|
2971
|
-
const se_CreateSignalCatalogRequest = (input, context) => {
|
|
2972
|
-
return (0, smithy_client_1.take)(input, {
|
|
2973
|
-
description: [],
|
|
2974
|
-
name: [],
|
|
2975
|
-
nodes: (_) => se_Nodes(_, context),
|
|
2976
|
-
tags: smithy_client_1._json,
|
|
2977
|
-
});
|
|
2978
|
-
};
|
|
2979
|
-
const se_ImportDecoderManifestRequest = (input, context) => {
|
|
2980
|
-
return (0, smithy_client_1.take)(input, {
|
|
2981
|
-
name: [],
|
|
2982
|
-
networkFileDefinitions: (_) => se_NetworkFileDefinitions(_, context),
|
|
2983
|
-
});
|
|
2984
|
-
};
|
|
2985
|
-
const se_MessageSignal = (input, context) => {
|
|
2986
|
-
return (0, smithy_client_1.take)(input, {
|
|
2987
|
-
structuredMessage: (_) => se_StructuredMessage(_, context),
|
|
2988
|
-
topicName: [],
|
|
2989
|
-
});
|
|
2990
|
-
};
|
|
2991
|
-
const se_NetworkFileDefinition = (input, context) => {
|
|
2992
|
-
return models_0_1.NetworkFileDefinition.visit(input, {
|
|
2993
|
-
canDbc: (value) => ({ canDbc: se_CanDbcDefinition(value, context) }),
|
|
2994
|
-
_: (name, value) => ({ name: value }),
|
|
2995
|
-
});
|
|
2996
|
-
};
|
|
2997
|
-
const se_NetworkFileDefinitions = (input, context) => {
|
|
2998
|
-
return input
|
|
2999
|
-
.filter((e) => e != null)
|
|
3000
|
-
.map((entry) => {
|
|
3001
|
-
return se_NetworkFileDefinition(entry, context);
|
|
3002
|
-
});
|
|
3003
|
-
};
|
|
3004
|
-
const se_NetworkFilesList = (input, context) => {
|
|
3005
|
-
return input
|
|
3006
|
-
.filter((e) => e != null)
|
|
3007
|
-
.map((entry) => {
|
|
3008
|
-
return context.base64Encoder(entry);
|
|
3009
|
-
});
|
|
3010
|
-
};
|
|
3011
|
-
const se_Node = (input, context) => {
|
|
3012
|
-
return models_0_1.Node.visit(input, {
|
|
3013
|
-
actuator: (value) => ({ actuator: se_Actuator(value, context) }),
|
|
3014
|
-
attribute: (value) => ({ attribute: se_Attribute(value, context) }),
|
|
3015
|
-
branch: (value) => ({ branch: (0, smithy_client_1._json)(value) }),
|
|
3016
|
-
property: (value) => ({ property: (0, smithy_client_1._json)(value) }),
|
|
3017
|
-
sensor: (value) => ({ sensor: se_Sensor(value, context) }),
|
|
3018
|
-
struct: (value) => ({ struct: (0, smithy_client_1._json)(value) }),
|
|
3019
|
-
_: (name, value) => ({ name: value }),
|
|
3020
|
-
});
|
|
3021
|
-
};
|
|
3022
|
-
const se_Nodes = (input, context) => {
|
|
3023
|
-
return input
|
|
3024
|
-
.filter((e) => e != null)
|
|
3025
|
-
.map((entry) => {
|
|
3026
|
-
return se_Node(entry, context);
|
|
3027
|
-
});
|
|
3028
|
-
};
|
|
3029
|
-
const se_ObdSignal = (input, context) => {
|
|
3030
|
-
return (0, smithy_client_1.take)(input, {
|
|
3031
|
-
bitMaskLength: [],
|
|
3032
|
-
bitRightShift: [],
|
|
3033
|
-
byteLength: [],
|
|
3034
|
-
offset: smithy_client_1.serializeFloat,
|
|
3035
|
-
pid: [],
|
|
3036
|
-
pidResponseLength: [],
|
|
3037
|
-
scaling: smithy_client_1.serializeFloat,
|
|
3038
|
-
serviceMode: [],
|
|
3039
|
-
startByte: [],
|
|
3040
|
-
});
|
|
3041
|
-
};
|
|
3042
|
-
const se_PrimitiveMessageDefinition = (input, context) => {
|
|
3043
|
-
return models_0_1.PrimitiveMessageDefinition.visit(input, {
|
|
3044
|
-
ros2PrimitiveMessageDefinition: (value) => ({
|
|
3045
|
-
ros2PrimitiveMessageDefinition: se_ROS2PrimitiveMessageDefinition(value, context),
|
|
3046
|
-
}),
|
|
3047
|
-
_: (name, value) => ({ name: value }),
|
|
3048
|
-
});
|
|
3049
|
-
};
|
|
3050
|
-
const se_ROS2PrimitiveMessageDefinition = (input, context) => {
|
|
3051
|
-
return (0, smithy_client_1.take)(input, {
|
|
3052
|
-
offset: smithy_client_1.serializeFloat,
|
|
3053
|
-
primitiveType: [],
|
|
3054
|
-
scaling: smithy_client_1.serializeFloat,
|
|
3055
|
-
upperBound: [],
|
|
3056
|
-
});
|
|
3057
|
-
};
|
|
3058
|
-
const se_Sensor = (input, context) => {
|
|
3059
|
-
return (0, smithy_client_1.take)(input, {
|
|
3060
|
-
allowedValues: smithy_client_1._json,
|
|
3061
|
-
comment: [],
|
|
3062
|
-
dataType: [],
|
|
3063
|
-
deprecationMessage: [],
|
|
3064
|
-
description: [],
|
|
3065
|
-
fullyQualifiedName: [],
|
|
3066
|
-
max: smithy_client_1.serializeFloat,
|
|
3067
|
-
min: smithy_client_1.serializeFloat,
|
|
3068
|
-
structFullyQualifiedName: [],
|
|
3069
|
-
unit: [],
|
|
3070
|
-
});
|
|
3071
|
-
};
|
|
3072
|
-
const se_SignalDecoder = (input, context) => {
|
|
3073
|
-
return (0, smithy_client_1.take)(input, {
|
|
3074
|
-
canSignal: (_) => se_CanSignal(_, context),
|
|
3075
|
-
fullyQualifiedName: [],
|
|
3076
|
-
interfaceId: [],
|
|
3077
|
-
messageSignal: (_) => se_MessageSignal(_, context),
|
|
3078
|
-
obdSignal: (_) => se_ObdSignal(_, context),
|
|
3079
|
-
type: [],
|
|
3080
|
-
});
|
|
3081
|
-
};
|
|
3082
|
-
const se_SignalDecoders = (input, context) => {
|
|
3083
|
-
return input
|
|
3084
|
-
.filter((e) => e != null)
|
|
3085
|
-
.map((entry) => {
|
|
3086
|
-
return se_SignalDecoder(entry, context);
|
|
3087
|
-
});
|
|
3088
|
-
};
|
|
3089
|
-
const se_StructuredMessage = (input, context) => {
|
|
3090
|
-
return models_0_1.StructuredMessage.visit(input, {
|
|
3091
|
-
primitiveMessageDefinition: (value) => ({
|
|
3092
|
-
primitiveMessageDefinition: se_PrimitiveMessageDefinition(value, context),
|
|
3093
|
-
}),
|
|
3094
|
-
structuredMessageDefinition: (value) => ({
|
|
3095
|
-
structuredMessageDefinition: se_StructuredMessageDefinition(value, context),
|
|
3096
|
-
}),
|
|
3097
|
-
structuredMessageListDefinition: (value) => ({
|
|
3098
|
-
structuredMessageListDefinition: se_StructuredMessageListDefinition(value, context),
|
|
3099
|
-
}),
|
|
3100
|
-
_: (name, value) => ({ name: value }),
|
|
3101
|
-
});
|
|
3102
|
-
};
|
|
3103
|
-
const se_StructuredMessageDefinition = (input, context) => {
|
|
3104
|
-
return input
|
|
3105
|
-
.filter((e) => e != null)
|
|
3106
|
-
.map((entry) => {
|
|
3107
|
-
return se_StructuredMessageFieldNameAndDataTypePair(entry, context);
|
|
3108
|
-
});
|
|
3109
|
-
};
|
|
3110
|
-
const se_StructuredMessageFieldNameAndDataTypePair = (input, context) => {
|
|
3111
|
-
return (0, smithy_client_1.take)(input, {
|
|
3112
|
-
dataType: (_) => se_StructuredMessage(_, context),
|
|
3113
|
-
fieldName: [],
|
|
3114
|
-
});
|
|
3115
|
-
};
|
|
3116
|
-
const se_StructuredMessageListDefinition = (input, context) => {
|
|
3117
|
-
return (0, smithy_client_1.take)(input, {
|
|
3118
|
-
capacity: [],
|
|
3119
|
-
listType: [],
|
|
3120
|
-
memberType: (_) => se_StructuredMessage(_, context),
|
|
3121
|
-
name: [],
|
|
3122
|
-
});
|
|
3123
|
-
};
|
|
3124
|
-
const se_UpdateDecoderManifestRequest = (input, context) => {
|
|
3125
|
-
return (0, smithy_client_1.take)(input, {
|
|
3126
|
-
description: [],
|
|
3127
|
-
name: [],
|
|
3128
|
-
networkInterfacesToAdd: smithy_client_1._json,
|
|
3129
|
-
networkInterfacesToRemove: smithy_client_1._json,
|
|
3130
|
-
networkInterfacesToUpdate: smithy_client_1._json,
|
|
3131
|
-
signalDecodersToAdd: (_) => se_SignalDecoders(_, context),
|
|
3132
|
-
signalDecodersToRemove: smithy_client_1._json,
|
|
3133
|
-
signalDecodersToUpdate: (_) => se_SignalDecoders(_, context),
|
|
3134
|
-
status: [],
|
|
3135
|
-
});
|
|
3136
|
-
};
|
|
3137
|
-
const se_UpdateSignalCatalogRequest = (input, context) => {
|
|
3138
|
-
return (0, smithy_client_1.take)(input, {
|
|
3139
|
-
description: [],
|
|
3140
|
-
name: [],
|
|
3141
|
-
nodesToAdd: (_) => se_Nodes(_, context),
|
|
3142
|
-
nodesToRemove: smithy_client_1._json,
|
|
3143
|
-
nodesToUpdate: (_) => se_Nodes(_, context),
|
|
3144
|
-
});
|
|
3145
|
-
};
|
|
3146
|
-
const de_Actuator = (output, context) => {
|
|
3147
|
-
return (0, smithy_client_1.take)(output, {
|
|
3148
|
-
allowedValues: smithy_client_1._json,
|
|
3149
|
-
assignedValue: smithy_client_1.expectString,
|
|
3150
|
-
comment: smithy_client_1.expectString,
|
|
3151
|
-
dataType: smithy_client_1.expectString,
|
|
3152
|
-
deprecationMessage: smithy_client_1.expectString,
|
|
3153
|
-
description: smithy_client_1.expectString,
|
|
3154
|
-
fullyQualifiedName: smithy_client_1.expectString,
|
|
3155
|
-
max: smithy_client_1.limitedParseDouble,
|
|
3156
|
-
min: smithy_client_1.limitedParseDouble,
|
|
3157
|
-
structFullyQualifiedName: smithy_client_1.expectString,
|
|
3158
|
-
unit: smithy_client_1.expectString,
|
|
3159
|
-
});
|
|
3160
|
-
};
|
|
3161
|
-
const de_Attribute = (output, context) => {
|
|
3162
|
-
return (0, smithy_client_1.take)(output, {
|
|
3163
|
-
allowedValues: smithy_client_1._json,
|
|
3164
|
-
assignedValue: smithy_client_1.expectString,
|
|
3165
|
-
comment: smithy_client_1.expectString,
|
|
3166
|
-
dataType: smithy_client_1.expectString,
|
|
3167
|
-
defaultValue: smithy_client_1.expectString,
|
|
3168
|
-
deprecationMessage: smithy_client_1.expectString,
|
|
3169
|
-
description: smithy_client_1.expectString,
|
|
3170
|
-
fullyQualifiedName: smithy_client_1.expectString,
|
|
3171
|
-
max: smithy_client_1.limitedParseDouble,
|
|
3172
|
-
min: smithy_client_1.limitedParseDouble,
|
|
3173
|
-
unit: smithy_client_1.expectString,
|
|
3174
|
-
});
|
|
3175
|
-
};
|
|
3176
|
-
const de_campaignSummaries = (output, context) => {
|
|
3177
|
-
const retVal = (output || [])
|
|
3178
|
-
.filter((e) => e != null)
|
|
3179
|
-
.map((entry) => {
|
|
3180
|
-
return de_CampaignSummary(entry, context);
|
|
3181
|
-
});
|
|
3182
|
-
return retVal;
|
|
3183
|
-
};
|
|
3184
|
-
const de_CampaignSummary = (output, context) => {
|
|
3185
|
-
return (0, smithy_client_1.take)(output, {
|
|
3186
|
-
arn: smithy_client_1.expectString,
|
|
3187
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3188
|
-
description: smithy_client_1.expectString,
|
|
3189
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3190
|
-
name: smithy_client_1.expectString,
|
|
3191
|
-
signalCatalogArn: smithy_client_1.expectString,
|
|
3192
|
-
status: smithy_client_1.expectString,
|
|
3193
|
-
targetArn: smithy_client_1.expectString,
|
|
3194
|
-
});
|
|
3195
|
-
};
|
|
3196
|
-
const de_CanSignal = (output, context) => {
|
|
3197
|
-
return (0, smithy_client_1.take)(output, {
|
|
3198
|
-
factor: smithy_client_1.limitedParseDouble,
|
|
3199
|
-
isBigEndian: smithy_client_1.expectBoolean,
|
|
3200
|
-
isSigned: smithy_client_1.expectBoolean,
|
|
3201
|
-
length: smithy_client_1.expectInt32,
|
|
3202
|
-
messageId: smithy_client_1.expectInt32,
|
|
3203
|
-
name: smithy_client_1.expectString,
|
|
3204
|
-
offset: smithy_client_1.limitedParseDouble,
|
|
3205
|
-
startBit: smithy_client_1.expectInt32,
|
|
3206
|
-
});
|
|
3207
|
-
};
|
|
3208
|
-
const de_decoderManifestSummaries = (output, context) => {
|
|
3209
|
-
const retVal = (output || [])
|
|
3210
|
-
.filter((e) => e != null)
|
|
3211
|
-
.map((entry) => {
|
|
3212
|
-
return de_DecoderManifestSummary(entry, context);
|
|
3213
|
-
});
|
|
3214
|
-
return retVal;
|
|
3215
|
-
};
|
|
3216
|
-
const de_DecoderManifestSummary = (output, context) => {
|
|
3217
|
-
return (0, smithy_client_1.take)(output, {
|
|
3218
|
-
arn: smithy_client_1.expectString,
|
|
3219
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3220
|
-
description: smithy_client_1.expectString,
|
|
3221
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3222
|
-
message: smithy_client_1.expectString,
|
|
3223
|
-
modelManifestArn: smithy_client_1.expectString,
|
|
3224
|
-
name: smithy_client_1.expectString,
|
|
3225
|
-
status: smithy_client_1.expectString,
|
|
3226
|
-
});
|
|
3227
|
-
};
|
|
3228
|
-
const de_fleetSummaries = (output, context) => {
|
|
3229
|
-
const retVal = (output || [])
|
|
3230
|
-
.filter((e) => e != null)
|
|
3231
|
-
.map((entry) => {
|
|
3232
|
-
return de_FleetSummary(entry, context);
|
|
3233
|
-
});
|
|
3234
|
-
return retVal;
|
|
3235
|
-
};
|
|
3236
|
-
const de_FleetSummary = (output, context) => {
|
|
3237
|
-
return (0, smithy_client_1.take)(output, {
|
|
3238
|
-
arn: smithy_client_1.expectString,
|
|
3239
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3240
|
-
description: smithy_client_1.expectString,
|
|
3241
|
-
id: smithy_client_1.expectString,
|
|
3242
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3243
|
-
signalCatalogArn: smithy_client_1.expectString,
|
|
3244
|
-
});
|
|
3245
|
-
};
|
|
3246
|
-
const de_GetCampaignResponse = (output, context) => {
|
|
3247
|
-
return (0, smithy_client_1.take)(output, {
|
|
3248
|
-
arn: smithy_client_1.expectString,
|
|
3249
|
-
collectionScheme: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
3250
|
-
compression: smithy_client_1.expectString,
|
|
3251
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3252
|
-
dataDestinationConfigs: smithy_client_1._json,
|
|
3253
|
-
dataExtraDimensions: smithy_client_1._json,
|
|
3254
|
-
description: smithy_client_1.expectString,
|
|
3255
|
-
diagnosticsMode: smithy_client_1.expectString,
|
|
3256
|
-
expiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3257
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3258
|
-
name: smithy_client_1.expectString,
|
|
3259
|
-
postTriggerCollectionDuration: smithy_client_1.expectLong,
|
|
3260
|
-
priority: smithy_client_1.expectInt32,
|
|
3261
|
-
signalCatalogArn: smithy_client_1.expectString,
|
|
3262
|
-
signalsToCollect: smithy_client_1._json,
|
|
3263
|
-
spoolingMode: smithy_client_1.expectString,
|
|
3264
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3265
|
-
status: smithy_client_1.expectString,
|
|
3266
|
-
targetArn: smithy_client_1.expectString,
|
|
3267
|
-
});
|
|
3268
|
-
};
|
|
3269
|
-
const de_GetDecoderManifestResponse = (output, context) => {
|
|
3270
|
-
return (0, smithy_client_1.take)(output, {
|
|
3271
|
-
arn: smithy_client_1.expectString,
|
|
3272
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3273
|
-
description: smithy_client_1.expectString,
|
|
3274
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3275
|
-
message: smithy_client_1.expectString,
|
|
3276
|
-
modelManifestArn: smithy_client_1.expectString,
|
|
3277
|
-
name: smithy_client_1.expectString,
|
|
3278
|
-
status: smithy_client_1.expectString,
|
|
3279
|
-
});
|
|
3280
|
-
};
|
|
3281
|
-
const de_GetEncryptionConfigurationResponse = (output, context) => {
|
|
3282
|
-
return (0, smithy_client_1.take)(output, {
|
|
3283
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3284
|
-
encryptionStatus: smithy_client_1.expectString,
|
|
3285
|
-
encryptionType: smithy_client_1.expectString,
|
|
3286
|
-
errorMessage: smithy_client_1.expectString,
|
|
3287
|
-
kmsKeyId: smithy_client_1.expectString,
|
|
3288
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3289
|
-
});
|
|
3290
|
-
};
|
|
3291
|
-
const de_GetFleetResponse = (output, context) => {
|
|
3292
|
-
return (0, smithy_client_1.take)(output, {
|
|
3293
|
-
arn: smithy_client_1.expectString,
|
|
3294
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3295
|
-
description: smithy_client_1.expectString,
|
|
3296
|
-
id: smithy_client_1.expectString,
|
|
3297
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3298
|
-
signalCatalogArn: smithy_client_1.expectString,
|
|
3299
|
-
});
|
|
3300
|
-
};
|
|
3301
|
-
const de_GetModelManifestResponse = (output, context) => {
|
|
3302
|
-
return (0, smithy_client_1.take)(output, {
|
|
3303
|
-
arn: smithy_client_1.expectString,
|
|
3304
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3305
|
-
description: smithy_client_1.expectString,
|
|
3306
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3307
|
-
name: smithy_client_1.expectString,
|
|
3308
|
-
signalCatalogArn: smithy_client_1.expectString,
|
|
3309
|
-
status: smithy_client_1.expectString,
|
|
3310
|
-
});
|
|
3311
|
-
};
|
|
3312
|
-
const de_GetRegisterAccountStatusResponse = (output, context) => {
|
|
3313
|
-
return (0, smithy_client_1.take)(output, {
|
|
3314
|
-
accountStatus: smithy_client_1.expectString,
|
|
3315
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3316
|
-
customerAccountId: smithy_client_1.expectString,
|
|
3317
|
-
iamRegistrationResponse: smithy_client_1._json,
|
|
3318
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3319
|
-
timestreamRegistrationResponse: smithy_client_1._json,
|
|
3320
|
-
});
|
|
3321
|
-
};
|
|
3322
|
-
const de_GetSignalCatalogResponse = (output, context) => {
|
|
3323
|
-
return (0, smithy_client_1.take)(output, {
|
|
3324
|
-
arn: smithy_client_1.expectString,
|
|
3325
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3326
|
-
description: smithy_client_1.expectString,
|
|
3327
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3328
|
-
name: smithy_client_1.expectString,
|
|
3329
|
-
nodeCounts: smithy_client_1._json,
|
|
3330
|
-
});
|
|
3331
|
-
};
|
|
3332
|
-
const de_GetVehicleResponse = (output, context) => {
|
|
3333
|
-
return (0, smithy_client_1.take)(output, {
|
|
3334
|
-
arn: smithy_client_1.expectString,
|
|
3335
|
-
attributes: smithy_client_1._json,
|
|
3336
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3337
|
-
decoderManifestArn: smithy_client_1.expectString,
|
|
3338
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3339
|
-
modelManifestArn: smithy_client_1.expectString,
|
|
3340
|
-
vehicleName: smithy_client_1.expectString,
|
|
3341
|
-
});
|
|
3342
|
-
};
|
|
3343
|
-
const de_InvalidNodeException = (output, context) => {
|
|
3344
|
-
return (0, smithy_client_1.take)(output, {
|
|
3345
|
-
invalidNodes: (_) => de_Nodes(_, context),
|
|
3346
|
-
message: smithy_client_1.expectString,
|
|
3347
|
-
reason: smithy_client_1.expectString,
|
|
3348
|
-
});
|
|
3349
|
-
};
|
|
3350
|
-
const de_ListCampaignsResponse = (output, context) => {
|
|
3351
|
-
return (0, smithy_client_1.take)(output, {
|
|
3352
|
-
campaignSummaries: (_) => de_campaignSummaries(_, context),
|
|
3353
|
-
nextToken: smithy_client_1.expectString,
|
|
3354
|
-
});
|
|
3355
|
-
};
|
|
3356
|
-
const de_ListDecoderManifestSignalsResponse = (output, context) => {
|
|
3357
|
-
return (0, smithy_client_1.take)(output, {
|
|
3358
|
-
nextToken: smithy_client_1.expectString,
|
|
3359
|
-
signalDecoders: (_) => de_SignalDecoders(_, context),
|
|
3360
|
-
});
|
|
3361
|
-
};
|
|
3362
|
-
const de_ListDecoderManifestsResponse = (output, context) => {
|
|
3363
|
-
return (0, smithy_client_1.take)(output, {
|
|
3364
|
-
nextToken: smithy_client_1.expectString,
|
|
3365
|
-
summaries: (_) => de_decoderManifestSummaries(_, context),
|
|
3366
|
-
});
|
|
3367
|
-
};
|
|
3368
|
-
const de_ListFleetsResponse = (output, context) => {
|
|
3369
|
-
return (0, smithy_client_1.take)(output, {
|
|
3370
|
-
fleetSummaries: (_) => de_fleetSummaries(_, context),
|
|
3371
|
-
nextToken: smithy_client_1.expectString,
|
|
3372
|
-
});
|
|
3373
|
-
};
|
|
3374
|
-
const de_ListModelManifestNodesResponse = (output, context) => {
|
|
3375
|
-
return (0, smithy_client_1.take)(output, {
|
|
3376
|
-
nextToken: smithy_client_1.expectString,
|
|
3377
|
-
nodes: (_) => de_Nodes(_, context),
|
|
3378
|
-
});
|
|
3379
|
-
};
|
|
3380
|
-
const de_ListModelManifestsResponse = (output, context) => {
|
|
3381
|
-
return (0, smithy_client_1.take)(output, {
|
|
3382
|
-
nextToken: smithy_client_1.expectString,
|
|
3383
|
-
summaries: (_) => de_modelManifestSummaries(_, context),
|
|
3384
|
-
});
|
|
3385
|
-
};
|
|
3386
|
-
const de_ListSignalCatalogNodesResponse = (output, context) => {
|
|
3387
|
-
return (0, smithy_client_1.take)(output, {
|
|
3388
|
-
nextToken: smithy_client_1.expectString,
|
|
3389
|
-
nodes: (_) => de_Nodes(_, context),
|
|
3390
|
-
});
|
|
3391
|
-
};
|
|
3392
|
-
const de_ListSignalCatalogsResponse = (output, context) => {
|
|
3393
|
-
return (0, smithy_client_1.take)(output, {
|
|
3394
|
-
nextToken: smithy_client_1.expectString,
|
|
3395
|
-
summaries: (_) => de_signalCatalogSummaries(_, context),
|
|
3396
|
-
});
|
|
3397
|
-
};
|
|
3398
|
-
const de_ListVehiclesResponse = (output, context) => {
|
|
3399
|
-
return (0, smithy_client_1.take)(output, {
|
|
3400
|
-
nextToken: smithy_client_1.expectString,
|
|
3401
|
-
vehicleSummaries: (_) => de_vehicleSummaries(_, context),
|
|
3402
|
-
});
|
|
3403
|
-
};
|
|
3404
|
-
const de_MessageSignal = (output, context) => {
|
|
3405
|
-
return (0, smithy_client_1.take)(output, {
|
|
3406
|
-
structuredMessage: (_) => de_StructuredMessage((0, core_1.awsExpectUnion)(_), context),
|
|
3407
|
-
topicName: smithy_client_1.expectString,
|
|
3408
|
-
});
|
|
3409
|
-
};
|
|
3410
|
-
const de_modelManifestSummaries = (output, context) => {
|
|
3411
|
-
const retVal = (output || [])
|
|
3412
|
-
.filter((e) => e != null)
|
|
3413
|
-
.map((entry) => {
|
|
3414
|
-
return de_ModelManifestSummary(entry, context);
|
|
3415
|
-
});
|
|
3416
|
-
return retVal;
|
|
3417
|
-
};
|
|
3418
|
-
const de_ModelManifestSummary = (output, context) => {
|
|
3419
|
-
return (0, smithy_client_1.take)(output, {
|
|
3420
|
-
arn: smithy_client_1.expectString,
|
|
3421
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3422
|
-
description: smithy_client_1.expectString,
|
|
3423
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3424
|
-
name: smithy_client_1.expectString,
|
|
3425
|
-
signalCatalogArn: smithy_client_1.expectString,
|
|
3426
|
-
status: smithy_client_1.expectString,
|
|
3427
|
-
});
|
|
3428
|
-
};
|
|
3429
|
-
const de_Node = (output, context) => {
|
|
3430
|
-
if (output.actuator != null) {
|
|
3431
|
-
return {
|
|
3432
|
-
actuator: de_Actuator(output.actuator, context),
|
|
3433
|
-
};
|
|
3434
|
-
}
|
|
3435
|
-
if (output.attribute != null) {
|
|
3436
|
-
return {
|
|
3437
|
-
attribute: de_Attribute(output.attribute, context),
|
|
3438
|
-
};
|
|
3439
|
-
}
|
|
3440
|
-
if (output.branch != null) {
|
|
3441
|
-
return {
|
|
3442
|
-
branch: (0, smithy_client_1._json)(output.branch),
|
|
3443
|
-
};
|
|
3444
|
-
}
|
|
3445
|
-
if (output.property != null) {
|
|
3446
|
-
return {
|
|
3447
|
-
property: (0, smithy_client_1._json)(output.property),
|
|
3448
|
-
};
|
|
3449
|
-
}
|
|
3450
|
-
if (output.sensor != null) {
|
|
3451
|
-
return {
|
|
3452
|
-
sensor: de_Sensor(output.sensor, context),
|
|
3453
|
-
};
|
|
3454
|
-
}
|
|
3455
|
-
if (output.struct != null) {
|
|
3456
|
-
return {
|
|
3457
|
-
struct: (0, smithy_client_1._json)(output.struct),
|
|
3458
|
-
};
|
|
3459
|
-
}
|
|
3460
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3461
|
-
};
|
|
3462
|
-
const de_Nodes = (output, context) => {
|
|
3463
|
-
const retVal = (output || [])
|
|
3464
|
-
.filter((e) => e != null)
|
|
3465
|
-
.map((entry) => {
|
|
3466
|
-
return de_Node((0, core_1.awsExpectUnion)(entry), context);
|
|
3467
|
-
});
|
|
3468
|
-
return retVal;
|
|
3469
|
-
};
|
|
3470
|
-
const de_ObdSignal = (output, context) => {
|
|
3471
|
-
return (0, smithy_client_1.take)(output, {
|
|
3472
|
-
bitMaskLength: smithy_client_1.expectInt32,
|
|
3473
|
-
bitRightShift: smithy_client_1.expectInt32,
|
|
3474
|
-
byteLength: smithy_client_1.expectInt32,
|
|
3475
|
-
offset: smithy_client_1.limitedParseDouble,
|
|
3476
|
-
pid: smithy_client_1.expectInt32,
|
|
3477
|
-
pidResponseLength: smithy_client_1.expectInt32,
|
|
3478
|
-
scaling: smithy_client_1.limitedParseDouble,
|
|
3479
|
-
serviceMode: smithy_client_1.expectInt32,
|
|
3480
|
-
startByte: smithy_client_1.expectInt32,
|
|
3481
|
-
});
|
|
3482
|
-
};
|
|
3483
|
-
const de_PrimitiveMessageDefinition = (output, context) => {
|
|
3484
|
-
if (output.ros2PrimitiveMessageDefinition != null) {
|
|
3485
|
-
return {
|
|
3486
|
-
ros2PrimitiveMessageDefinition: de_ROS2PrimitiveMessageDefinition(output.ros2PrimitiveMessageDefinition, context),
|
|
3487
|
-
};
|
|
3488
|
-
}
|
|
3489
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3490
|
-
};
|
|
3491
|
-
const de_RegisterAccountResponse = (output, context) => {
|
|
3492
|
-
return (0, smithy_client_1.take)(output, {
|
|
3493
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3494
|
-
iamResources: smithy_client_1._json,
|
|
3495
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3496
|
-
registerAccountStatus: smithy_client_1.expectString,
|
|
3497
|
-
timestreamResources: smithy_client_1._json,
|
|
3498
|
-
});
|
|
3499
|
-
};
|
|
3500
|
-
const de_ROS2PrimitiveMessageDefinition = (output, context) => {
|
|
3501
|
-
return (0, smithy_client_1.take)(output, {
|
|
3502
|
-
offset: smithy_client_1.limitedParseDouble,
|
|
3503
|
-
primitiveType: smithy_client_1.expectString,
|
|
3504
|
-
scaling: smithy_client_1.limitedParseDouble,
|
|
3505
|
-
upperBound: smithy_client_1.expectLong,
|
|
3506
|
-
});
|
|
3507
|
-
};
|
|
3508
|
-
const de_Sensor = (output, context) => {
|
|
3509
|
-
return (0, smithy_client_1.take)(output, {
|
|
3510
|
-
allowedValues: smithy_client_1._json,
|
|
3511
|
-
comment: smithy_client_1.expectString,
|
|
3512
|
-
dataType: smithy_client_1.expectString,
|
|
3513
|
-
deprecationMessage: smithy_client_1.expectString,
|
|
3514
|
-
description: smithy_client_1.expectString,
|
|
3515
|
-
fullyQualifiedName: smithy_client_1.expectString,
|
|
3516
|
-
max: smithy_client_1.limitedParseDouble,
|
|
3517
|
-
min: smithy_client_1.limitedParseDouble,
|
|
3518
|
-
structFullyQualifiedName: smithy_client_1.expectString,
|
|
3519
|
-
unit: smithy_client_1.expectString,
|
|
3520
|
-
});
|
|
3521
|
-
};
|
|
3522
|
-
const de_signalCatalogSummaries = (output, context) => {
|
|
3523
|
-
const retVal = (output || [])
|
|
3524
|
-
.filter((e) => e != null)
|
|
3525
|
-
.map((entry) => {
|
|
3526
|
-
return de_SignalCatalogSummary(entry, context);
|
|
3527
|
-
});
|
|
3528
|
-
return retVal;
|
|
3529
|
-
};
|
|
3530
|
-
const de_SignalCatalogSummary = (output, context) => {
|
|
3531
|
-
return (0, smithy_client_1.take)(output, {
|
|
3532
|
-
arn: smithy_client_1.expectString,
|
|
3533
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3534
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3535
|
-
name: smithy_client_1.expectString,
|
|
3536
|
-
});
|
|
3537
|
-
};
|
|
3538
|
-
const de_SignalDecoder = (output, context) => {
|
|
3539
|
-
return (0, smithy_client_1.take)(output, {
|
|
3540
|
-
canSignal: (_) => de_CanSignal(_, context),
|
|
3541
|
-
fullyQualifiedName: smithy_client_1.expectString,
|
|
3542
|
-
interfaceId: smithy_client_1.expectString,
|
|
3543
|
-
messageSignal: (_) => de_MessageSignal(_, context),
|
|
3544
|
-
obdSignal: (_) => de_ObdSignal(_, context),
|
|
3545
|
-
type: smithy_client_1.expectString,
|
|
3546
|
-
});
|
|
3547
|
-
};
|
|
3548
|
-
const de_SignalDecoders = (output, context) => {
|
|
3549
|
-
const retVal = (output || [])
|
|
3550
|
-
.filter((e) => e != null)
|
|
3551
|
-
.map((entry) => {
|
|
3552
|
-
return de_SignalDecoder(entry, context);
|
|
3553
|
-
});
|
|
3554
|
-
return retVal;
|
|
3555
|
-
};
|
|
3556
|
-
const de_StructuredMessage = (output, context) => {
|
|
3557
|
-
if (output.primitiveMessageDefinition != null) {
|
|
3558
|
-
return {
|
|
3559
|
-
primitiveMessageDefinition: de_PrimitiveMessageDefinition((0, core_1.awsExpectUnion)(output.primitiveMessageDefinition), context),
|
|
3560
|
-
};
|
|
3561
|
-
}
|
|
3562
|
-
if (output.structuredMessageDefinition != null) {
|
|
3563
|
-
return {
|
|
3564
|
-
structuredMessageDefinition: de_StructuredMessageDefinition(output.structuredMessageDefinition, context),
|
|
3565
|
-
};
|
|
3566
|
-
}
|
|
3567
|
-
if (output.structuredMessageListDefinition != null) {
|
|
3568
|
-
return {
|
|
3569
|
-
structuredMessageListDefinition: de_StructuredMessageListDefinition(output.structuredMessageListDefinition, context),
|
|
3570
|
-
};
|
|
3571
|
-
}
|
|
3572
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3573
|
-
};
|
|
3574
|
-
const de_StructuredMessageDefinition = (output, context) => {
|
|
3575
|
-
const retVal = (output || [])
|
|
3576
|
-
.filter((e) => e != null)
|
|
3577
|
-
.map((entry) => {
|
|
3578
|
-
return de_StructuredMessageFieldNameAndDataTypePair(entry, context);
|
|
3579
|
-
});
|
|
3580
|
-
return retVal;
|
|
3581
|
-
};
|
|
3582
|
-
const de_StructuredMessageFieldNameAndDataTypePair = (output, context) => {
|
|
3583
|
-
return (0, smithy_client_1.take)(output, {
|
|
3584
|
-
dataType: (_) => de_StructuredMessage((0, core_1.awsExpectUnion)(_), context),
|
|
3585
|
-
fieldName: smithy_client_1.expectString,
|
|
3586
|
-
});
|
|
3587
|
-
};
|
|
3588
|
-
const de_StructuredMessageListDefinition = (output, context) => {
|
|
3589
|
-
return (0, smithy_client_1.take)(output, {
|
|
3590
|
-
capacity: smithy_client_1.expectInt32,
|
|
3591
|
-
listType: smithy_client_1.expectString,
|
|
3592
|
-
memberType: (_) => de_StructuredMessage((0, core_1.awsExpectUnion)(_), context),
|
|
3593
|
-
name: smithy_client_1.expectString,
|
|
3594
|
-
});
|
|
3595
|
-
};
|
|
3596
|
-
const de_vehicleSummaries = (output, context) => {
|
|
3597
|
-
const retVal = (output || [])
|
|
3598
|
-
.filter((e) => e != null)
|
|
3599
|
-
.map((entry) => {
|
|
3600
|
-
return de_VehicleSummary(entry, context);
|
|
3601
|
-
});
|
|
3602
|
-
return retVal;
|
|
3603
|
-
};
|
|
3604
|
-
const de_VehicleSummary = (output, context) => {
|
|
3605
|
-
return (0, smithy_client_1.take)(output, {
|
|
3606
|
-
arn: smithy_client_1.expectString,
|
|
3607
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3608
|
-
decoderManifestArn: smithy_client_1.expectString,
|
|
3609
|
-
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3610
|
-
modelManifestArn: smithy_client_1.expectString,
|
|
3611
|
-
vehicleName: smithy_client_1.expectString,
|
|
3612
|
-
});
|
|
3613
|
-
};
|
|
3614
|
-
const deserializeMetadata = (output) => ({
|
|
3615
|
-
httpStatusCode: output.statusCode,
|
|
3616
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3617
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3618
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3619
|
-
});
|
|
3620
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3621
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(IoTFleetWiseServiceException_1.IoTFleetWiseServiceException);
|
|
3622
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3623
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3624
|
-
const contents = {
|
|
3625
|
-
protocol,
|
|
3626
|
-
hostname,
|
|
3627
|
-
port,
|
|
3628
|
-
method: "POST",
|
|
3629
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3630
|
-
headers,
|
|
3631
|
-
};
|
|
3632
|
-
if (resolvedHostname !== undefined) {
|
|
3633
|
-
contents.hostname = resolvedHostname;
|
|
3634
|
-
}
|
|
3635
|
-
if (body !== undefined) {
|
|
3636
|
-
contents.body = body;
|
|
3637
|
-
}
|
|
3638
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3639
|
-
};
|
|
3640
|
-
function sharedHeaders(operation) {
|
|
3641
|
-
return {
|
|
3642
|
-
"content-type": "application/x-amz-json-1.0",
|
|
3643
|
-
"x-amz-target": `IoTAutobahnControlPlane.${operation}`,
|
|
3644
|
-
};
|
|
3645
|
-
}
|
|
3646
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3647
|
-
if (encoded.length) {
|
|
3648
|
-
return JSON.parse(encoded);
|
|
3649
|
-
}
|
|
3650
|
-
return {};
|
|
3651
|
-
});
|
|
3652
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3653
|
-
const value = await parseBody(errorBody, context);
|
|
3654
|
-
value.message = value.message ?? value.Message;
|
|
3655
|
-
return value;
|
|
3656
|
-
};
|
|
3657
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3658
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3659
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3660
|
-
let cleanValue = rawValue;
|
|
3661
|
-
if (typeof cleanValue === "number") {
|
|
3662
|
-
cleanValue = cleanValue.toString();
|
|
3663
|
-
}
|
|
3664
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3665
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3666
|
-
}
|
|
3667
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3668
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3669
|
-
}
|
|
3670
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3671
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3672
|
-
}
|
|
3673
|
-
return cleanValue;
|
|
3674
|
-
};
|
|
3675
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3676
|
-
if (headerKey !== undefined) {
|
|
3677
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3678
|
-
}
|
|
3679
|
-
if (data.code !== undefined) {
|
|
3680
|
-
return sanitizeErrorCode(data.code);
|
|
3681
|
-
}
|
|
3682
|
-
if (data["__type"] !== undefined) {
|
|
3683
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3684
|
-
}
|
|
3685
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|