@aws-sdk/client-location 3.1032.0 → 3.1034.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/README.md +35 -7
- package/dist-cjs/endpoint/bdd.js +49 -0
- package/dist-cjs/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/index.js +147 -1
- package/dist-cjs/schemas/schemas_0.js +143 -12
- package/dist-es/Location.js +15 -1
- package/dist-es/commands/CancelJobCommand.js +16 -0
- package/dist-es/commands/GetJobCommand.js +16 -0
- package/dist-es/commands/ListJobsCommand.js +16 -0
- package/dist-es/commands/StartJobCommand.js +16 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/bdd.js +46 -0
- package/dist-es/endpoint/endpointResolver.js +3 -3
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +25 -1
- package/dist-es/pagination/ListJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +137 -7
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForJobCompleted.js +49 -0
- package/dist-types/Location.d.ts +44 -1
- package/dist-types/LocationClient.d.ts +6 -2
- package/dist-types/commands/CancelJobCommand.d.ts +88 -0
- package/dist-types/commands/GetJobCommand.d.ts +121 -0
- package/dist-types/commands/ListJobsCommand.d.ts +124 -0
- package/dist-types/commands/StartJobCommand.d.ts +110 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +94 -0
- package/dist-types/models/models_0.d.ts +376 -4
- package/dist-types/pagination/ListJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +19 -0
- package/dist-types/ts3.4/Location.d.ts +87 -0
- package/dist-types/ts3.4/LocationClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/StartJobCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +34 -0
- package/dist-types/ts3.4/models/models_0.d.ts +94 -0
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForJobCompleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForJobCompleted.d.ts +14 -0
- package/package.json +20 -19
- package/dist-cjs/endpoint/ruleset.js +0 -7
- package/dist-es/endpoint/ruleset.js +0 -4
- package/dist-types/endpoint/ruleset.d.ts +0 -2
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
package/README.md
CHANGED
|
@@ -22,16 +22,16 @@ To install this package, use the CLI of your favorite package manager:
|
|
|
22
22
|
|
|
23
23
|
The AWS SDK is modulized by clients and commands.
|
|
24
24
|
To send a request, you only need to import the `LocationClient` and
|
|
25
|
-
the commands you need, for example `
|
|
25
|
+
the commands you need, for example `ListJobsCommand`:
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
28
|
// ES5 example
|
|
29
|
-
const { LocationClient,
|
|
29
|
+
const { LocationClient, ListJobsCommand } = require("@aws-sdk/client-location");
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
```ts
|
|
33
33
|
// ES6+ example
|
|
34
|
-
import { LocationClient,
|
|
34
|
+
import { LocationClient, ListJobsCommand } from "@aws-sdk/client-location";
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### Usage
|
|
@@ -48,7 +48,7 @@ To send a request:
|
|
|
48
48
|
const client = new LocationClient({ region: "REGION" });
|
|
49
49
|
|
|
50
50
|
const params = { /** input parameters */ };
|
|
51
|
-
const command = new
|
|
51
|
+
const command = new ListJobsCommand(params);
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
#### Async/await
|
|
@@ -104,7 +104,7 @@ const client = new Location({ region: "REGION" });
|
|
|
104
104
|
|
|
105
105
|
// async/await.
|
|
106
106
|
try {
|
|
107
|
-
const data = await client.
|
|
107
|
+
const data = await client.listJobs(params);
|
|
108
108
|
// process data.
|
|
109
109
|
} catch (error) {
|
|
110
110
|
// error handling.
|
|
@@ -112,7 +112,7 @@ try {
|
|
|
112
112
|
|
|
113
113
|
// Promises.
|
|
114
114
|
client
|
|
115
|
-
.
|
|
115
|
+
.listJobs(params)
|
|
116
116
|
.then((data) => {
|
|
117
117
|
// process data.
|
|
118
118
|
})
|
|
@@ -121,7 +121,7 @@ client
|
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
// callbacks (not recommended).
|
|
124
|
-
client.
|
|
124
|
+
client.listJobs(params, (err, data) => {
|
|
125
125
|
// process err and data.
|
|
126
126
|
});
|
|
127
127
|
```
|
|
@@ -244,6 +244,13 @@ CalculateRouteMatrix
|
|
|
244
244
|
</details>
|
|
245
245
|
<details>
|
|
246
246
|
<summary>
|
|
247
|
+
CancelJob
|
|
248
|
+
</summary>
|
|
249
|
+
|
|
250
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/location/command/CancelJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/CancelJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/CancelJobCommandOutput/)
|
|
251
|
+
</details>
|
|
252
|
+
<details>
|
|
253
|
+
<summary>
|
|
247
254
|
CreateGeofenceCollection
|
|
248
255
|
</summary>
|
|
249
256
|
|
|
@@ -405,6 +412,13 @@ GetGeofence
|
|
|
405
412
|
</details>
|
|
406
413
|
<details>
|
|
407
414
|
<summary>
|
|
415
|
+
GetJob
|
|
416
|
+
</summary>
|
|
417
|
+
|
|
418
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/location/command/GetJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/GetJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/GetJobCommandOutput/)
|
|
419
|
+
</details>
|
|
420
|
+
<details>
|
|
421
|
+
<summary>
|
|
408
422
|
GetMapGlyphs
|
|
409
423
|
</summary>
|
|
410
424
|
|
|
@@ -461,6 +475,13 @@ ListGeofences
|
|
|
461
475
|
</details>
|
|
462
476
|
<details>
|
|
463
477
|
<summary>
|
|
478
|
+
ListJobs
|
|
479
|
+
</summary>
|
|
480
|
+
|
|
481
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/location/command/ListJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/ListJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/ListJobsCommandOutput/)
|
|
482
|
+
</details>
|
|
483
|
+
<details>
|
|
484
|
+
<summary>
|
|
464
485
|
ListKeys
|
|
465
486
|
</summary>
|
|
466
487
|
|
|
@@ -538,6 +559,13 @@ SearchPlaceIndexForText
|
|
|
538
559
|
</details>
|
|
539
560
|
<details>
|
|
540
561
|
<summary>
|
|
562
|
+
StartJob
|
|
563
|
+
</summary>
|
|
564
|
+
|
|
565
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/location/command/StartJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/StartJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-location/Interface/StartJobCommandOutput/)
|
|
566
|
+
</details>
|
|
567
|
+
<details>
|
|
568
|
+
<summary>
|
|
541
569
|
TagResource
|
|
542
570
|
</summary>
|
|
543
571
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bdd = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const k = "ref";
|
|
6
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
|
+
const _data = {
|
|
8
|
+
conditions: [
|
|
9
|
+
[c, [g]],
|
|
10
|
+
[c, j],
|
|
11
|
+
["aws.partition", j, d],
|
|
12
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
13
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
14
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
15
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
16
|
+
],
|
|
17
|
+
results: [
|
|
18
|
+
[a],
|
|
19
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
20
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
21
|
+
[g, i],
|
|
22
|
+
["https://geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
23
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
24
|
+
["https://geo-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
25
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
26
|
+
["https://geo.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
27
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
28
|
+
["https://geo.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
29
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
const root = 2;
|
|
33
|
+
const r = 100_000_000;
|
|
34
|
+
const nodes = new Int32Array([
|
|
35
|
+
-1, 1, -1,
|
|
36
|
+
0, 12, 3,
|
|
37
|
+
1, 4, r + 11,
|
|
38
|
+
2, 5, r + 11,
|
|
39
|
+
3, 8, 6,
|
|
40
|
+
4, 7, r + 10,
|
|
41
|
+
5, r + 8, r + 9,
|
|
42
|
+
4, 10, 9,
|
|
43
|
+
6, r + 6, r + 7,
|
|
44
|
+
5, 11, r + 5,
|
|
45
|
+
6, r + 4, r + 5,
|
|
46
|
+
3, r + 1, 13,
|
|
47
|
+
4, r + 2, r + 3,
|
|
48
|
+
]);
|
|
49
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const
|
|
6
|
+
const bdd_1 = require("./bdd");
|
|
7
7
|
const cache = new util_endpoints_2.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
package/dist-cjs/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var runtimeConfig = require('./runtimeConfig');
|
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
18
|
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var utilWaiter = require('@smithy/util-waiter');
|
|
19
20
|
var errors = require('./models/errors');
|
|
20
21
|
var LocationServiceException = require('./models/LocationServiceException');
|
|
21
22
|
|
|
@@ -221,6 +222,18 @@ class CalculateRouteMatrixCommand extends smithyClient.Command
|
|
|
221
222
|
.build() {
|
|
222
223
|
}
|
|
223
224
|
|
|
225
|
+
class CancelJobCommand extends smithyClient.Command
|
|
226
|
+
.classBuilder()
|
|
227
|
+
.ep(commonParams)
|
|
228
|
+
.m(function (Command, cs, config, o) {
|
|
229
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
230
|
+
})
|
|
231
|
+
.s("LocationService", "CancelJob", {})
|
|
232
|
+
.n("LocationClient", "CancelJobCommand")
|
|
233
|
+
.sc(schemas_0.CancelJob$)
|
|
234
|
+
.build() {
|
|
235
|
+
}
|
|
236
|
+
|
|
224
237
|
class CreateGeofenceCollectionCommand extends smithyClient.Command
|
|
225
238
|
.classBuilder()
|
|
226
239
|
.ep(commonParams)
|
|
@@ -497,6 +510,18 @@ class GetGeofenceCommand extends smithyClient.Command
|
|
|
497
510
|
.build() {
|
|
498
511
|
}
|
|
499
512
|
|
|
513
|
+
class GetJobCommand extends smithyClient.Command
|
|
514
|
+
.classBuilder()
|
|
515
|
+
.ep(commonParams)
|
|
516
|
+
.m(function (Command, cs, config, o) {
|
|
517
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
518
|
+
})
|
|
519
|
+
.s("LocationService", "GetJob", {})
|
|
520
|
+
.n("LocationClient", "GetJobCommand")
|
|
521
|
+
.sc(schemas_0.GetJob$)
|
|
522
|
+
.build() {
|
|
523
|
+
}
|
|
524
|
+
|
|
500
525
|
class GetMapGlyphsCommand extends smithyClient.Command
|
|
501
526
|
.classBuilder()
|
|
502
527
|
.ep(commonParams)
|
|
@@ -593,6 +618,18 @@ class ListGeofencesCommand extends smithyClient.Command
|
|
|
593
618
|
.build() {
|
|
594
619
|
}
|
|
595
620
|
|
|
621
|
+
class ListJobsCommand extends smithyClient.Command
|
|
622
|
+
.classBuilder()
|
|
623
|
+
.ep(commonParams)
|
|
624
|
+
.m(function (Command, cs, config, o) {
|
|
625
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
626
|
+
})
|
|
627
|
+
.s("LocationService", "ListJobs", {})
|
|
628
|
+
.n("LocationClient", "ListJobsCommand")
|
|
629
|
+
.sc(schemas_0.ListJobs$)
|
|
630
|
+
.build() {
|
|
631
|
+
}
|
|
632
|
+
|
|
596
633
|
class ListKeysCommand extends smithyClient.Command
|
|
597
634
|
.classBuilder()
|
|
598
635
|
.ep(commonParams)
|
|
@@ -725,6 +762,18 @@ class SearchPlaceIndexForTextCommand extends smithyClient.Command
|
|
|
725
762
|
.build() {
|
|
726
763
|
}
|
|
727
764
|
|
|
765
|
+
class StartJobCommand extends smithyClient.Command
|
|
766
|
+
.classBuilder()
|
|
767
|
+
.ep(commonParams)
|
|
768
|
+
.m(function (Command, cs, config, o) {
|
|
769
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
770
|
+
})
|
|
771
|
+
.s("LocationService", "StartJob", {})
|
|
772
|
+
.n("LocationClient", "StartJobCommand")
|
|
773
|
+
.sc(schemas_0.StartJob$)
|
|
774
|
+
.build() {
|
|
775
|
+
}
|
|
776
|
+
|
|
728
777
|
class TagResourceCommand extends smithyClient.Command
|
|
729
778
|
.classBuilder()
|
|
730
779
|
.ep(commonParams)
|
|
@@ -843,6 +892,8 @@ const paginateListGeofenceCollections = core.createPaginator(LocationClient, Lis
|
|
|
843
892
|
|
|
844
893
|
const paginateListGeofences = core.createPaginator(LocationClient, ListGeofencesCommand, "NextToken", "NextToken", "MaxResults");
|
|
845
894
|
|
|
895
|
+
const paginateListJobs = core.createPaginator(LocationClient, ListJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
896
|
+
|
|
846
897
|
const paginateListKeys = core.createPaginator(LocationClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
|
|
847
898
|
|
|
848
899
|
const paginateListMaps = core.createPaginator(LocationClient, ListMapsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -855,6 +906,54 @@ const paginateListTrackerConsumers = core.createPaginator(LocationClient, ListTr
|
|
|
855
906
|
|
|
856
907
|
const paginateListTrackers = core.createPaginator(LocationClient, ListTrackersCommand, "NextToken", "NextToken", "MaxResults");
|
|
857
908
|
|
|
909
|
+
const checkState = async (client, input) => {
|
|
910
|
+
let reason;
|
|
911
|
+
try {
|
|
912
|
+
let result = await client.send(new GetJobCommand(input));
|
|
913
|
+
reason = result;
|
|
914
|
+
try {
|
|
915
|
+
const returnComparator = () => {
|
|
916
|
+
return result.Status;
|
|
917
|
+
};
|
|
918
|
+
if (returnComparator() === "Completed") {
|
|
919
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
catch (e) { }
|
|
923
|
+
try {
|
|
924
|
+
const returnComparator = () => {
|
|
925
|
+
return result.Status;
|
|
926
|
+
};
|
|
927
|
+
if (returnComparator() === "Failed") {
|
|
928
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
catch (e) { }
|
|
932
|
+
try {
|
|
933
|
+
const returnComparator = () => {
|
|
934
|
+
return result.Status;
|
|
935
|
+
};
|
|
936
|
+
if (returnComparator() === "Cancelled") {
|
|
937
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
catch (e) { }
|
|
941
|
+
}
|
|
942
|
+
catch (exception) {
|
|
943
|
+
reason = exception;
|
|
944
|
+
}
|
|
945
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
946
|
+
};
|
|
947
|
+
const waitForJobCompleted = async (params, input) => {
|
|
948
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
949
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
950
|
+
};
|
|
951
|
+
const waitUntilJobCompleted = async (params, input) => {
|
|
952
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
953
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
954
|
+
return utilWaiter.checkExceptions(result);
|
|
955
|
+
};
|
|
956
|
+
|
|
858
957
|
const commands = {
|
|
859
958
|
AssociateTrackerConsumerCommand,
|
|
860
959
|
BatchDeleteDevicePositionHistoryCommand,
|
|
@@ -865,6 +964,7 @@ const commands = {
|
|
|
865
964
|
BatchUpdateDevicePositionCommand,
|
|
866
965
|
CalculateRouteCommand,
|
|
867
966
|
CalculateRouteMatrixCommand,
|
|
967
|
+
CancelJobCommand,
|
|
868
968
|
CreateGeofenceCollectionCommand,
|
|
869
969
|
CreateKeyCommand,
|
|
870
970
|
CreateMapCommand,
|
|
@@ -888,6 +988,7 @@ const commands = {
|
|
|
888
988
|
GetDevicePositionCommand,
|
|
889
989
|
GetDevicePositionHistoryCommand,
|
|
890
990
|
GetGeofenceCommand,
|
|
991
|
+
GetJobCommand,
|
|
891
992
|
GetMapGlyphsCommand,
|
|
892
993
|
GetMapSpritesCommand,
|
|
893
994
|
GetMapStyleDescriptorCommand,
|
|
@@ -896,6 +997,7 @@ const commands = {
|
|
|
896
997
|
ListDevicePositionsCommand,
|
|
897
998
|
ListGeofenceCollectionsCommand,
|
|
898
999
|
ListGeofencesCommand,
|
|
1000
|
+
ListJobsCommand,
|
|
899
1001
|
ListKeysCommand,
|
|
900
1002
|
ListMapsCommand,
|
|
901
1003
|
ListPlaceIndexesCommand,
|
|
@@ -907,6 +1009,7 @@ const commands = {
|
|
|
907
1009
|
SearchPlaceIndexForPositionCommand,
|
|
908
1010
|
SearchPlaceIndexForSuggestionsCommand,
|
|
909
1011
|
SearchPlaceIndexForTextCommand,
|
|
1012
|
+
StartJobCommand,
|
|
910
1013
|
TagResourceCommand,
|
|
911
1014
|
UntagResourceCommand,
|
|
912
1015
|
UpdateGeofenceCollectionCommand,
|
|
@@ -923,6 +1026,7 @@ const paginators = {
|
|
|
923
1026
|
paginateListDevicePositions,
|
|
924
1027
|
paginateListGeofenceCollections,
|
|
925
1028
|
paginateListGeofences,
|
|
1029
|
+
paginateListJobs,
|
|
926
1030
|
paginateListKeys,
|
|
927
1031
|
paginateListMaps,
|
|
928
1032
|
paginateListPlaceIndexes,
|
|
@@ -930,9 +1034,38 @@ const paginators = {
|
|
|
930
1034
|
paginateListTrackerConsumers,
|
|
931
1035
|
paginateListTrackers,
|
|
932
1036
|
};
|
|
1037
|
+
const waiters = {
|
|
1038
|
+
waitUntilJobCompleted,
|
|
1039
|
+
};
|
|
933
1040
|
class Location extends LocationClient {
|
|
934
1041
|
}
|
|
935
|
-
smithyClient.createAggregatedClient(commands, Location, { paginators });
|
|
1042
|
+
smithyClient.createAggregatedClient(commands, Location, { paginators, waiters });
|
|
1043
|
+
|
|
1044
|
+
const JobStatus = {
|
|
1045
|
+
CANCELLED: "Cancelled",
|
|
1046
|
+
CANCELLING: "Cancelling",
|
|
1047
|
+
COMPLETED: "Completed",
|
|
1048
|
+
FAILED: "Failed",
|
|
1049
|
+
PENDING: "Pending",
|
|
1050
|
+
RUNNING: "Running",
|
|
1051
|
+
};
|
|
1052
|
+
const JobAction = {
|
|
1053
|
+
VALIDATE_ADDRESS: "ValidateAddress",
|
|
1054
|
+
};
|
|
1055
|
+
const ValidateAddressAdditionalFeature = {
|
|
1056
|
+
COUNTRY_SPECIFIC_ATTRIBUTES: "CountrySpecificAttributes",
|
|
1057
|
+
POSITION: "Position",
|
|
1058
|
+
};
|
|
1059
|
+
const JobErrorCode = {
|
|
1060
|
+
INTERNAL_SERVER_ERROR: "InternalServerError",
|
|
1061
|
+
VALIDATION_ERROR: "ValidationError",
|
|
1062
|
+
};
|
|
1063
|
+
const JobInputFormat = {
|
|
1064
|
+
PARQUET: "Parquet",
|
|
1065
|
+
};
|
|
1066
|
+
const JobOutputFormat = {
|
|
1067
|
+
PARQUET: "Parquet",
|
|
1068
|
+
};
|
|
936
1069
|
|
|
937
1070
|
exports.$Command = smithyClient.Command;
|
|
938
1071
|
exports.__Client = smithyClient.Client;
|
|
@@ -946,6 +1079,7 @@ exports.BatchPutGeofenceCommand = BatchPutGeofenceCommand;
|
|
|
946
1079
|
exports.BatchUpdateDevicePositionCommand = BatchUpdateDevicePositionCommand;
|
|
947
1080
|
exports.CalculateRouteCommand = CalculateRouteCommand;
|
|
948
1081
|
exports.CalculateRouteMatrixCommand = CalculateRouteMatrixCommand;
|
|
1082
|
+
exports.CancelJobCommand = CancelJobCommand;
|
|
949
1083
|
exports.CreateGeofenceCollectionCommand = CreateGeofenceCollectionCommand;
|
|
950
1084
|
exports.CreateKeyCommand = CreateKeyCommand;
|
|
951
1085
|
exports.CreateMapCommand = CreateMapCommand;
|
|
@@ -969,14 +1103,21 @@ exports.ForecastGeofenceEventsCommand = ForecastGeofenceEventsCommand;
|
|
|
969
1103
|
exports.GetDevicePositionCommand = GetDevicePositionCommand;
|
|
970
1104
|
exports.GetDevicePositionHistoryCommand = GetDevicePositionHistoryCommand;
|
|
971
1105
|
exports.GetGeofenceCommand = GetGeofenceCommand;
|
|
1106
|
+
exports.GetJobCommand = GetJobCommand;
|
|
972
1107
|
exports.GetMapGlyphsCommand = GetMapGlyphsCommand;
|
|
973
1108
|
exports.GetMapSpritesCommand = GetMapSpritesCommand;
|
|
974
1109
|
exports.GetMapStyleDescriptorCommand = GetMapStyleDescriptorCommand;
|
|
975
1110
|
exports.GetMapTileCommand = GetMapTileCommand;
|
|
976
1111
|
exports.GetPlaceCommand = GetPlaceCommand;
|
|
1112
|
+
exports.JobAction = JobAction;
|
|
1113
|
+
exports.JobErrorCode = JobErrorCode;
|
|
1114
|
+
exports.JobInputFormat = JobInputFormat;
|
|
1115
|
+
exports.JobOutputFormat = JobOutputFormat;
|
|
1116
|
+
exports.JobStatus = JobStatus;
|
|
977
1117
|
exports.ListDevicePositionsCommand = ListDevicePositionsCommand;
|
|
978
1118
|
exports.ListGeofenceCollectionsCommand = ListGeofenceCollectionsCommand;
|
|
979
1119
|
exports.ListGeofencesCommand = ListGeofencesCommand;
|
|
1120
|
+
exports.ListJobsCommand = ListJobsCommand;
|
|
980
1121
|
exports.ListKeysCommand = ListKeysCommand;
|
|
981
1122
|
exports.ListMapsCommand = ListMapsCommand;
|
|
982
1123
|
exports.ListPlaceIndexesCommand = ListPlaceIndexesCommand;
|
|
@@ -990,6 +1131,7 @@ exports.PutGeofenceCommand = PutGeofenceCommand;
|
|
|
990
1131
|
exports.SearchPlaceIndexForPositionCommand = SearchPlaceIndexForPositionCommand;
|
|
991
1132
|
exports.SearchPlaceIndexForSuggestionsCommand = SearchPlaceIndexForSuggestionsCommand;
|
|
992
1133
|
exports.SearchPlaceIndexForTextCommand = SearchPlaceIndexForTextCommand;
|
|
1134
|
+
exports.StartJobCommand = StartJobCommand;
|
|
993
1135
|
exports.TagResourceCommand = TagResourceCommand;
|
|
994
1136
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
995
1137
|
exports.UpdateGeofenceCollectionCommand = UpdateGeofenceCollectionCommand;
|
|
@@ -998,18 +1140,22 @@ exports.UpdateMapCommand = UpdateMapCommand;
|
|
|
998
1140
|
exports.UpdatePlaceIndexCommand = UpdatePlaceIndexCommand;
|
|
999
1141
|
exports.UpdateRouteCalculatorCommand = UpdateRouteCalculatorCommand;
|
|
1000
1142
|
exports.UpdateTrackerCommand = UpdateTrackerCommand;
|
|
1143
|
+
exports.ValidateAddressAdditionalFeature = ValidateAddressAdditionalFeature;
|
|
1001
1144
|
exports.VerifyDevicePositionCommand = VerifyDevicePositionCommand;
|
|
1002
1145
|
exports.paginateForecastGeofenceEvents = paginateForecastGeofenceEvents;
|
|
1003
1146
|
exports.paginateGetDevicePositionHistory = paginateGetDevicePositionHistory;
|
|
1004
1147
|
exports.paginateListDevicePositions = paginateListDevicePositions;
|
|
1005
1148
|
exports.paginateListGeofenceCollections = paginateListGeofenceCollections;
|
|
1006
1149
|
exports.paginateListGeofences = paginateListGeofences;
|
|
1150
|
+
exports.paginateListJobs = paginateListJobs;
|
|
1007
1151
|
exports.paginateListKeys = paginateListKeys;
|
|
1008
1152
|
exports.paginateListMaps = paginateListMaps;
|
|
1009
1153
|
exports.paginateListPlaceIndexes = paginateListPlaceIndexes;
|
|
1010
1154
|
exports.paginateListRouteCalculators = paginateListRouteCalculators;
|
|
1011
1155
|
exports.paginateListTrackerConsumers = paginateListTrackerConsumers;
|
|
1012
1156
|
exports.paginateListTrackers = paginateListTrackers;
|
|
1157
|
+
exports.waitForJobCompleted = waitForJobCompleted;
|
|
1158
|
+
exports.waitUntilJobCompleted = waitUntilJobCompleted;
|
|
1013
1159
|
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
1014
1160
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1015
1161
|
Object.defineProperty(exports, '__proto__', {
|