@aws-sdk/client-location 3.474.0 → 3.477.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/protocols/Aws_restJson1.js +380 -754
- package/dist-es/protocols/Aws_restJson1.js +382 -756
- package/package.json +5 -4
|
@@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_SearchPlaceIndexForTextCommand = exports.se_SearchPlaceIndexForSuggestionsCommand = exports.se_SearchPlaceIndexForPositionCommand = exports.se_PutGeofenceCommand = exports.se_ListTrackersCommand = exports.se_ListTrackerConsumersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRouteCalculatorsCommand = exports.se_ListPlaceIndexesCommand = exports.se_ListMapsCommand = exports.se_ListKeysCommand = exports.se_ListGeofencesCommand = exports.se_ListGeofenceCollectionsCommand = exports.se_ListDevicePositionsCommand = exports.se_GetPlaceCommand = exports.se_GetMapTileCommand = exports.se_GetMapStyleDescriptorCommand = exports.se_GetMapSpritesCommand = exports.se_GetMapGlyphsCommand = exports.se_GetGeofenceCommand = exports.se_GetDevicePositionHistoryCommand = exports.se_GetDevicePositionCommand = exports.se_DisassociateTrackerConsumerCommand = exports.se_DescribeTrackerCommand = exports.se_DescribeRouteCalculatorCommand = exports.se_DescribePlaceIndexCommand = exports.se_DescribeMapCommand = exports.se_DescribeKeyCommand = exports.se_DescribeGeofenceCollectionCommand = exports.se_DeleteTrackerCommand = exports.se_DeleteRouteCalculatorCommand = exports.se_DeletePlaceIndexCommand = exports.se_DeleteMapCommand = exports.se_DeleteKeyCommand = exports.se_DeleteGeofenceCollectionCommand = exports.se_CreateTrackerCommand = exports.se_CreateRouteCalculatorCommand = exports.se_CreatePlaceIndexCommand = exports.se_CreateMapCommand = exports.se_CreateKeyCommand = exports.se_CreateGeofenceCollectionCommand = exports.se_CalculateRouteMatrixCommand = exports.se_CalculateRouteCommand = exports.se_BatchUpdateDevicePositionCommand = exports.se_BatchPutGeofenceCommand = exports.se_BatchGetDevicePositionCommand = exports.se_BatchEvaluateGeofencesCommand = exports.se_BatchDeleteGeofenceCommand = exports.se_BatchDeleteDevicePositionHistoryCommand = exports.se_AssociateTrackerConsumerCommand = void 0;
|
|
4
4
|
exports.de_ListPlaceIndexesCommand = exports.de_ListMapsCommand = exports.de_ListKeysCommand = exports.de_ListGeofencesCommand = exports.de_ListGeofenceCollectionsCommand = exports.de_ListDevicePositionsCommand = exports.de_GetPlaceCommand = exports.de_GetMapTileCommand = exports.de_GetMapStyleDescriptorCommand = exports.de_GetMapSpritesCommand = exports.de_GetMapGlyphsCommand = exports.de_GetGeofenceCommand = exports.de_GetDevicePositionHistoryCommand = exports.de_GetDevicePositionCommand = exports.de_DisassociateTrackerConsumerCommand = exports.de_DescribeTrackerCommand = exports.de_DescribeRouteCalculatorCommand = exports.de_DescribePlaceIndexCommand = exports.de_DescribeMapCommand = exports.de_DescribeKeyCommand = exports.de_DescribeGeofenceCollectionCommand = exports.de_DeleteTrackerCommand = exports.de_DeleteRouteCalculatorCommand = exports.de_DeletePlaceIndexCommand = exports.de_DeleteMapCommand = exports.de_DeleteKeyCommand = exports.de_DeleteGeofenceCollectionCommand = exports.de_CreateTrackerCommand = exports.de_CreateRouteCalculatorCommand = exports.de_CreatePlaceIndexCommand = exports.de_CreateMapCommand = exports.de_CreateKeyCommand = exports.de_CreateGeofenceCollectionCommand = exports.de_CalculateRouteMatrixCommand = exports.de_CalculateRouteCommand = exports.de_BatchUpdateDevicePositionCommand = exports.de_BatchPutGeofenceCommand = exports.de_BatchGetDevicePositionCommand = exports.de_BatchEvaluateGeofencesCommand = exports.de_BatchDeleteGeofenceCommand = exports.de_BatchDeleteDevicePositionHistoryCommand = exports.de_AssociateTrackerConsumerCommand = exports.se_UpdateTrackerCommand = exports.se_UpdateRouteCalculatorCommand = exports.se_UpdatePlaceIndexCommand = exports.se_UpdateMapCommand = exports.se_UpdateKeyCommand = exports.se_UpdateGeofenceCollectionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = void 0;
|
|
5
5
|
exports.de_UpdateTrackerCommand = exports.de_UpdateRouteCalculatorCommand = exports.de_UpdatePlaceIndexCommand = exports.de_UpdateMapCommand = exports.de_UpdateKeyCommand = exports.de_UpdateGeofenceCollectionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchPlaceIndexForTextCommand = exports.de_SearchPlaceIndexForSuggestionsCommand = exports.de_SearchPlaceIndexForPositionCommand = exports.de_PutGeofenceCommand = exports.de_ListTrackersCommand = exports.de_ListTrackerConsumersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRouteCalculatorsCommand = void 0;
|
|
6
|
+
const core_1 = require("@smithy/core");
|
|
6
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
9
|
const LocationServiceException_1 = require("../models/LocationServiceException");
|
|
9
10
|
const models_0_1 = require("../models/models_0");
|
|
10
11
|
const se_AssociateTrackerConsumerCommand = async (input, context) => {
|
|
11
|
-
const
|
|
12
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
13
|
const headers = {
|
|
13
14
|
"content-type": "application/json",
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
16
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/consumers");
|
|
17
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
20
|
ConsumerArn: [],
|
|
@@ -26,25 +26,18 @@ const se_AssociateTrackerConsumerCommand = async (input, context) => {
|
|
|
26
26
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
port,
|
|
33
|
-
method: "POST",
|
|
34
|
-
headers,
|
|
35
|
-
path: resolvedPath,
|
|
36
|
-
body,
|
|
37
|
-
});
|
|
29
|
+
b.hn(resolvedHostname);
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
38
32
|
};
|
|
39
33
|
exports.se_AssociateTrackerConsumerCommand = se_AssociateTrackerConsumerCommand;
|
|
40
34
|
const se_BatchDeleteDevicePositionHistoryCommand = async (input, context) => {
|
|
41
|
-
const
|
|
35
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
42
36
|
const headers = {
|
|
43
37
|
"content-type": "application/json",
|
|
44
38
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
39
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/delete-positions");
|
|
40
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
48
41
|
let body;
|
|
49
42
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
43
|
DeviceIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -56,25 +49,18 @@ const se_BatchDeleteDevicePositionHistoryCommand = async (input, context) => {
|
|
|
56
49
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
57
50
|
}
|
|
58
51
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
port,
|
|
63
|
-
method: "POST",
|
|
64
|
-
headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
body,
|
|
67
|
-
});
|
|
52
|
+
b.hn(resolvedHostname);
|
|
53
|
+
b.m("POST").h(headers).b(body);
|
|
54
|
+
return b.build();
|
|
68
55
|
};
|
|
69
56
|
exports.se_BatchDeleteDevicePositionHistoryCommand = se_BatchDeleteDevicePositionHistoryCommand;
|
|
70
57
|
const se_BatchDeleteGeofenceCommand = async (input, context) => {
|
|
71
|
-
const
|
|
58
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
72
59
|
const headers = {
|
|
73
60
|
"content-type": "application/json",
|
|
74
61
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
62
|
+
b.bp("/geofencing/v0/collections/{CollectionName}/delete-geofences");
|
|
63
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
78
64
|
let body;
|
|
79
65
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
66
|
GeofenceIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -86,25 +72,18 @@ const se_BatchDeleteGeofenceCommand = async (input, context) => {
|
|
|
86
72
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
87
73
|
}
|
|
88
74
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
port,
|
|
93
|
-
method: "POST",
|
|
94
|
-
headers,
|
|
95
|
-
path: resolvedPath,
|
|
96
|
-
body,
|
|
97
|
-
});
|
|
75
|
+
b.hn(resolvedHostname);
|
|
76
|
+
b.m("POST").h(headers).b(body);
|
|
77
|
+
return b.build();
|
|
98
78
|
};
|
|
99
79
|
exports.se_BatchDeleteGeofenceCommand = se_BatchDeleteGeofenceCommand;
|
|
100
80
|
const se_BatchEvaluateGeofencesCommand = async (input, context) => {
|
|
101
|
-
const
|
|
81
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
102
82
|
const headers = {
|
|
103
83
|
"content-type": "application/json",
|
|
104
84
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
85
|
+
b.bp("/geofencing/v0/collections/{CollectionName}/positions");
|
|
86
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
108
87
|
let body;
|
|
109
88
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
110
89
|
DevicePositionUpdates: (_) => se_DevicePositionUpdateList(_, context),
|
|
@@ -116,25 +95,18 @@ const se_BatchEvaluateGeofencesCommand = async (input, context) => {
|
|
|
116
95
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
117
96
|
}
|
|
118
97
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
port,
|
|
123
|
-
method: "POST",
|
|
124
|
-
headers,
|
|
125
|
-
path: resolvedPath,
|
|
126
|
-
body,
|
|
127
|
-
});
|
|
98
|
+
b.hn(resolvedHostname);
|
|
99
|
+
b.m("POST").h(headers).b(body);
|
|
100
|
+
return b.build();
|
|
128
101
|
};
|
|
129
102
|
exports.se_BatchEvaluateGeofencesCommand = se_BatchEvaluateGeofencesCommand;
|
|
130
103
|
const se_BatchGetDevicePositionCommand = async (input, context) => {
|
|
131
|
-
const
|
|
104
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
132
105
|
const headers = {
|
|
133
106
|
"content-type": "application/json",
|
|
134
107
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
108
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/get-positions");
|
|
109
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
138
110
|
let body;
|
|
139
111
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
140
112
|
DeviceIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -146,25 +118,18 @@ const se_BatchGetDevicePositionCommand = async (input, context) => {
|
|
|
146
118
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
147
119
|
}
|
|
148
120
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
port,
|
|
153
|
-
method: "POST",
|
|
154
|
-
headers,
|
|
155
|
-
path: resolvedPath,
|
|
156
|
-
body,
|
|
157
|
-
});
|
|
121
|
+
b.hn(resolvedHostname);
|
|
122
|
+
b.m("POST").h(headers).b(body);
|
|
123
|
+
return b.build();
|
|
158
124
|
};
|
|
159
125
|
exports.se_BatchGetDevicePositionCommand = se_BatchGetDevicePositionCommand;
|
|
160
126
|
const se_BatchPutGeofenceCommand = async (input, context) => {
|
|
161
|
-
const
|
|
127
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
162
128
|
const headers = {
|
|
163
129
|
"content-type": "application/json",
|
|
164
130
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
131
|
+
b.bp("/geofencing/v0/collections/{CollectionName}/put-geofences");
|
|
132
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
168
133
|
let body;
|
|
169
134
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
170
135
|
Entries: (_) => se_BatchPutGeofenceRequestEntryList(_, context),
|
|
@@ -176,25 +141,18 @@ const se_BatchPutGeofenceCommand = async (input, context) => {
|
|
|
176
141
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
177
142
|
}
|
|
178
143
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
port,
|
|
183
|
-
method: "POST",
|
|
184
|
-
headers,
|
|
185
|
-
path: resolvedPath,
|
|
186
|
-
body,
|
|
187
|
-
});
|
|
144
|
+
b.hn(resolvedHostname);
|
|
145
|
+
b.m("POST").h(headers).b(body);
|
|
146
|
+
return b.build();
|
|
188
147
|
};
|
|
189
148
|
exports.se_BatchPutGeofenceCommand = se_BatchPutGeofenceCommand;
|
|
190
149
|
const se_BatchUpdateDevicePositionCommand = async (input, context) => {
|
|
191
|
-
const
|
|
150
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
192
151
|
const headers = {
|
|
193
152
|
"content-type": "application/json",
|
|
194
153
|
};
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
154
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/positions");
|
|
155
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
198
156
|
let body;
|
|
199
157
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
200
158
|
Updates: (_) => se_DevicePositionUpdateList(_, context),
|
|
@@ -206,27 +164,20 @@ const se_BatchUpdateDevicePositionCommand = async (input, context) => {
|
|
|
206
164
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
207
165
|
}
|
|
208
166
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
port,
|
|
213
|
-
method: "POST",
|
|
214
|
-
headers,
|
|
215
|
-
path: resolvedPath,
|
|
216
|
-
body,
|
|
217
|
-
});
|
|
167
|
+
b.hn(resolvedHostname);
|
|
168
|
+
b.m("POST").h(headers).b(body);
|
|
169
|
+
return b.build();
|
|
218
170
|
};
|
|
219
171
|
exports.se_BatchUpdateDevicePositionCommand = se_BatchUpdateDevicePositionCommand;
|
|
220
172
|
const se_CalculateRouteCommand = async (input, context) => {
|
|
221
|
-
const
|
|
173
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
222
174
|
const headers = {
|
|
223
175
|
"content-type": "application/json",
|
|
224
176
|
};
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
177
|
+
b.bp("/routes/v0/calculators/{CalculatorName}/calculate/route");
|
|
178
|
+
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
228
179
|
const query = (0, smithy_client_1.map)({
|
|
229
|
-
|
|
180
|
+
[_k]: [, input[_K]],
|
|
230
181
|
});
|
|
231
182
|
let body;
|
|
232
183
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -250,28 +201,20 @@ const se_CalculateRouteCommand = async (input, context) => {
|
|
|
250
201
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
251
202
|
}
|
|
252
203
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
port,
|
|
257
|
-
method: "POST",
|
|
258
|
-
headers,
|
|
259
|
-
path: resolvedPath,
|
|
260
|
-
query,
|
|
261
|
-
body,
|
|
262
|
-
});
|
|
204
|
+
b.hn(resolvedHostname);
|
|
205
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
206
|
+
return b.build();
|
|
263
207
|
};
|
|
264
208
|
exports.se_CalculateRouteCommand = se_CalculateRouteCommand;
|
|
265
209
|
const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
266
|
-
const
|
|
210
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
267
211
|
const headers = {
|
|
268
212
|
"content-type": "application/json",
|
|
269
213
|
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
214
|
+
b.bp("/routes/v0/calculators/{CalculatorName}/calculate/route-matrix");
|
|
215
|
+
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
273
216
|
const query = (0, smithy_client_1.map)({
|
|
274
|
-
|
|
217
|
+
[_k]: [, input[_K]],
|
|
275
218
|
});
|
|
276
219
|
let body;
|
|
277
220
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -291,24 +234,17 @@ const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
|
291
234
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
292
235
|
}
|
|
293
236
|
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
port,
|
|
298
|
-
method: "POST",
|
|
299
|
-
headers,
|
|
300
|
-
path: resolvedPath,
|
|
301
|
-
query,
|
|
302
|
-
body,
|
|
303
|
-
});
|
|
237
|
+
b.hn(resolvedHostname);
|
|
238
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
239
|
+
return b.build();
|
|
304
240
|
};
|
|
305
241
|
exports.se_CalculateRouteMatrixCommand = se_CalculateRouteMatrixCommand;
|
|
306
242
|
const se_CreateGeofenceCollectionCommand = async (input, context) => {
|
|
307
|
-
const
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
308
244
|
const headers = {
|
|
309
245
|
"content-type": "application/json",
|
|
310
246
|
};
|
|
311
|
-
|
|
247
|
+
b.bp("/geofencing/v0/collections");
|
|
312
248
|
let body;
|
|
313
249
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
250
|
CollectionName: [],
|
|
@@ -325,23 +261,17 @@ const se_CreateGeofenceCollectionCommand = async (input, context) => {
|
|
|
325
261
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
326
262
|
}
|
|
327
263
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
port,
|
|
332
|
-
method: "POST",
|
|
333
|
-
headers,
|
|
334
|
-
path: resolvedPath,
|
|
335
|
-
body,
|
|
336
|
-
});
|
|
264
|
+
b.hn(resolvedHostname);
|
|
265
|
+
b.m("POST").h(headers).b(body);
|
|
266
|
+
return b.build();
|
|
337
267
|
};
|
|
338
268
|
exports.se_CreateGeofenceCollectionCommand = se_CreateGeofenceCollectionCommand;
|
|
339
269
|
const se_CreateKeyCommand = async (input, context) => {
|
|
340
|
-
const
|
|
270
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
341
271
|
const headers = {
|
|
342
272
|
"content-type": "application/json",
|
|
343
273
|
};
|
|
344
|
-
|
|
274
|
+
b.bp("/metadata/v0/keys");
|
|
345
275
|
let body;
|
|
346
276
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
347
277
|
Description: [],
|
|
@@ -358,23 +288,17 @@ const se_CreateKeyCommand = async (input, context) => {
|
|
|
358
288
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
359
289
|
}
|
|
360
290
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
port,
|
|
365
|
-
method: "POST",
|
|
366
|
-
headers,
|
|
367
|
-
path: resolvedPath,
|
|
368
|
-
body,
|
|
369
|
-
});
|
|
291
|
+
b.hn(resolvedHostname);
|
|
292
|
+
b.m("POST").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
370
294
|
};
|
|
371
295
|
exports.se_CreateKeyCommand = se_CreateKeyCommand;
|
|
372
296
|
const se_CreateMapCommand = async (input, context) => {
|
|
373
|
-
const
|
|
297
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
374
298
|
const headers = {
|
|
375
299
|
"content-type": "application/json",
|
|
376
300
|
};
|
|
377
|
-
|
|
301
|
+
b.bp("/maps/v0/maps");
|
|
378
302
|
let body;
|
|
379
303
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
380
304
|
Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -390,23 +314,17 @@ const se_CreateMapCommand = async (input, context) => {
|
|
|
390
314
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
391
315
|
}
|
|
392
316
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
port,
|
|
397
|
-
method: "POST",
|
|
398
|
-
headers,
|
|
399
|
-
path: resolvedPath,
|
|
400
|
-
body,
|
|
401
|
-
});
|
|
317
|
+
b.hn(resolvedHostname);
|
|
318
|
+
b.m("POST").h(headers).b(body);
|
|
319
|
+
return b.build();
|
|
402
320
|
};
|
|
403
321
|
exports.se_CreateMapCommand = se_CreateMapCommand;
|
|
404
322
|
const se_CreatePlaceIndexCommand = async (input, context) => {
|
|
405
|
-
const
|
|
323
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
406
324
|
const headers = {
|
|
407
325
|
"content-type": "application/json",
|
|
408
326
|
};
|
|
409
|
-
|
|
327
|
+
b.bp("/places/v0/indexes");
|
|
410
328
|
let body;
|
|
411
329
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
412
330
|
DataSource: [],
|
|
@@ -423,23 +341,17 @@ const se_CreatePlaceIndexCommand = async (input, context) => {
|
|
|
423
341
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
424
342
|
}
|
|
425
343
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
port,
|
|
430
|
-
method: "POST",
|
|
431
|
-
headers,
|
|
432
|
-
path: resolvedPath,
|
|
433
|
-
body,
|
|
434
|
-
});
|
|
344
|
+
b.hn(resolvedHostname);
|
|
345
|
+
b.m("POST").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
435
347
|
};
|
|
436
348
|
exports.se_CreatePlaceIndexCommand = se_CreatePlaceIndexCommand;
|
|
437
349
|
const se_CreateRouteCalculatorCommand = async (input, context) => {
|
|
438
|
-
const
|
|
350
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
439
351
|
const headers = {
|
|
440
352
|
"content-type": "application/json",
|
|
441
353
|
};
|
|
442
|
-
|
|
354
|
+
b.bp("/routes/v0/calculators");
|
|
443
355
|
let body;
|
|
444
356
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
445
357
|
CalculatorName: [],
|
|
@@ -455,23 +367,17 @@ const se_CreateRouteCalculatorCommand = async (input, context) => {
|
|
|
455
367
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
456
368
|
}
|
|
457
369
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
port,
|
|
462
|
-
method: "POST",
|
|
463
|
-
headers,
|
|
464
|
-
path: resolvedPath,
|
|
465
|
-
body,
|
|
466
|
-
});
|
|
370
|
+
b.hn(resolvedHostname);
|
|
371
|
+
b.m("POST").h(headers).b(body);
|
|
372
|
+
return b.build();
|
|
467
373
|
};
|
|
468
374
|
exports.se_CreateRouteCalculatorCommand = se_CreateRouteCalculatorCommand;
|
|
469
375
|
const se_CreateTrackerCommand = async (input, context) => {
|
|
470
|
-
const
|
|
376
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
471
377
|
const headers = {
|
|
472
378
|
"content-type": "application/json",
|
|
473
379
|
};
|
|
474
|
-
|
|
380
|
+
b.bp("/tracking/v0/trackers");
|
|
475
381
|
let body;
|
|
476
382
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
477
383
|
Description: [],
|
|
@@ -491,23 +397,16 @@ const se_CreateTrackerCommand = async (input, context) => {
|
|
|
491
397
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
492
398
|
}
|
|
493
399
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
port,
|
|
498
|
-
method: "POST",
|
|
499
|
-
headers,
|
|
500
|
-
path: resolvedPath,
|
|
501
|
-
body,
|
|
502
|
-
});
|
|
400
|
+
b.hn(resolvedHostname);
|
|
401
|
+
b.m("POST").h(headers).b(body);
|
|
402
|
+
return b.build();
|
|
503
403
|
};
|
|
504
404
|
exports.se_CreateTrackerCommand = se_CreateTrackerCommand;
|
|
505
405
|
const se_DeleteGeofenceCollectionCommand = async (input, context) => {
|
|
506
|
-
const
|
|
406
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
507
407
|
const headers = {};
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
408
|
+
b.bp("/geofencing/v0/collections/{CollectionName}");
|
|
409
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
511
410
|
let body;
|
|
512
411
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
513
412
|
if (context.disableHostPrefix !== true) {
|
|
@@ -516,22 +415,16 @@ const se_DeleteGeofenceCollectionCommand = async (input, context) => {
|
|
|
516
415
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
517
416
|
}
|
|
518
417
|
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
port,
|
|
523
|
-
method: "DELETE",
|
|
524
|
-
headers,
|
|
525
|
-
path: resolvedPath,
|
|
526
|
-
body,
|
|
527
|
-
});
|
|
418
|
+
b.hn(resolvedHostname);
|
|
419
|
+
b.m("DELETE").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
528
421
|
};
|
|
529
422
|
exports.se_DeleteGeofenceCollectionCommand = se_DeleteGeofenceCollectionCommand;
|
|
530
423
|
const se_DeleteKeyCommand = async (input, context) => {
|
|
531
|
-
const
|
|
424
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
532
425
|
const headers = {};
|
|
533
|
-
|
|
534
|
-
|
|
426
|
+
b.bp("/metadata/v0/keys/{KeyName}");
|
|
427
|
+
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
535
428
|
let body;
|
|
536
429
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
537
430
|
if (context.disableHostPrefix !== true) {
|
|
@@ -540,22 +433,16 @@ const se_DeleteKeyCommand = async (input, context) => {
|
|
|
540
433
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
541
434
|
}
|
|
542
435
|
}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
port,
|
|
547
|
-
method: "DELETE",
|
|
548
|
-
headers,
|
|
549
|
-
path: resolvedPath,
|
|
550
|
-
body,
|
|
551
|
-
});
|
|
436
|
+
b.hn(resolvedHostname);
|
|
437
|
+
b.m("DELETE").h(headers).b(body);
|
|
438
|
+
return b.build();
|
|
552
439
|
};
|
|
553
440
|
exports.se_DeleteKeyCommand = se_DeleteKeyCommand;
|
|
554
441
|
const se_DeleteMapCommand = async (input, context) => {
|
|
555
|
-
const
|
|
442
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
556
443
|
const headers = {};
|
|
557
|
-
|
|
558
|
-
|
|
444
|
+
b.bp("/maps/v0/maps/{MapName}");
|
|
445
|
+
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
559
446
|
let body;
|
|
560
447
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
561
448
|
if (context.disableHostPrefix !== true) {
|
|
@@ -564,22 +451,16 @@ const se_DeleteMapCommand = async (input, context) => {
|
|
|
564
451
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
565
452
|
}
|
|
566
453
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
port,
|
|
571
|
-
method: "DELETE",
|
|
572
|
-
headers,
|
|
573
|
-
path: resolvedPath,
|
|
574
|
-
body,
|
|
575
|
-
});
|
|
454
|
+
b.hn(resolvedHostname);
|
|
455
|
+
b.m("DELETE").h(headers).b(body);
|
|
456
|
+
return b.build();
|
|
576
457
|
};
|
|
577
458
|
exports.se_DeleteMapCommand = se_DeleteMapCommand;
|
|
578
459
|
const se_DeletePlaceIndexCommand = async (input, context) => {
|
|
579
|
-
const
|
|
460
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
580
461
|
const headers = {};
|
|
581
|
-
|
|
582
|
-
|
|
462
|
+
b.bp("/places/v0/indexes/{IndexName}");
|
|
463
|
+
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
583
464
|
let body;
|
|
584
465
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
585
466
|
if (context.disableHostPrefix !== true) {
|
|
@@ -588,22 +469,16 @@ const se_DeletePlaceIndexCommand = async (input, context) => {
|
|
|
588
469
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
589
470
|
}
|
|
590
471
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
port,
|
|
595
|
-
method: "DELETE",
|
|
596
|
-
headers,
|
|
597
|
-
path: resolvedPath,
|
|
598
|
-
body,
|
|
599
|
-
});
|
|
472
|
+
b.hn(resolvedHostname);
|
|
473
|
+
b.m("DELETE").h(headers).b(body);
|
|
474
|
+
return b.build();
|
|
600
475
|
};
|
|
601
476
|
exports.se_DeletePlaceIndexCommand = se_DeletePlaceIndexCommand;
|
|
602
477
|
const se_DeleteRouteCalculatorCommand = async (input, context) => {
|
|
603
|
-
const
|
|
478
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
604
479
|
const headers = {};
|
|
605
|
-
|
|
606
|
-
|
|
480
|
+
b.bp("/routes/v0/calculators/{CalculatorName}");
|
|
481
|
+
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
607
482
|
let body;
|
|
608
483
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
609
484
|
if (context.disableHostPrefix !== true) {
|
|
@@ -612,22 +487,16 @@ const se_DeleteRouteCalculatorCommand = async (input, context) => {
|
|
|
612
487
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
613
488
|
}
|
|
614
489
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
port,
|
|
619
|
-
method: "DELETE",
|
|
620
|
-
headers,
|
|
621
|
-
path: resolvedPath,
|
|
622
|
-
body,
|
|
623
|
-
});
|
|
490
|
+
b.hn(resolvedHostname);
|
|
491
|
+
b.m("DELETE").h(headers).b(body);
|
|
492
|
+
return b.build();
|
|
624
493
|
};
|
|
625
494
|
exports.se_DeleteRouteCalculatorCommand = se_DeleteRouteCalculatorCommand;
|
|
626
495
|
const se_DeleteTrackerCommand = async (input, context) => {
|
|
627
|
-
const
|
|
496
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
628
497
|
const headers = {};
|
|
629
|
-
|
|
630
|
-
|
|
498
|
+
b.bp("/tracking/v0/trackers/{TrackerName}");
|
|
499
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
631
500
|
let body;
|
|
632
501
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
633
502
|
if (context.disableHostPrefix !== true) {
|
|
@@ -636,23 +505,16 @@ const se_DeleteTrackerCommand = async (input, context) => {
|
|
|
636
505
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
637
506
|
}
|
|
638
507
|
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
port,
|
|
643
|
-
method: "DELETE",
|
|
644
|
-
headers,
|
|
645
|
-
path: resolvedPath,
|
|
646
|
-
body,
|
|
647
|
-
});
|
|
508
|
+
b.hn(resolvedHostname);
|
|
509
|
+
b.m("DELETE").h(headers).b(body);
|
|
510
|
+
return b.build();
|
|
648
511
|
};
|
|
649
512
|
exports.se_DeleteTrackerCommand = se_DeleteTrackerCommand;
|
|
650
513
|
const se_DescribeGeofenceCollectionCommand = async (input, context) => {
|
|
651
|
-
const
|
|
514
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
652
515
|
const headers = {};
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
516
|
+
b.bp("/geofencing/v0/collections/{CollectionName}");
|
|
517
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
656
518
|
let body;
|
|
657
519
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
658
520
|
if (context.disableHostPrefix !== true) {
|
|
@@ -661,22 +523,16 @@ const se_DescribeGeofenceCollectionCommand = async (input, context) => {
|
|
|
661
523
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
662
524
|
}
|
|
663
525
|
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
port,
|
|
668
|
-
method: "GET",
|
|
669
|
-
headers,
|
|
670
|
-
path: resolvedPath,
|
|
671
|
-
body,
|
|
672
|
-
});
|
|
526
|
+
b.hn(resolvedHostname);
|
|
527
|
+
b.m("GET").h(headers).b(body);
|
|
528
|
+
return b.build();
|
|
673
529
|
};
|
|
674
530
|
exports.se_DescribeGeofenceCollectionCommand = se_DescribeGeofenceCollectionCommand;
|
|
675
531
|
const se_DescribeKeyCommand = async (input, context) => {
|
|
676
|
-
const
|
|
532
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
677
533
|
const headers = {};
|
|
678
|
-
|
|
679
|
-
|
|
534
|
+
b.bp("/metadata/v0/keys/{KeyName}");
|
|
535
|
+
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
680
536
|
let body;
|
|
681
537
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
682
538
|
if (context.disableHostPrefix !== true) {
|
|
@@ -685,22 +541,16 @@ const se_DescribeKeyCommand = async (input, context) => {
|
|
|
685
541
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
686
542
|
}
|
|
687
543
|
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
port,
|
|
692
|
-
method: "GET",
|
|
693
|
-
headers,
|
|
694
|
-
path: resolvedPath,
|
|
695
|
-
body,
|
|
696
|
-
});
|
|
544
|
+
b.hn(resolvedHostname);
|
|
545
|
+
b.m("GET").h(headers).b(body);
|
|
546
|
+
return b.build();
|
|
697
547
|
};
|
|
698
548
|
exports.se_DescribeKeyCommand = se_DescribeKeyCommand;
|
|
699
549
|
const se_DescribeMapCommand = async (input, context) => {
|
|
700
|
-
const
|
|
550
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
701
551
|
const headers = {};
|
|
702
|
-
|
|
703
|
-
|
|
552
|
+
b.bp("/maps/v0/maps/{MapName}");
|
|
553
|
+
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
704
554
|
let body;
|
|
705
555
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
706
556
|
if (context.disableHostPrefix !== true) {
|
|
@@ -709,22 +559,16 @@ const se_DescribeMapCommand = async (input, context) => {
|
|
|
709
559
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
710
560
|
}
|
|
711
561
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
port,
|
|
716
|
-
method: "GET",
|
|
717
|
-
headers,
|
|
718
|
-
path: resolvedPath,
|
|
719
|
-
body,
|
|
720
|
-
});
|
|
562
|
+
b.hn(resolvedHostname);
|
|
563
|
+
b.m("GET").h(headers).b(body);
|
|
564
|
+
return b.build();
|
|
721
565
|
};
|
|
722
566
|
exports.se_DescribeMapCommand = se_DescribeMapCommand;
|
|
723
567
|
const se_DescribePlaceIndexCommand = async (input, context) => {
|
|
724
|
-
const
|
|
568
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
725
569
|
const headers = {};
|
|
726
|
-
|
|
727
|
-
|
|
570
|
+
b.bp("/places/v0/indexes/{IndexName}");
|
|
571
|
+
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
728
572
|
let body;
|
|
729
573
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
730
574
|
if (context.disableHostPrefix !== true) {
|
|
@@ -733,22 +577,16 @@ const se_DescribePlaceIndexCommand = async (input, context) => {
|
|
|
733
577
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
734
578
|
}
|
|
735
579
|
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
port,
|
|
740
|
-
method: "GET",
|
|
741
|
-
headers,
|
|
742
|
-
path: resolvedPath,
|
|
743
|
-
body,
|
|
744
|
-
});
|
|
580
|
+
b.hn(resolvedHostname);
|
|
581
|
+
b.m("GET").h(headers).b(body);
|
|
582
|
+
return b.build();
|
|
745
583
|
};
|
|
746
584
|
exports.se_DescribePlaceIndexCommand = se_DescribePlaceIndexCommand;
|
|
747
585
|
const se_DescribeRouteCalculatorCommand = async (input, context) => {
|
|
748
|
-
const
|
|
586
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
749
587
|
const headers = {};
|
|
750
|
-
|
|
751
|
-
|
|
588
|
+
b.bp("/routes/v0/calculators/{CalculatorName}");
|
|
589
|
+
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
752
590
|
let body;
|
|
753
591
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
754
592
|
if (context.disableHostPrefix !== true) {
|
|
@@ -757,22 +595,16 @@ const se_DescribeRouteCalculatorCommand = async (input, context) => {
|
|
|
757
595
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
758
596
|
}
|
|
759
597
|
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
port,
|
|
764
|
-
method: "GET",
|
|
765
|
-
headers,
|
|
766
|
-
path: resolvedPath,
|
|
767
|
-
body,
|
|
768
|
-
});
|
|
598
|
+
b.hn(resolvedHostname);
|
|
599
|
+
b.m("GET").h(headers).b(body);
|
|
600
|
+
return b.build();
|
|
769
601
|
};
|
|
770
602
|
exports.se_DescribeRouteCalculatorCommand = se_DescribeRouteCalculatorCommand;
|
|
771
603
|
const se_DescribeTrackerCommand = async (input, context) => {
|
|
772
|
-
const
|
|
604
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
773
605
|
const headers = {};
|
|
774
|
-
|
|
775
|
-
|
|
606
|
+
b.bp("/tracking/v0/trackers/{TrackerName}");
|
|
607
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
776
608
|
let body;
|
|
777
609
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
778
610
|
if (context.disableHostPrefix !== true) {
|
|
@@ -781,24 +613,17 @@ const se_DescribeTrackerCommand = async (input, context) => {
|
|
|
781
613
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
782
614
|
}
|
|
783
615
|
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
port,
|
|
788
|
-
method: "GET",
|
|
789
|
-
headers,
|
|
790
|
-
path: resolvedPath,
|
|
791
|
-
body,
|
|
792
|
-
});
|
|
616
|
+
b.hn(resolvedHostname);
|
|
617
|
+
b.m("GET").h(headers).b(body);
|
|
618
|
+
return b.build();
|
|
793
619
|
};
|
|
794
620
|
exports.se_DescribeTrackerCommand = se_DescribeTrackerCommand;
|
|
795
621
|
const se_DisassociateTrackerConsumerCommand = async (input, context) => {
|
|
796
|
-
const
|
|
622
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
797
623
|
const headers = {};
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConsumerArn", () => input.ConsumerArn, "{ConsumerArn}", false);
|
|
624
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}");
|
|
625
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
626
|
+
b.p("ConsumerArn", () => input.ConsumerArn, "{ConsumerArn}", false);
|
|
802
627
|
let body;
|
|
803
628
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
804
629
|
if (context.disableHostPrefix !== true) {
|
|
@@ -807,24 +632,17 @@ const se_DisassociateTrackerConsumerCommand = async (input, context) => {
|
|
|
807
632
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
808
633
|
}
|
|
809
634
|
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
port,
|
|
814
|
-
method: "DELETE",
|
|
815
|
-
headers,
|
|
816
|
-
path: resolvedPath,
|
|
817
|
-
body,
|
|
818
|
-
});
|
|
635
|
+
b.hn(resolvedHostname);
|
|
636
|
+
b.m("DELETE").h(headers).b(body);
|
|
637
|
+
return b.build();
|
|
819
638
|
};
|
|
820
639
|
exports.se_DisassociateTrackerConsumerCommand = se_DisassociateTrackerConsumerCommand;
|
|
821
640
|
const se_GetDevicePositionCommand = async (input, context) => {
|
|
822
|
-
const
|
|
641
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
823
642
|
const headers = {};
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
643
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest");
|
|
644
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
645
|
+
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
828
646
|
let body;
|
|
829
647
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
830
648
|
if (context.disableHostPrefix !== true) {
|
|
@@ -833,26 +651,19 @@ const se_GetDevicePositionCommand = async (input, context) => {
|
|
|
833
651
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
834
652
|
}
|
|
835
653
|
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
port,
|
|
840
|
-
method: "GET",
|
|
841
|
-
headers,
|
|
842
|
-
path: resolvedPath,
|
|
843
|
-
body,
|
|
844
|
-
});
|
|
654
|
+
b.hn(resolvedHostname);
|
|
655
|
+
b.m("GET").h(headers).b(body);
|
|
656
|
+
return b.build();
|
|
845
657
|
};
|
|
846
658
|
exports.se_GetDevicePositionCommand = se_GetDevicePositionCommand;
|
|
847
659
|
const se_GetDevicePositionHistoryCommand = async (input, context) => {
|
|
848
|
-
const
|
|
660
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
849
661
|
const headers = {
|
|
850
662
|
"content-type": "application/json",
|
|
851
663
|
};
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
664
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions");
|
|
665
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
666
|
+
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
856
667
|
let body;
|
|
857
668
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
858
669
|
EndTimeExclusive: (_) => _.toISOString().split(".")[0] + "Z",
|
|
@@ -867,24 +678,17 @@ const se_GetDevicePositionHistoryCommand = async (input, context) => {
|
|
|
867
678
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
868
679
|
}
|
|
869
680
|
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
port,
|
|
874
|
-
method: "POST",
|
|
875
|
-
headers,
|
|
876
|
-
path: resolvedPath,
|
|
877
|
-
body,
|
|
878
|
-
});
|
|
681
|
+
b.hn(resolvedHostname);
|
|
682
|
+
b.m("POST").h(headers).b(body);
|
|
683
|
+
return b.build();
|
|
879
684
|
};
|
|
880
685
|
exports.se_GetDevicePositionHistoryCommand = se_GetDevicePositionHistoryCommand;
|
|
881
686
|
const se_GetGeofenceCommand = async (input, context) => {
|
|
882
|
-
const
|
|
687
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
883
688
|
const headers = {};
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
689
|
+
b.bp("/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}");
|
|
690
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
691
|
+
b.p("GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
888
692
|
let body;
|
|
889
693
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
890
694
|
if (context.disableHostPrefix !== true) {
|
|
@@ -893,27 +697,20 @@ const se_GetGeofenceCommand = async (input, context) => {
|
|
|
893
697
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
894
698
|
}
|
|
895
699
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
port,
|
|
900
|
-
method: "GET",
|
|
901
|
-
headers,
|
|
902
|
-
path: resolvedPath,
|
|
903
|
-
body,
|
|
904
|
-
});
|
|
700
|
+
b.hn(resolvedHostname);
|
|
701
|
+
b.m("GET").h(headers).b(body);
|
|
702
|
+
return b.build();
|
|
905
703
|
};
|
|
906
704
|
exports.se_GetGeofenceCommand = se_GetGeofenceCommand;
|
|
907
705
|
const se_GetMapGlyphsCommand = async (input, context) => {
|
|
908
|
-
const
|
|
706
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
909
707
|
const headers = {};
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FontUnicodeRange", () => input.FontUnicodeRange, "{FontUnicodeRange}", false);
|
|
708
|
+
b.bp("/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}");
|
|
709
|
+
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
710
|
+
b.p("FontStack", () => input.FontStack, "{FontStack}", false);
|
|
711
|
+
b.p("FontUnicodeRange", () => input.FontUnicodeRange, "{FontUnicodeRange}", false);
|
|
915
712
|
const query = (0, smithy_client_1.map)({
|
|
916
|
-
|
|
713
|
+
[_k]: [, input[_K]],
|
|
917
714
|
});
|
|
918
715
|
let body;
|
|
919
716
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -923,27 +720,19 @@ const se_GetMapGlyphsCommand = async (input, context) => {
|
|
|
923
720
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
924
721
|
}
|
|
925
722
|
}
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
port,
|
|
930
|
-
method: "GET",
|
|
931
|
-
headers,
|
|
932
|
-
path: resolvedPath,
|
|
933
|
-
query,
|
|
934
|
-
body,
|
|
935
|
-
});
|
|
723
|
+
b.hn(resolvedHostname);
|
|
724
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
725
|
+
return b.build();
|
|
936
726
|
};
|
|
937
727
|
exports.se_GetMapGlyphsCommand = se_GetMapGlyphsCommand;
|
|
938
728
|
const se_GetMapSpritesCommand = async (input, context) => {
|
|
939
|
-
const
|
|
729
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
940
730
|
const headers = {};
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileName", () => input.FileName, "{FileName}", false);
|
|
731
|
+
b.bp("/maps/v0/maps/{MapName}/sprites/{FileName}");
|
|
732
|
+
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
733
|
+
b.p("FileName", () => input.FileName, "{FileName}", false);
|
|
945
734
|
const query = (0, smithy_client_1.map)({
|
|
946
|
-
|
|
735
|
+
[_k]: [, input[_K]],
|
|
947
736
|
});
|
|
948
737
|
let body;
|
|
949
738
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -953,25 +742,18 @@ const se_GetMapSpritesCommand = async (input, context) => {
|
|
|
953
742
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
954
743
|
}
|
|
955
744
|
}
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
port,
|
|
960
|
-
method: "GET",
|
|
961
|
-
headers,
|
|
962
|
-
path: resolvedPath,
|
|
963
|
-
query,
|
|
964
|
-
body,
|
|
965
|
-
});
|
|
745
|
+
b.hn(resolvedHostname);
|
|
746
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
747
|
+
return b.build();
|
|
966
748
|
};
|
|
967
749
|
exports.se_GetMapSpritesCommand = se_GetMapSpritesCommand;
|
|
968
750
|
const se_GetMapStyleDescriptorCommand = async (input, context) => {
|
|
969
|
-
const
|
|
751
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
970
752
|
const headers = {};
|
|
971
|
-
|
|
972
|
-
|
|
753
|
+
b.bp("/maps/v0/maps/{MapName}/style-descriptor");
|
|
754
|
+
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
973
755
|
const query = (0, smithy_client_1.map)({
|
|
974
|
-
|
|
756
|
+
[_k]: [, input[_K]],
|
|
975
757
|
});
|
|
976
758
|
let body;
|
|
977
759
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -981,28 +763,21 @@ const se_GetMapStyleDescriptorCommand = async (input, context) => {
|
|
|
981
763
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
982
764
|
}
|
|
983
765
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
port,
|
|
988
|
-
method: "GET",
|
|
989
|
-
headers,
|
|
990
|
-
path: resolvedPath,
|
|
991
|
-
query,
|
|
992
|
-
body,
|
|
993
|
-
});
|
|
766
|
+
b.hn(resolvedHostname);
|
|
767
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
768
|
+
return b.build();
|
|
994
769
|
};
|
|
995
770
|
exports.se_GetMapStyleDescriptorCommand = se_GetMapStyleDescriptorCommand;
|
|
996
771
|
const se_GetMapTileCommand = async (input, context) => {
|
|
997
|
-
const
|
|
772
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
998
773
|
const headers = {};
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
774
|
+
b.bp("/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}");
|
|
775
|
+
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
776
|
+
b.p("Z", () => input.Z, "{Z}", false);
|
|
777
|
+
b.p("X", () => input.X, "{X}", false);
|
|
778
|
+
b.p("Y", () => input.Y, "{Y}", false);
|
|
1004
779
|
const query = (0, smithy_client_1.map)({
|
|
1005
|
-
|
|
780
|
+
[_k]: [, input[_K]],
|
|
1006
781
|
});
|
|
1007
782
|
let body;
|
|
1008
783
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1012,28 +787,20 @@ const se_GetMapTileCommand = async (input, context) => {
|
|
|
1012
787
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1013
788
|
}
|
|
1014
789
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
port,
|
|
1019
|
-
method: "GET",
|
|
1020
|
-
headers,
|
|
1021
|
-
path: resolvedPath,
|
|
1022
|
-
query,
|
|
1023
|
-
body,
|
|
1024
|
-
});
|
|
790
|
+
b.hn(resolvedHostname);
|
|
791
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
792
|
+
return b.build();
|
|
1025
793
|
};
|
|
1026
794
|
exports.se_GetMapTileCommand = se_GetMapTileCommand;
|
|
1027
795
|
const se_GetPlaceCommand = async (input, context) => {
|
|
1028
|
-
const
|
|
796
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1029
797
|
const headers = {};
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaceId", () => input.PlaceId, "{PlaceId}", false);
|
|
798
|
+
b.bp("/places/v0/indexes/{IndexName}/places/{PlaceId}");
|
|
799
|
+
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
800
|
+
b.p("PlaceId", () => input.PlaceId, "{PlaceId}", false);
|
|
1034
801
|
const query = (0, smithy_client_1.map)({
|
|
1035
|
-
|
|
1036
|
-
|
|
802
|
+
[_l]: [, input[_L]],
|
|
803
|
+
[_k]: [, input[_K]],
|
|
1037
804
|
});
|
|
1038
805
|
let body;
|
|
1039
806
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1043,26 +810,18 @@ const se_GetPlaceCommand = async (input, context) => {
|
|
|
1043
810
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1044
811
|
}
|
|
1045
812
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
port,
|
|
1050
|
-
method: "GET",
|
|
1051
|
-
headers,
|
|
1052
|
-
path: resolvedPath,
|
|
1053
|
-
query,
|
|
1054
|
-
body,
|
|
1055
|
-
});
|
|
813
|
+
b.hn(resolvedHostname);
|
|
814
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
815
|
+
return b.build();
|
|
1056
816
|
};
|
|
1057
817
|
exports.se_GetPlaceCommand = se_GetPlaceCommand;
|
|
1058
818
|
const se_ListDevicePositionsCommand = async (input, context) => {
|
|
1059
|
-
const
|
|
819
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1060
820
|
const headers = {
|
|
1061
821
|
"content-type": "application/json",
|
|
1062
822
|
};
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
823
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/list-positions");
|
|
824
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1066
825
|
let body;
|
|
1067
826
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1068
827
|
FilterGeometry: (_) => se_TrackingFilterGeometry(_, context),
|
|
@@ -1076,23 +835,17 @@ const se_ListDevicePositionsCommand = async (input, context) => {
|
|
|
1076
835
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1077
836
|
}
|
|
1078
837
|
}
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
port,
|
|
1083
|
-
method: "POST",
|
|
1084
|
-
headers,
|
|
1085
|
-
path: resolvedPath,
|
|
1086
|
-
body,
|
|
1087
|
-
});
|
|
838
|
+
b.hn(resolvedHostname);
|
|
839
|
+
b.m("POST").h(headers).b(body);
|
|
840
|
+
return b.build();
|
|
1088
841
|
};
|
|
1089
842
|
exports.se_ListDevicePositionsCommand = se_ListDevicePositionsCommand;
|
|
1090
843
|
const se_ListGeofenceCollectionsCommand = async (input, context) => {
|
|
1091
|
-
const
|
|
844
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1092
845
|
const headers = {
|
|
1093
846
|
"content-type": "application/json",
|
|
1094
847
|
};
|
|
1095
|
-
|
|
848
|
+
b.bp("/geofencing/v0/list-collections");
|
|
1096
849
|
let body;
|
|
1097
850
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1098
851
|
MaxResults: [],
|
|
@@ -1105,25 +858,18 @@ const se_ListGeofenceCollectionsCommand = async (input, context) => {
|
|
|
1105
858
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1106
859
|
}
|
|
1107
860
|
}
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
port,
|
|
1112
|
-
method: "POST",
|
|
1113
|
-
headers,
|
|
1114
|
-
path: resolvedPath,
|
|
1115
|
-
body,
|
|
1116
|
-
});
|
|
861
|
+
b.hn(resolvedHostname);
|
|
862
|
+
b.m("POST").h(headers).b(body);
|
|
863
|
+
return b.build();
|
|
1117
864
|
};
|
|
1118
865
|
exports.se_ListGeofenceCollectionsCommand = se_ListGeofenceCollectionsCommand;
|
|
1119
866
|
const se_ListGeofencesCommand = async (input, context) => {
|
|
1120
|
-
const
|
|
867
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1121
868
|
const headers = {
|
|
1122
869
|
"content-type": "application/json",
|
|
1123
870
|
};
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
871
|
+
b.bp("/geofencing/v0/collections/{CollectionName}/list-geofences");
|
|
872
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1127
873
|
let body;
|
|
1128
874
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1129
875
|
MaxResults: [],
|
|
@@ -1136,23 +882,17 @@ const se_ListGeofencesCommand = async (input, context) => {
|
|
|
1136
882
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1137
883
|
}
|
|
1138
884
|
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
port,
|
|
1143
|
-
method: "POST",
|
|
1144
|
-
headers,
|
|
1145
|
-
path: resolvedPath,
|
|
1146
|
-
body,
|
|
1147
|
-
});
|
|
885
|
+
b.hn(resolvedHostname);
|
|
886
|
+
b.m("POST").h(headers).b(body);
|
|
887
|
+
return b.build();
|
|
1148
888
|
};
|
|
1149
889
|
exports.se_ListGeofencesCommand = se_ListGeofencesCommand;
|
|
1150
890
|
const se_ListKeysCommand = async (input, context) => {
|
|
1151
|
-
const
|
|
891
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1152
892
|
const headers = {
|
|
1153
893
|
"content-type": "application/json",
|
|
1154
894
|
};
|
|
1155
|
-
|
|
895
|
+
b.bp("/metadata/v0/list-keys");
|
|
1156
896
|
let body;
|
|
1157
897
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1158
898
|
Filter: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1166,23 +906,17 @@ const se_ListKeysCommand = async (input, context) => {
|
|
|
1166
906
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1167
907
|
}
|
|
1168
908
|
}
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
port,
|
|
1173
|
-
method: "POST",
|
|
1174
|
-
headers,
|
|
1175
|
-
path: resolvedPath,
|
|
1176
|
-
body,
|
|
1177
|
-
});
|
|
909
|
+
b.hn(resolvedHostname);
|
|
910
|
+
b.m("POST").h(headers).b(body);
|
|
911
|
+
return b.build();
|
|
1178
912
|
};
|
|
1179
913
|
exports.se_ListKeysCommand = se_ListKeysCommand;
|
|
1180
914
|
const se_ListMapsCommand = async (input, context) => {
|
|
1181
|
-
const
|
|
915
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1182
916
|
const headers = {
|
|
1183
917
|
"content-type": "application/json",
|
|
1184
918
|
};
|
|
1185
|
-
|
|
919
|
+
b.bp("/maps/v0/list-maps");
|
|
1186
920
|
let body;
|
|
1187
921
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1188
922
|
MaxResults: [],
|
|
@@ -1195,23 +929,17 @@ const se_ListMapsCommand = async (input, context) => {
|
|
|
1195
929
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1196
930
|
}
|
|
1197
931
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
port,
|
|
1202
|
-
method: "POST",
|
|
1203
|
-
headers,
|
|
1204
|
-
path: resolvedPath,
|
|
1205
|
-
body,
|
|
1206
|
-
});
|
|
932
|
+
b.hn(resolvedHostname);
|
|
933
|
+
b.m("POST").h(headers).b(body);
|
|
934
|
+
return b.build();
|
|
1207
935
|
};
|
|
1208
936
|
exports.se_ListMapsCommand = se_ListMapsCommand;
|
|
1209
937
|
const se_ListPlaceIndexesCommand = async (input, context) => {
|
|
1210
|
-
const
|
|
938
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1211
939
|
const headers = {
|
|
1212
940
|
"content-type": "application/json",
|
|
1213
941
|
};
|
|
1214
|
-
|
|
942
|
+
b.bp("/places/v0/list-indexes");
|
|
1215
943
|
let body;
|
|
1216
944
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1217
945
|
MaxResults: [],
|
|
@@ -1224,23 +952,17 @@ const se_ListPlaceIndexesCommand = async (input, context) => {
|
|
|
1224
952
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1225
953
|
}
|
|
1226
954
|
}
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
port,
|
|
1231
|
-
method: "POST",
|
|
1232
|
-
headers,
|
|
1233
|
-
path: resolvedPath,
|
|
1234
|
-
body,
|
|
1235
|
-
});
|
|
955
|
+
b.hn(resolvedHostname);
|
|
956
|
+
b.m("POST").h(headers).b(body);
|
|
957
|
+
return b.build();
|
|
1236
958
|
};
|
|
1237
959
|
exports.se_ListPlaceIndexesCommand = se_ListPlaceIndexesCommand;
|
|
1238
960
|
const se_ListRouteCalculatorsCommand = async (input, context) => {
|
|
1239
|
-
const
|
|
961
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1240
962
|
const headers = {
|
|
1241
963
|
"content-type": "application/json",
|
|
1242
964
|
};
|
|
1243
|
-
|
|
965
|
+
b.bp("/routes/v0/list-calculators");
|
|
1244
966
|
let body;
|
|
1245
967
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1246
968
|
MaxResults: [],
|
|
@@ -1253,22 +975,16 @@ const se_ListRouteCalculatorsCommand = async (input, context) => {
|
|
|
1253
975
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1254
976
|
}
|
|
1255
977
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
port,
|
|
1260
|
-
method: "POST",
|
|
1261
|
-
headers,
|
|
1262
|
-
path: resolvedPath,
|
|
1263
|
-
body,
|
|
1264
|
-
});
|
|
978
|
+
b.hn(resolvedHostname);
|
|
979
|
+
b.m("POST").h(headers).b(body);
|
|
980
|
+
return b.build();
|
|
1265
981
|
};
|
|
1266
982
|
exports.se_ListRouteCalculatorsCommand = se_ListRouteCalculatorsCommand;
|
|
1267
983
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1268
|
-
const
|
|
984
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1269
985
|
const headers = {};
|
|
1270
|
-
|
|
1271
|
-
|
|
986
|
+
b.bp("/tags/{ResourceArn}");
|
|
987
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1272
988
|
let body;
|
|
1273
989
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1274
990
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1277,25 +993,18 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1277
993
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1278
994
|
}
|
|
1279
995
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
port,
|
|
1284
|
-
method: "GET",
|
|
1285
|
-
headers,
|
|
1286
|
-
path: resolvedPath,
|
|
1287
|
-
body,
|
|
1288
|
-
});
|
|
996
|
+
b.hn(resolvedHostname);
|
|
997
|
+
b.m("GET").h(headers).b(body);
|
|
998
|
+
return b.build();
|
|
1289
999
|
};
|
|
1290
1000
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1291
1001
|
const se_ListTrackerConsumersCommand = async (input, context) => {
|
|
1292
|
-
const
|
|
1002
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1293
1003
|
const headers = {
|
|
1294
1004
|
"content-type": "application/json",
|
|
1295
1005
|
};
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1006
|
+
b.bp("/tracking/v0/trackers/{TrackerName}/list-consumers");
|
|
1007
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1299
1008
|
let body;
|
|
1300
1009
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1301
1010
|
MaxResults: [],
|
|
@@ -1308,23 +1017,17 @@ const se_ListTrackerConsumersCommand = async (input, context) => {
|
|
|
1308
1017
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1309
1018
|
}
|
|
1310
1019
|
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
port,
|
|
1315
|
-
method: "POST",
|
|
1316
|
-
headers,
|
|
1317
|
-
path: resolvedPath,
|
|
1318
|
-
body,
|
|
1319
|
-
});
|
|
1020
|
+
b.hn(resolvedHostname);
|
|
1021
|
+
b.m("POST").h(headers).b(body);
|
|
1022
|
+
return b.build();
|
|
1320
1023
|
};
|
|
1321
1024
|
exports.se_ListTrackerConsumersCommand = se_ListTrackerConsumersCommand;
|
|
1322
1025
|
const se_ListTrackersCommand = async (input, context) => {
|
|
1323
|
-
const
|
|
1026
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1324
1027
|
const headers = {
|
|
1325
1028
|
"content-type": "application/json",
|
|
1326
1029
|
};
|
|
1327
|
-
|
|
1030
|
+
b.bp("/tracking/v0/list-trackers");
|
|
1328
1031
|
let body;
|
|
1329
1032
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1330
1033
|
MaxResults: [],
|
|
@@ -1337,26 +1040,19 @@ const se_ListTrackersCommand = async (input, context) => {
|
|
|
1337
1040
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1338
1041
|
}
|
|
1339
1042
|
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
port,
|
|
1344
|
-
method: "POST",
|
|
1345
|
-
headers,
|
|
1346
|
-
path: resolvedPath,
|
|
1347
|
-
body,
|
|
1348
|
-
});
|
|
1043
|
+
b.hn(resolvedHostname);
|
|
1044
|
+
b.m("POST").h(headers).b(body);
|
|
1045
|
+
return b.build();
|
|
1349
1046
|
};
|
|
1350
1047
|
exports.se_ListTrackersCommand = se_ListTrackersCommand;
|
|
1351
1048
|
const se_PutGeofenceCommand = async (input, context) => {
|
|
1352
|
-
const
|
|
1049
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1353
1050
|
const headers = {
|
|
1354
1051
|
"content-type": "application/json",
|
|
1355
1052
|
};
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
1053
|
+
b.bp("/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}");
|
|
1054
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1055
|
+
b.p("GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
1360
1056
|
let body;
|
|
1361
1057
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1362
1058
|
GeofenceProperties: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1369,27 +1065,20 @@ const se_PutGeofenceCommand = async (input, context) => {
|
|
|
1369
1065
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1370
1066
|
}
|
|
1371
1067
|
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
port,
|
|
1376
|
-
method: "PUT",
|
|
1377
|
-
headers,
|
|
1378
|
-
path: resolvedPath,
|
|
1379
|
-
body,
|
|
1380
|
-
});
|
|
1068
|
+
b.hn(resolvedHostname);
|
|
1069
|
+
b.m("PUT").h(headers).b(body);
|
|
1070
|
+
return b.build();
|
|
1381
1071
|
};
|
|
1382
1072
|
exports.se_PutGeofenceCommand = se_PutGeofenceCommand;
|
|
1383
1073
|
const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
1384
|
-
const
|
|
1074
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1385
1075
|
const headers = {
|
|
1386
1076
|
"content-type": "application/json",
|
|
1387
1077
|
};
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1078
|
+
b.bp("/places/v0/indexes/{IndexName}/search/position");
|
|
1079
|
+
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1391
1080
|
const query = (0, smithy_client_1.map)({
|
|
1392
|
-
|
|
1081
|
+
[_k]: [, input[_K]],
|
|
1393
1082
|
});
|
|
1394
1083
|
let body;
|
|
1395
1084
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -1404,28 +1093,20 @@ const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
|
1404
1093
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1405
1094
|
}
|
|
1406
1095
|
}
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
port,
|
|
1411
|
-
method: "POST",
|
|
1412
|
-
headers,
|
|
1413
|
-
path: resolvedPath,
|
|
1414
|
-
query,
|
|
1415
|
-
body,
|
|
1416
|
-
});
|
|
1096
|
+
b.hn(resolvedHostname);
|
|
1097
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1098
|
+
return b.build();
|
|
1417
1099
|
};
|
|
1418
1100
|
exports.se_SearchPlaceIndexForPositionCommand = se_SearchPlaceIndexForPositionCommand;
|
|
1419
1101
|
const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
|
|
1420
|
-
const
|
|
1102
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1421
1103
|
const headers = {
|
|
1422
1104
|
"content-type": "application/json",
|
|
1423
1105
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1106
|
+
b.bp("/places/v0/indexes/{IndexName}/search/suggestions");
|
|
1107
|
+
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1427
1108
|
const query = (0, smithy_client_1.map)({
|
|
1428
|
-
|
|
1109
|
+
[_k]: [, input[_K]],
|
|
1429
1110
|
});
|
|
1430
1111
|
let body;
|
|
1431
1112
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -1444,28 +1125,20 @@ const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
|
|
|
1444
1125
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1445
1126
|
}
|
|
1446
1127
|
}
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
port,
|
|
1451
|
-
method: "POST",
|
|
1452
|
-
headers,
|
|
1453
|
-
path: resolvedPath,
|
|
1454
|
-
query,
|
|
1455
|
-
body,
|
|
1456
|
-
});
|
|
1128
|
+
b.hn(resolvedHostname);
|
|
1129
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1130
|
+
return b.build();
|
|
1457
1131
|
};
|
|
1458
1132
|
exports.se_SearchPlaceIndexForSuggestionsCommand = se_SearchPlaceIndexForSuggestionsCommand;
|
|
1459
1133
|
const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
1460
|
-
const
|
|
1134
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1461
1135
|
const headers = {
|
|
1462
1136
|
"content-type": "application/json",
|
|
1463
1137
|
};
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1138
|
+
b.bp("/places/v0/indexes/{IndexName}/search/text");
|
|
1139
|
+
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1467
1140
|
const query = (0, smithy_client_1.map)({
|
|
1468
|
-
|
|
1141
|
+
[_k]: [, input[_K]],
|
|
1469
1142
|
});
|
|
1470
1143
|
let body;
|
|
1471
1144
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -1484,25 +1157,18 @@ const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
|
1484
1157
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1485
1158
|
}
|
|
1486
1159
|
}
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
port,
|
|
1491
|
-
method: "POST",
|
|
1492
|
-
headers,
|
|
1493
|
-
path: resolvedPath,
|
|
1494
|
-
query,
|
|
1495
|
-
body,
|
|
1496
|
-
});
|
|
1160
|
+
b.hn(resolvedHostname);
|
|
1161
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1162
|
+
return b.build();
|
|
1497
1163
|
};
|
|
1498
1164
|
exports.se_SearchPlaceIndexForTextCommand = se_SearchPlaceIndexForTextCommand;
|
|
1499
1165
|
const se_TagResourceCommand = async (input, context) => {
|
|
1500
|
-
const
|
|
1166
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1501
1167
|
const headers = {
|
|
1502
1168
|
"content-type": "application/json",
|
|
1503
1169
|
};
|
|
1504
|
-
|
|
1505
|
-
|
|
1170
|
+
b.bp("/tags/{ResourceArn}");
|
|
1171
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1506
1172
|
let body;
|
|
1507
1173
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1508
1174
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1514,26 +1180,20 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
1514
1180
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1515
1181
|
}
|
|
1516
1182
|
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
port,
|
|
1521
|
-
method: "POST",
|
|
1522
|
-
headers,
|
|
1523
|
-
path: resolvedPath,
|
|
1524
|
-
body,
|
|
1525
|
-
});
|
|
1183
|
+
b.hn(resolvedHostname);
|
|
1184
|
+
b.m("POST").h(headers).b(body);
|
|
1185
|
+
return b.build();
|
|
1526
1186
|
};
|
|
1527
1187
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1528
1188
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1529
|
-
const
|
|
1189
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1530
1190
|
const headers = {};
|
|
1531
|
-
|
|
1532
|
-
|
|
1191
|
+
b.bp("/tags/{ResourceArn}");
|
|
1192
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1533
1193
|
const query = (0, smithy_client_1.map)({
|
|
1534
|
-
|
|
1194
|
+
[_tK]: [
|
|
1535
1195
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
1536
|
-
() => (input
|
|
1196
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
1537
1197
|
],
|
|
1538
1198
|
});
|
|
1539
1199
|
let body;
|
|
@@ -1544,26 +1204,18 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
1544
1204
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1545
1205
|
}
|
|
1546
1206
|
}
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
port,
|
|
1551
|
-
method: "DELETE",
|
|
1552
|
-
headers,
|
|
1553
|
-
path: resolvedPath,
|
|
1554
|
-
query,
|
|
1555
|
-
body,
|
|
1556
|
-
});
|
|
1207
|
+
b.hn(resolvedHostname);
|
|
1208
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1209
|
+
return b.build();
|
|
1557
1210
|
};
|
|
1558
1211
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1559
1212
|
const se_UpdateGeofenceCollectionCommand = async (input, context) => {
|
|
1560
|
-
const
|
|
1213
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1561
1214
|
const headers = {
|
|
1562
1215
|
"content-type": "application/json",
|
|
1563
1216
|
};
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1217
|
+
b.bp("/geofencing/v0/collections/{CollectionName}");
|
|
1218
|
+
b.p("CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1567
1219
|
let body;
|
|
1568
1220
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1569
1221
|
Description: [],
|
|
@@ -1577,24 +1229,18 @@ const se_UpdateGeofenceCollectionCommand = async (input, context) => {
|
|
|
1577
1229
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1578
1230
|
}
|
|
1579
1231
|
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
port,
|
|
1584
|
-
method: "PATCH",
|
|
1585
|
-
headers,
|
|
1586
|
-
path: resolvedPath,
|
|
1587
|
-
body,
|
|
1588
|
-
});
|
|
1232
|
+
b.hn(resolvedHostname);
|
|
1233
|
+
b.m("PATCH").h(headers).b(body);
|
|
1234
|
+
return b.build();
|
|
1589
1235
|
};
|
|
1590
1236
|
exports.se_UpdateGeofenceCollectionCommand = se_UpdateGeofenceCollectionCommand;
|
|
1591
1237
|
const se_UpdateKeyCommand = async (input, context) => {
|
|
1592
|
-
const
|
|
1238
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1593
1239
|
const headers = {
|
|
1594
1240
|
"content-type": "application/json",
|
|
1595
1241
|
};
|
|
1596
|
-
|
|
1597
|
-
|
|
1242
|
+
b.bp("/metadata/v0/keys/{KeyName}");
|
|
1243
|
+
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
1598
1244
|
let body;
|
|
1599
1245
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1600
1246
|
Description: [],
|
|
@@ -1610,24 +1256,18 @@ const se_UpdateKeyCommand = async (input, context) => {
|
|
|
1610
1256
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1611
1257
|
}
|
|
1612
1258
|
}
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
port,
|
|
1617
|
-
method: "PATCH",
|
|
1618
|
-
headers,
|
|
1619
|
-
path: resolvedPath,
|
|
1620
|
-
body,
|
|
1621
|
-
});
|
|
1259
|
+
b.hn(resolvedHostname);
|
|
1260
|
+
b.m("PATCH").h(headers).b(body);
|
|
1261
|
+
return b.build();
|
|
1622
1262
|
};
|
|
1623
1263
|
exports.se_UpdateKeyCommand = se_UpdateKeyCommand;
|
|
1624
1264
|
const se_UpdateMapCommand = async (input, context) => {
|
|
1625
|
-
const
|
|
1265
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1626
1266
|
const headers = {
|
|
1627
1267
|
"content-type": "application/json",
|
|
1628
1268
|
};
|
|
1629
|
-
|
|
1630
|
-
|
|
1269
|
+
b.bp("/maps/v0/maps/{MapName}");
|
|
1270
|
+
b.p("MapName", () => input.MapName, "{MapName}", false);
|
|
1631
1271
|
let body;
|
|
1632
1272
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1633
1273
|
ConfigurationUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1641,24 +1281,18 @@ const se_UpdateMapCommand = async (input, context) => {
|
|
|
1641
1281
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1642
1282
|
}
|
|
1643
1283
|
}
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
port,
|
|
1648
|
-
method: "PATCH",
|
|
1649
|
-
headers,
|
|
1650
|
-
path: resolvedPath,
|
|
1651
|
-
body,
|
|
1652
|
-
});
|
|
1284
|
+
b.hn(resolvedHostname);
|
|
1285
|
+
b.m("PATCH").h(headers).b(body);
|
|
1286
|
+
return b.build();
|
|
1653
1287
|
};
|
|
1654
1288
|
exports.se_UpdateMapCommand = se_UpdateMapCommand;
|
|
1655
1289
|
const se_UpdatePlaceIndexCommand = async (input, context) => {
|
|
1656
|
-
const
|
|
1290
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1657
1291
|
const headers = {
|
|
1658
1292
|
"content-type": "application/json",
|
|
1659
1293
|
};
|
|
1660
|
-
|
|
1661
|
-
|
|
1294
|
+
b.bp("/places/v0/indexes/{IndexName}");
|
|
1295
|
+
b.p("IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1662
1296
|
let body;
|
|
1663
1297
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1664
1298
|
DataSourceConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1672,24 +1306,18 @@ const se_UpdatePlaceIndexCommand = async (input, context) => {
|
|
|
1672
1306
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1673
1307
|
}
|
|
1674
1308
|
}
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
port,
|
|
1679
|
-
method: "PATCH",
|
|
1680
|
-
headers,
|
|
1681
|
-
path: resolvedPath,
|
|
1682
|
-
body,
|
|
1683
|
-
});
|
|
1309
|
+
b.hn(resolvedHostname);
|
|
1310
|
+
b.m("PATCH").h(headers).b(body);
|
|
1311
|
+
return b.build();
|
|
1684
1312
|
};
|
|
1685
1313
|
exports.se_UpdatePlaceIndexCommand = se_UpdatePlaceIndexCommand;
|
|
1686
1314
|
const se_UpdateRouteCalculatorCommand = async (input, context) => {
|
|
1687
|
-
const
|
|
1315
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1688
1316
|
const headers = {
|
|
1689
1317
|
"content-type": "application/json",
|
|
1690
1318
|
};
|
|
1691
|
-
|
|
1692
|
-
|
|
1319
|
+
b.bp("/routes/v0/calculators/{CalculatorName}");
|
|
1320
|
+
b.p("CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
1693
1321
|
let body;
|
|
1694
1322
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1695
1323
|
Description: [],
|
|
@@ -1702,24 +1330,18 @@ const se_UpdateRouteCalculatorCommand = async (input, context) => {
|
|
|
1702
1330
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1703
1331
|
}
|
|
1704
1332
|
}
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
port,
|
|
1709
|
-
method: "PATCH",
|
|
1710
|
-
headers,
|
|
1711
|
-
path: resolvedPath,
|
|
1712
|
-
body,
|
|
1713
|
-
});
|
|
1333
|
+
b.hn(resolvedHostname);
|
|
1334
|
+
b.m("PATCH").h(headers).b(body);
|
|
1335
|
+
return b.build();
|
|
1714
1336
|
};
|
|
1715
1337
|
exports.se_UpdateRouteCalculatorCommand = se_UpdateRouteCalculatorCommand;
|
|
1716
1338
|
const se_UpdateTrackerCommand = async (input, context) => {
|
|
1717
|
-
const
|
|
1339
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1718
1340
|
const headers = {
|
|
1719
1341
|
"content-type": "application/json",
|
|
1720
1342
|
};
|
|
1721
|
-
|
|
1722
|
-
|
|
1343
|
+
b.bp("/tracking/v0/trackers/{TrackerName}");
|
|
1344
|
+
b.p("TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1723
1345
|
let body;
|
|
1724
1346
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1725
1347
|
Description: [],
|
|
@@ -1736,15 +1358,9 @@ const se_UpdateTrackerCommand = async (input, context) => {
|
|
|
1736
1358
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1737
1359
|
}
|
|
1738
1360
|
}
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
port,
|
|
1743
|
-
method: "PATCH",
|
|
1744
|
-
headers,
|
|
1745
|
-
path: resolvedPath,
|
|
1746
|
-
body,
|
|
1747
|
-
});
|
|
1361
|
+
b.hn(resolvedHostname);
|
|
1362
|
+
b.m("PATCH").h(headers).b(body);
|
|
1363
|
+
return b.build();
|
|
1748
1364
|
};
|
|
1749
1365
|
exports.se_UpdateTrackerCommand = se_UpdateTrackerCommand;
|
|
1750
1366
|
const de_AssociateTrackerConsumerCommand = async (output, context) => {
|
|
@@ -3252,8 +2868,8 @@ const de_GetMapGlyphsCommand = async (output, context) => {
|
|
|
3252
2868
|
}
|
|
3253
2869
|
const contents = (0, smithy_client_1.map)({
|
|
3254
2870
|
$metadata: deserializeMetadata(output),
|
|
3255
|
-
|
|
3256
|
-
|
|
2871
|
+
[_CT]: [, output.headers[_ct]],
|
|
2872
|
+
[_CC]: [, output.headers[_cc]],
|
|
3257
2873
|
});
|
|
3258
2874
|
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3259
2875
|
contents.Blob = data;
|
|
@@ -3297,8 +2913,8 @@ const de_GetMapSpritesCommand = async (output, context) => {
|
|
|
3297
2913
|
}
|
|
3298
2914
|
const contents = (0, smithy_client_1.map)({
|
|
3299
2915
|
$metadata: deserializeMetadata(output),
|
|
3300
|
-
|
|
3301
|
-
|
|
2916
|
+
[_CT]: [, output.headers[_ct]],
|
|
2917
|
+
[_CC]: [, output.headers[_cc]],
|
|
3302
2918
|
});
|
|
3303
2919
|
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3304
2920
|
contents.Blob = data;
|
|
@@ -3342,8 +2958,8 @@ const de_GetMapStyleDescriptorCommand = async (output, context) => {
|
|
|
3342
2958
|
}
|
|
3343
2959
|
const contents = (0, smithy_client_1.map)({
|
|
3344
2960
|
$metadata: deserializeMetadata(output),
|
|
3345
|
-
|
|
3346
|
-
|
|
2961
|
+
[_CT]: [, output.headers[_ct]],
|
|
2962
|
+
[_CC]: [, output.headers[_cc]],
|
|
3347
2963
|
});
|
|
3348
2964
|
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3349
2965
|
contents.Blob = data;
|
|
@@ -3387,8 +3003,8 @@ const de_GetMapTileCommand = async (output, context) => {
|
|
|
3387
3003
|
}
|
|
3388
3004
|
const contents = (0, smithy_client_1.map)({
|
|
3389
3005
|
$metadata: deserializeMetadata(output),
|
|
3390
|
-
|
|
3391
|
-
|
|
3006
|
+
[_CT]: [, output.headers[_ct]],
|
|
3007
|
+
[_CC]: [, output.headers[_cc]],
|
|
3392
3008
|
});
|
|
3393
3009
|
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3394
3010
|
contents.Blob = data;
|
|
@@ -5153,6 +4769,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
5153
4769
|
value !== "" &&
|
|
5154
4770
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
5155
4771
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4772
|
+
const _CC = "CacheControl";
|
|
4773
|
+
const _CT = "ContentType";
|
|
4774
|
+
const _K = "Key";
|
|
4775
|
+
const _L = "Language";
|
|
4776
|
+
const _TK = "TagKeys";
|
|
4777
|
+
const _cc = "cache-control";
|
|
4778
|
+
const _ct = "content-type";
|
|
4779
|
+
const _k = "key";
|
|
4780
|
+
const _l = "language";
|
|
4781
|
+
const _tK = "tagKeys";
|
|
5156
4782
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5157
4783
|
if (encoded.length) {
|
|
5158
4784
|
return JSON.parse(encoded);
|