@aws-sdk/client-location 3.183.0 → 3.186.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Location.js +221 -214
  4. package/dist-es/LocationClient.js +28 -22
  5. package/dist-es/commands/AssociateTrackerConsumerCommand.js +28 -21
  6. package/dist-es/commands/BatchDeleteDevicePositionHistoryCommand.js +28 -21
  7. package/dist-es/commands/BatchDeleteGeofenceCommand.js +28 -21
  8. package/dist-es/commands/BatchEvaluateGeofencesCommand.js +28 -21
  9. package/dist-es/commands/BatchGetDevicePositionCommand.js +28 -21
  10. package/dist-es/commands/BatchPutGeofenceCommand.js +28 -21
  11. package/dist-es/commands/BatchUpdateDevicePositionCommand.js +28 -21
  12. package/dist-es/commands/CalculateRouteCommand.js +28 -21
  13. package/dist-es/commands/CalculateRouteMatrixCommand.js +28 -21
  14. package/dist-es/commands/CreateGeofenceCollectionCommand.js +28 -21
  15. package/dist-es/commands/CreateMapCommand.js +28 -21
  16. package/dist-es/commands/CreatePlaceIndexCommand.js +28 -21
  17. package/dist-es/commands/CreateRouteCalculatorCommand.js +28 -21
  18. package/dist-es/commands/CreateTrackerCommand.js +28 -21
  19. package/dist-es/commands/DeleteGeofenceCollectionCommand.js +28 -21
  20. package/dist-es/commands/DeleteMapCommand.js +28 -21
  21. package/dist-es/commands/DeletePlaceIndexCommand.js +28 -21
  22. package/dist-es/commands/DeleteRouteCalculatorCommand.js +28 -21
  23. package/dist-es/commands/DeleteTrackerCommand.js +28 -21
  24. package/dist-es/commands/DescribeGeofenceCollectionCommand.js +28 -21
  25. package/dist-es/commands/DescribeMapCommand.js +28 -21
  26. package/dist-es/commands/DescribePlaceIndexCommand.js +28 -21
  27. package/dist-es/commands/DescribeRouteCalculatorCommand.js +28 -21
  28. package/dist-es/commands/DescribeTrackerCommand.js +28 -21
  29. package/dist-es/commands/DisassociateTrackerConsumerCommand.js +28 -21
  30. package/dist-es/commands/GetDevicePositionCommand.js +28 -21
  31. package/dist-es/commands/GetDevicePositionHistoryCommand.js +28 -21
  32. package/dist-es/commands/GetGeofenceCommand.js +28 -21
  33. package/dist-es/commands/GetMapGlyphsCommand.js +28 -21
  34. package/dist-es/commands/GetMapSpritesCommand.js +28 -21
  35. package/dist-es/commands/GetMapStyleDescriptorCommand.js +28 -21
  36. package/dist-es/commands/GetMapTileCommand.js +28 -21
  37. package/dist-es/commands/GetPlaceCommand.js +28 -21
  38. package/dist-es/commands/ListDevicePositionsCommand.js +28 -21
  39. package/dist-es/commands/ListGeofenceCollectionsCommand.js +28 -21
  40. package/dist-es/commands/ListGeofencesCommand.js +28 -21
  41. package/dist-es/commands/ListMapsCommand.js +28 -21
  42. package/dist-es/commands/ListPlaceIndexesCommand.js +28 -21
  43. package/dist-es/commands/ListRouteCalculatorsCommand.js +28 -21
  44. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  45. package/dist-es/commands/ListTrackerConsumersCommand.js +28 -21
  46. package/dist-es/commands/ListTrackersCommand.js +28 -21
  47. package/dist-es/commands/PutGeofenceCommand.js +28 -21
  48. package/dist-es/commands/SearchPlaceIndexForPositionCommand.js +28 -21
  49. package/dist-es/commands/SearchPlaceIndexForSuggestionsCommand.js +28 -21
  50. package/dist-es/commands/SearchPlaceIndexForTextCommand.js +28 -21
  51. package/dist-es/commands/TagResourceCommand.js +28 -21
  52. package/dist-es/commands/UntagResourceCommand.js +28 -21
  53. package/dist-es/commands/UpdateGeofenceCollectionCommand.js +28 -21
  54. package/dist-es/commands/UpdateMapCommand.js +28 -21
  55. package/dist-es/commands/UpdatePlaceIndexCommand.js +28 -21
  56. package/dist-es/commands/UpdateRouteCalculatorCommand.js +28 -21
  57. package/dist-es/commands/UpdateTrackerCommand.js +28 -21
  58. package/dist-es/endpoints.js +8 -8
  59. package/dist-es/models/LocationServiceException.js +10 -5
  60. package/dist-es/models/models_0.js +245 -608
  61. package/dist-es/pagination/GetDevicePositionHistoryPaginator.js +68 -25
  62. package/dist-es/pagination/ListDevicePositionsPaginator.js +68 -25
  63. package/dist-es/pagination/ListGeofenceCollectionsPaginator.js +68 -25
  64. package/dist-es/pagination/ListGeofencesPaginator.js +68 -25
  65. package/dist-es/pagination/ListMapsPaginator.js +68 -25
  66. package/dist-es/pagination/ListPlaceIndexesPaginator.js +68 -25
  67. package/dist-es/pagination/ListRouteCalculatorsPaginator.js +68 -25
  68. package/dist-es/pagination/ListTrackerConsumersPaginator.js +68 -25
  69. package/dist-es/pagination/ListTrackersPaginator.js +68 -25
  70. package/dist-es/protocols/Aws_restJson1.js +6039 -4373
  71. package/dist-es/runtimeConfig.browser.js +12 -26
  72. package/dist-es/runtimeConfig.js +12 -30
  73. package/dist-es/runtimeConfig.native.js +5 -8
  74. package/dist-es/runtimeConfig.shared.js +11 -8
  75. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "ListTagsForResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTrackerConsumersRequestFilterSensitiveLog, ListTrackerConsumersResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListTrackerConsumersCommand, serializeAws_restJson1ListTrackerConsumersCommand, } from "../protocols/Aws_restJson1";
5
- export class ListTrackerConsumersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTrackerConsumersCommand = (function (_super) {
7
+ __extends(ListTrackerConsumersCommand, _super);
8
+ function ListTrackerConsumersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTrackerConsumersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "ListTrackerConsumersCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "ListTrackerConsumersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTrackerConsumersRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTrackerConsumersResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTrackerConsumersCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListTrackerConsumersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTrackerConsumersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListTrackerConsumersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTrackerConsumersCommand;
38
+ }($Command));
39
+ export { ListTrackerConsumersCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTrackersRequestFilterSensitiveLog, ListTrackersResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListTrackersCommand, serializeAws_restJson1ListTrackersCommand, } from "../protocols/Aws_restJson1";
5
- export class ListTrackersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTrackersCommand = (function (_super) {
7
+ __extends(ListTrackersCommand, _super);
8
+ function ListTrackersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTrackersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "ListTrackersCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "ListTrackersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTrackersRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTrackersResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTrackersCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListTrackersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTrackersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListTrackersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTrackersCommand;
38
+ }($Command));
39
+ export { ListTrackersCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { PutGeofenceRequestFilterSensitiveLog, PutGeofenceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1PutGeofenceCommand, serializeAws_restJson1PutGeofenceCommand, } from "../protocols/Aws_restJson1";
5
- export class PutGeofenceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutGeofenceCommand = (function (_super) {
7
+ __extends(PutGeofenceCommand, _super);
8
+ function PutGeofenceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutGeofenceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "PutGeofenceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "PutGeofenceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutGeofenceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: PutGeofenceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutGeofenceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1PutGeofenceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutGeofenceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1PutGeofenceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutGeofenceCommand;
38
+ }($Command));
39
+ export { PutGeofenceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { SearchPlaceIndexForPositionRequestFilterSensitiveLog, SearchPlaceIndexForPositionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1SearchPlaceIndexForPositionCommand, serializeAws_restJson1SearchPlaceIndexForPositionCommand, } from "../protocols/Aws_restJson1";
5
- export class SearchPlaceIndexForPositionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SearchPlaceIndexForPositionCommand = (function (_super) {
7
+ __extends(SearchPlaceIndexForPositionCommand, _super);
8
+ function SearchPlaceIndexForPositionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SearchPlaceIndexForPositionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "SearchPlaceIndexForPositionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "SearchPlaceIndexForPositionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SearchPlaceIndexForPositionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SearchPlaceIndexForPositionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SearchPlaceIndexForPositionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1SearchPlaceIndexForPositionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SearchPlaceIndexForPositionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1SearchPlaceIndexForPositionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SearchPlaceIndexForPositionCommand;
38
+ }($Command));
39
+ export { SearchPlaceIndexForPositionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog, SearchPlaceIndexForSuggestionsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand, serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand, } from "../protocols/Aws_restJson1";
5
- export class SearchPlaceIndexForSuggestionsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SearchPlaceIndexForSuggestionsCommand = (function (_super) {
7
+ __extends(SearchPlaceIndexForSuggestionsCommand, _super);
8
+ function SearchPlaceIndexForSuggestionsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SearchPlaceIndexForSuggestionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "SearchPlaceIndexForSuggestionsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "SearchPlaceIndexForSuggestionsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SearchPlaceIndexForSuggestionsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SearchPlaceIndexForSuggestionsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SearchPlaceIndexForSuggestionsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SearchPlaceIndexForSuggestionsCommand;
38
+ }($Command));
39
+ export { SearchPlaceIndexForSuggestionsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { SearchPlaceIndexForTextRequestFilterSensitiveLog, SearchPlaceIndexForTextResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1SearchPlaceIndexForTextCommand, serializeAws_restJson1SearchPlaceIndexForTextCommand, } from "../protocols/Aws_restJson1";
5
- export class SearchPlaceIndexForTextCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SearchPlaceIndexForTextCommand = (function (_super) {
7
+ __extends(SearchPlaceIndexForTextCommand, _super);
8
+ function SearchPlaceIndexForTextCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SearchPlaceIndexForTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "SearchPlaceIndexForTextCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "SearchPlaceIndexForTextCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SearchPlaceIndexForTextRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SearchPlaceIndexForTextResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SearchPlaceIndexForTextCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1SearchPlaceIndexForTextCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SearchPlaceIndexForTextCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1SearchPlaceIndexForTextCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SearchPlaceIndexForTextCommand;
38
+ }($Command));
39
+ export { SearchPlaceIndexForTextCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class TagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "TagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1TagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1TagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class UntagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "UntagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UntagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UntagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateGeofenceCollectionRequestFilterSensitiveLog, UpdateGeofenceCollectionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateGeofenceCollectionCommand, serializeAws_restJson1UpdateGeofenceCollectionCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateGeofenceCollectionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateGeofenceCollectionCommand = (function (_super) {
7
+ __extends(UpdateGeofenceCollectionCommand, _super);
8
+ function UpdateGeofenceCollectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateGeofenceCollectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LocationClient";
15
- const commandName = "UpdateGeofenceCollectionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LocationClient";
18
+ var commandName = "UpdateGeofenceCollectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateGeofenceCollectionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateGeofenceCollectionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateGeofenceCollectionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateGeofenceCollectionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateGeofenceCollectionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateGeofenceCollectionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateGeofenceCollectionCommand;
38
+ }($Command));
39
+ export { UpdateGeofenceCollectionCommand };