@aws-sdk/client-location 3.928.0 → 3.929.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/index.js +2957 -4209
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/LocationClient.js +2 -0
- package/dist-es/commands/AssociateTrackerConsumerCommand.js +3 -9
- package/dist-es/commands/BatchDeleteDevicePositionHistoryCommand.js +3 -9
- package/dist-es/commands/BatchDeleteGeofenceCommand.js +3 -9
- package/dist-es/commands/BatchEvaluateGeofencesCommand.js +3 -10
- package/dist-es/commands/BatchGetDevicePositionCommand.js +3 -10
- package/dist-es/commands/BatchPutGeofenceCommand.js +3 -10
- package/dist-es/commands/BatchUpdateDevicePositionCommand.js +3 -10
- package/dist-es/commands/CalculateRouteCommand.js +3 -10
- package/dist-es/commands/CalculateRouteMatrixCommand.js +3 -10
- package/dist-es/commands/CreateGeofenceCollectionCommand.js +3 -10
- package/dist-es/commands/CreateKeyCommand.js +3 -10
- package/dist-es/commands/CreateMapCommand.js +3 -10
- package/dist-es/commands/CreatePlaceIndexCommand.js +3 -10
- package/dist-es/commands/CreateRouteCalculatorCommand.js +3 -10
- package/dist-es/commands/CreateTrackerCommand.js +3 -10
- package/dist-es/commands/DeleteGeofenceCollectionCommand.js +3 -9
- package/dist-es/commands/DeleteKeyCommand.js +3 -9
- package/dist-es/commands/DeleteMapCommand.js +3 -9
- package/dist-es/commands/DeletePlaceIndexCommand.js +3 -9
- package/dist-es/commands/DeleteRouteCalculatorCommand.js +3 -9
- package/dist-es/commands/DeleteTrackerCommand.js +3 -9
- package/dist-es/commands/DescribeGeofenceCollectionCommand.js +3 -10
- package/dist-es/commands/DescribeKeyCommand.js +3 -10
- package/dist-es/commands/DescribeMapCommand.js +3 -10
- package/dist-es/commands/DescribePlaceIndexCommand.js +3 -10
- package/dist-es/commands/DescribeRouteCalculatorCommand.js +3 -10
- package/dist-es/commands/DescribeTrackerCommand.js +3 -10
- package/dist-es/commands/DisassociateTrackerConsumerCommand.js +3 -9
- package/dist-es/commands/ForecastGeofenceEventsCommand.js +3 -10
- package/dist-es/commands/GetDevicePositionCommand.js +3 -10
- package/dist-es/commands/GetDevicePositionHistoryCommand.js +3 -10
- package/dist-es/commands/GetGeofenceCommand.js +3 -10
- package/dist-es/commands/GetMapGlyphsCommand.js +3 -10
- package/dist-es/commands/GetMapSpritesCommand.js +3 -10
- package/dist-es/commands/GetMapStyleDescriptorCommand.js +3 -10
- package/dist-es/commands/GetMapTileCommand.js +3 -10
- package/dist-es/commands/GetPlaceCommand.js +3 -10
- package/dist-es/commands/ListDevicePositionsCommand.js +3 -10
- package/dist-es/commands/ListGeofenceCollectionsCommand.js +3 -10
- package/dist-es/commands/ListGeofencesCommand.js +3 -10
- package/dist-es/commands/ListKeysCommand.js +3 -10
- package/dist-es/commands/ListMapsCommand.js +3 -10
- package/dist-es/commands/ListPlaceIndexesCommand.js +3 -10
- package/dist-es/commands/ListRouteCalculatorsCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTrackerConsumersCommand.js +3 -9
- package/dist-es/commands/ListTrackersCommand.js +3 -10
- package/dist-es/commands/PutGeofenceCommand.js +3 -10
- package/dist-es/commands/SearchPlaceIndexForPositionCommand.js +3 -10
- package/dist-es/commands/SearchPlaceIndexForSuggestionsCommand.js +3 -10
- package/dist-es/commands/SearchPlaceIndexForTextCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateGeofenceCollectionCommand.js +3 -10
- package/dist-es/commands/UpdateKeyCommand.js +3 -10
- package/dist-es/commands/UpdateMapCommand.js +3 -10
- package/dist-es/commands/UpdatePlaceIndexCommand.js +3 -10
- package/dist-es/commands/UpdateRouteCalculatorCommand.js +3 -10
- package/dist-es/commands/UpdateTrackerCommand.js +3 -10
- package/dist-es/commands/VerifyDevicePositionCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -590
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +2829 -0
- package/dist-types/LocationClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -428
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +317 -0
- package/dist-types/ts3.4/LocationClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -305
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +324 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -3081
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -542
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -725
|
@@ -1,3081 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
4
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
-
import { LocationServiceException as __BaseException } from "../models/LocationServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_AssociateTrackerConsumerCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/consumers");
|
|
13
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
ConsumerArn: [],
|
|
17
|
-
}));
|
|
18
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
19
|
-
if (context.disableHostPrefix !== true) {
|
|
20
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
21
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
22
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
b.hn(resolvedHostname);
|
|
26
|
-
b.m("POST").h(headers).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
export const se_BatchDeleteDevicePositionHistoryCommand = async (input, context) => {
|
|
30
|
-
const b = rb(input, context);
|
|
31
|
-
const headers = {
|
|
32
|
-
"content-type": "application/json",
|
|
33
|
-
};
|
|
34
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/delete-positions");
|
|
35
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
36
|
-
let body;
|
|
37
|
-
body = JSON.stringify(take(input, {
|
|
38
|
-
DeviceIds: (_) => _json(_),
|
|
39
|
-
}));
|
|
40
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
41
|
-
if (context.disableHostPrefix !== true) {
|
|
42
|
-
resolvedHostname = "tracking." + resolvedHostname;
|
|
43
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
44
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
b.hn(resolvedHostname);
|
|
48
|
-
b.m("POST").h(headers).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
export const se_BatchDeleteGeofenceCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {
|
|
54
|
-
"content-type": "application/json",
|
|
55
|
-
};
|
|
56
|
-
b.bp("/geofencing/v0/collections/{CollectionName}/delete-geofences");
|
|
57
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
58
|
-
let body;
|
|
59
|
-
body = JSON.stringify(take(input, {
|
|
60
|
-
GeofenceIds: (_) => _json(_),
|
|
61
|
-
}));
|
|
62
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
63
|
-
if (context.disableHostPrefix !== true) {
|
|
64
|
-
resolvedHostname = "geofencing." + resolvedHostname;
|
|
65
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
66
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
b.hn(resolvedHostname);
|
|
70
|
-
b.m("POST").h(headers).b(body);
|
|
71
|
-
return b.build();
|
|
72
|
-
};
|
|
73
|
-
export const se_BatchEvaluateGeofencesCommand = async (input, context) => {
|
|
74
|
-
const b = rb(input, context);
|
|
75
|
-
const headers = {
|
|
76
|
-
"content-type": "application/json",
|
|
77
|
-
};
|
|
78
|
-
b.bp("/geofencing/v0/collections/{CollectionName}/positions");
|
|
79
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(take(input, {
|
|
82
|
-
DevicePositionUpdates: (_) => se_DevicePositionUpdateList(_, context),
|
|
83
|
-
}));
|
|
84
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
85
|
-
if (context.disableHostPrefix !== true) {
|
|
86
|
-
resolvedHostname = "geofencing." + resolvedHostname;
|
|
87
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
88
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
b.hn(resolvedHostname);
|
|
92
|
-
b.m("POST").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_BatchGetDevicePositionCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {
|
|
98
|
-
"content-type": "application/json",
|
|
99
|
-
};
|
|
100
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/get-positions");
|
|
101
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify(take(input, {
|
|
104
|
-
DeviceIds: (_) => _json(_),
|
|
105
|
-
}));
|
|
106
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
107
|
-
if (context.disableHostPrefix !== true) {
|
|
108
|
-
resolvedHostname = "tracking." + resolvedHostname;
|
|
109
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
110
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
b.hn(resolvedHostname);
|
|
114
|
-
b.m("POST").h(headers).b(body);
|
|
115
|
-
return b.build();
|
|
116
|
-
};
|
|
117
|
-
export const se_BatchPutGeofenceCommand = async (input, context) => {
|
|
118
|
-
const b = rb(input, context);
|
|
119
|
-
const headers = {
|
|
120
|
-
"content-type": "application/json",
|
|
121
|
-
};
|
|
122
|
-
b.bp("/geofencing/v0/collections/{CollectionName}/put-geofences");
|
|
123
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify(take(input, {
|
|
126
|
-
Entries: (_) => se_BatchPutGeofenceRequestEntryList(_, context),
|
|
127
|
-
}));
|
|
128
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
129
|
-
if (context.disableHostPrefix !== true) {
|
|
130
|
-
resolvedHostname = "geofencing." + resolvedHostname;
|
|
131
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
132
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
b.hn(resolvedHostname);
|
|
136
|
-
b.m("POST").h(headers).b(body);
|
|
137
|
-
return b.build();
|
|
138
|
-
};
|
|
139
|
-
export const se_BatchUpdateDevicePositionCommand = async (input, context) => {
|
|
140
|
-
const b = rb(input, context);
|
|
141
|
-
const headers = {
|
|
142
|
-
"content-type": "application/json",
|
|
143
|
-
};
|
|
144
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/positions");
|
|
145
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(take(input, {
|
|
148
|
-
Updates: (_) => se_DevicePositionUpdateList(_, context),
|
|
149
|
-
}));
|
|
150
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
151
|
-
if (context.disableHostPrefix !== true) {
|
|
152
|
-
resolvedHostname = "tracking." + resolvedHostname;
|
|
153
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
154
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
b.hn(resolvedHostname);
|
|
158
|
-
b.m("POST").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
export const se_CalculateRouteCommand = async (input, context) => {
|
|
162
|
-
const b = rb(input, context);
|
|
163
|
-
const headers = {
|
|
164
|
-
"content-type": "application/json",
|
|
165
|
-
};
|
|
166
|
-
b.bp("/routes/v0/calculators/{CalculatorName}/calculate/route");
|
|
167
|
-
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
168
|
-
const query = map({
|
|
169
|
-
[_k]: [, input[_K]],
|
|
170
|
-
});
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(take(input, {
|
|
173
|
-
ArrivalTime: (_) => __serializeDateTime(_),
|
|
174
|
-
CarModeOptions: (_) => _json(_),
|
|
175
|
-
DepartNow: [],
|
|
176
|
-
DeparturePosition: (_) => se_Position(_, context),
|
|
177
|
-
DepartureTime: (_) => __serializeDateTime(_),
|
|
178
|
-
DestinationPosition: (_) => se_Position(_, context),
|
|
179
|
-
DistanceUnit: [],
|
|
180
|
-
IncludeLegGeometry: [],
|
|
181
|
-
OptimizeFor: [],
|
|
182
|
-
TravelMode: [],
|
|
183
|
-
TruckModeOptions: (_) => se_CalculateRouteTruckModeOptions(_, context),
|
|
184
|
-
WaypointPositions: (_) => se_WaypointPositionList(_, context),
|
|
185
|
-
}));
|
|
186
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
187
|
-
if (context.disableHostPrefix !== true) {
|
|
188
|
-
resolvedHostname = "routes." + resolvedHostname;
|
|
189
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
190
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
b.hn(resolvedHostname);
|
|
194
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
195
|
-
return b.build();
|
|
196
|
-
};
|
|
197
|
-
export const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
198
|
-
const b = rb(input, context);
|
|
199
|
-
const headers = {
|
|
200
|
-
"content-type": "application/json",
|
|
201
|
-
};
|
|
202
|
-
b.bp("/routes/v0/calculators/{CalculatorName}/calculate/route-matrix");
|
|
203
|
-
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
204
|
-
const query = map({
|
|
205
|
-
[_k]: [, input[_K]],
|
|
206
|
-
});
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(take(input, {
|
|
209
|
-
CarModeOptions: (_) => _json(_),
|
|
210
|
-
DepartNow: [],
|
|
211
|
-
DeparturePositions: (_) => se_PositionList(_, context),
|
|
212
|
-
DepartureTime: (_) => __serializeDateTime(_),
|
|
213
|
-
DestinationPositions: (_) => se_PositionList(_, context),
|
|
214
|
-
DistanceUnit: [],
|
|
215
|
-
TravelMode: [],
|
|
216
|
-
TruckModeOptions: (_) => se_CalculateRouteTruckModeOptions(_, context),
|
|
217
|
-
}));
|
|
218
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
219
|
-
if (context.disableHostPrefix !== true) {
|
|
220
|
-
resolvedHostname = "routes." + resolvedHostname;
|
|
221
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
222
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
b.hn(resolvedHostname);
|
|
226
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
227
|
-
return b.build();
|
|
228
|
-
};
|
|
229
|
-
export const se_CreateGeofenceCollectionCommand = async (input, context) => {
|
|
230
|
-
const b = rb(input, context);
|
|
231
|
-
const headers = {
|
|
232
|
-
"content-type": "application/json",
|
|
233
|
-
};
|
|
234
|
-
b.bp("/geofencing/v0/collections");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify(take(input, {
|
|
237
|
-
CollectionName: [],
|
|
238
|
-
Description: [],
|
|
239
|
-
KmsKeyId: [],
|
|
240
|
-
PricingPlan: [],
|
|
241
|
-
PricingPlanDataSource: [],
|
|
242
|
-
Tags: (_) => _json(_),
|
|
243
|
-
}));
|
|
244
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
245
|
-
if (context.disableHostPrefix !== true) {
|
|
246
|
-
resolvedHostname = "cp.geofencing." + resolvedHostname;
|
|
247
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
248
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
b.hn(resolvedHostname);
|
|
252
|
-
b.m("POST").h(headers).b(body);
|
|
253
|
-
return b.build();
|
|
254
|
-
};
|
|
255
|
-
export const se_CreateKeyCommand = async (input, context) => {
|
|
256
|
-
const b = rb(input, context);
|
|
257
|
-
const headers = {
|
|
258
|
-
"content-type": "application/json",
|
|
259
|
-
};
|
|
260
|
-
b.bp("/metadata/v0/keys");
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify(take(input, {
|
|
263
|
-
Description: [],
|
|
264
|
-
ExpireTime: (_) => __serializeDateTime(_),
|
|
265
|
-
KeyName: [],
|
|
266
|
-
NoExpiry: [],
|
|
267
|
-
Restrictions: (_) => _json(_),
|
|
268
|
-
Tags: (_) => _json(_),
|
|
269
|
-
}));
|
|
270
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
271
|
-
if (context.disableHostPrefix !== true) {
|
|
272
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
273
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
274
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
b.hn(resolvedHostname);
|
|
278
|
-
b.m("POST").h(headers).b(body);
|
|
279
|
-
return b.build();
|
|
280
|
-
};
|
|
281
|
-
export const se_CreateMapCommand = async (input, context) => {
|
|
282
|
-
const b = rb(input, context);
|
|
283
|
-
const headers = {
|
|
284
|
-
"content-type": "application/json",
|
|
285
|
-
};
|
|
286
|
-
b.bp("/maps/v0/maps");
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify(take(input, {
|
|
289
|
-
Configuration: (_) => _json(_),
|
|
290
|
-
Description: [],
|
|
291
|
-
MapName: [],
|
|
292
|
-
PricingPlan: [],
|
|
293
|
-
Tags: (_) => _json(_),
|
|
294
|
-
}));
|
|
295
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
296
|
-
if (context.disableHostPrefix !== true) {
|
|
297
|
-
resolvedHostname = "cp.maps." + resolvedHostname;
|
|
298
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
299
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
b.hn(resolvedHostname);
|
|
303
|
-
b.m("POST").h(headers).b(body);
|
|
304
|
-
return b.build();
|
|
305
|
-
};
|
|
306
|
-
export const se_CreatePlaceIndexCommand = async (input, context) => {
|
|
307
|
-
const b = rb(input, context);
|
|
308
|
-
const headers = {
|
|
309
|
-
"content-type": "application/json",
|
|
310
|
-
};
|
|
311
|
-
b.bp("/places/v0/indexes");
|
|
312
|
-
let body;
|
|
313
|
-
body = JSON.stringify(take(input, {
|
|
314
|
-
DataSource: [],
|
|
315
|
-
DataSourceConfiguration: (_) => _json(_),
|
|
316
|
-
Description: [],
|
|
317
|
-
IndexName: [],
|
|
318
|
-
PricingPlan: [],
|
|
319
|
-
Tags: (_) => _json(_),
|
|
320
|
-
}));
|
|
321
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
322
|
-
if (context.disableHostPrefix !== true) {
|
|
323
|
-
resolvedHostname = "cp.places." + resolvedHostname;
|
|
324
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
325
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
b.hn(resolvedHostname);
|
|
329
|
-
b.m("POST").h(headers).b(body);
|
|
330
|
-
return b.build();
|
|
331
|
-
};
|
|
332
|
-
export const se_CreateRouteCalculatorCommand = async (input, context) => {
|
|
333
|
-
const b = rb(input, context);
|
|
334
|
-
const headers = {
|
|
335
|
-
"content-type": "application/json",
|
|
336
|
-
};
|
|
337
|
-
b.bp("/routes/v0/calculators");
|
|
338
|
-
let body;
|
|
339
|
-
body = JSON.stringify(take(input, {
|
|
340
|
-
CalculatorName: [],
|
|
341
|
-
DataSource: [],
|
|
342
|
-
Description: [],
|
|
343
|
-
PricingPlan: [],
|
|
344
|
-
Tags: (_) => _json(_),
|
|
345
|
-
}));
|
|
346
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
347
|
-
if (context.disableHostPrefix !== true) {
|
|
348
|
-
resolvedHostname = "cp.routes." + resolvedHostname;
|
|
349
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
350
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
b.hn(resolvedHostname);
|
|
354
|
-
b.m("POST").h(headers).b(body);
|
|
355
|
-
return b.build();
|
|
356
|
-
};
|
|
357
|
-
export const se_CreateTrackerCommand = async (input, context) => {
|
|
358
|
-
const b = rb(input, context);
|
|
359
|
-
const headers = {
|
|
360
|
-
"content-type": "application/json",
|
|
361
|
-
};
|
|
362
|
-
b.bp("/tracking/v0/trackers");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify(take(input, {
|
|
365
|
-
Description: [],
|
|
366
|
-
EventBridgeEnabled: [],
|
|
367
|
-
KmsKeyEnableGeospatialQueries: [],
|
|
368
|
-
KmsKeyId: [],
|
|
369
|
-
PositionFiltering: [],
|
|
370
|
-
PricingPlan: [],
|
|
371
|
-
PricingPlanDataSource: [],
|
|
372
|
-
Tags: (_) => _json(_),
|
|
373
|
-
TrackerName: [],
|
|
374
|
-
}));
|
|
375
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
376
|
-
if (context.disableHostPrefix !== true) {
|
|
377
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
378
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
379
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
b.hn(resolvedHostname);
|
|
383
|
-
b.m("POST").h(headers).b(body);
|
|
384
|
-
return b.build();
|
|
385
|
-
};
|
|
386
|
-
export const se_DeleteGeofenceCollectionCommand = async (input, context) => {
|
|
387
|
-
const b = rb(input, context);
|
|
388
|
-
const headers = {};
|
|
389
|
-
b.bp("/geofencing/v0/collections/{CollectionName}");
|
|
390
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
391
|
-
let body;
|
|
392
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
393
|
-
if (context.disableHostPrefix !== true) {
|
|
394
|
-
resolvedHostname = "cp.geofencing." + resolvedHostname;
|
|
395
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
396
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
b.hn(resolvedHostname);
|
|
400
|
-
b.m("DELETE").h(headers).b(body);
|
|
401
|
-
return b.build();
|
|
402
|
-
};
|
|
403
|
-
export const se_DeleteKeyCommand = async (input, context) => {
|
|
404
|
-
const b = rb(input, context);
|
|
405
|
-
const headers = {};
|
|
406
|
-
b.bp("/metadata/v0/keys/{KeyName}");
|
|
407
|
-
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
408
|
-
const query = map({
|
|
409
|
-
[_fD]: [() => input.ForceDelete !== void 0, () => input[_FD].toString()],
|
|
410
|
-
});
|
|
411
|
-
let body;
|
|
412
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
413
|
-
if (context.disableHostPrefix !== true) {
|
|
414
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
415
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
416
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
b.hn(resolvedHostname);
|
|
420
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
421
|
-
return b.build();
|
|
422
|
-
};
|
|
423
|
-
export const se_DeleteMapCommand = async (input, context) => {
|
|
424
|
-
const b = rb(input, context);
|
|
425
|
-
const headers = {};
|
|
426
|
-
b.bp("/maps/v0/maps/{MapName}");
|
|
427
|
-
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
428
|
-
let body;
|
|
429
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
430
|
-
if (context.disableHostPrefix !== true) {
|
|
431
|
-
resolvedHostname = "cp.maps." + resolvedHostname;
|
|
432
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
433
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
b.hn(resolvedHostname);
|
|
437
|
-
b.m("DELETE").h(headers).b(body);
|
|
438
|
-
return b.build();
|
|
439
|
-
};
|
|
440
|
-
export const se_DeletePlaceIndexCommand = async (input, context) => {
|
|
441
|
-
const b = rb(input, context);
|
|
442
|
-
const headers = {};
|
|
443
|
-
b.bp("/places/v0/indexes/{IndexName}");
|
|
444
|
-
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
445
|
-
let body;
|
|
446
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
447
|
-
if (context.disableHostPrefix !== true) {
|
|
448
|
-
resolvedHostname = "cp.places." + resolvedHostname;
|
|
449
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
450
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
b.hn(resolvedHostname);
|
|
454
|
-
b.m("DELETE").h(headers).b(body);
|
|
455
|
-
return b.build();
|
|
456
|
-
};
|
|
457
|
-
export const se_DeleteRouteCalculatorCommand = async (input, context) => {
|
|
458
|
-
const b = rb(input, context);
|
|
459
|
-
const headers = {};
|
|
460
|
-
b.bp("/routes/v0/calculators/{CalculatorName}");
|
|
461
|
-
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
462
|
-
let body;
|
|
463
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
464
|
-
if (context.disableHostPrefix !== true) {
|
|
465
|
-
resolvedHostname = "cp.routes." + resolvedHostname;
|
|
466
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
467
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
b.hn(resolvedHostname);
|
|
471
|
-
b.m("DELETE").h(headers).b(body);
|
|
472
|
-
return b.build();
|
|
473
|
-
};
|
|
474
|
-
export const se_DeleteTrackerCommand = async (input, context) => {
|
|
475
|
-
const b = rb(input, context);
|
|
476
|
-
const headers = {};
|
|
477
|
-
b.bp("/tracking/v0/trackers/{TrackerName}");
|
|
478
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
479
|
-
let body;
|
|
480
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
481
|
-
if (context.disableHostPrefix !== true) {
|
|
482
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
483
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
484
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
b.hn(resolvedHostname);
|
|
488
|
-
b.m("DELETE").h(headers).b(body);
|
|
489
|
-
return b.build();
|
|
490
|
-
};
|
|
491
|
-
export const se_DescribeGeofenceCollectionCommand = async (input, context) => {
|
|
492
|
-
const b = rb(input, context);
|
|
493
|
-
const headers = {};
|
|
494
|
-
b.bp("/geofencing/v0/collections/{CollectionName}");
|
|
495
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
496
|
-
let body;
|
|
497
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
498
|
-
if (context.disableHostPrefix !== true) {
|
|
499
|
-
resolvedHostname = "cp.geofencing." + resolvedHostname;
|
|
500
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
501
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
b.hn(resolvedHostname);
|
|
505
|
-
b.m("GET").h(headers).b(body);
|
|
506
|
-
return b.build();
|
|
507
|
-
};
|
|
508
|
-
export const se_DescribeKeyCommand = async (input, context) => {
|
|
509
|
-
const b = rb(input, context);
|
|
510
|
-
const headers = {};
|
|
511
|
-
b.bp("/metadata/v0/keys/{KeyName}");
|
|
512
|
-
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
513
|
-
let body;
|
|
514
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
515
|
-
if (context.disableHostPrefix !== true) {
|
|
516
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
517
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
518
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
b.hn(resolvedHostname);
|
|
522
|
-
b.m("GET").h(headers).b(body);
|
|
523
|
-
return b.build();
|
|
524
|
-
};
|
|
525
|
-
export const se_DescribeMapCommand = async (input, context) => {
|
|
526
|
-
const b = rb(input, context);
|
|
527
|
-
const headers = {};
|
|
528
|
-
b.bp("/maps/v0/maps/{MapName}");
|
|
529
|
-
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
530
|
-
let body;
|
|
531
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
532
|
-
if (context.disableHostPrefix !== true) {
|
|
533
|
-
resolvedHostname = "cp.maps." + resolvedHostname;
|
|
534
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
535
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
b.hn(resolvedHostname);
|
|
539
|
-
b.m("GET").h(headers).b(body);
|
|
540
|
-
return b.build();
|
|
541
|
-
};
|
|
542
|
-
export const se_DescribePlaceIndexCommand = async (input, context) => {
|
|
543
|
-
const b = rb(input, context);
|
|
544
|
-
const headers = {};
|
|
545
|
-
b.bp("/places/v0/indexes/{IndexName}");
|
|
546
|
-
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
547
|
-
let body;
|
|
548
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
549
|
-
if (context.disableHostPrefix !== true) {
|
|
550
|
-
resolvedHostname = "cp.places." + resolvedHostname;
|
|
551
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
552
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
b.hn(resolvedHostname);
|
|
556
|
-
b.m("GET").h(headers).b(body);
|
|
557
|
-
return b.build();
|
|
558
|
-
};
|
|
559
|
-
export const se_DescribeRouteCalculatorCommand = async (input, context) => {
|
|
560
|
-
const b = rb(input, context);
|
|
561
|
-
const headers = {};
|
|
562
|
-
b.bp("/routes/v0/calculators/{CalculatorName}");
|
|
563
|
-
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
564
|
-
let body;
|
|
565
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
566
|
-
if (context.disableHostPrefix !== true) {
|
|
567
|
-
resolvedHostname = "cp.routes." + resolvedHostname;
|
|
568
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
569
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
b.hn(resolvedHostname);
|
|
573
|
-
b.m("GET").h(headers).b(body);
|
|
574
|
-
return b.build();
|
|
575
|
-
};
|
|
576
|
-
export const se_DescribeTrackerCommand = async (input, context) => {
|
|
577
|
-
const b = rb(input, context);
|
|
578
|
-
const headers = {};
|
|
579
|
-
b.bp("/tracking/v0/trackers/{TrackerName}");
|
|
580
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
581
|
-
let body;
|
|
582
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
583
|
-
if (context.disableHostPrefix !== true) {
|
|
584
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
585
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
586
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
b.hn(resolvedHostname);
|
|
590
|
-
b.m("GET").h(headers).b(body);
|
|
591
|
-
return b.build();
|
|
592
|
-
};
|
|
593
|
-
export const se_DisassociateTrackerConsumerCommand = async (input, context) => {
|
|
594
|
-
const b = rb(input, context);
|
|
595
|
-
const headers = {};
|
|
596
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}");
|
|
597
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
598
|
-
b.p("ConsumerArn", () => input.ConsumerArn, "{ConsumerArn}", false);
|
|
599
|
-
let body;
|
|
600
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
601
|
-
if (context.disableHostPrefix !== true) {
|
|
602
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
603
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
604
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
b.hn(resolvedHostname);
|
|
608
|
-
b.m("DELETE").h(headers).b(body);
|
|
609
|
-
return b.build();
|
|
610
|
-
};
|
|
611
|
-
export const se_ForecastGeofenceEventsCommand = async (input, context) => {
|
|
612
|
-
const b = rb(input, context);
|
|
613
|
-
const headers = {
|
|
614
|
-
"content-type": "application/json",
|
|
615
|
-
};
|
|
616
|
-
b.bp("/geofencing/v0/collections/{CollectionName}/forecast-geofence-events");
|
|
617
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
618
|
-
let body;
|
|
619
|
-
body = JSON.stringify(take(input, {
|
|
620
|
-
DeviceState: (_) => se_ForecastGeofenceEventsDeviceState(_, context),
|
|
621
|
-
DistanceUnit: [],
|
|
622
|
-
MaxResults: [],
|
|
623
|
-
NextToken: [],
|
|
624
|
-
SpeedUnit: [],
|
|
625
|
-
TimeHorizonMinutes: (_) => __serializeFloat(_),
|
|
626
|
-
}));
|
|
627
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
628
|
-
if (context.disableHostPrefix !== true) {
|
|
629
|
-
resolvedHostname = "geofencing." + resolvedHostname;
|
|
630
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
631
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
b.hn(resolvedHostname);
|
|
635
|
-
b.m("POST").h(headers).b(body);
|
|
636
|
-
return b.build();
|
|
637
|
-
};
|
|
638
|
-
export const se_GetDevicePositionCommand = async (input, context) => {
|
|
639
|
-
const b = rb(input, context);
|
|
640
|
-
const headers = {};
|
|
641
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest");
|
|
642
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
643
|
-
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
644
|
-
let body;
|
|
645
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
646
|
-
if (context.disableHostPrefix !== true) {
|
|
647
|
-
resolvedHostname = "tracking." + resolvedHostname;
|
|
648
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
649
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
b.hn(resolvedHostname);
|
|
653
|
-
b.m("GET").h(headers).b(body);
|
|
654
|
-
return b.build();
|
|
655
|
-
};
|
|
656
|
-
export const se_GetDevicePositionHistoryCommand = async (input, context) => {
|
|
657
|
-
const b = rb(input, context);
|
|
658
|
-
const headers = {
|
|
659
|
-
"content-type": "application/json",
|
|
660
|
-
};
|
|
661
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions");
|
|
662
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
663
|
-
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
664
|
-
let body;
|
|
665
|
-
body = JSON.stringify(take(input, {
|
|
666
|
-
EndTimeExclusive: (_) => __serializeDateTime(_),
|
|
667
|
-
MaxResults: [],
|
|
668
|
-
NextToken: [],
|
|
669
|
-
StartTimeInclusive: (_) => __serializeDateTime(_),
|
|
670
|
-
}));
|
|
671
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
672
|
-
if (context.disableHostPrefix !== true) {
|
|
673
|
-
resolvedHostname = "tracking." + resolvedHostname;
|
|
674
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
675
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
b.hn(resolvedHostname);
|
|
679
|
-
b.m("POST").h(headers).b(body);
|
|
680
|
-
return b.build();
|
|
681
|
-
};
|
|
682
|
-
export const se_GetGeofenceCommand = async (input, context) => {
|
|
683
|
-
const b = rb(input, context);
|
|
684
|
-
const headers = {};
|
|
685
|
-
b.bp("/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}");
|
|
686
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
687
|
-
b.p("GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
688
|
-
let body;
|
|
689
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
690
|
-
if (context.disableHostPrefix !== true) {
|
|
691
|
-
resolvedHostname = "geofencing." + resolvedHostname;
|
|
692
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
693
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
b.hn(resolvedHostname);
|
|
697
|
-
b.m("GET").h(headers).b(body);
|
|
698
|
-
return b.build();
|
|
699
|
-
};
|
|
700
|
-
export const se_GetMapGlyphsCommand = async (input, context) => {
|
|
701
|
-
const b = rb(input, context);
|
|
702
|
-
const headers = {};
|
|
703
|
-
b.bp("/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}");
|
|
704
|
-
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
705
|
-
b.p("FontStack", () => input.FontStack, "{FontStack}", false);
|
|
706
|
-
b.p("FontUnicodeRange", () => input.FontUnicodeRange, "{FontUnicodeRange}", false);
|
|
707
|
-
const query = map({
|
|
708
|
-
[_k]: [, input[_K]],
|
|
709
|
-
});
|
|
710
|
-
let body;
|
|
711
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
712
|
-
if (context.disableHostPrefix !== true) {
|
|
713
|
-
resolvedHostname = "maps." + resolvedHostname;
|
|
714
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
715
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
b.hn(resolvedHostname);
|
|
719
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
720
|
-
return b.build();
|
|
721
|
-
};
|
|
722
|
-
export const se_GetMapSpritesCommand = async (input, context) => {
|
|
723
|
-
const b = rb(input, context);
|
|
724
|
-
const headers = {};
|
|
725
|
-
b.bp("/maps/v0/maps/{MapName}/sprites/{FileName}");
|
|
726
|
-
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
727
|
-
b.p("FileName", () => input.FileName, "{FileName}", false);
|
|
728
|
-
const query = map({
|
|
729
|
-
[_k]: [, input[_K]],
|
|
730
|
-
});
|
|
731
|
-
let body;
|
|
732
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
733
|
-
if (context.disableHostPrefix !== true) {
|
|
734
|
-
resolvedHostname = "maps." + resolvedHostname;
|
|
735
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
736
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
b.hn(resolvedHostname);
|
|
740
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
741
|
-
return b.build();
|
|
742
|
-
};
|
|
743
|
-
export const se_GetMapStyleDescriptorCommand = async (input, context) => {
|
|
744
|
-
const b = rb(input, context);
|
|
745
|
-
const headers = {};
|
|
746
|
-
b.bp("/maps/v0/maps/{MapName}/style-descriptor");
|
|
747
|
-
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
748
|
-
const query = map({
|
|
749
|
-
[_k]: [, input[_K]],
|
|
750
|
-
});
|
|
751
|
-
let body;
|
|
752
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
753
|
-
if (context.disableHostPrefix !== true) {
|
|
754
|
-
resolvedHostname = "maps." + resolvedHostname;
|
|
755
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
756
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
b.hn(resolvedHostname);
|
|
760
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
761
|
-
return b.build();
|
|
762
|
-
};
|
|
763
|
-
export const se_GetMapTileCommand = async (input, context) => {
|
|
764
|
-
const b = rb(input, context);
|
|
765
|
-
const headers = {};
|
|
766
|
-
b.bp("/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}");
|
|
767
|
-
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
768
|
-
b.p("Z", () => input.Z, "{Z}", false);
|
|
769
|
-
b.p("X", () => input.X, "{X}", false);
|
|
770
|
-
b.p("Y", () => input.Y, "{Y}", false);
|
|
771
|
-
const query = map({
|
|
772
|
-
[_k]: [, input[_K]],
|
|
773
|
-
});
|
|
774
|
-
let body;
|
|
775
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
776
|
-
if (context.disableHostPrefix !== true) {
|
|
777
|
-
resolvedHostname = "maps." + resolvedHostname;
|
|
778
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
779
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
b.hn(resolvedHostname);
|
|
783
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
784
|
-
return b.build();
|
|
785
|
-
};
|
|
786
|
-
export const se_GetPlaceCommand = async (input, context) => {
|
|
787
|
-
const b = rb(input, context);
|
|
788
|
-
const headers = {};
|
|
789
|
-
b.bp("/places/v0/indexes/{IndexName}/places/{PlaceId}");
|
|
790
|
-
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
791
|
-
b.p("PlaceId", () => input.PlaceId, "{PlaceId}", false);
|
|
792
|
-
const query = map({
|
|
793
|
-
[_l]: [, input[_L]],
|
|
794
|
-
[_k]: [, input[_K]],
|
|
795
|
-
});
|
|
796
|
-
let body;
|
|
797
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
798
|
-
if (context.disableHostPrefix !== true) {
|
|
799
|
-
resolvedHostname = "places." + resolvedHostname;
|
|
800
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
801
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
b.hn(resolvedHostname);
|
|
805
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
806
|
-
return b.build();
|
|
807
|
-
};
|
|
808
|
-
export const se_ListDevicePositionsCommand = async (input, context) => {
|
|
809
|
-
const b = rb(input, context);
|
|
810
|
-
const headers = {
|
|
811
|
-
"content-type": "application/json",
|
|
812
|
-
};
|
|
813
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/list-positions");
|
|
814
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
815
|
-
let body;
|
|
816
|
-
body = JSON.stringify(take(input, {
|
|
817
|
-
FilterGeometry: (_) => se_TrackingFilterGeometry(_, context),
|
|
818
|
-
MaxResults: [],
|
|
819
|
-
NextToken: [],
|
|
820
|
-
}));
|
|
821
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
822
|
-
if (context.disableHostPrefix !== true) {
|
|
823
|
-
resolvedHostname = "tracking." + resolvedHostname;
|
|
824
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
825
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
b.hn(resolvedHostname);
|
|
829
|
-
b.m("POST").h(headers).b(body);
|
|
830
|
-
return b.build();
|
|
831
|
-
};
|
|
832
|
-
export const se_ListGeofenceCollectionsCommand = async (input, context) => {
|
|
833
|
-
const b = rb(input, context);
|
|
834
|
-
const headers = {
|
|
835
|
-
"content-type": "application/json",
|
|
836
|
-
};
|
|
837
|
-
b.bp("/geofencing/v0/list-collections");
|
|
838
|
-
let body;
|
|
839
|
-
body = JSON.stringify(take(input, {
|
|
840
|
-
MaxResults: [],
|
|
841
|
-
NextToken: [],
|
|
842
|
-
}));
|
|
843
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
844
|
-
if (context.disableHostPrefix !== true) {
|
|
845
|
-
resolvedHostname = "cp.geofencing." + resolvedHostname;
|
|
846
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
847
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
b.hn(resolvedHostname);
|
|
851
|
-
b.m("POST").h(headers).b(body);
|
|
852
|
-
return b.build();
|
|
853
|
-
};
|
|
854
|
-
export const se_ListGeofencesCommand = async (input, context) => {
|
|
855
|
-
const b = rb(input, context);
|
|
856
|
-
const headers = {
|
|
857
|
-
"content-type": "application/json",
|
|
858
|
-
};
|
|
859
|
-
b.bp("/geofencing/v0/collections/{CollectionName}/list-geofences");
|
|
860
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
861
|
-
let body;
|
|
862
|
-
body = JSON.stringify(take(input, {
|
|
863
|
-
MaxResults: [],
|
|
864
|
-
NextToken: [],
|
|
865
|
-
}));
|
|
866
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
867
|
-
if (context.disableHostPrefix !== true) {
|
|
868
|
-
resolvedHostname = "geofencing." + resolvedHostname;
|
|
869
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
870
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
b.hn(resolvedHostname);
|
|
874
|
-
b.m("POST").h(headers).b(body);
|
|
875
|
-
return b.build();
|
|
876
|
-
};
|
|
877
|
-
export const se_ListKeysCommand = async (input, context) => {
|
|
878
|
-
const b = rb(input, context);
|
|
879
|
-
const headers = {
|
|
880
|
-
"content-type": "application/json",
|
|
881
|
-
};
|
|
882
|
-
b.bp("/metadata/v0/list-keys");
|
|
883
|
-
let body;
|
|
884
|
-
body = JSON.stringify(take(input, {
|
|
885
|
-
Filter: (_) => _json(_),
|
|
886
|
-
MaxResults: [],
|
|
887
|
-
NextToken: [],
|
|
888
|
-
}));
|
|
889
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
890
|
-
if (context.disableHostPrefix !== true) {
|
|
891
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
892
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
893
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
b.hn(resolvedHostname);
|
|
897
|
-
b.m("POST").h(headers).b(body);
|
|
898
|
-
return b.build();
|
|
899
|
-
};
|
|
900
|
-
export const se_ListMapsCommand = async (input, context) => {
|
|
901
|
-
const b = rb(input, context);
|
|
902
|
-
const headers = {
|
|
903
|
-
"content-type": "application/json",
|
|
904
|
-
};
|
|
905
|
-
b.bp("/maps/v0/list-maps");
|
|
906
|
-
let body;
|
|
907
|
-
body = JSON.stringify(take(input, {
|
|
908
|
-
MaxResults: [],
|
|
909
|
-
NextToken: [],
|
|
910
|
-
}));
|
|
911
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
912
|
-
if (context.disableHostPrefix !== true) {
|
|
913
|
-
resolvedHostname = "cp.maps." + resolvedHostname;
|
|
914
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
915
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
b.hn(resolvedHostname);
|
|
919
|
-
b.m("POST").h(headers).b(body);
|
|
920
|
-
return b.build();
|
|
921
|
-
};
|
|
922
|
-
export const se_ListPlaceIndexesCommand = async (input, context) => {
|
|
923
|
-
const b = rb(input, context);
|
|
924
|
-
const headers = {
|
|
925
|
-
"content-type": "application/json",
|
|
926
|
-
};
|
|
927
|
-
b.bp("/places/v0/list-indexes");
|
|
928
|
-
let body;
|
|
929
|
-
body = JSON.stringify(take(input, {
|
|
930
|
-
MaxResults: [],
|
|
931
|
-
NextToken: [],
|
|
932
|
-
}));
|
|
933
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
934
|
-
if (context.disableHostPrefix !== true) {
|
|
935
|
-
resolvedHostname = "cp.places." + resolvedHostname;
|
|
936
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
937
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
b.hn(resolvedHostname);
|
|
941
|
-
b.m("POST").h(headers).b(body);
|
|
942
|
-
return b.build();
|
|
943
|
-
};
|
|
944
|
-
export const se_ListRouteCalculatorsCommand = async (input, context) => {
|
|
945
|
-
const b = rb(input, context);
|
|
946
|
-
const headers = {
|
|
947
|
-
"content-type": "application/json",
|
|
948
|
-
};
|
|
949
|
-
b.bp("/routes/v0/list-calculators");
|
|
950
|
-
let body;
|
|
951
|
-
body = JSON.stringify(take(input, {
|
|
952
|
-
MaxResults: [],
|
|
953
|
-
NextToken: [],
|
|
954
|
-
}));
|
|
955
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
956
|
-
if (context.disableHostPrefix !== true) {
|
|
957
|
-
resolvedHostname = "cp.routes." + resolvedHostname;
|
|
958
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
959
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
b.hn(resolvedHostname);
|
|
963
|
-
b.m("POST").h(headers).b(body);
|
|
964
|
-
return b.build();
|
|
965
|
-
};
|
|
966
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
967
|
-
const b = rb(input, context);
|
|
968
|
-
const headers = {};
|
|
969
|
-
b.bp("/tags/{ResourceArn}");
|
|
970
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
971
|
-
let body;
|
|
972
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
973
|
-
if (context.disableHostPrefix !== true) {
|
|
974
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
975
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
976
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
b.hn(resolvedHostname);
|
|
980
|
-
b.m("GET").h(headers).b(body);
|
|
981
|
-
return b.build();
|
|
982
|
-
};
|
|
983
|
-
export const se_ListTrackerConsumersCommand = async (input, context) => {
|
|
984
|
-
const b = rb(input, context);
|
|
985
|
-
const headers = {
|
|
986
|
-
"content-type": "application/json",
|
|
987
|
-
};
|
|
988
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/list-consumers");
|
|
989
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
990
|
-
let body;
|
|
991
|
-
body = JSON.stringify(take(input, {
|
|
992
|
-
MaxResults: [],
|
|
993
|
-
NextToken: [],
|
|
994
|
-
}));
|
|
995
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
996
|
-
if (context.disableHostPrefix !== true) {
|
|
997
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
998
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
999
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
b.hn(resolvedHostname);
|
|
1003
|
-
b.m("POST").h(headers).b(body);
|
|
1004
|
-
return b.build();
|
|
1005
|
-
};
|
|
1006
|
-
export const se_ListTrackersCommand = async (input, context) => {
|
|
1007
|
-
const b = rb(input, context);
|
|
1008
|
-
const headers = {
|
|
1009
|
-
"content-type": "application/json",
|
|
1010
|
-
};
|
|
1011
|
-
b.bp("/tracking/v0/list-trackers");
|
|
1012
|
-
let body;
|
|
1013
|
-
body = JSON.stringify(take(input, {
|
|
1014
|
-
MaxResults: [],
|
|
1015
|
-
NextToken: [],
|
|
1016
|
-
}));
|
|
1017
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1018
|
-
if (context.disableHostPrefix !== true) {
|
|
1019
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
1020
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1021
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
b.hn(resolvedHostname);
|
|
1025
|
-
b.m("POST").h(headers).b(body);
|
|
1026
|
-
return b.build();
|
|
1027
|
-
};
|
|
1028
|
-
export const se_PutGeofenceCommand = async (input, context) => {
|
|
1029
|
-
const b = rb(input, context);
|
|
1030
|
-
const headers = {
|
|
1031
|
-
"content-type": "application/json",
|
|
1032
|
-
};
|
|
1033
|
-
b.bp("/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}");
|
|
1034
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1035
|
-
b.p("GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
1036
|
-
let body;
|
|
1037
|
-
body = JSON.stringify(take(input, {
|
|
1038
|
-
GeofenceProperties: (_) => _json(_),
|
|
1039
|
-
Geometry: (_) => se_GeofenceGeometry(_, context),
|
|
1040
|
-
}));
|
|
1041
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1042
|
-
if (context.disableHostPrefix !== true) {
|
|
1043
|
-
resolvedHostname = "geofencing." + resolvedHostname;
|
|
1044
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1045
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
b.hn(resolvedHostname);
|
|
1049
|
-
b.m("PUT").h(headers).b(body);
|
|
1050
|
-
return b.build();
|
|
1051
|
-
};
|
|
1052
|
-
export const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
1053
|
-
const b = rb(input, context);
|
|
1054
|
-
const headers = {
|
|
1055
|
-
"content-type": "application/json",
|
|
1056
|
-
};
|
|
1057
|
-
b.bp("/places/v0/indexes/{IndexName}/search/position");
|
|
1058
|
-
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1059
|
-
const query = map({
|
|
1060
|
-
[_k]: [, input[_K]],
|
|
1061
|
-
});
|
|
1062
|
-
let body;
|
|
1063
|
-
body = JSON.stringify(take(input, {
|
|
1064
|
-
Language: [],
|
|
1065
|
-
MaxResults: [],
|
|
1066
|
-
Position: (_) => se_Position(_, context),
|
|
1067
|
-
}));
|
|
1068
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1069
|
-
if (context.disableHostPrefix !== true) {
|
|
1070
|
-
resolvedHostname = "places." + resolvedHostname;
|
|
1071
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1072
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
b.hn(resolvedHostname);
|
|
1076
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
1077
|
-
return b.build();
|
|
1078
|
-
};
|
|
1079
|
-
export const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
|
|
1080
|
-
const b = rb(input, context);
|
|
1081
|
-
const headers = {
|
|
1082
|
-
"content-type": "application/json",
|
|
1083
|
-
};
|
|
1084
|
-
b.bp("/places/v0/indexes/{IndexName}/search/suggestions");
|
|
1085
|
-
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1086
|
-
const query = map({
|
|
1087
|
-
[_k]: [, input[_K]],
|
|
1088
|
-
});
|
|
1089
|
-
let body;
|
|
1090
|
-
body = JSON.stringify(take(input, {
|
|
1091
|
-
BiasPosition: (_) => se_Position(_, context),
|
|
1092
|
-
FilterBBox: (_) => se_BoundingBox(_, context),
|
|
1093
|
-
FilterCategories: (_) => _json(_),
|
|
1094
|
-
FilterCountries: (_) => _json(_),
|
|
1095
|
-
Language: [],
|
|
1096
|
-
MaxResults: [],
|
|
1097
|
-
Text: [],
|
|
1098
|
-
}));
|
|
1099
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1100
|
-
if (context.disableHostPrefix !== true) {
|
|
1101
|
-
resolvedHostname = "places." + resolvedHostname;
|
|
1102
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1103
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
b.hn(resolvedHostname);
|
|
1107
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
1108
|
-
return b.build();
|
|
1109
|
-
};
|
|
1110
|
-
export const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
1111
|
-
const b = rb(input, context);
|
|
1112
|
-
const headers = {
|
|
1113
|
-
"content-type": "application/json",
|
|
1114
|
-
};
|
|
1115
|
-
b.bp("/places/v0/indexes/{IndexName}/search/text");
|
|
1116
|
-
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1117
|
-
const query = map({
|
|
1118
|
-
[_k]: [, input[_K]],
|
|
1119
|
-
});
|
|
1120
|
-
let body;
|
|
1121
|
-
body = JSON.stringify(take(input, {
|
|
1122
|
-
BiasPosition: (_) => se_Position(_, context),
|
|
1123
|
-
FilterBBox: (_) => se_BoundingBox(_, context),
|
|
1124
|
-
FilterCategories: (_) => _json(_),
|
|
1125
|
-
FilterCountries: (_) => _json(_),
|
|
1126
|
-
Language: [],
|
|
1127
|
-
MaxResults: [],
|
|
1128
|
-
Text: [],
|
|
1129
|
-
}));
|
|
1130
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1131
|
-
if (context.disableHostPrefix !== true) {
|
|
1132
|
-
resolvedHostname = "places." + resolvedHostname;
|
|
1133
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1134
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
b.hn(resolvedHostname);
|
|
1138
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
1139
|
-
return b.build();
|
|
1140
|
-
};
|
|
1141
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
1142
|
-
const b = rb(input, context);
|
|
1143
|
-
const headers = {
|
|
1144
|
-
"content-type": "application/json",
|
|
1145
|
-
};
|
|
1146
|
-
b.bp("/tags/{ResourceArn}");
|
|
1147
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1148
|
-
let body;
|
|
1149
|
-
body = JSON.stringify(take(input, {
|
|
1150
|
-
Tags: (_) => _json(_),
|
|
1151
|
-
}));
|
|
1152
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1153
|
-
if (context.disableHostPrefix !== true) {
|
|
1154
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
1155
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1156
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
b.hn(resolvedHostname);
|
|
1160
|
-
b.m("POST").h(headers).b(body);
|
|
1161
|
-
return b.build();
|
|
1162
|
-
};
|
|
1163
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
1164
|
-
const b = rb(input, context);
|
|
1165
|
-
const headers = {};
|
|
1166
|
-
b.bp("/tags/{ResourceArn}");
|
|
1167
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1168
|
-
const query = map({
|
|
1169
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
1170
|
-
});
|
|
1171
|
-
let body;
|
|
1172
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1173
|
-
if (context.disableHostPrefix !== true) {
|
|
1174
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
1175
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1176
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
b.hn(resolvedHostname);
|
|
1180
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
1181
|
-
return b.build();
|
|
1182
|
-
};
|
|
1183
|
-
export const se_UpdateGeofenceCollectionCommand = async (input, context) => {
|
|
1184
|
-
const b = rb(input, context);
|
|
1185
|
-
const headers = {
|
|
1186
|
-
"content-type": "application/json",
|
|
1187
|
-
};
|
|
1188
|
-
b.bp("/geofencing/v0/collections/{CollectionName}");
|
|
1189
|
-
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1190
|
-
let body;
|
|
1191
|
-
body = JSON.stringify(take(input, {
|
|
1192
|
-
Description: [],
|
|
1193
|
-
PricingPlan: [],
|
|
1194
|
-
PricingPlanDataSource: [],
|
|
1195
|
-
}));
|
|
1196
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1197
|
-
if (context.disableHostPrefix !== true) {
|
|
1198
|
-
resolvedHostname = "cp.geofencing." + resolvedHostname;
|
|
1199
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1200
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
b.hn(resolvedHostname);
|
|
1204
|
-
b.m("PATCH").h(headers).b(body);
|
|
1205
|
-
return b.build();
|
|
1206
|
-
};
|
|
1207
|
-
export const se_UpdateKeyCommand = async (input, context) => {
|
|
1208
|
-
const b = rb(input, context);
|
|
1209
|
-
const headers = {
|
|
1210
|
-
"content-type": "application/json",
|
|
1211
|
-
};
|
|
1212
|
-
b.bp("/metadata/v0/keys/{KeyName}");
|
|
1213
|
-
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
1214
|
-
let body;
|
|
1215
|
-
body = JSON.stringify(take(input, {
|
|
1216
|
-
Description: [],
|
|
1217
|
-
ExpireTime: (_) => __serializeDateTime(_),
|
|
1218
|
-
ForceUpdate: [],
|
|
1219
|
-
NoExpiry: [],
|
|
1220
|
-
Restrictions: (_) => _json(_),
|
|
1221
|
-
}));
|
|
1222
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1223
|
-
if (context.disableHostPrefix !== true) {
|
|
1224
|
-
resolvedHostname = "cp.metadata." + resolvedHostname;
|
|
1225
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1226
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
b.hn(resolvedHostname);
|
|
1230
|
-
b.m("PATCH").h(headers).b(body);
|
|
1231
|
-
return b.build();
|
|
1232
|
-
};
|
|
1233
|
-
export const se_UpdateMapCommand = async (input, context) => {
|
|
1234
|
-
const b = rb(input, context);
|
|
1235
|
-
const headers = {
|
|
1236
|
-
"content-type": "application/json",
|
|
1237
|
-
};
|
|
1238
|
-
b.bp("/maps/v0/maps/{MapName}");
|
|
1239
|
-
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
1240
|
-
let body;
|
|
1241
|
-
body = JSON.stringify(take(input, {
|
|
1242
|
-
ConfigurationUpdate: (_) => _json(_),
|
|
1243
|
-
Description: [],
|
|
1244
|
-
PricingPlan: [],
|
|
1245
|
-
}));
|
|
1246
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1247
|
-
if (context.disableHostPrefix !== true) {
|
|
1248
|
-
resolvedHostname = "cp.maps." + resolvedHostname;
|
|
1249
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1250
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
b.hn(resolvedHostname);
|
|
1254
|
-
b.m("PATCH").h(headers).b(body);
|
|
1255
|
-
return b.build();
|
|
1256
|
-
};
|
|
1257
|
-
export const se_UpdatePlaceIndexCommand = async (input, context) => {
|
|
1258
|
-
const b = rb(input, context);
|
|
1259
|
-
const headers = {
|
|
1260
|
-
"content-type": "application/json",
|
|
1261
|
-
};
|
|
1262
|
-
b.bp("/places/v0/indexes/{IndexName}");
|
|
1263
|
-
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1264
|
-
let body;
|
|
1265
|
-
body = JSON.stringify(take(input, {
|
|
1266
|
-
DataSourceConfiguration: (_) => _json(_),
|
|
1267
|
-
Description: [],
|
|
1268
|
-
PricingPlan: [],
|
|
1269
|
-
}));
|
|
1270
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1271
|
-
if (context.disableHostPrefix !== true) {
|
|
1272
|
-
resolvedHostname = "cp.places." + resolvedHostname;
|
|
1273
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1274
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
b.hn(resolvedHostname);
|
|
1278
|
-
b.m("PATCH").h(headers).b(body);
|
|
1279
|
-
return b.build();
|
|
1280
|
-
};
|
|
1281
|
-
export const se_UpdateRouteCalculatorCommand = async (input, context) => {
|
|
1282
|
-
const b = rb(input, context);
|
|
1283
|
-
const headers = {
|
|
1284
|
-
"content-type": "application/json",
|
|
1285
|
-
};
|
|
1286
|
-
b.bp("/routes/v0/calculators/{CalculatorName}");
|
|
1287
|
-
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
1288
|
-
let body;
|
|
1289
|
-
body = JSON.stringify(take(input, {
|
|
1290
|
-
Description: [],
|
|
1291
|
-
PricingPlan: [],
|
|
1292
|
-
}));
|
|
1293
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1294
|
-
if (context.disableHostPrefix !== true) {
|
|
1295
|
-
resolvedHostname = "cp.routes." + resolvedHostname;
|
|
1296
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1297
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
b.hn(resolvedHostname);
|
|
1301
|
-
b.m("PATCH").h(headers).b(body);
|
|
1302
|
-
return b.build();
|
|
1303
|
-
};
|
|
1304
|
-
export const se_UpdateTrackerCommand = async (input, context) => {
|
|
1305
|
-
const b = rb(input, context);
|
|
1306
|
-
const headers = {
|
|
1307
|
-
"content-type": "application/json",
|
|
1308
|
-
};
|
|
1309
|
-
b.bp("/tracking/v0/trackers/{TrackerName}");
|
|
1310
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1311
|
-
let body;
|
|
1312
|
-
body = JSON.stringify(take(input, {
|
|
1313
|
-
Description: [],
|
|
1314
|
-
EventBridgeEnabled: [],
|
|
1315
|
-
KmsKeyEnableGeospatialQueries: [],
|
|
1316
|
-
PositionFiltering: [],
|
|
1317
|
-
PricingPlan: [],
|
|
1318
|
-
PricingPlanDataSource: [],
|
|
1319
|
-
}));
|
|
1320
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1321
|
-
if (context.disableHostPrefix !== true) {
|
|
1322
|
-
resolvedHostname = "cp.tracking." + resolvedHostname;
|
|
1323
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1324
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
b.hn(resolvedHostname);
|
|
1328
|
-
b.m("PATCH").h(headers).b(body);
|
|
1329
|
-
return b.build();
|
|
1330
|
-
};
|
|
1331
|
-
export const se_VerifyDevicePositionCommand = async (input, context) => {
|
|
1332
|
-
const b = rb(input, context);
|
|
1333
|
-
const headers = {
|
|
1334
|
-
"content-type": "application/json",
|
|
1335
|
-
};
|
|
1336
|
-
b.bp("/tracking/v0/trackers/{TrackerName}/positions/verify");
|
|
1337
|
-
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1338
|
-
let body;
|
|
1339
|
-
body = JSON.stringify(take(input, {
|
|
1340
|
-
DeviceState: (_) => se_DeviceState(_, context),
|
|
1341
|
-
DistanceUnit: [],
|
|
1342
|
-
}));
|
|
1343
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1344
|
-
if (context.disableHostPrefix !== true) {
|
|
1345
|
-
resolvedHostname = "tracking." + resolvedHostname;
|
|
1346
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
1347
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
b.hn(resolvedHostname);
|
|
1351
|
-
b.m("POST").h(headers).b(body);
|
|
1352
|
-
return b.build();
|
|
1353
|
-
};
|
|
1354
|
-
export const de_AssociateTrackerConsumerCommand = async (output, context) => {
|
|
1355
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1356
|
-
return de_CommandError(output, context);
|
|
1357
|
-
}
|
|
1358
|
-
const contents = map({
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
});
|
|
1361
|
-
await collectBody(output.body, context);
|
|
1362
|
-
return contents;
|
|
1363
|
-
};
|
|
1364
|
-
export const de_BatchDeleteDevicePositionHistoryCommand = async (output, context) => {
|
|
1365
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1366
|
-
return de_CommandError(output, context);
|
|
1367
|
-
}
|
|
1368
|
-
const contents = map({
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
});
|
|
1371
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1372
|
-
const doc = take(data, {
|
|
1373
|
-
Errors: _json,
|
|
1374
|
-
});
|
|
1375
|
-
Object.assign(contents, doc);
|
|
1376
|
-
return contents;
|
|
1377
|
-
};
|
|
1378
|
-
export const de_BatchDeleteGeofenceCommand = async (output, context) => {
|
|
1379
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
-
return de_CommandError(output, context);
|
|
1381
|
-
}
|
|
1382
|
-
const contents = map({
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
});
|
|
1385
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1386
|
-
const doc = take(data, {
|
|
1387
|
-
Errors: _json,
|
|
1388
|
-
});
|
|
1389
|
-
Object.assign(contents, doc);
|
|
1390
|
-
return contents;
|
|
1391
|
-
};
|
|
1392
|
-
export const de_BatchEvaluateGeofencesCommand = async (output, context) => {
|
|
1393
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1394
|
-
return de_CommandError(output, context);
|
|
1395
|
-
}
|
|
1396
|
-
const contents = map({
|
|
1397
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
-
});
|
|
1399
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1400
|
-
const doc = take(data, {
|
|
1401
|
-
Errors: (_) => de_BatchEvaluateGeofencesErrorList(_, context),
|
|
1402
|
-
});
|
|
1403
|
-
Object.assign(contents, doc);
|
|
1404
|
-
return contents;
|
|
1405
|
-
};
|
|
1406
|
-
export const de_BatchGetDevicePositionCommand = async (output, context) => {
|
|
1407
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
|
-
return de_CommandError(output, context);
|
|
1409
|
-
}
|
|
1410
|
-
const contents = map({
|
|
1411
|
-
$metadata: deserializeMetadata(output),
|
|
1412
|
-
});
|
|
1413
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1414
|
-
const doc = take(data, {
|
|
1415
|
-
DevicePositions: (_) => de_DevicePositionList(_, context),
|
|
1416
|
-
Errors: _json,
|
|
1417
|
-
});
|
|
1418
|
-
Object.assign(contents, doc);
|
|
1419
|
-
return contents;
|
|
1420
|
-
};
|
|
1421
|
-
export const de_BatchPutGeofenceCommand = async (output, context) => {
|
|
1422
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1423
|
-
return de_CommandError(output, context);
|
|
1424
|
-
}
|
|
1425
|
-
const contents = map({
|
|
1426
|
-
$metadata: deserializeMetadata(output),
|
|
1427
|
-
});
|
|
1428
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1429
|
-
const doc = take(data, {
|
|
1430
|
-
Errors: _json,
|
|
1431
|
-
Successes: (_) => de_BatchPutGeofenceSuccessList(_, context),
|
|
1432
|
-
});
|
|
1433
|
-
Object.assign(contents, doc);
|
|
1434
|
-
return contents;
|
|
1435
|
-
};
|
|
1436
|
-
export const de_BatchUpdateDevicePositionCommand = async (output, context) => {
|
|
1437
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1438
|
-
return de_CommandError(output, context);
|
|
1439
|
-
}
|
|
1440
|
-
const contents = map({
|
|
1441
|
-
$metadata: deserializeMetadata(output),
|
|
1442
|
-
});
|
|
1443
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1444
|
-
const doc = take(data, {
|
|
1445
|
-
Errors: (_) => de_BatchUpdateDevicePositionErrorList(_, context),
|
|
1446
|
-
});
|
|
1447
|
-
Object.assign(contents, doc);
|
|
1448
|
-
return contents;
|
|
1449
|
-
};
|
|
1450
|
-
export const de_CalculateRouteCommand = async (output, context) => {
|
|
1451
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1452
|
-
return de_CommandError(output, context);
|
|
1453
|
-
}
|
|
1454
|
-
const contents = map({
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
});
|
|
1457
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1458
|
-
const doc = take(data, {
|
|
1459
|
-
Legs: (_) => de_LegList(_, context),
|
|
1460
|
-
Summary: (_) => de_CalculateRouteSummary(_, context),
|
|
1461
|
-
});
|
|
1462
|
-
Object.assign(contents, doc);
|
|
1463
|
-
return contents;
|
|
1464
|
-
};
|
|
1465
|
-
export const de_CalculateRouteMatrixCommand = async (output, context) => {
|
|
1466
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1467
|
-
return de_CommandError(output, context);
|
|
1468
|
-
}
|
|
1469
|
-
const contents = map({
|
|
1470
|
-
$metadata: deserializeMetadata(output),
|
|
1471
|
-
});
|
|
1472
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1473
|
-
const doc = take(data, {
|
|
1474
|
-
RouteMatrix: (_) => de_RouteMatrix(_, context),
|
|
1475
|
-
SnappedDeparturePositions: (_) => de_PositionList(_, context),
|
|
1476
|
-
SnappedDestinationPositions: (_) => de_PositionList(_, context),
|
|
1477
|
-
Summary: _json,
|
|
1478
|
-
});
|
|
1479
|
-
Object.assign(contents, doc);
|
|
1480
|
-
return contents;
|
|
1481
|
-
};
|
|
1482
|
-
export const de_CreateGeofenceCollectionCommand = async (output, context) => {
|
|
1483
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
|
-
return de_CommandError(output, context);
|
|
1485
|
-
}
|
|
1486
|
-
const contents = map({
|
|
1487
|
-
$metadata: deserializeMetadata(output),
|
|
1488
|
-
});
|
|
1489
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1490
|
-
const doc = take(data, {
|
|
1491
|
-
CollectionArn: __expectString,
|
|
1492
|
-
CollectionName: __expectString,
|
|
1493
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1494
|
-
});
|
|
1495
|
-
Object.assign(contents, doc);
|
|
1496
|
-
return contents;
|
|
1497
|
-
};
|
|
1498
|
-
export const de_CreateKeyCommand = async (output, context) => {
|
|
1499
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1500
|
-
return de_CommandError(output, context);
|
|
1501
|
-
}
|
|
1502
|
-
const contents = map({
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
});
|
|
1505
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1506
|
-
const doc = take(data, {
|
|
1507
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1508
|
-
Key: __expectString,
|
|
1509
|
-
KeyArn: __expectString,
|
|
1510
|
-
KeyName: __expectString,
|
|
1511
|
-
});
|
|
1512
|
-
Object.assign(contents, doc);
|
|
1513
|
-
return contents;
|
|
1514
|
-
};
|
|
1515
|
-
export const de_CreateMapCommand = async (output, context) => {
|
|
1516
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1517
|
-
return de_CommandError(output, context);
|
|
1518
|
-
}
|
|
1519
|
-
const contents = map({
|
|
1520
|
-
$metadata: deserializeMetadata(output),
|
|
1521
|
-
});
|
|
1522
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1523
|
-
const doc = take(data, {
|
|
1524
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1525
|
-
MapArn: __expectString,
|
|
1526
|
-
MapName: __expectString,
|
|
1527
|
-
});
|
|
1528
|
-
Object.assign(contents, doc);
|
|
1529
|
-
return contents;
|
|
1530
|
-
};
|
|
1531
|
-
export const de_CreatePlaceIndexCommand = async (output, context) => {
|
|
1532
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1533
|
-
return de_CommandError(output, context);
|
|
1534
|
-
}
|
|
1535
|
-
const contents = map({
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
});
|
|
1538
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1539
|
-
const doc = take(data, {
|
|
1540
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1541
|
-
IndexArn: __expectString,
|
|
1542
|
-
IndexName: __expectString,
|
|
1543
|
-
});
|
|
1544
|
-
Object.assign(contents, doc);
|
|
1545
|
-
return contents;
|
|
1546
|
-
};
|
|
1547
|
-
export const de_CreateRouteCalculatorCommand = async (output, context) => {
|
|
1548
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
-
return de_CommandError(output, context);
|
|
1550
|
-
}
|
|
1551
|
-
const contents = map({
|
|
1552
|
-
$metadata: deserializeMetadata(output),
|
|
1553
|
-
});
|
|
1554
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1555
|
-
const doc = take(data, {
|
|
1556
|
-
CalculatorArn: __expectString,
|
|
1557
|
-
CalculatorName: __expectString,
|
|
1558
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1559
|
-
});
|
|
1560
|
-
Object.assign(contents, doc);
|
|
1561
|
-
return contents;
|
|
1562
|
-
};
|
|
1563
|
-
export const de_CreateTrackerCommand = async (output, context) => {
|
|
1564
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
|
-
return de_CommandError(output, context);
|
|
1566
|
-
}
|
|
1567
|
-
const contents = map({
|
|
1568
|
-
$metadata: deserializeMetadata(output),
|
|
1569
|
-
});
|
|
1570
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1571
|
-
const doc = take(data, {
|
|
1572
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1573
|
-
TrackerArn: __expectString,
|
|
1574
|
-
TrackerName: __expectString,
|
|
1575
|
-
});
|
|
1576
|
-
Object.assign(contents, doc);
|
|
1577
|
-
return contents;
|
|
1578
|
-
};
|
|
1579
|
-
export const de_DeleteGeofenceCollectionCommand = async (output, context) => {
|
|
1580
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1581
|
-
return de_CommandError(output, context);
|
|
1582
|
-
}
|
|
1583
|
-
const contents = map({
|
|
1584
|
-
$metadata: deserializeMetadata(output),
|
|
1585
|
-
});
|
|
1586
|
-
await collectBody(output.body, context);
|
|
1587
|
-
return contents;
|
|
1588
|
-
};
|
|
1589
|
-
export const de_DeleteKeyCommand = async (output, context) => {
|
|
1590
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
|
-
return de_CommandError(output, context);
|
|
1592
|
-
}
|
|
1593
|
-
const contents = map({
|
|
1594
|
-
$metadata: deserializeMetadata(output),
|
|
1595
|
-
});
|
|
1596
|
-
await collectBody(output.body, context);
|
|
1597
|
-
return contents;
|
|
1598
|
-
};
|
|
1599
|
-
export const de_DeleteMapCommand = async (output, context) => {
|
|
1600
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1601
|
-
return de_CommandError(output, context);
|
|
1602
|
-
}
|
|
1603
|
-
const contents = map({
|
|
1604
|
-
$metadata: deserializeMetadata(output),
|
|
1605
|
-
});
|
|
1606
|
-
await collectBody(output.body, context);
|
|
1607
|
-
return contents;
|
|
1608
|
-
};
|
|
1609
|
-
export const de_DeletePlaceIndexCommand = async (output, context) => {
|
|
1610
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1611
|
-
return de_CommandError(output, context);
|
|
1612
|
-
}
|
|
1613
|
-
const contents = map({
|
|
1614
|
-
$metadata: deserializeMetadata(output),
|
|
1615
|
-
});
|
|
1616
|
-
await collectBody(output.body, context);
|
|
1617
|
-
return contents;
|
|
1618
|
-
};
|
|
1619
|
-
export const de_DeleteRouteCalculatorCommand = async (output, context) => {
|
|
1620
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1621
|
-
return de_CommandError(output, context);
|
|
1622
|
-
}
|
|
1623
|
-
const contents = map({
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
});
|
|
1626
|
-
await collectBody(output.body, context);
|
|
1627
|
-
return contents;
|
|
1628
|
-
};
|
|
1629
|
-
export const de_DeleteTrackerCommand = async (output, context) => {
|
|
1630
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
|
-
return de_CommandError(output, context);
|
|
1632
|
-
}
|
|
1633
|
-
const contents = map({
|
|
1634
|
-
$metadata: deserializeMetadata(output),
|
|
1635
|
-
});
|
|
1636
|
-
await collectBody(output.body, context);
|
|
1637
|
-
return contents;
|
|
1638
|
-
};
|
|
1639
|
-
export const de_DescribeGeofenceCollectionCommand = async (output, context) => {
|
|
1640
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1641
|
-
return de_CommandError(output, context);
|
|
1642
|
-
}
|
|
1643
|
-
const contents = map({
|
|
1644
|
-
$metadata: deserializeMetadata(output),
|
|
1645
|
-
});
|
|
1646
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1647
|
-
const doc = take(data, {
|
|
1648
|
-
CollectionArn: __expectString,
|
|
1649
|
-
CollectionName: __expectString,
|
|
1650
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1651
|
-
Description: __expectString,
|
|
1652
|
-
GeofenceCount: __expectInt32,
|
|
1653
|
-
KmsKeyId: __expectString,
|
|
1654
|
-
PricingPlan: __expectString,
|
|
1655
|
-
PricingPlanDataSource: __expectString,
|
|
1656
|
-
Tags: _json,
|
|
1657
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1658
|
-
});
|
|
1659
|
-
Object.assign(contents, doc);
|
|
1660
|
-
return contents;
|
|
1661
|
-
};
|
|
1662
|
-
export const de_DescribeKeyCommand = async (output, context) => {
|
|
1663
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1664
|
-
return de_CommandError(output, context);
|
|
1665
|
-
}
|
|
1666
|
-
const contents = map({
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
});
|
|
1669
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1670
|
-
const doc = take(data, {
|
|
1671
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1672
|
-
Description: __expectString,
|
|
1673
|
-
ExpireTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1674
|
-
Key: __expectString,
|
|
1675
|
-
KeyArn: __expectString,
|
|
1676
|
-
KeyName: __expectString,
|
|
1677
|
-
Restrictions: _json,
|
|
1678
|
-
Tags: _json,
|
|
1679
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1680
|
-
});
|
|
1681
|
-
Object.assign(contents, doc);
|
|
1682
|
-
return contents;
|
|
1683
|
-
};
|
|
1684
|
-
export const de_DescribeMapCommand = async (output, context) => {
|
|
1685
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1686
|
-
return de_CommandError(output, context);
|
|
1687
|
-
}
|
|
1688
|
-
const contents = map({
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
});
|
|
1691
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1692
|
-
const doc = take(data, {
|
|
1693
|
-
Configuration: _json,
|
|
1694
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1695
|
-
DataSource: __expectString,
|
|
1696
|
-
Description: __expectString,
|
|
1697
|
-
MapArn: __expectString,
|
|
1698
|
-
MapName: __expectString,
|
|
1699
|
-
PricingPlan: __expectString,
|
|
1700
|
-
Tags: _json,
|
|
1701
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1702
|
-
});
|
|
1703
|
-
Object.assign(contents, doc);
|
|
1704
|
-
return contents;
|
|
1705
|
-
};
|
|
1706
|
-
export const de_DescribePlaceIndexCommand = async (output, context) => {
|
|
1707
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1708
|
-
return de_CommandError(output, context);
|
|
1709
|
-
}
|
|
1710
|
-
const contents = map({
|
|
1711
|
-
$metadata: deserializeMetadata(output),
|
|
1712
|
-
});
|
|
1713
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1714
|
-
const doc = take(data, {
|
|
1715
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1716
|
-
DataSource: __expectString,
|
|
1717
|
-
DataSourceConfiguration: _json,
|
|
1718
|
-
Description: __expectString,
|
|
1719
|
-
IndexArn: __expectString,
|
|
1720
|
-
IndexName: __expectString,
|
|
1721
|
-
PricingPlan: __expectString,
|
|
1722
|
-
Tags: _json,
|
|
1723
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1724
|
-
});
|
|
1725
|
-
Object.assign(contents, doc);
|
|
1726
|
-
return contents;
|
|
1727
|
-
};
|
|
1728
|
-
export const de_DescribeRouteCalculatorCommand = async (output, context) => {
|
|
1729
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1730
|
-
return de_CommandError(output, context);
|
|
1731
|
-
}
|
|
1732
|
-
const contents = map({
|
|
1733
|
-
$metadata: deserializeMetadata(output),
|
|
1734
|
-
});
|
|
1735
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1736
|
-
const doc = take(data, {
|
|
1737
|
-
CalculatorArn: __expectString,
|
|
1738
|
-
CalculatorName: __expectString,
|
|
1739
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1740
|
-
DataSource: __expectString,
|
|
1741
|
-
Description: __expectString,
|
|
1742
|
-
PricingPlan: __expectString,
|
|
1743
|
-
Tags: _json,
|
|
1744
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1745
|
-
});
|
|
1746
|
-
Object.assign(contents, doc);
|
|
1747
|
-
return contents;
|
|
1748
|
-
};
|
|
1749
|
-
export const de_DescribeTrackerCommand = async (output, context) => {
|
|
1750
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1751
|
-
return de_CommandError(output, context);
|
|
1752
|
-
}
|
|
1753
|
-
const contents = map({
|
|
1754
|
-
$metadata: deserializeMetadata(output),
|
|
1755
|
-
});
|
|
1756
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1757
|
-
const doc = take(data, {
|
|
1758
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1759
|
-
Description: __expectString,
|
|
1760
|
-
EventBridgeEnabled: __expectBoolean,
|
|
1761
|
-
KmsKeyEnableGeospatialQueries: __expectBoolean,
|
|
1762
|
-
KmsKeyId: __expectString,
|
|
1763
|
-
PositionFiltering: __expectString,
|
|
1764
|
-
PricingPlan: __expectString,
|
|
1765
|
-
PricingPlanDataSource: __expectString,
|
|
1766
|
-
Tags: _json,
|
|
1767
|
-
TrackerArn: __expectString,
|
|
1768
|
-
TrackerName: __expectString,
|
|
1769
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1770
|
-
});
|
|
1771
|
-
Object.assign(contents, doc);
|
|
1772
|
-
return contents;
|
|
1773
|
-
};
|
|
1774
|
-
export const de_DisassociateTrackerConsumerCommand = async (output, context) => {
|
|
1775
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1776
|
-
return de_CommandError(output, context);
|
|
1777
|
-
}
|
|
1778
|
-
const contents = map({
|
|
1779
|
-
$metadata: deserializeMetadata(output),
|
|
1780
|
-
});
|
|
1781
|
-
await collectBody(output.body, context);
|
|
1782
|
-
return contents;
|
|
1783
|
-
};
|
|
1784
|
-
export const de_ForecastGeofenceEventsCommand = async (output, context) => {
|
|
1785
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
|
-
return de_CommandError(output, context);
|
|
1787
|
-
}
|
|
1788
|
-
const contents = map({
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
});
|
|
1791
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1792
|
-
const doc = take(data, {
|
|
1793
|
-
DistanceUnit: __expectString,
|
|
1794
|
-
ForecastedEvents: (_) => de_ForecastedEventsList(_, context),
|
|
1795
|
-
NextToken: __expectString,
|
|
1796
|
-
SpeedUnit: __expectString,
|
|
1797
|
-
});
|
|
1798
|
-
Object.assign(contents, doc);
|
|
1799
|
-
return contents;
|
|
1800
|
-
};
|
|
1801
|
-
export const de_GetDevicePositionCommand = async (output, context) => {
|
|
1802
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1803
|
-
return de_CommandError(output, context);
|
|
1804
|
-
}
|
|
1805
|
-
const contents = map({
|
|
1806
|
-
$metadata: deserializeMetadata(output),
|
|
1807
|
-
});
|
|
1808
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1809
|
-
const doc = take(data, {
|
|
1810
|
-
Accuracy: (_) => de_PositionalAccuracy(_, context),
|
|
1811
|
-
DeviceId: __expectString,
|
|
1812
|
-
Position: (_) => de_Position(_, context),
|
|
1813
|
-
PositionProperties: _json,
|
|
1814
|
-
ReceivedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1815
|
-
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1816
|
-
});
|
|
1817
|
-
Object.assign(contents, doc);
|
|
1818
|
-
return contents;
|
|
1819
|
-
};
|
|
1820
|
-
export const de_GetDevicePositionHistoryCommand = async (output, context) => {
|
|
1821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1822
|
-
return de_CommandError(output, context);
|
|
1823
|
-
}
|
|
1824
|
-
const contents = map({
|
|
1825
|
-
$metadata: deserializeMetadata(output),
|
|
1826
|
-
});
|
|
1827
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1828
|
-
const doc = take(data, {
|
|
1829
|
-
DevicePositions: (_) => de_DevicePositionList(_, context),
|
|
1830
|
-
NextToken: __expectString,
|
|
1831
|
-
});
|
|
1832
|
-
Object.assign(contents, doc);
|
|
1833
|
-
return contents;
|
|
1834
|
-
};
|
|
1835
|
-
export const de_GetGeofenceCommand = async (output, context) => {
|
|
1836
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1837
|
-
return de_CommandError(output, context);
|
|
1838
|
-
}
|
|
1839
|
-
const contents = map({
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
});
|
|
1842
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1843
|
-
const doc = take(data, {
|
|
1844
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1845
|
-
GeofenceId: __expectString,
|
|
1846
|
-
GeofenceProperties: _json,
|
|
1847
|
-
Geometry: (_) => de_GeofenceGeometry(_, context),
|
|
1848
|
-
Status: __expectString,
|
|
1849
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1850
|
-
});
|
|
1851
|
-
Object.assign(contents, doc);
|
|
1852
|
-
return contents;
|
|
1853
|
-
};
|
|
1854
|
-
export const de_GetMapGlyphsCommand = async (output, context) => {
|
|
1855
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1856
|
-
return de_CommandError(output, context);
|
|
1857
|
-
}
|
|
1858
|
-
const contents = map({
|
|
1859
|
-
$metadata: deserializeMetadata(output),
|
|
1860
|
-
[_CT]: [, output.headers[_ct]],
|
|
1861
|
-
[_CC]: [, output.headers[_cc]],
|
|
1862
|
-
});
|
|
1863
|
-
const data = await collectBody(output.body, context);
|
|
1864
|
-
contents.Blob = data;
|
|
1865
|
-
return contents;
|
|
1866
|
-
};
|
|
1867
|
-
export const de_GetMapSpritesCommand = async (output, context) => {
|
|
1868
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
-
return de_CommandError(output, context);
|
|
1870
|
-
}
|
|
1871
|
-
const contents = map({
|
|
1872
|
-
$metadata: deserializeMetadata(output),
|
|
1873
|
-
[_CT]: [, output.headers[_ct]],
|
|
1874
|
-
[_CC]: [, output.headers[_cc]],
|
|
1875
|
-
});
|
|
1876
|
-
const data = await collectBody(output.body, context);
|
|
1877
|
-
contents.Blob = data;
|
|
1878
|
-
return contents;
|
|
1879
|
-
};
|
|
1880
|
-
export const de_GetMapStyleDescriptorCommand = async (output, context) => {
|
|
1881
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1882
|
-
return de_CommandError(output, context);
|
|
1883
|
-
}
|
|
1884
|
-
const contents = map({
|
|
1885
|
-
$metadata: deserializeMetadata(output),
|
|
1886
|
-
[_CT]: [, output.headers[_ct]],
|
|
1887
|
-
[_CC]: [, output.headers[_cc]],
|
|
1888
|
-
});
|
|
1889
|
-
const data = await collectBody(output.body, context);
|
|
1890
|
-
contents.Blob = data;
|
|
1891
|
-
return contents;
|
|
1892
|
-
};
|
|
1893
|
-
export const de_GetMapTileCommand = async (output, context) => {
|
|
1894
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1895
|
-
return de_CommandError(output, context);
|
|
1896
|
-
}
|
|
1897
|
-
const contents = map({
|
|
1898
|
-
$metadata: deserializeMetadata(output),
|
|
1899
|
-
[_CT]: [, output.headers[_ct]],
|
|
1900
|
-
[_CC]: [, output.headers[_cc]],
|
|
1901
|
-
});
|
|
1902
|
-
const data = await collectBody(output.body, context);
|
|
1903
|
-
contents.Blob = data;
|
|
1904
|
-
return contents;
|
|
1905
|
-
};
|
|
1906
|
-
export const de_GetPlaceCommand = async (output, context) => {
|
|
1907
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1908
|
-
return de_CommandError(output, context);
|
|
1909
|
-
}
|
|
1910
|
-
const contents = map({
|
|
1911
|
-
$metadata: deserializeMetadata(output),
|
|
1912
|
-
});
|
|
1913
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1914
|
-
const doc = take(data, {
|
|
1915
|
-
Place: (_) => de_Place(_, context),
|
|
1916
|
-
});
|
|
1917
|
-
Object.assign(contents, doc);
|
|
1918
|
-
return contents;
|
|
1919
|
-
};
|
|
1920
|
-
export const de_ListDevicePositionsCommand = async (output, context) => {
|
|
1921
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
|
-
return de_CommandError(output, context);
|
|
1923
|
-
}
|
|
1924
|
-
const contents = map({
|
|
1925
|
-
$metadata: deserializeMetadata(output),
|
|
1926
|
-
});
|
|
1927
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1928
|
-
const doc = take(data, {
|
|
1929
|
-
Entries: (_) => de_ListDevicePositionsResponseEntryList(_, context),
|
|
1930
|
-
NextToken: __expectString,
|
|
1931
|
-
});
|
|
1932
|
-
Object.assign(contents, doc);
|
|
1933
|
-
return contents;
|
|
1934
|
-
};
|
|
1935
|
-
export const de_ListGeofenceCollectionsCommand = async (output, context) => {
|
|
1936
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1937
|
-
return de_CommandError(output, context);
|
|
1938
|
-
}
|
|
1939
|
-
const contents = map({
|
|
1940
|
-
$metadata: deserializeMetadata(output),
|
|
1941
|
-
});
|
|
1942
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1943
|
-
const doc = take(data, {
|
|
1944
|
-
Entries: (_) => de_ListGeofenceCollectionsResponseEntryList(_, context),
|
|
1945
|
-
NextToken: __expectString,
|
|
1946
|
-
});
|
|
1947
|
-
Object.assign(contents, doc);
|
|
1948
|
-
return contents;
|
|
1949
|
-
};
|
|
1950
|
-
export const de_ListGeofencesCommand = async (output, context) => {
|
|
1951
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1952
|
-
return de_CommandError(output, context);
|
|
1953
|
-
}
|
|
1954
|
-
const contents = map({
|
|
1955
|
-
$metadata: deserializeMetadata(output),
|
|
1956
|
-
});
|
|
1957
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1958
|
-
const doc = take(data, {
|
|
1959
|
-
Entries: (_) => de_ListGeofenceResponseEntryList(_, context),
|
|
1960
|
-
NextToken: __expectString,
|
|
1961
|
-
});
|
|
1962
|
-
Object.assign(contents, doc);
|
|
1963
|
-
return contents;
|
|
1964
|
-
};
|
|
1965
|
-
export const de_ListKeysCommand = async (output, context) => {
|
|
1966
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1967
|
-
return de_CommandError(output, context);
|
|
1968
|
-
}
|
|
1969
|
-
const contents = map({
|
|
1970
|
-
$metadata: deserializeMetadata(output),
|
|
1971
|
-
});
|
|
1972
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1973
|
-
const doc = take(data, {
|
|
1974
|
-
Entries: (_) => de_ListKeysResponseEntryList(_, context),
|
|
1975
|
-
NextToken: __expectString,
|
|
1976
|
-
});
|
|
1977
|
-
Object.assign(contents, doc);
|
|
1978
|
-
return contents;
|
|
1979
|
-
};
|
|
1980
|
-
export const de_ListMapsCommand = async (output, context) => {
|
|
1981
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1982
|
-
return de_CommandError(output, context);
|
|
1983
|
-
}
|
|
1984
|
-
const contents = map({
|
|
1985
|
-
$metadata: deserializeMetadata(output),
|
|
1986
|
-
});
|
|
1987
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1988
|
-
const doc = take(data, {
|
|
1989
|
-
Entries: (_) => de_ListMapsResponseEntryList(_, context),
|
|
1990
|
-
NextToken: __expectString,
|
|
1991
|
-
});
|
|
1992
|
-
Object.assign(contents, doc);
|
|
1993
|
-
return contents;
|
|
1994
|
-
};
|
|
1995
|
-
export const de_ListPlaceIndexesCommand = async (output, context) => {
|
|
1996
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1997
|
-
return de_CommandError(output, context);
|
|
1998
|
-
}
|
|
1999
|
-
const contents = map({
|
|
2000
|
-
$metadata: deserializeMetadata(output),
|
|
2001
|
-
});
|
|
2002
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2003
|
-
const doc = take(data, {
|
|
2004
|
-
Entries: (_) => de_ListPlaceIndexesResponseEntryList(_, context),
|
|
2005
|
-
NextToken: __expectString,
|
|
2006
|
-
});
|
|
2007
|
-
Object.assign(contents, doc);
|
|
2008
|
-
return contents;
|
|
2009
|
-
};
|
|
2010
|
-
export const de_ListRouteCalculatorsCommand = async (output, context) => {
|
|
2011
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2012
|
-
return de_CommandError(output, context);
|
|
2013
|
-
}
|
|
2014
|
-
const contents = map({
|
|
2015
|
-
$metadata: deserializeMetadata(output),
|
|
2016
|
-
});
|
|
2017
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2018
|
-
const doc = take(data, {
|
|
2019
|
-
Entries: (_) => de_ListRouteCalculatorsResponseEntryList(_, context),
|
|
2020
|
-
NextToken: __expectString,
|
|
2021
|
-
});
|
|
2022
|
-
Object.assign(contents, doc);
|
|
2023
|
-
return contents;
|
|
2024
|
-
};
|
|
2025
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2026
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2027
|
-
return de_CommandError(output, context);
|
|
2028
|
-
}
|
|
2029
|
-
const contents = map({
|
|
2030
|
-
$metadata: deserializeMetadata(output),
|
|
2031
|
-
});
|
|
2032
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2033
|
-
const doc = take(data, {
|
|
2034
|
-
Tags: _json,
|
|
2035
|
-
});
|
|
2036
|
-
Object.assign(contents, doc);
|
|
2037
|
-
return contents;
|
|
2038
|
-
};
|
|
2039
|
-
export const de_ListTrackerConsumersCommand = async (output, context) => {
|
|
2040
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2041
|
-
return de_CommandError(output, context);
|
|
2042
|
-
}
|
|
2043
|
-
const contents = map({
|
|
2044
|
-
$metadata: deserializeMetadata(output),
|
|
2045
|
-
});
|
|
2046
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2047
|
-
const doc = take(data, {
|
|
2048
|
-
ConsumerArns: _json,
|
|
2049
|
-
NextToken: __expectString,
|
|
2050
|
-
});
|
|
2051
|
-
Object.assign(contents, doc);
|
|
2052
|
-
return contents;
|
|
2053
|
-
};
|
|
2054
|
-
export const de_ListTrackersCommand = async (output, context) => {
|
|
2055
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
-
return de_CommandError(output, context);
|
|
2057
|
-
}
|
|
2058
|
-
const contents = map({
|
|
2059
|
-
$metadata: deserializeMetadata(output),
|
|
2060
|
-
});
|
|
2061
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2062
|
-
const doc = take(data, {
|
|
2063
|
-
Entries: (_) => de_ListTrackersResponseEntryList(_, context),
|
|
2064
|
-
NextToken: __expectString,
|
|
2065
|
-
});
|
|
2066
|
-
Object.assign(contents, doc);
|
|
2067
|
-
return contents;
|
|
2068
|
-
};
|
|
2069
|
-
export const de_PutGeofenceCommand = async (output, context) => {
|
|
2070
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2071
|
-
return de_CommandError(output, context);
|
|
2072
|
-
}
|
|
2073
|
-
const contents = map({
|
|
2074
|
-
$metadata: deserializeMetadata(output),
|
|
2075
|
-
});
|
|
2076
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2077
|
-
const doc = take(data, {
|
|
2078
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2079
|
-
GeofenceId: __expectString,
|
|
2080
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2081
|
-
});
|
|
2082
|
-
Object.assign(contents, doc);
|
|
2083
|
-
return contents;
|
|
2084
|
-
};
|
|
2085
|
-
export const de_SearchPlaceIndexForPositionCommand = async (output, context) => {
|
|
2086
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2087
|
-
return de_CommandError(output, context);
|
|
2088
|
-
}
|
|
2089
|
-
const contents = map({
|
|
2090
|
-
$metadata: deserializeMetadata(output),
|
|
2091
|
-
});
|
|
2092
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2093
|
-
const doc = take(data, {
|
|
2094
|
-
Results: (_) => de_SearchForPositionResultList(_, context),
|
|
2095
|
-
Summary: (_) => de_SearchPlaceIndexForPositionSummary(_, context),
|
|
2096
|
-
});
|
|
2097
|
-
Object.assign(contents, doc);
|
|
2098
|
-
return contents;
|
|
2099
|
-
};
|
|
2100
|
-
export const de_SearchPlaceIndexForSuggestionsCommand = async (output, context) => {
|
|
2101
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2102
|
-
return de_CommandError(output, context);
|
|
2103
|
-
}
|
|
2104
|
-
const contents = map({
|
|
2105
|
-
$metadata: deserializeMetadata(output),
|
|
2106
|
-
});
|
|
2107
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2108
|
-
const doc = take(data, {
|
|
2109
|
-
Results: _json,
|
|
2110
|
-
Summary: (_) => de_SearchPlaceIndexForSuggestionsSummary(_, context),
|
|
2111
|
-
});
|
|
2112
|
-
Object.assign(contents, doc);
|
|
2113
|
-
return contents;
|
|
2114
|
-
};
|
|
2115
|
-
export const de_SearchPlaceIndexForTextCommand = async (output, context) => {
|
|
2116
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2117
|
-
return de_CommandError(output, context);
|
|
2118
|
-
}
|
|
2119
|
-
const contents = map({
|
|
2120
|
-
$metadata: deserializeMetadata(output),
|
|
2121
|
-
});
|
|
2122
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2123
|
-
const doc = take(data, {
|
|
2124
|
-
Results: (_) => de_SearchForTextResultList(_, context),
|
|
2125
|
-
Summary: (_) => de_SearchPlaceIndexForTextSummary(_, context),
|
|
2126
|
-
});
|
|
2127
|
-
Object.assign(contents, doc);
|
|
2128
|
-
return contents;
|
|
2129
|
-
};
|
|
2130
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
2131
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2132
|
-
return de_CommandError(output, context);
|
|
2133
|
-
}
|
|
2134
|
-
const contents = map({
|
|
2135
|
-
$metadata: deserializeMetadata(output),
|
|
2136
|
-
});
|
|
2137
|
-
await collectBody(output.body, context);
|
|
2138
|
-
return contents;
|
|
2139
|
-
};
|
|
2140
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
2141
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2142
|
-
return de_CommandError(output, context);
|
|
2143
|
-
}
|
|
2144
|
-
const contents = map({
|
|
2145
|
-
$metadata: deserializeMetadata(output),
|
|
2146
|
-
});
|
|
2147
|
-
await collectBody(output.body, context);
|
|
2148
|
-
return contents;
|
|
2149
|
-
};
|
|
2150
|
-
export const de_UpdateGeofenceCollectionCommand = async (output, context) => {
|
|
2151
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2152
|
-
return de_CommandError(output, context);
|
|
2153
|
-
}
|
|
2154
|
-
const contents = map({
|
|
2155
|
-
$metadata: deserializeMetadata(output),
|
|
2156
|
-
});
|
|
2157
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2158
|
-
const doc = take(data, {
|
|
2159
|
-
CollectionArn: __expectString,
|
|
2160
|
-
CollectionName: __expectString,
|
|
2161
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2162
|
-
});
|
|
2163
|
-
Object.assign(contents, doc);
|
|
2164
|
-
return contents;
|
|
2165
|
-
};
|
|
2166
|
-
export const de_UpdateKeyCommand = async (output, context) => {
|
|
2167
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2168
|
-
return de_CommandError(output, context);
|
|
2169
|
-
}
|
|
2170
|
-
const contents = map({
|
|
2171
|
-
$metadata: deserializeMetadata(output),
|
|
2172
|
-
});
|
|
2173
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2174
|
-
const doc = take(data, {
|
|
2175
|
-
KeyArn: __expectString,
|
|
2176
|
-
KeyName: __expectString,
|
|
2177
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2178
|
-
});
|
|
2179
|
-
Object.assign(contents, doc);
|
|
2180
|
-
return contents;
|
|
2181
|
-
};
|
|
2182
|
-
export const de_UpdateMapCommand = async (output, context) => {
|
|
2183
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
|
-
return de_CommandError(output, context);
|
|
2185
|
-
}
|
|
2186
|
-
const contents = map({
|
|
2187
|
-
$metadata: deserializeMetadata(output),
|
|
2188
|
-
});
|
|
2189
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2190
|
-
const doc = take(data, {
|
|
2191
|
-
MapArn: __expectString,
|
|
2192
|
-
MapName: __expectString,
|
|
2193
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2194
|
-
});
|
|
2195
|
-
Object.assign(contents, doc);
|
|
2196
|
-
return contents;
|
|
2197
|
-
};
|
|
2198
|
-
export const de_UpdatePlaceIndexCommand = async (output, context) => {
|
|
2199
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2200
|
-
return de_CommandError(output, context);
|
|
2201
|
-
}
|
|
2202
|
-
const contents = map({
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
});
|
|
2205
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2206
|
-
const doc = take(data, {
|
|
2207
|
-
IndexArn: __expectString,
|
|
2208
|
-
IndexName: __expectString,
|
|
2209
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2210
|
-
});
|
|
2211
|
-
Object.assign(contents, doc);
|
|
2212
|
-
return contents;
|
|
2213
|
-
};
|
|
2214
|
-
export const de_UpdateRouteCalculatorCommand = async (output, context) => {
|
|
2215
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2216
|
-
return de_CommandError(output, context);
|
|
2217
|
-
}
|
|
2218
|
-
const contents = map({
|
|
2219
|
-
$metadata: deserializeMetadata(output),
|
|
2220
|
-
});
|
|
2221
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2222
|
-
const doc = take(data, {
|
|
2223
|
-
CalculatorArn: __expectString,
|
|
2224
|
-
CalculatorName: __expectString,
|
|
2225
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2226
|
-
});
|
|
2227
|
-
Object.assign(contents, doc);
|
|
2228
|
-
return contents;
|
|
2229
|
-
};
|
|
2230
|
-
export const de_UpdateTrackerCommand = async (output, context) => {
|
|
2231
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2232
|
-
return de_CommandError(output, context);
|
|
2233
|
-
}
|
|
2234
|
-
const contents = map({
|
|
2235
|
-
$metadata: deserializeMetadata(output),
|
|
2236
|
-
});
|
|
2237
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2238
|
-
const doc = take(data, {
|
|
2239
|
-
TrackerArn: __expectString,
|
|
2240
|
-
TrackerName: __expectString,
|
|
2241
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2242
|
-
});
|
|
2243
|
-
Object.assign(contents, doc);
|
|
2244
|
-
return contents;
|
|
2245
|
-
};
|
|
2246
|
-
export const de_VerifyDevicePositionCommand = async (output, context) => {
|
|
2247
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2248
|
-
return de_CommandError(output, context);
|
|
2249
|
-
}
|
|
2250
|
-
const contents = map({
|
|
2251
|
-
$metadata: deserializeMetadata(output),
|
|
2252
|
-
});
|
|
2253
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2254
|
-
const doc = take(data, {
|
|
2255
|
-
DeviceId: __expectString,
|
|
2256
|
-
DistanceUnit: __expectString,
|
|
2257
|
-
InferredState: (_) => de_InferredState(_, context),
|
|
2258
|
-
ReceivedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2259
|
-
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2260
|
-
});
|
|
2261
|
-
Object.assign(contents, doc);
|
|
2262
|
-
return contents;
|
|
2263
|
-
};
|
|
2264
|
-
const de_CommandError = async (output, context) => {
|
|
2265
|
-
const parsedOutput = {
|
|
2266
|
-
...output,
|
|
2267
|
-
body: await parseErrorBody(output.body, context),
|
|
2268
|
-
};
|
|
2269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
|
-
switch (errorCode) {
|
|
2271
|
-
case "AccessDeniedException":
|
|
2272
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2273
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "ConflictException":
|
|
2275
|
-
case "com.amazonaws.location#ConflictException":
|
|
2276
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "InternalServerException":
|
|
2278
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2279
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "ResourceNotFoundException":
|
|
2281
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2282
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ServiceQuotaExceededException":
|
|
2284
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2285
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ThrottlingException":
|
|
2287
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2288
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "ValidationException":
|
|
2290
|
-
case "com.amazonaws.location#ValidationException":
|
|
2291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2292
|
-
default:
|
|
2293
|
-
const parsedBody = parsedOutput.body;
|
|
2294
|
-
return throwDefaultError({
|
|
2295
|
-
output,
|
|
2296
|
-
parsedBody,
|
|
2297
|
-
errorCode,
|
|
2298
|
-
});
|
|
2299
|
-
}
|
|
2300
|
-
};
|
|
2301
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
2302
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2303
|
-
const contents = map({});
|
|
2304
|
-
const data = parsedOutput.body;
|
|
2305
|
-
const doc = take(data, {
|
|
2306
|
-
Message: [, __expectString, `message`],
|
|
2307
|
-
});
|
|
2308
|
-
Object.assign(contents, doc);
|
|
2309
|
-
const exception = new AccessDeniedException({
|
|
2310
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2311
|
-
...contents,
|
|
2312
|
-
});
|
|
2313
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2314
|
-
};
|
|
2315
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2316
|
-
const contents = map({});
|
|
2317
|
-
const data = parsedOutput.body;
|
|
2318
|
-
const doc = take(data, {
|
|
2319
|
-
Message: [, __expectString, `message`],
|
|
2320
|
-
});
|
|
2321
|
-
Object.assign(contents, doc);
|
|
2322
|
-
const exception = new ConflictException({
|
|
2323
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2324
|
-
...contents,
|
|
2325
|
-
});
|
|
2326
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2327
|
-
};
|
|
2328
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2329
|
-
const contents = map({});
|
|
2330
|
-
const data = parsedOutput.body;
|
|
2331
|
-
const doc = take(data, {
|
|
2332
|
-
Message: [, __expectString, `message`],
|
|
2333
|
-
});
|
|
2334
|
-
Object.assign(contents, doc);
|
|
2335
|
-
const exception = new InternalServerException({
|
|
2336
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2337
|
-
...contents,
|
|
2338
|
-
});
|
|
2339
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2340
|
-
};
|
|
2341
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2342
|
-
const contents = map({});
|
|
2343
|
-
const data = parsedOutput.body;
|
|
2344
|
-
const doc = take(data, {
|
|
2345
|
-
Message: [, __expectString, `message`],
|
|
2346
|
-
});
|
|
2347
|
-
Object.assign(contents, doc);
|
|
2348
|
-
const exception = new ResourceNotFoundException({
|
|
2349
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2350
|
-
...contents,
|
|
2351
|
-
});
|
|
2352
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2353
|
-
};
|
|
2354
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2355
|
-
const contents = map({});
|
|
2356
|
-
const data = parsedOutput.body;
|
|
2357
|
-
const doc = take(data, {
|
|
2358
|
-
Message: [, __expectString, `message`],
|
|
2359
|
-
});
|
|
2360
|
-
Object.assign(contents, doc);
|
|
2361
|
-
const exception = new ServiceQuotaExceededException({
|
|
2362
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2363
|
-
...contents,
|
|
2364
|
-
});
|
|
2365
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2366
|
-
};
|
|
2367
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2368
|
-
const contents = map({});
|
|
2369
|
-
const data = parsedOutput.body;
|
|
2370
|
-
const doc = take(data, {
|
|
2371
|
-
Message: [, __expectString, `message`],
|
|
2372
|
-
});
|
|
2373
|
-
Object.assign(contents, doc);
|
|
2374
|
-
const exception = new ThrottlingException({
|
|
2375
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2376
|
-
...contents,
|
|
2377
|
-
});
|
|
2378
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2379
|
-
};
|
|
2380
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2381
|
-
const contents = map({});
|
|
2382
|
-
const data = parsedOutput.body;
|
|
2383
|
-
const doc = take(data, {
|
|
2384
|
-
FieldList: [, (_) => de_ValidationExceptionFieldList(_, context), `fieldList`],
|
|
2385
|
-
Message: [, __expectString, `message`],
|
|
2386
|
-
Reason: [, __expectString, `reason`],
|
|
2387
|
-
});
|
|
2388
|
-
Object.assign(contents, doc);
|
|
2389
|
-
const exception = new ValidationException({
|
|
2390
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2391
|
-
...contents,
|
|
2392
|
-
});
|
|
2393
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2394
|
-
};
|
|
2395
|
-
const se_BatchPutGeofenceRequestEntry = (input, context) => {
|
|
2396
|
-
return take(input, {
|
|
2397
|
-
GeofenceId: [],
|
|
2398
|
-
GeofenceProperties: _json,
|
|
2399
|
-
Geometry: (_) => se_GeofenceGeometry(_, context),
|
|
2400
|
-
});
|
|
2401
|
-
};
|
|
2402
|
-
const se_BatchPutGeofenceRequestEntryList = (input, context) => {
|
|
2403
|
-
return input
|
|
2404
|
-
.filter((e) => e != null)
|
|
2405
|
-
.map((entry) => {
|
|
2406
|
-
return se_BatchPutGeofenceRequestEntry(entry, context);
|
|
2407
|
-
});
|
|
2408
|
-
};
|
|
2409
|
-
const se_BoundingBox = (input, context) => {
|
|
2410
|
-
return input
|
|
2411
|
-
.filter((e) => e != null)
|
|
2412
|
-
.map((entry) => {
|
|
2413
|
-
return __serializeFloat(entry);
|
|
2414
|
-
});
|
|
2415
|
-
};
|
|
2416
|
-
const se_CalculateRouteTruckModeOptions = (input, context) => {
|
|
2417
|
-
return take(input, {
|
|
2418
|
-
AvoidFerries: [],
|
|
2419
|
-
AvoidTolls: [],
|
|
2420
|
-
Dimensions: (_) => se_TruckDimensions(_, context),
|
|
2421
|
-
Weight: (_) => se_TruckWeight(_, context),
|
|
2422
|
-
});
|
|
2423
|
-
};
|
|
2424
|
-
const se_CellSignals = (input, context) => {
|
|
2425
|
-
return take(input, {
|
|
2426
|
-
LteCellDetails: (_) => se_LteCellDetailsList(_, context),
|
|
2427
|
-
});
|
|
2428
|
-
};
|
|
2429
|
-
const se_Circle = (input, context) => {
|
|
2430
|
-
return take(input, {
|
|
2431
|
-
Center: (_) => se_Position(_, context),
|
|
2432
|
-
Radius: __serializeFloat,
|
|
2433
|
-
});
|
|
2434
|
-
};
|
|
2435
|
-
const se_DevicePositionUpdate = (input, context) => {
|
|
2436
|
-
return take(input, {
|
|
2437
|
-
Accuracy: (_) => se_PositionalAccuracy(_, context),
|
|
2438
|
-
DeviceId: [],
|
|
2439
|
-
Position: (_) => se_Position(_, context),
|
|
2440
|
-
PositionProperties: _json,
|
|
2441
|
-
SampleTime: __serializeDateTime,
|
|
2442
|
-
});
|
|
2443
|
-
};
|
|
2444
|
-
const se_DevicePositionUpdateList = (input, context) => {
|
|
2445
|
-
return input
|
|
2446
|
-
.filter((e) => e != null)
|
|
2447
|
-
.map((entry) => {
|
|
2448
|
-
return se_DevicePositionUpdate(entry, context);
|
|
2449
|
-
});
|
|
2450
|
-
};
|
|
2451
|
-
const se_DeviceState = (input, context) => {
|
|
2452
|
-
return take(input, {
|
|
2453
|
-
Accuracy: (_) => se_PositionalAccuracy(_, context),
|
|
2454
|
-
CellSignals: (_) => se_CellSignals(_, context),
|
|
2455
|
-
DeviceId: [],
|
|
2456
|
-
Ipv4Address: [],
|
|
2457
|
-
Position: (_) => se_Position(_, context),
|
|
2458
|
-
SampleTime: __serializeDateTime,
|
|
2459
|
-
WiFiAccessPoints: _json,
|
|
2460
|
-
});
|
|
2461
|
-
};
|
|
2462
|
-
const se_ForecastGeofenceEventsDeviceState = (input, context) => {
|
|
2463
|
-
return take(input, {
|
|
2464
|
-
Position: (_) => se_Position(_, context),
|
|
2465
|
-
Speed: __serializeFloat,
|
|
2466
|
-
});
|
|
2467
|
-
};
|
|
2468
|
-
const se_GeofenceGeometry = (input, context) => {
|
|
2469
|
-
return take(input, {
|
|
2470
|
-
Circle: (_) => se_Circle(_, context),
|
|
2471
|
-
Geobuf: context.base64Encoder,
|
|
2472
|
-
MultiPolygon: (_) => se_MultiLinearRings(_, context),
|
|
2473
|
-
Polygon: (_) => se_LinearRings(_, context),
|
|
2474
|
-
});
|
|
2475
|
-
};
|
|
2476
|
-
const se_LinearRing = (input, context) => {
|
|
2477
|
-
return input
|
|
2478
|
-
.filter((e) => e != null)
|
|
2479
|
-
.map((entry) => {
|
|
2480
|
-
return se_Position(entry, context);
|
|
2481
|
-
});
|
|
2482
|
-
};
|
|
2483
|
-
const se_LinearRings = (input, context) => {
|
|
2484
|
-
return input
|
|
2485
|
-
.filter((e) => e != null)
|
|
2486
|
-
.map((entry) => {
|
|
2487
|
-
return se_LinearRing(entry, context);
|
|
2488
|
-
});
|
|
2489
|
-
};
|
|
2490
|
-
const se_LteCellDetails = (input, context) => {
|
|
2491
|
-
return take(input, {
|
|
2492
|
-
CellId: [],
|
|
2493
|
-
LocalId: _json,
|
|
2494
|
-
Mcc: [],
|
|
2495
|
-
Mnc: [],
|
|
2496
|
-
NetworkMeasurements: (_) => se_LteNetworkMeasurementsList(_, context),
|
|
2497
|
-
NrCapable: [],
|
|
2498
|
-
Rsrp: [],
|
|
2499
|
-
Rsrq: __serializeFloat,
|
|
2500
|
-
Tac: [],
|
|
2501
|
-
TimingAdvance: [],
|
|
2502
|
-
});
|
|
2503
|
-
};
|
|
2504
|
-
const se_LteCellDetailsList = (input, context) => {
|
|
2505
|
-
return input
|
|
2506
|
-
.filter((e) => e != null)
|
|
2507
|
-
.map((entry) => {
|
|
2508
|
-
return se_LteCellDetails(entry, context);
|
|
2509
|
-
});
|
|
2510
|
-
};
|
|
2511
|
-
const se_LteNetworkMeasurements = (input, context) => {
|
|
2512
|
-
return take(input, {
|
|
2513
|
-
CellId: [],
|
|
2514
|
-
Earfcn: [],
|
|
2515
|
-
Pci: [],
|
|
2516
|
-
Rsrp: [],
|
|
2517
|
-
Rsrq: __serializeFloat,
|
|
2518
|
-
});
|
|
2519
|
-
};
|
|
2520
|
-
const se_LteNetworkMeasurementsList = (input, context) => {
|
|
2521
|
-
return input
|
|
2522
|
-
.filter((e) => e != null)
|
|
2523
|
-
.map((entry) => {
|
|
2524
|
-
return se_LteNetworkMeasurements(entry, context);
|
|
2525
|
-
});
|
|
2526
|
-
};
|
|
2527
|
-
const se_MultiLinearRings = (input, context) => {
|
|
2528
|
-
return input
|
|
2529
|
-
.filter((e) => e != null)
|
|
2530
|
-
.map((entry) => {
|
|
2531
|
-
return se_LinearRings(entry, context);
|
|
2532
|
-
});
|
|
2533
|
-
};
|
|
2534
|
-
const se_Position = (input, context) => {
|
|
2535
|
-
return input
|
|
2536
|
-
.filter((e) => e != null)
|
|
2537
|
-
.map((entry) => {
|
|
2538
|
-
return __serializeFloat(entry);
|
|
2539
|
-
});
|
|
2540
|
-
};
|
|
2541
|
-
const se_PositionalAccuracy = (input, context) => {
|
|
2542
|
-
return take(input, {
|
|
2543
|
-
Horizontal: __serializeFloat,
|
|
2544
|
-
});
|
|
2545
|
-
};
|
|
2546
|
-
const se_PositionList = (input, context) => {
|
|
2547
|
-
return input
|
|
2548
|
-
.filter((e) => e != null)
|
|
2549
|
-
.map((entry) => {
|
|
2550
|
-
return se_Position(entry, context);
|
|
2551
|
-
});
|
|
2552
|
-
};
|
|
2553
|
-
const se_TrackingFilterGeometry = (input, context) => {
|
|
2554
|
-
return take(input, {
|
|
2555
|
-
Polygon: (_) => se_LinearRings(_, context),
|
|
2556
|
-
});
|
|
2557
|
-
};
|
|
2558
|
-
const se_TruckDimensions = (input, context) => {
|
|
2559
|
-
return take(input, {
|
|
2560
|
-
Height: __serializeFloat,
|
|
2561
|
-
Length: __serializeFloat,
|
|
2562
|
-
Unit: [],
|
|
2563
|
-
Width: __serializeFloat,
|
|
2564
|
-
});
|
|
2565
|
-
};
|
|
2566
|
-
const se_TruckWeight = (input, context) => {
|
|
2567
|
-
return take(input, {
|
|
2568
|
-
Total: __serializeFloat,
|
|
2569
|
-
Unit: [],
|
|
2570
|
-
});
|
|
2571
|
-
};
|
|
2572
|
-
const se_WaypointPositionList = (input, context) => {
|
|
2573
|
-
return input
|
|
2574
|
-
.filter((e) => e != null)
|
|
2575
|
-
.map((entry) => {
|
|
2576
|
-
return se_Position(entry, context);
|
|
2577
|
-
});
|
|
2578
|
-
};
|
|
2579
|
-
const de_BatchEvaluateGeofencesError = (output, context) => {
|
|
2580
|
-
return take(output, {
|
|
2581
|
-
DeviceId: __expectString,
|
|
2582
|
-
Error: _json,
|
|
2583
|
-
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2584
|
-
});
|
|
2585
|
-
};
|
|
2586
|
-
const de_BatchEvaluateGeofencesErrorList = (output, context) => {
|
|
2587
|
-
const retVal = (output || [])
|
|
2588
|
-
.filter((e) => e != null)
|
|
2589
|
-
.map((entry) => {
|
|
2590
|
-
return de_BatchEvaluateGeofencesError(entry, context);
|
|
2591
|
-
});
|
|
2592
|
-
return retVal;
|
|
2593
|
-
};
|
|
2594
|
-
const de_BatchPutGeofenceSuccess = (output, context) => {
|
|
2595
|
-
return take(output, {
|
|
2596
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2597
|
-
GeofenceId: __expectString,
|
|
2598
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2599
|
-
});
|
|
2600
|
-
};
|
|
2601
|
-
const de_BatchPutGeofenceSuccessList = (output, context) => {
|
|
2602
|
-
const retVal = (output || [])
|
|
2603
|
-
.filter((e) => e != null)
|
|
2604
|
-
.map((entry) => {
|
|
2605
|
-
return de_BatchPutGeofenceSuccess(entry, context);
|
|
2606
|
-
});
|
|
2607
|
-
return retVal;
|
|
2608
|
-
};
|
|
2609
|
-
const de_BatchUpdateDevicePositionError = (output, context) => {
|
|
2610
|
-
return take(output, {
|
|
2611
|
-
DeviceId: __expectString,
|
|
2612
|
-
Error: _json,
|
|
2613
|
-
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2614
|
-
});
|
|
2615
|
-
};
|
|
2616
|
-
const de_BatchUpdateDevicePositionErrorList = (output, context) => {
|
|
2617
|
-
const retVal = (output || [])
|
|
2618
|
-
.filter((e) => e != null)
|
|
2619
|
-
.map((entry) => {
|
|
2620
|
-
return de_BatchUpdateDevicePositionError(entry, context);
|
|
2621
|
-
});
|
|
2622
|
-
return retVal;
|
|
2623
|
-
};
|
|
2624
|
-
const de_BoundingBox = (output, context) => {
|
|
2625
|
-
const retVal = (output || [])
|
|
2626
|
-
.filter((e) => e != null)
|
|
2627
|
-
.map((entry) => {
|
|
2628
|
-
return __limitedParseDouble(entry);
|
|
2629
|
-
});
|
|
2630
|
-
return retVal;
|
|
2631
|
-
};
|
|
2632
|
-
const de_CalculateRouteSummary = (output, context) => {
|
|
2633
|
-
return take(output, {
|
|
2634
|
-
DataSource: __expectString,
|
|
2635
|
-
Distance: __limitedParseDouble,
|
|
2636
|
-
DistanceUnit: __expectString,
|
|
2637
|
-
DurationSeconds: __limitedParseDouble,
|
|
2638
|
-
RouteBBox: (_) => de_BoundingBox(_, context),
|
|
2639
|
-
});
|
|
2640
|
-
};
|
|
2641
|
-
const de_Circle = (output, context) => {
|
|
2642
|
-
return take(output, {
|
|
2643
|
-
Center: (_) => de_Position(_, context),
|
|
2644
|
-
Radius: __limitedParseDouble,
|
|
2645
|
-
});
|
|
2646
|
-
};
|
|
2647
|
-
const de_DevicePosition = (output, context) => {
|
|
2648
|
-
return take(output, {
|
|
2649
|
-
Accuracy: (_) => de_PositionalAccuracy(_, context),
|
|
2650
|
-
DeviceId: __expectString,
|
|
2651
|
-
Position: (_) => de_Position(_, context),
|
|
2652
|
-
PositionProperties: _json,
|
|
2653
|
-
ReceivedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2654
|
-
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2655
|
-
});
|
|
2656
|
-
};
|
|
2657
|
-
const de_DevicePositionList = (output, context) => {
|
|
2658
|
-
const retVal = (output || [])
|
|
2659
|
-
.filter((e) => e != null)
|
|
2660
|
-
.map((entry) => {
|
|
2661
|
-
return de_DevicePosition(entry, context);
|
|
2662
|
-
});
|
|
2663
|
-
return retVal;
|
|
2664
|
-
};
|
|
2665
|
-
const de_ForecastedEvent = (output, context) => {
|
|
2666
|
-
return take(output, {
|
|
2667
|
-
EventId: __expectString,
|
|
2668
|
-
EventType: __expectString,
|
|
2669
|
-
ForecastedBreachTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2670
|
-
GeofenceId: __expectString,
|
|
2671
|
-
GeofenceProperties: _json,
|
|
2672
|
-
IsDeviceInGeofence: __expectBoolean,
|
|
2673
|
-
NearestDistance: __limitedParseDouble,
|
|
2674
|
-
});
|
|
2675
|
-
};
|
|
2676
|
-
const de_ForecastedEventsList = (output, context) => {
|
|
2677
|
-
const retVal = (output || [])
|
|
2678
|
-
.filter((e) => e != null)
|
|
2679
|
-
.map((entry) => {
|
|
2680
|
-
return de_ForecastedEvent(entry, context);
|
|
2681
|
-
});
|
|
2682
|
-
return retVal;
|
|
2683
|
-
};
|
|
2684
|
-
const de_GeofenceGeometry = (output, context) => {
|
|
2685
|
-
return take(output, {
|
|
2686
|
-
Circle: (_) => de_Circle(_, context),
|
|
2687
|
-
Geobuf: context.base64Decoder,
|
|
2688
|
-
MultiPolygon: (_) => de_MultiLinearRings(_, context),
|
|
2689
|
-
Polygon: (_) => de_LinearRings(_, context),
|
|
2690
|
-
});
|
|
2691
|
-
};
|
|
2692
|
-
const de_InferredState = (output, context) => {
|
|
2693
|
-
return take(output, {
|
|
2694
|
-
Accuracy: (_) => de_PositionalAccuracy(_, context),
|
|
2695
|
-
DeviationDistance: __limitedParseDouble,
|
|
2696
|
-
Position: (_) => de_Position(_, context),
|
|
2697
|
-
ProxyDetected: __expectBoolean,
|
|
2698
|
-
});
|
|
2699
|
-
};
|
|
2700
|
-
const de_Leg = (output, context) => {
|
|
2701
|
-
return take(output, {
|
|
2702
|
-
Distance: __limitedParseDouble,
|
|
2703
|
-
DurationSeconds: __limitedParseDouble,
|
|
2704
|
-
EndPosition: (_) => de_Position(_, context),
|
|
2705
|
-
Geometry: (_) => de_LegGeometry(_, context),
|
|
2706
|
-
StartPosition: (_) => de_Position(_, context),
|
|
2707
|
-
Steps: (_) => de_StepList(_, context),
|
|
2708
|
-
});
|
|
2709
|
-
};
|
|
2710
|
-
const de_LegGeometry = (output, context) => {
|
|
2711
|
-
return take(output, {
|
|
2712
|
-
LineString: (_) => de_LineString(_, context),
|
|
2713
|
-
});
|
|
2714
|
-
};
|
|
2715
|
-
const de_LegList = (output, context) => {
|
|
2716
|
-
const retVal = (output || [])
|
|
2717
|
-
.filter((e) => e != null)
|
|
2718
|
-
.map((entry) => {
|
|
2719
|
-
return de_Leg(entry, context);
|
|
2720
|
-
});
|
|
2721
|
-
return retVal;
|
|
2722
|
-
};
|
|
2723
|
-
const de_LinearRing = (output, context) => {
|
|
2724
|
-
const retVal = (output || [])
|
|
2725
|
-
.filter((e) => e != null)
|
|
2726
|
-
.map((entry) => {
|
|
2727
|
-
return de_Position(entry, context);
|
|
2728
|
-
});
|
|
2729
|
-
return retVal;
|
|
2730
|
-
};
|
|
2731
|
-
const de_LinearRings = (output, context) => {
|
|
2732
|
-
const retVal = (output || [])
|
|
2733
|
-
.filter((e) => e != null)
|
|
2734
|
-
.map((entry) => {
|
|
2735
|
-
return de_LinearRing(entry, context);
|
|
2736
|
-
});
|
|
2737
|
-
return retVal;
|
|
2738
|
-
};
|
|
2739
|
-
const de_LineString = (output, context) => {
|
|
2740
|
-
const retVal = (output || [])
|
|
2741
|
-
.filter((e) => e != null)
|
|
2742
|
-
.map((entry) => {
|
|
2743
|
-
return de_Position(entry, context);
|
|
2744
|
-
});
|
|
2745
|
-
return retVal;
|
|
2746
|
-
};
|
|
2747
|
-
const de_ListDevicePositionsResponseEntry = (output, context) => {
|
|
2748
|
-
return take(output, {
|
|
2749
|
-
Accuracy: (_) => de_PositionalAccuracy(_, context),
|
|
2750
|
-
DeviceId: __expectString,
|
|
2751
|
-
Position: (_) => de_Position(_, context),
|
|
2752
|
-
PositionProperties: _json,
|
|
2753
|
-
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2754
|
-
});
|
|
2755
|
-
};
|
|
2756
|
-
const de_ListDevicePositionsResponseEntryList = (output, context) => {
|
|
2757
|
-
const retVal = (output || [])
|
|
2758
|
-
.filter((e) => e != null)
|
|
2759
|
-
.map((entry) => {
|
|
2760
|
-
return de_ListDevicePositionsResponseEntry(entry, context);
|
|
2761
|
-
});
|
|
2762
|
-
return retVal;
|
|
2763
|
-
};
|
|
2764
|
-
const de_ListGeofenceCollectionsResponseEntry = (output, context) => {
|
|
2765
|
-
return take(output, {
|
|
2766
|
-
CollectionName: __expectString,
|
|
2767
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2768
|
-
Description: __expectString,
|
|
2769
|
-
PricingPlan: __expectString,
|
|
2770
|
-
PricingPlanDataSource: __expectString,
|
|
2771
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2772
|
-
});
|
|
2773
|
-
};
|
|
2774
|
-
const de_ListGeofenceCollectionsResponseEntryList = (output, context) => {
|
|
2775
|
-
const retVal = (output || [])
|
|
2776
|
-
.filter((e) => e != null)
|
|
2777
|
-
.map((entry) => {
|
|
2778
|
-
return de_ListGeofenceCollectionsResponseEntry(entry, context);
|
|
2779
|
-
});
|
|
2780
|
-
return retVal;
|
|
2781
|
-
};
|
|
2782
|
-
const de_ListGeofenceResponseEntry = (output, context) => {
|
|
2783
|
-
return take(output, {
|
|
2784
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2785
|
-
GeofenceId: __expectString,
|
|
2786
|
-
GeofenceProperties: _json,
|
|
2787
|
-
Geometry: (_) => de_GeofenceGeometry(_, context),
|
|
2788
|
-
Status: __expectString,
|
|
2789
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2790
|
-
});
|
|
2791
|
-
};
|
|
2792
|
-
const de_ListGeofenceResponseEntryList = (output, context) => {
|
|
2793
|
-
const retVal = (output || [])
|
|
2794
|
-
.filter((e) => e != null)
|
|
2795
|
-
.map((entry) => {
|
|
2796
|
-
return de_ListGeofenceResponseEntry(entry, context);
|
|
2797
|
-
});
|
|
2798
|
-
return retVal;
|
|
2799
|
-
};
|
|
2800
|
-
const de_ListKeysResponseEntry = (output, context) => {
|
|
2801
|
-
return take(output, {
|
|
2802
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2803
|
-
Description: __expectString,
|
|
2804
|
-
ExpireTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2805
|
-
KeyName: __expectString,
|
|
2806
|
-
Restrictions: _json,
|
|
2807
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2808
|
-
});
|
|
2809
|
-
};
|
|
2810
|
-
const de_ListKeysResponseEntryList = (output, context) => {
|
|
2811
|
-
const retVal = (output || [])
|
|
2812
|
-
.filter((e) => e != null)
|
|
2813
|
-
.map((entry) => {
|
|
2814
|
-
return de_ListKeysResponseEntry(entry, context);
|
|
2815
|
-
});
|
|
2816
|
-
return retVal;
|
|
2817
|
-
};
|
|
2818
|
-
const de_ListMapsResponseEntry = (output, context) => {
|
|
2819
|
-
return take(output, {
|
|
2820
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2821
|
-
DataSource: __expectString,
|
|
2822
|
-
Description: __expectString,
|
|
2823
|
-
MapName: __expectString,
|
|
2824
|
-
PricingPlan: __expectString,
|
|
2825
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2826
|
-
});
|
|
2827
|
-
};
|
|
2828
|
-
const de_ListMapsResponseEntryList = (output, context) => {
|
|
2829
|
-
const retVal = (output || [])
|
|
2830
|
-
.filter((e) => e != null)
|
|
2831
|
-
.map((entry) => {
|
|
2832
|
-
return de_ListMapsResponseEntry(entry, context);
|
|
2833
|
-
});
|
|
2834
|
-
return retVal;
|
|
2835
|
-
};
|
|
2836
|
-
const de_ListPlaceIndexesResponseEntry = (output, context) => {
|
|
2837
|
-
return take(output, {
|
|
2838
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2839
|
-
DataSource: __expectString,
|
|
2840
|
-
Description: __expectString,
|
|
2841
|
-
IndexName: __expectString,
|
|
2842
|
-
PricingPlan: __expectString,
|
|
2843
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2844
|
-
});
|
|
2845
|
-
};
|
|
2846
|
-
const de_ListPlaceIndexesResponseEntryList = (output, context) => {
|
|
2847
|
-
const retVal = (output || [])
|
|
2848
|
-
.filter((e) => e != null)
|
|
2849
|
-
.map((entry) => {
|
|
2850
|
-
return de_ListPlaceIndexesResponseEntry(entry, context);
|
|
2851
|
-
});
|
|
2852
|
-
return retVal;
|
|
2853
|
-
};
|
|
2854
|
-
const de_ListRouteCalculatorsResponseEntry = (output, context) => {
|
|
2855
|
-
return take(output, {
|
|
2856
|
-
CalculatorName: __expectString,
|
|
2857
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2858
|
-
DataSource: __expectString,
|
|
2859
|
-
Description: __expectString,
|
|
2860
|
-
PricingPlan: __expectString,
|
|
2861
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2862
|
-
});
|
|
2863
|
-
};
|
|
2864
|
-
const de_ListRouteCalculatorsResponseEntryList = (output, context) => {
|
|
2865
|
-
const retVal = (output || [])
|
|
2866
|
-
.filter((e) => e != null)
|
|
2867
|
-
.map((entry) => {
|
|
2868
|
-
return de_ListRouteCalculatorsResponseEntry(entry, context);
|
|
2869
|
-
});
|
|
2870
|
-
return retVal;
|
|
2871
|
-
};
|
|
2872
|
-
const de_ListTrackersResponseEntry = (output, context) => {
|
|
2873
|
-
return take(output, {
|
|
2874
|
-
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2875
|
-
Description: __expectString,
|
|
2876
|
-
PricingPlan: __expectString,
|
|
2877
|
-
PricingPlanDataSource: __expectString,
|
|
2878
|
-
TrackerName: __expectString,
|
|
2879
|
-
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2880
|
-
});
|
|
2881
|
-
};
|
|
2882
|
-
const de_ListTrackersResponseEntryList = (output, context) => {
|
|
2883
|
-
const retVal = (output || [])
|
|
2884
|
-
.filter((e) => e != null)
|
|
2885
|
-
.map((entry) => {
|
|
2886
|
-
return de_ListTrackersResponseEntry(entry, context);
|
|
2887
|
-
});
|
|
2888
|
-
return retVal;
|
|
2889
|
-
};
|
|
2890
|
-
const de_MultiLinearRings = (output, context) => {
|
|
2891
|
-
const retVal = (output || [])
|
|
2892
|
-
.filter((e) => e != null)
|
|
2893
|
-
.map((entry) => {
|
|
2894
|
-
return de_LinearRings(entry, context);
|
|
2895
|
-
});
|
|
2896
|
-
return retVal;
|
|
2897
|
-
};
|
|
2898
|
-
const de_Place = (output, context) => {
|
|
2899
|
-
return take(output, {
|
|
2900
|
-
AddressNumber: __expectString,
|
|
2901
|
-
Categories: _json,
|
|
2902
|
-
Country: __expectString,
|
|
2903
|
-
Geometry: (_) => de_PlaceGeometry(_, context),
|
|
2904
|
-
Interpolated: __expectBoolean,
|
|
2905
|
-
Label: __expectString,
|
|
2906
|
-
Municipality: __expectString,
|
|
2907
|
-
Neighborhood: __expectString,
|
|
2908
|
-
PostalCode: __expectString,
|
|
2909
|
-
Region: __expectString,
|
|
2910
|
-
Street: __expectString,
|
|
2911
|
-
SubMunicipality: __expectString,
|
|
2912
|
-
SubRegion: __expectString,
|
|
2913
|
-
SupplementalCategories: _json,
|
|
2914
|
-
TimeZone: _json,
|
|
2915
|
-
UnitNumber: __expectString,
|
|
2916
|
-
UnitType: __expectString,
|
|
2917
|
-
});
|
|
2918
|
-
};
|
|
2919
|
-
const de_PlaceGeometry = (output, context) => {
|
|
2920
|
-
return take(output, {
|
|
2921
|
-
Point: (_) => de_Position(_, context),
|
|
2922
|
-
});
|
|
2923
|
-
};
|
|
2924
|
-
const de_Position = (output, context) => {
|
|
2925
|
-
const retVal = (output || [])
|
|
2926
|
-
.filter((e) => e != null)
|
|
2927
|
-
.map((entry) => {
|
|
2928
|
-
return __limitedParseDouble(entry);
|
|
2929
|
-
});
|
|
2930
|
-
return retVal;
|
|
2931
|
-
};
|
|
2932
|
-
const de_PositionalAccuracy = (output, context) => {
|
|
2933
|
-
return take(output, {
|
|
2934
|
-
Horizontal: __limitedParseDouble,
|
|
2935
|
-
});
|
|
2936
|
-
};
|
|
2937
|
-
const de_PositionList = (output, context) => {
|
|
2938
|
-
const retVal = (output || [])
|
|
2939
|
-
.filter((e) => e != null)
|
|
2940
|
-
.map((entry) => {
|
|
2941
|
-
return de_Position(entry, context);
|
|
2942
|
-
});
|
|
2943
|
-
return retVal;
|
|
2944
|
-
};
|
|
2945
|
-
const de_RouteMatrix = (output, context) => {
|
|
2946
|
-
const retVal = (output || [])
|
|
2947
|
-
.filter((e) => e != null)
|
|
2948
|
-
.map((entry) => {
|
|
2949
|
-
return de_RouteMatrixRow(entry, context);
|
|
2950
|
-
});
|
|
2951
|
-
return retVal;
|
|
2952
|
-
};
|
|
2953
|
-
const de_RouteMatrixEntry = (output, context) => {
|
|
2954
|
-
return take(output, {
|
|
2955
|
-
Distance: __limitedParseDouble,
|
|
2956
|
-
DurationSeconds: __limitedParseDouble,
|
|
2957
|
-
Error: _json,
|
|
2958
|
-
});
|
|
2959
|
-
};
|
|
2960
|
-
const de_RouteMatrixRow = (output, context) => {
|
|
2961
|
-
const retVal = (output || [])
|
|
2962
|
-
.filter((e) => e != null)
|
|
2963
|
-
.map((entry) => {
|
|
2964
|
-
return de_RouteMatrixEntry(entry, context);
|
|
2965
|
-
});
|
|
2966
|
-
return retVal;
|
|
2967
|
-
};
|
|
2968
|
-
const de_SearchForPositionResult = (output, context) => {
|
|
2969
|
-
return take(output, {
|
|
2970
|
-
Distance: __limitedParseDouble,
|
|
2971
|
-
Place: (_) => de_Place(_, context),
|
|
2972
|
-
PlaceId: __expectString,
|
|
2973
|
-
});
|
|
2974
|
-
};
|
|
2975
|
-
const de_SearchForPositionResultList = (output, context) => {
|
|
2976
|
-
const retVal = (output || [])
|
|
2977
|
-
.filter((e) => e != null)
|
|
2978
|
-
.map((entry) => {
|
|
2979
|
-
return de_SearchForPositionResult(entry, context);
|
|
2980
|
-
});
|
|
2981
|
-
return retVal;
|
|
2982
|
-
};
|
|
2983
|
-
const de_SearchForTextResult = (output, context) => {
|
|
2984
|
-
return take(output, {
|
|
2985
|
-
Distance: __limitedParseDouble,
|
|
2986
|
-
Place: (_) => de_Place(_, context),
|
|
2987
|
-
PlaceId: __expectString,
|
|
2988
|
-
Relevance: __limitedParseDouble,
|
|
2989
|
-
});
|
|
2990
|
-
};
|
|
2991
|
-
const de_SearchForTextResultList = (output, context) => {
|
|
2992
|
-
const retVal = (output || [])
|
|
2993
|
-
.filter((e) => e != null)
|
|
2994
|
-
.map((entry) => {
|
|
2995
|
-
return de_SearchForTextResult(entry, context);
|
|
2996
|
-
});
|
|
2997
|
-
return retVal;
|
|
2998
|
-
};
|
|
2999
|
-
const de_SearchPlaceIndexForPositionSummary = (output, context) => {
|
|
3000
|
-
return take(output, {
|
|
3001
|
-
DataSource: __expectString,
|
|
3002
|
-
Language: __expectString,
|
|
3003
|
-
MaxResults: __expectInt32,
|
|
3004
|
-
Position: (_) => de_Position(_, context),
|
|
3005
|
-
});
|
|
3006
|
-
};
|
|
3007
|
-
const de_SearchPlaceIndexForSuggestionsSummary = (output, context) => {
|
|
3008
|
-
return take(output, {
|
|
3009
|
-
BiasPosition: (_) => de_Position(_, context),
|
|
3010
|
-
DataSource: __expectString,
|
|
3011
|
-
FilterBBox: (_) => de_BoundingBox(_, context),
|
|
3012
|
-
FilterCategories: _json,
|
|
3013
|
-
FilterCountries: _json,
|
|
3014
|
-
Language: __expectString,
|
|
3015
|
-
MaxResults: __expectInt32,
|
|
3016
|
-
Text: __expectString,
|
|
3017
|
-
});
|
|
3018
|
-
};
|
|
3019
|
-
const de_SearchPlaceIndexForTextSummary = (output, context) => {
|
|
3020
|
-
return take(output, {
|
|
3021
|
-
BiasPosition: (_) => de_Position(_, context),
|
|
3022
|
-
DataSource: __expectString,
|
|
3023
|
-
FilterBBox: (_) => de_BoundingBox(_, context),
|
|
3024
|
-
FilterCategories: _json,
|
|
3025
|
-
FilterCountries: _json,
|
|
3026
|
-
Language: __expectString,
|
|
3027
|
-
MaxResults: __expectInt32,
|
|
3028
|
-
ResultBBox: (_) => de_BoundingBox(_, context),
|
|
3029
|
-
Text: __expectString,
|
|
3030
|
-
});
|
|
3031
|
-
};
|
|
3032
|
-
const de_Step = (output, context) => {
|
|
3033
|
-
return take(output, {
|
|
3034
|
-
Distance: __limitedParseDouble,
|
|
3035
|
-
DurationSeconds: __limitedParseDouble,
|
|
3036
|
-
EndPosition: (_) => de_Position(_, context),
|
|
3037
|
-
GeometryOffset: __expectInt32,
|
|
3038
|
-
StartPosition: (_) => de_Position(_, context),
|
|
3039
|
-
});
|
|
3040
|
-
};
|
|
3041
|
-
const de_StepList = (output, context) => {
|
|
3042
|
-
const retVal = (output || [])
|
|
3043
|
-
.filter((e) => e != null)
|
|
3044
|
-
.map((entry) => {
|
|
3045
|
-
return de_Step(entry, context);
|
|
3046
|
-
});
|
|
3047
|
-
return retVal;
|
|
3048
|
-
};
|
|
3049
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
3050
|
-
return take(output, {
|
|
3051
|
-
Message: [, __expectString, `message`],
|
|
3052
|
-
Name: [, __expectString, `name`],
|
|
3053
|
-
});
|
|
3054
|
-
};
|
|
3055
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3056
|
-
const retVal = (output || [])
|
|
3057
|
-
.filter((e) => e != null)
|
|
3058
|
-
.map((entry) => {
|
|
3059
|
-
return de_ValidationExceptionField(entry, context);
|
|
3060
|
-
});
|
|
3061
|
-
return retVal;
|
|
3062
|
-
};
|
|
3063
|
-
const deserializeMetadata = (output) => ({
|
|
3064
|
-
httpStatusCode: output.statusCode,
|
|
3065
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3066
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3067
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3068
|
-
});
|
|
3069
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3070
|
-
const _CC = "CacheControl";
|
|
3071
|
-
const _CT = "ContentType";
|
|
3072
|
-
const _FD = "ForceDelete";
|
|
3073
|
-
const _K = "Key";
|
|
3074
|
-
const _L = "Language";
|
|
3075
|
-
const _TK = "TagKeys";
|
|
3076
|
-
const _cc = "cache-control";
|
|
3077
|
-
const _ct = "content-type";
|
|
3078
|
-
const _fD = "forceDelete";
|
|
3079
|
-
const _k = "key";
|
|
3080
|
-
const _l = "language";
|
|
3081
|
-
const _tK = "tagKeys";
|