@aws-sdk/client-location 3.36.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/Location.js +0 -3
- package/dist-cjs/LocationClient.js +0 -8
- package/dist-cjs/commands/AssociateTrackerConsumerCommand.js +0 -30
- package/dist-cjs/commands/BatchDeleteDevicePositionHistoryCommand.js +0 -24
- package/dist-cjs/commands/BatchDeleteGeofenceCommand.js +0 -27
- package/dist-cjs/commands/BatchEvaluateGeofencesCommand.js +0 -44
- package/dist-cjs/commands/BatchGetDevicePositionCommand.js +0 -24
- package/dist-cjs/commands/BatchPutGeofenceCommand.js +0 -25
- package/dist-cjs/commands/BatchUpdateDevicePositionCommand.js +0 -34
- package/dist-cjs/commands/CalculateRouteCommand.js +0 -54
- package/dist-cjs/commands/CreateGeofenceCollectionCommand.js +0 -24
- package/dist-cjs/commands/CreateMapCommand.js +0 -25
- package/dist-cjs/commands/CreatePlaceIndexCommand.js +0 -25
- package/dist-cjs/commands/CreateRouteCalculatorCommand.js +0 -27
- package/dist-cjs/commands/CreateTrackerCommand.js +0 -25
- package/dist-cjs/commands/DeleteGeofenceCollectionCommand.js +0 -28
- package/dist-cjs/commands/DeleteMapCommand.js +0 -28
- package/dist-cjs/commands/DeletePlaceIndexCommand.js +0 -27
- package/dist-cjs/commands/DeleteRouteCalculatorCommand.js +0 -27
- package/dist-cjs/commands/DeleteTrackerCommand.js +0 -29
- package/dist-cjs/commands/DescribeGeofenceCollectionCommand.js +0 -24
- package/dist-cjs/commands/DescribeMapCommand.js +0 -24
- package/dist-cjs/commands/DescribePlaceIndexCommand.js +0 -24
- package/dist-cjs/commands/DescribeRouteCalculatorCommand.js +0 -24
- package/dist-cjs/commands/DescribeTrackerCommand.js +0 -24
- package/dist-cjs/commands/DisassociateTrackerConsumerCommand.js +0 -28
- package/dist-cjs/commands/GetDevicePositionCommand.js +0 -27
- package/dist-cjs/commands/GetDevicePositionHistoryCommand.js +0 -28
- package/dist-cjs/commands/GetGeofenceCommand.js +0 -24
- package/dist-cjs/commands/GetMapGlyphsCommand.js +0 -24
- package/dist-cjs/commands/GetMapSpritesCommand.js +0 -26
- package/dist-cjs/commands/GetMapStyleDescriptorCommand.js +0 -27
- package/dist-cjs/commands/GetMapTileCommand.js +0 -29
- package/dist-cjs/commands/ListDevicePositionsCommand.js +0 -24
- package/dist-cjs/commands/ListGeofenceCollectionsCommand.js +0 -24
- package/dist-cjs/commands/ListGeofencesCommand.js +0 -24
- package/dist-cjs/commands/ListMapsCommand.js +0 -24
- package/dist-cjs/commands/ListPlaceIndexesCommand.js +0 -24
- package/dist-cjs/commands/ListRouteCalculatorsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
- package/dist-cjs/commands/ListTrackerConsumersCommand.js +0 -24
- package/dist-cjs/commands/ListTrackersCommand.js +0 -24
- package/dist-cjs/commands/PutGeofenceCommand.js +0 -25
- package/dist-cjs/commands/SearchPlaceIndexForPositionCommand.js +0 -25
- package/dist-cjs/commands/SearchPlaceIndexForTextCommand.js +0 -32
- package/dist-cjs/commands/TagResourceCommand.js +0 -37
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateGeofenceCollectionCommand.js +0 -24
- package/dist-cjs/commands/UpdateMapCommand.js +0 -24
- package/dist-cjs/commands/UpdatePlaceIndexCommand.js +0 -24
- package/dist-cjs/commands/UpdateRouteCalculatorCommand.js +0 -24
- package/dist-cjs/commands/UpdateTrackerCommand.js +0 -24
- package/dist-cjs/commands/index.js +53 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -62
- package/dist-cjs/models/models_0.js +0 -429
- package/dist-cjs/pagination/GetDevicePositionHistoryPaginator.js +0 -10
- package/dist-cjs/pagination/ListDevicePositionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListGeofenceCollectionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListGeofencesPaginator.js +0 -10
- package/dist-cjs/pagination/ListMapsPaginator.js +0 -10
- package/dist-cjs/pagination/ListPlaceIndexesPaginator.js +0 -10
- package/dist-cjs/pagination/ListRouteCalculatorsPaginator.js +0 -10
- package/dist-cjs/pagination/ListTrackerConsumersPaginator.js +0 -10
- package/dist-cjs/pagination/ListTrackersPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +13 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +50 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -62
- package/dist-es/pagination/index.js +10 -0
- package/dist-types/commands/index.d.ts +50 -0
- package/dist-types/index.d.ts +4 -62
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/Location.d.ts +51 -292
- package/dist-types/ts3.4/LocationClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/AssociateTrackerConsumerCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/BatchDeleteDevicePositionHistoryCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchDeleteGeofenceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/BatchEvaluateGeofencesCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/BatchGetDevicePositionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchPutGeofenceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/BatchUpdateDevicePositionCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/CalculateRouteCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/CreateGeofenceCollectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateMapCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreatePlaceIndexCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateRouteCalculatorCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateTrackerCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteGeofenceCollectionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteMapCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeletePlaceIndexCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteRouteCalculatorCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteTrackerCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeGeofenceCollectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeMapCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribePlaceIndexCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeRouteCalculatorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeTrackerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisassociateTrackerConsumerCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetDevicePositionCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetDevicePositionHistoryCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetGeofenceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetMapGlyphsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetMapSpritesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetMapStyleDescriptorCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetMapTileCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListDevicePositionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListGeofenceCollectionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListGeofencesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMapsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPlaceIndexesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListRouteCalculatorsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTrackerConsumersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTrackersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutGeofenceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/SearchPlaceIndexForPositionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/SearchPlaceIndexForTextCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateGeofenceCollectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateMapCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdatePlaceIndexCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateRouteCalculatorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateTrackerCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +50 -0
- package/dist-types/ts3.4/index.d.ts +4 -62
- package/dist-types/ts3.4/models/models_0.d.ts +580 -3098
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-location
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
20
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
49
|
|
|
8
50
|
|
package/dist-cjs/Location.js
CHANGED
|
@@ -52,9 +52,6 @@ const UpdatePlaceIndexCommand_1 = require("./commands/UpdatePlaceIndexCommand");
|
|
|
52
52
|
const UpdateRouteCalculatorCommand_1 = require("./commands/UpdateRouteCalculatorCommand");
|
|
53
53
|
const UpdateTrackerCommand_1 = require("./commands/UpdateTrackerCommand");
|
|
54
54
|
const LocationClient_1 = require("./LocationClient");
|
|
55
|
-
/**
|
|
56
|
-
* Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing
|
|
57
|
-
*/
|
|
58
55
|
class Location extends LocationClient_1.LocationClient {
|
|
59
56
|
associateTrackerConsumer(args, optionsOrCb, cb) {
|
|
60
57
|
const command = new AssociateTrackerConsumerCommand_1.AssociateTrackerConsumerCommand(args);
|
|
@@ -10,9 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing
|
|
15
|
-
*/
|
|
16
13
|
class LocationClient extends smithy_client_1.Client {
|
|
17
14
|
constructor(configuration) {
|
|
18
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -31,11 +28,6 @@ class LocationClient extends smithy_client_1.Client {
|
|
|
31
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
32
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
33
30
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
36
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
37
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
38
|
-
*/
|
|
39
31
|
destroy() {
|
|
40
32
|
super.destroy();
|
|
41
33
|
}
|
|
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates an association between a geofence collection and a tracker resource. This
|
|
10
|
-
* allows the tracker resource to communicate location data to the linked geofence
|
|
11
|
-
* collection. </p>
|
|
12
|
-
* <p>You can associate up to five geofence collections to each tracker resource.</p>
|
|
13
|
-
* <note>
|
|
14
|
-
* <p>Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.</p>
|
|
15
|
-
* </note>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { LocationClient, AssociateTrackerConsumerCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
20
|
-
* // const { LocationClient, AssociateTrackerConsumerCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
21
|
-
* const client = new LocationClient(config);
|
|
22
|
-
* const command = new AssociateTrackerConsumerCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link AssociateTrackerConsumerCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link AssociateTrackerConsumerCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class AssociateTrackerConsumerCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes the position history of one or more devices from a tracker resource.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { LocationClient, BatchDeleteDevicePositionHistoryCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
14
|
-
* // const { LocationClient, BatchDeleteDevicePositionHistoryCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
15
|
-
* const client = new LocationClient(config);
|
|
16
|
-
* const command = new BatchDeleteDevicePositionHistoryCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link BatchDeleteDevicePositionHistoryCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link BatchDeleteDevicePositionHistoryCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class BatchDeleteDevicePositionHistoryCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a batch of geofences from a geofence collection.</p>
|
|
10
|
-
* <note>
|
|
11
|
-
* <p>This operation deletes the resource permanently.</p>
|
|
12
|
-
* </note>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { LocationClient, BatchDeleteGeofenceCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
17
|
-
* // const { LocationClient, BatchDeleteGeofenceCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
18
|
-
* const client = new LocationClient(config);
|
|
19
|
-
* const command = new BatchDeleteGeofenceCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link BatchDeleteGeofenceCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link BatchDeleteGeofenceCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class BatchDeleteGeofenceCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,55 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Evaluates device positions against the geofence geometries from a given geofence
|
|
10
|
-
* collection.</p>
|
|
11
|
-
* <p>This operation always returns an empty response because geofences are asynchronously
|
|
12
|
-
* evaluated. The evaluation determines if the device has entered or exited a geofenced
|
|
13
|
-
* area, and then publishes one of the following events to Amazon EventBridge:</p>
|
|
14
|
-
* <ul>
|
|
15
|
-
* <li>
|
|
16
|
-
* <p>
|
|
17
|
-
* <code>ENTER</code> if Amazon Location determines that the tracked device has entered
|
|
18
|
-
* a geofenced area.</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
* <code>EXIT</code> if Amazon Location determines that the tracked device has exited a
|
|
23
|
-
* geofenced area.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* </ul>
|
|
26
|
-
* <note>
|
|
27
|
-
* <p>The last geofence that a device was observed within is tracked for 30 days after
|
|
28
|
-
* the most recent device position update.</p>
|
|
29
|
-
* </note>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { LocationClient, BatchEvaluateGeofencesCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
34
|
-
* // const { LocationClient, BatchEvaluateGeofencesCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
35
|
-
* const client = new LocationClient(config);
|
|
36
|
-
* const command = new BatchEvaluateGeofencesCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link BatchEvaluateGeofencesCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link BatchEvaluateGeofencesCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
8
|
class BatchEvaluateGeofencesCommand extends smithy_client_1.Command {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
9
|
constructor(input) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
10
|
super();
|
|
51
11
|
this.input = input;
|
|
52
|
-
// End section: command_constructor
|
|
53
12
|
}
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
58
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
59
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Lists the latest device positions for requested devices.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { LocationClient, BatchGetDevicePositionCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
14
|
-
* // const { LocationClient, BatchGetDevicePositionCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
15
|
-
* const client = new LocationClient(config);
|
|
16
|
-
* const command = new BatchGetDevicePositionCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link BatchGetDevicePositionCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link BatchGetDevicePositionCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class BatchGetDevicePositionCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>A batch request for storing geofence geometries into a given geofence collection, or
|
|
10
|
-
* updates the geometry of an existing geofence if a geofence ID is included in the request.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { LocationClient, BatchPutGeofenceCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
15
|
-
* // const { LocationClient, BatchPutGeofenceCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
16
|
-
* const client = new LocationClient(config);
|
|
17
|
-
* const command = new BatchPutGeofenceCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link BatchPutGeofenceCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link BatchPutGeofenceCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class BatchPutGeofenceCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,45 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Uploads position update data for one or more devices to a tracker resource. Amazon Location
|
|
10
|
-
* uses the data when it reports the last known device position and position history. Amazon Location retains location data for 30
|
|
11
|
-
* days.</p>
|
|
12
|
-
* <note>
|
|
13
|
-
* <p>Position updates are handled based on the <code>PositionFiltering</code> property of the tracker.
|
|
14
|
-
* When <code>PositionFiltering</code> is set to <code>TimeBased</code>, updates are evaluated against linked geofence collections,
|
|
15
|
-
* and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than
|
|
16
|
-
* every 30 seconds, only one update per 30 seconds is stored for each unique device ID.
|
|
17
|
-
* When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
|
|
18
|
-
* collections only if the device has moved more than 30 m (98.4 ft).</p>
|
|
19
|
-
* </note>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { LocationClient, BatchUpdateDevicePositionCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
24
|
-
* // const { LocationClient, BatchUpdateDevicePositionCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
25
|
-
* const client = new LocationClient(config);
|
|
26
|
-
* const command = new BatchUpdateDevicePositionCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link BatchUpdateDevicePositionCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link BatchUpdateDevicePositionCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
8
|
class BatchUpdateDevicePositionCommand extends smithy_client_1.Command {
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
9
|
constructor(input) {
|
|
39
|
-
// Start section: command_constructor
|
|
40
10
|
super();
|
|
41
11
|
this.input = input;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,65 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>
|
|
10
|
-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html">Calculates a route</a> given the following required parameters:
|
|
11
|
-
* <code>DeparturePostiton</code> and <code>DestinationPosition</code>. Requires that
|
|
12
|
-
* you first <a href="https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html">create a
|
|
13
|
-
* route calculator resource</a>
|
|
14
|
-
* </p>
|
|
15
|
-
* <p>By default, a request that doesn't specify a departure time uses the best time of day
|
|
16
|
-
* to travel with the best traffic conditions when calculating the route.</p>
|
|
17
|
-
* <p>Additional options include:</p>
|
|
18
|
-
* <ul>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>
|
|
21
|
-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#departure-time">Specifying a departure time</a> using either <code>DepartureTime</code> or
|
|
22
|
-
* <code>DepartureNow</code>. This calculates a route based on predictive
|
|
23
|
-
* traffic data at the given time. </p>
|
|
24
|
-
* <note>
|
|
25
|
-
* <p>You can't specify both <code>DepartureTime</code> and
|
|
26
|
-
* <code>DepartureNow</code> in a single request. Specifying both
|
|
27
|
-
* parameters returns an error message.</p>
|
|
28
|
-
* </note>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#travel-mode">Specifying a travel mode</a> using TravelMode. This lets you specify an
|
|
33
|
-
* additional route preference such as <code>CarModeOptions</code> if traveling by
|
|
34
|
-
* <code>Car</code>, or <code>TruckModeOptions</code> if traveling by
|
|
35
|
-
* <code>Truck</code>.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* </ul>
|
|
38
|
-
* <p>
|
|
39
|
-
* </p>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { LocationClient, CalculateRouteCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
44
|
-
* // const { LocationClient, CalculateRouteCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
45
|
-
* const client = new LocationClient(config);
|
|
46
|
-
* const command = new CalculateRouteCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link CalculateRouteCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link CalculateRouteCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
8
|
class CalculateRouteCommand extends smithy_client_1.Command {
|
|
56
|
-
// Start section: command_properties
|
|
57
|
-
// End section: command_properties
|
|
58
9
|
constructor(input) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
10
|
super();
|
|
61
11
|
this.input = input;
|
|
62
|
-
// End section: command_constructor
|
|
63
12
|
}
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
68
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a geofence collection, which manages and stores geofences.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { LocationClient, CreateGeofenceCollectionCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
14
|
-
* // const { LocationClient, CreateGeofenceCollectionCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
15
|
-
* const client = new LocationClient(config);
|
|
16
|
-
* const command = new CreateGeofenceCollectionCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link CreateGeofenceCollectionCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link CreateGeofenceCollectionCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class CreateGeofenceCollectionCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a map resource in your AWS account, which provides map tiles of different
|
|
10
|
-
* styles sourced from global location data providers.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { LocationClient, CreateMapCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
15
|
-
* // const { LocationClient, CreateMapCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
16
|
-
* const client = new LocationClient(config);
|
|
17
|
-
* const command = new CreateMapCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link CreateMapCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link CreateMapCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class CreateMapCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a place index resource in your AWS account, which supports functions with
|
|
10
|
-
* geospatial data sourced from your chosen data provider.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { LocationClient, CreatePlaceIndexCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
15
|
-
* // const { LocationClient, CreatePlaceIndexCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
16
|
-
* const client = new LocationClient(config);
|
|
17
|
-
* const command = new CreatePlaceIndexCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link CreatePlaceIndexCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link CreatePlaceIndexCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class CreatePlaceIndexCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a route calculator resource in your AWS account.</p>
|
|
10
|
-
* <p>You can send requests to a route calculator resource to estimate travel time,
|
|
11
|
-
* distance, and get directions. A route calculator sources traffic and road network data
|
|
12
|
-
* from your chosen data provider.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { LocationClient, CreateRouteCalculatorCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
17
|
-
* // const { LocationClient, CreateRouteCalculatorCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
18
|
-
* const client = new LocationClient(config);
|
|
19
|
-
* const command = new CreateRouteCalculatorCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link CreateRouteCalculatorCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link CreateRouteCalculatorCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class CreateRouteCalculatorCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a tracker resource in your AWS account, which lets you retrieve current and
|
|
10
|
-
* historical location of devices.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { LocationClient, CreateTrackerCommand } from "@aws-sdk/client-location"; // ES Modules import
|
|
15
|
-
* // const { LocationClient, CreateTrackerCommand } = require("@aws-sdk/client-location"); // CommonJS import
|
|
16
|
-
* const client = new LocationClient(config);
|
|
17
|
-
* const command = new CreateTrackerCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link CreateTrackerCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link CreateTrackerCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LocationClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class CreateTrackerCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|