@aws-sdk/client-location 3.194.0 → 3.196.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 (245) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/LocationClient.js +11 -8
  3. package/dist-cjs/commands/AssociateTrackerConsumerCommand.js +10 -0
  4. package/dist-cjs/commands/BatchDeleteDevicePositionHistoryCommand.js +10 -0
  5. package/dist-cjs/commands/BatchDeleteGeofenceCommand.js +10 -0
  6. package/dist-cjs/commands/BatchEvaluateGeofencesCommand.js +10 -0
  7. package/dist-cjs/commands/BatchGetDevicePositionCommand.js +10 -0
  8. package/dist-cjs/commands/BatchPutGeofenceCommand.js +10 -0
  9. package/dist-cjs/commands/BatchUpdateDevicePositionCommand.js +10 -0
  10. package/dist-cjs/commands/CalculateRouteCommand.js +10 -0
  11. package/dist-cjs/commands/CalculateRouteMatrixCommand.js +10 -0
  12. package/dist-cjs/commands/CreateGeofenceCollectionCommand.js +10 -0
  13. package/dist-cjs/commands/CreateMapCommand.js +10 -0
  14. package/dist-cjs/commands/CreatePlaceIndexCommand.js +10 -0
  15. package/dist-cjs/commands/CreateRouteCalculatorCommand.js +10 -0
  16. package/dist-cjs/commands/CreateTrackerCommand.js +10 -0
  17. package/dist-cjs/commands/DeleteGeofenceCollectionCommand.js +10 -0
  18. package/dist-cjs/commands/DeleteMapCommand.js +10 -0
  19. package/dist-cjs/commands/DeletePlaceIndexCommand.js +10 -0
  20. package/dist-cjs/commands/DeleteRouteCalculatorCommand.js +10 -0
  21. package/dist-cjs/commands/DeleteTrackerCommand.js +10 -0
  22. package/dist-cjs/commands/DescribeGeofenceCollectionCommand.js +10 -0
  23. package/dist-cjs/commands/DescribeMapCommand.js +10 -0
  24. package/dist-cjs/commands/DescribePlaceIndexCommand.js +10 -0
  25. package/dist-cjs/commands/DescribeRouteCalculatorCommand.js +10 -0
  26. package/dist-cjs/commands/DescribeTrackerCommand.js +10 -0
  27. package/dist-cjs/commands/DisassociateTrackerConsumerCommand.js +10 -0
  28. package/dist-cjs/commands/GetDevicePositionCommand.js +10 -0
  29. package/dist-cjs/commands/GetDevicePositionHistoryCommand.js +10 -0
  30. package/dist-cjs/commands/GetGeofenceCommand.js +10 -0
  31. package/dist-cjs/commands/GetMapGlyphsCommand.js +10 -0
  32. package/dist-cjs/commands/GetMapSpritesCommand.js +10 -0
  33. package/dist-cjs/commands/GetMapStyleDescriptorCommand.js +10 -0
  34. package/dist-cjs/commands/GetMapTileCommand.js +10 -0
  35. package/dist-cjs/commands/GetPlaceCommand.js +10 -0
  36. package/dist-cjs/commands/ListDevicePositionsCommand.js +10 -0
  37. package/dist-cjs/commands/ListGeofenceCollectionsCommand.js +10 -0
  38. package/dist-cjs/commands/ListGeofencesCommand.js +10 -0
  39. package/dist-cjs/commands/ListMapsCommand.js +10 -0
  40. package/dist-cjs/commands/ListPlaceIndexesCommand.js +10 -0
  41. package/dist-cjs/commands/ListRouteCalculatorsCommand.js +10 -0
  42. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  43. package/dist-cjs/commands/ListTrackerConsumersCommand.js +10 -0
  44. package/dist-cjs/commands/ListTrackersCommand.js +10 -0
  45. package/dist-cjs/commands/PutGeofenceCommand.js +10 -0
  46. package/dist-cjs/commands/SearchPlaceIndexForPositionCommand.js +10 -0
  47. package/dist-cjs/commands/SearchPlaceIndexForSuggestionsCommand.js +10 -0
  48. package/dist-cjs/commands/SearchPlaceIndexForTextCommand.js +10 -0
  49. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  50. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  51. package/dist-cjs/commands/UpdateGeofenceCollectionCommand.js +10 -0
  52. package/dist-cjs/commands/UpdateMapCommand.js +10 -0
  53. package/dist-cjs/commands/UpdatePlaceIndexCommand.js +10 -0
  54. package/dist-cjs/commands/UpdateRouteCalculatorCommand.js +10 -0
  55. package/dist-cjs/commands/UpdateTrackerCommand.js +10 -0
  56. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  57. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  58. package/dist-cjs/endpoint/ruleset.js +312 -0
  59. package/dist-cjs/runtimeConfig.shared.js +3 -3
  60. package/dist-es/LocationClient.js +12 -9
  61. package/dist-es/commands/AssociateTrackerConsumerCommand.js +10 -0
  62. package/dist-es/commands/BatchDeleteDevicePositionHistoryCommand.js +10 -0
  63. package/dist-es/commands/BatchDeleteGeofenceCommand.js +10 -0
  64. package/dist-es/commands/BatchEvaluateGeofencesCommand.js +10 -0
  65. package/dist-es/commands/BatchGetDevicePositionCommand.js +10 -0
  66. package/dist-es/commands/BatchPutGeofenceCommand.js +10 -0
  67. package/dist-es/commands/BatchUpdateDevicePositionCommand.js +10 -0
  68. package/dist-es/commands/CalculateRouteCommand.js +10 -0
  69. package/dist-es/commands/CalculateRouteMatrixCommand.js +10 -0
  70. package/dist-es/commands/CreateGeofenceCollectionCommand.js +10 -0
  71. package/dist-es/commands/CreateMapCommand.js +10 -0
  72. package/dist-es/commands/CreatePlaceIndexCommand.js +10 -0
  73. package/dist-es/commands/CreateRouteCalculatorCommand.js +10 -0
  74. package/dist-es/commands/CreateTrackerCommand.js +10 -0
  75. package/dist-es/commands/DeleteGeofenceCollectionCommand.js +10 -0
  76. package/dist-es/commands/DeleteMapCommand.js +10 -0
  77. package/dist-es/commands/DeletePlaceIndexCommand.js +10 -0
  78. package/dist-es/commands/DeleteRouteCalculatorCommand.js +10 -0
  79. package/dist-es/commands/DeleteTrackerCommand.js +10 -0
  80. package/dist-es/commands/DescribeGeofenceCollectionCommand.js +10 -0
  81. package/dist-es/commands/DescribeMapCommand.js +10 -0
  82. package/dist-es/commands/DescribePlaceIndexCommand.js +10 -0
  83. package/dist-es/commands/DescribeRouteCalculatorCommand.js +10 -0
  84. package/dist-es/commands/DescribeTrackerCommand.js +10 -0
  85. package/dist-es/commands/DisassociateTrackerConsumerCommand.js +10 -0
  86. package/dist-es/commands/GetDevicePositionCommand.js +10 -0
  87. package/dist-es/commands/GetDevicePositionHistoryCommand.js +10 -0
  88. package/dist-es/commands/GetGeofenceCommand.js +10 -0
  89. package/dist-es/commands/GetMapGlyphsCommand.js +10 -0
  90. package/dist-es/commands/GetMapSpritesCommand.js +10 -0
  91. package/dist-es/commands/GetMapStyleDescriptorCommand.js +10 -0
  92. package/dist-es/commands/GetMapTileCommand.js +10 -0
  93. package/dist-es/commands/GetPlaceCommand.js +10 -0
  94. package/dist-es/commands/ListDevicePositionsCommand.js +10 -0
  95. package/dist-es/commands/ListGeofenceCollectionsCommand.js +10 -0
  96. package/dist-es/commands/ListGeofencesCommand.js +10 -0
  97. package/dist-es/commands/ListMapsCommand.js +10 -0
  98. package/dist-es/commands/ListPlaceIndexesCommand.js +10 -0
  99. package/dist-es/commands/ListRouteCalculatorsCommand.js +10 -0
  100. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  101. package/dist-es/commands/ListTrackerConsumersCommand.js +10 -0
  102. package/dist-es/commands/ListTrackersCommand.js +10 -0
  103. package/dist-es/commands/PutGeofenceCommand.js +10 -0
  104. package/dist-es/commands/SearchPlaceIndexForPositionCommand.js +10 -0
  105. package/dist-es/commands/SearchPlaceIndexForSuggestionsCommand.js +10 -0
  106. package/dist-es/commands/SearchPlaceIndexForTextCommand.js +10 -0
  107. package/dist-es/commands/TagResourceCommand.js +10 -0
  108. package/dist-es/commands/UntagResourceCommand.js +10 -0
  109. package/dist-es/commands/UpdateGeofenceCollectionCommand.js +10 -0
  110. package/dist-es/commands/UpdateMapCommand.js +10 -0
  111. package/dist-es/commands/UpdatePlaceIndexCommand.js +10 -0
  112. package/dist-es/commands/UpdateRouteCalculatorCommand.js +10 -0
  113. package/dist-es/commands/UpdateTrackerCommand.js +10 -0
  114. package/dist-es/endpoint/EndpointParameters.js +8 -0
  115. package/dist-es/endpoint/endpointResolver.js +8 -0
  116. package/dist-es/endpoint/ruleset.js +309 -0
  117. package/dist-es/runtimeConfig.shared.js +2 -2
  118. package/dist-types/LocationClient.d.ts +6 -9
  119. package/dist-types/commands/AssociateTrackerConsumerCommand.d.ts +2 -0
  120. package/dist-types/commands/BatchDeleteDevicePositionHistoryCommand.d.ts +2 -0
  121. package/dist-types/commands/BatchDeleteGeofenceCommand.d.ts +2 -0
  122. package/dist-types/commands/BatchEvaluateGeofencesCommand.d.ts +2 -0
  123. package/dist-types/commands/BatchGetDevicePositionCommand.d.ts +2 -0
  124. package/dist-types/commands/BatchPutGeofenceCommand.d.ts +2 -0
  125. package/dist-types/commands/BatchUpdateDevicePositionCommand.d.ts +2 -0
  126. package/dist-types/commands/CalculateRouteCommand.d.ts +2 -0
  127. package/dist-types/commands/CalculateRouteMatrixCommand.d.ts +2 -0
  128. package/dist-types/commands/CreateGeofenceCollectionCommand.d.ts +2 -0
  129. package/dist-types/commands/CreateMapCommand.d.ts +2 -0
  130. package/dist-types/commands/CreatePlaceIndexCommand.d.ts +2 -0
  131. package/dist-types/commands/CreateRouteCalculatorCommand.d.ts +2 -0
  132. package/dist-types/commands/CreateTrackerCommand.d.ts +2 -0
  133. package/dist-types/commands/DeleteGeofenceCollectionCommand.d.ts +2 -0
  134. package/dist-types/commands/DeleteMapCommand.d.ts +2 -0
  135. package/dist-types/commands/DeletePlaceIndexCommand.d.ts +2 -0
  136. package/dist-types/commands/DeleteRouteCalculatorCommand.d.ts +2 -0
  137. package/dist-types/commands/DeleteTrackerCommand.d.ts +2 -0
  138. package/dist-types/commands/DescribeGeofenceCollectionCommand.d.ts +2 -0
  139. package/dist-types/commands/DescribeMapCommand.d.ts +2 -0
  140. package/dist-types/commands/DescribePlaceIndexCommand.d.ts +2 -0
  141. package/dist-types/commands/DescribeRouteCalculatorCommand.d.ts +2 -0
  142. package/dist-types/commands/DescribeTrackerCommand.d.ts +2 -0
  143. package/dist-types/commands/DisassociateTrackerConsumerCommand.d.ts +2 -0
  144. package/dist-types/commands/GetDevicePositionCommand.d.ts +2 -0
  145. package/dist-types/commands/GetDevicePositionHistoryCommand.d.ts +2 -0
  146. package/dist-types/commands/GetGeofenceCommand.d.ts +2 -0
  147. package/dist-types/commands/GetMapGlyphsCommand.d.ts +2 -0
  148. package/dist-types/commands/GetMapSpritesCommand.d.ts +2 -0
  149. package/dist-types/commands/GetMapStyleDescriptorCommand.d.ts +2 -0
  150. package/dist-types/commands/GetMapTileCommand.d.ts +2 -0
  151. package/dist-types/commands/GetPlaceCommand.d.ts +2 -0
  152. package/dist-types/commands/ListDevicePositionsCommand.d.ts +2 -0
  153. package/dist-types/commands/ListGeofenceCollectionsCommand.d.ts +2 -0
  154. package/dist-types/commands/ListGeofencesCommand.d.ts +2 -0
  155. package/dist-types/commands/ListMapsCommand.d.ts +2 -0
  156. package/dist-types/commands/ListPlaceIndexesCommand.d.ts +2 -0
  157. package/dist-types/commands/ListRouteCalculatorsCommand.d.ts +2 -0
  158. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  159. package/dist-types/commands/ListTrackerConsumersCommand.d.ts +2 -0
  160. package/dist-types/commands/ListTrackersCommand.d.ts +2 -0
  161. package/dist-types/commands/PutGeofenceCommand.d.ts +2 -0
  162. package/dist-types/commands/SearchPlaceIndexForPositionCommand.d.ts +2 -0
  163. package/dist-types/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +2 -0
  164. package/dist-types/commands/SearchPlaceIndexForTextCommand.d.ts +2 -0
  165. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  166. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  167. package/dist-types/commands/UpdateGeofenceCollectionCommand.d.ts +2 -0
  168. package/dist-types/commands/UpdateMapCommand.d.ts +2 -0
  169. package/dist-types/commands/UpdatePlaceIndexCommand.d.ts +2 -0
  170. package/dist-types/commands/UpdateRouteCalculatorCommand.d.ts +2 -0
  171. package/dist-types/commands/UpdateTrackerCommand.d.ts +2 -0
  172. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  173. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  174. package/dist-types/endpoint/ruleset.d.ts +2 -0
  175. package/dist-types/models/models_0.d.ts +50 -26
  176. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  177. package/dist-types/runtimeConfig.d.ts +4 -2
  178. package/dist-types/runtimeConfig.native.d.ts +4 -2
  179. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  180. package/dist-types/ts3.4/LocationClient.d.ts +15 -8
  181. package/dist-types/ts3.4/commands/AssociateTrackerConsumerCommand.d.ts +2 -0
  182. package/dist-types/ts3.4/commands/BatchDeleteDevicePositionHistoryCommand.d.ts +2 -0
  183. package/dist-types/ts3.4/commands/BatchDeleteGeofenceCommand.d.ts +2 -0
  184. package/dist-types/ts3.4/commands/BatchEvaluateGeofencesCommand.d.ts +2 -0
  185. package/dist-types/ts3.4/commands/BatchGetDevicePositionCommand.d.ts +2 -0
  186. package/dist-types/ts3.4/commands/BatchPutGeofenceCommand.d.ts +2 -0
  187. package/dist-types/ts3.4/commands/BatchUpdateDevicePositionCommand.d.ts +2 -0
  188. package/dist-types/ts3.4/commands/CalculateRouteCommand.d.ts +2 -0
  189. package/dist-types/ts3.4/commands/CalculateRouteMatrixCommand.d.ts +2 -0
  190. package/dist-types/ts3.4/commands/CreateGeofenceCollectionCommand.d.ts +2 -0
  191. package/dist-types/ts3.4/commands/CreateMapCommand.d.ts +2 -0
  192. package/dist-types/ts3.4/commands/CreatePlaceIndexCommand.d.ts +2 -0
  193. package/dist-types/ts3.4/commands/CreateRouteCalculatorCommand.d.ts +2 -0
  194. package/dist-types/ts3.4/commands/CreateTrackerCommand.d.ts +2 -0
  195. package/dist-types/ts3.4/commands/DeleteGeofenceCollectionCommand.d.ts +2 -0
  196. package/dist-types/ts3.4/commands/DeleteMapCommand.d.ts +2 -0
  197. package/dist-types/ts3.4/commands/DeletePlaceIndexCommand.d.ts +2 -0
  198. package/dist-types/ts3.4/commands/DeleteRouteCalculatorCommand.d.ts +2 -0
  199. package/dist-types/ts3.4/commands/DeleteTrackerCommand.d.ts +2 -0
  200. package/dist-types/ts3.4/commands/DescribeGeofenceCollectionCommand.d.ts +2 -0
  201. package/dist-types/ts3.4/commands/DescribeMapCommand.d.ts +2 -0
  202. package/dist-types/ts3.4/commands/DescribePlaceIndexCommand.d.ts +2 -0
  203. package/dist-types/ts3.4/commands/DescribeRouteCalculatorCommand.d.ts +2 -0
  204. package/dist-types/ts3.4/commands/DescribeTrackerCommand.d.ts +2 -0
  205. package/dist-types/ts3.4/commands/DisassociateTrackerConsumerCommand.d.ts +2 -0
  206. package/dist-types/ts3.4/commands/GetDevicePositionCommand.d.ts +2 -0
  207. package/dist-types/ts3.4/commands/GetDevicePositionHistoryCommand.d.ts +2 -0
  208. package/dist-types/ts3.4/commands/GetGeofenceCommand.d.ts +2 -0
  209. package/dist-types/ts3.4/commands/GetMapGlyphsCommand.d.ts +2 -0
  210. package/dist-types/ts3.4/commands/GetMapSpritesCommand.d.ts +2 -0
  211. package/dist-types/ts3.4/commands/GetMapStyleDescriptorCommand.d.ts +2 -0
  212. package/dist-types/ts3.4/commands/GetMapTileCommand.d.ts +2 -0
  213. package/dist-types/ts3.4/commands/GetPlaceCommand.d.ts +2 -0
  214. package/dist-types/ts3.4/commands/ListDevicePositionsCommand.d.ts +2 -0
  215. package/dist-types/ts3.4/commands/ListGeofenceCollectionsCommand.d.ts +2 -0
  216. package/dist-types/ts3.4/commands/ListGeofencesCommand.d.ts +2 -0
  217. package/dist-types/ts3.4/commands/ListMapsCommand.d.ts +2 -0
  218. package/dist-types/ts3.4/commands/ListPlaceIndexesCommand.d.ts +2 -0
  219. package/dist-types/ts3.4/commands/ListRouteCalculatorsCommand.d.ts +2 -0
  220. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  221. package/dist-types/ts3.4/commands/ListTrackerConsumersCommand.d.ts +2 -0
  222. package/dist-types/ts3.4/commands/ListTrackersCommand.d.ts +2 -0
  223. package/dist-types/ts3.4/commands/PutGeofenceCommand.d.ts +2 -0
  224. package/dist-types/ts3.4/commands/SearchPlaceIndexForPositionCommand.d.ts +2 -0
  225. package/dist-types/ts3.4/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +2 -0
  226. package/dist-types/ts3.4/commands/SearchPlaceIndexForTextCommand.d.ts +2 -0
  227. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  228. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  229. package/dist-types/ts3.4/commands/UpdateGeofenceCollectionCommand.d.ts +2 -0
  230. package/dist-types/ts3.4/commands/UpdateMapCommand.d.ts +2 -0
  231. package/dist-types/ts3.4/commands/UpdatePlaceIndexCommand.d.ts +2 -0
  232. package/dist-types/ts3.4/commands/UpdateRouteCalculatorCommand.d.ts +2 -0
  233. package/dist-types/ts3.4/commands/UpdateTrackerCommand.d.ts +2 -0
  234. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  235. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  236. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  237. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  238. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  239. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  240. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  241. package/package.json +5 -3
  242. package/dist-cjs/endpoints.js +0 -132
  243. package/dist-es/endpoints.js +0 -128
  244. package/dist-types/endpoints.d.ts +0 -2
  245. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchEvaluateGeofencesRequestFilterSensitiveLog, BatchEvaluateGeofencesResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class BatchEvaluateGeofencesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchEvaluateGeofencesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchGetDevicePositionRequestFilterSensitiveLog, BatchGetDevicePositionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class BatchGetDevicePositionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchGetDevicePositionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchPutGeofenceRequestFilterSensitiveLog, BatchPutGeofenceResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class BatchPutGeofenceCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchPutGeofenceCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchUpdateDevicePositionRequestFilterSensitiveLog, BatchUpdateDevicePositionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class BatchUpdateDevicePositionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchUpdateDevicePositionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CalculateRouteRequestFilterSensitiveLog, CalculateRouteResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CalculateRouteCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CalculateRouteCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CalculateRouteMatrixRequestFilterSensitiveLog, CalculateRouteMatrixResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CalculateRouteMatrixCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CalculateRouteMatrixCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateGeofenceCollectionRequestFilterSensitiveLog, CreateGeofenceCollectionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateGeofenceCollectionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateGeofenceCollectionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateMapRequestFilterSensitiveLog, CreateMapResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateMapCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateMapCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreatePlaceIndexRequestFilterSensitiveLog, CreatePlaceIndexResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreatePlaceIndexCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreatePlaceIndexCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateRouteCalculatorRequestFilterSensitiveLog, CreateRouteCalculatorResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateRouteCalculatorCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateRouteCalculatorCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateTrackerRequestFilterSensitiveLog, CreateTrackerResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateTrackerCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateTrackerCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteGeofenceCollectionRequestFilterSensitiveLog, DeleteGeofenceCollectionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteGeofenceCollectionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteGeofenceCollectionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteMapRequestFilterSensitiveLog, DeleteMapResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteMapCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteMapCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeletePlaceIndexRequestFilterSensitiveLog, DeletePlaceIndexResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeletePlaceIndexCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeletePlaceIndexCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteRouteCalculatorRequestFilterSensitiveLog, DeleteRouteCalculatorResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteRouteCalculatorCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteRouteCalculatorCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteTrackerRequestFilterSensitiveLog, DeleteTrackerResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteTrackerCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteTrackerCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeGeofenceCollectionRequestFilterSensitiveLog, DescribeGeofenceCollectionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeGeofenceCollectionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeGeofenceCollectionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeMapRequestFilterSensitiveLog, DescribeMapResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeMapCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMapCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribePlaceIndexRequestFilterSensitiveLog, DescribePlaceIndexResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribePlaceIndexCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribePlaceIndexCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeRouteCalculatorRequestFilterSensitiveLog, DescribeRouteCalculatorResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeRouteCalculatorCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeRouteCalculatorCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeTrackerRequestFilterSensitiveLog, DescribeTrackerResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeTrackerCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTrackerCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisassociateTrackerConsumerRequestFilterSensitiveLog, DisassociateTrackerConsumerResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisassociateTrackerConsumerCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateTrackerConsumerCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetDevicePositionRequestFilterSensitiveLog, GetDevicePositionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetDevicePositionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetDevicePositionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetDevicePositionHistoryRequestFilterSensitiveLog, GetDevicePositionHistoryResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetDevicePositionHistoryCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetDevicePositionHistoryCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetGeofenceRequestFilterSensitiveLog, GetGeofenceResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetGeofenceCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetGeofenceCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetMapGlyphsRequestFilterSensitiveLog, GetMapGlyphsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetMapGlyphsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetMapGlyphsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetMapSpritesRequestFilterSensitiveLog, GetMapSpritesResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetMapSpritesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetMapSpritesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "LocationClient";