@aws-sdk/client-location 3.276.0 → 3.278.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 (67) hide show
  1. package/dist-cjs/Location.js +75 -0
  2. package/dist-cjs/commands/CreateKeyCommand.js +46 -0
  3. package/dist-cjs/commands/DeleteKeyCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeKeyCommand.js +46 -0
  5. package/dist-cjs/commands/ListKeysCommand.js +46 -0
  6. package/dist-cjs/commands/UpdateKeyCommand.js +46 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/endpoint/ruleset.js +3 -3
  9. package/dist-cjs/models/models_0.js +80 -22
  10. package/dist-cjs/pagination/ListKeysPaginator.js +36 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +544 -3
  13. package/dist-es/Location.js +75 -0
  14. package/dist-es/commands/CreateKeyCommand.js +42 -0
  15. package/dist-es/commands/DeleteKeyCommand.js +42 -0
  16. package/dist-es/commands/DescribeKeyCommand.js +42 -0
  17. package/dist-es/commands/ListKeysCommand.js +42 -0
  18. package/dist-es/commands/UpdateKeyCommand.js +42 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +60 -15
  22. package/dist-es/pagination/ListKeysPaginator.js +32 -0
  23. package/dist-es/pagination/index.js +1 -0
  24. package/dist-es/protocols/Aws_restJson1.js +531 -0
  25. package/dist-types/Location.d.ts +82 -24
  26. package/dist-types/LocationClient.d.ts +7 -2
  27. package/dist-types/commands/CreateKeyCommand.d.ts +44 -0
  28. package/dist-types/commands/CreateMapCommand.d.ts +2 -2
  29. package/dist-types/commands/CreatePlaceIndexCommand.d.ts +2 -2
  30. package/dist-types/commands/CreateRouteCalculatorCommand.d.ts +2 -2
  31. package/dist-types/commands/CreateTrackerCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteGeofenceCollectionCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteKeyCommand.d.ts +38 -0
  34. package/dist-types/commands/DeleteMapCommand.d.ts +1 -1
  35. package/dist-types/commands/DeletePlaceIndexCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteRouteCalculatorCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteTrackerCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeKeyCommand.d.ts +42 -0
  39. package/dist-types/commands/GetPlaceCommand.d.ts +2 -2
  40. package/dist-types/commands/ListGeofenceCollectionsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListKeysCommand.d.ts +42 -0
  42. package/dist-types/commands/ListMapsCommand.d.ts +1 -1
  43. package/dist-types/commands/ListPlaceIndexesCommand.d.ts +1 -1
  44. package/dist-types/commands/ListRouteCalculatorsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListTrackersCommand.d.ts +1 -1
  46. package/dist-types/commands/TagResourceCommand.d.ts +5 -5
  47. package/dist-types/commands/UpdateKeyCommand.d.ts +42 -0
  48. package/dist-types/commands/index.d.ts +5 -0
  49. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/models/models_0.d.ts +548 -67
  51. package/dist-types/pagination/ListKeysPaginator.d.ts +4 -0
  52. package/dist-types/pagination/index.d.ts +1 -0
  53. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  54. package/dist-types/ts3.4/Location.d.ts +85 -0
  55. package/dist-types/ts3.4/LocationClient.d.ts +30 -0
  56. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +34 -0
  57. package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +34 -0
  58. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +34 -0
  59. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +34 -0
  60. package/dist-types/ts3.4/commands/UpdateKeyCommand.d.ts +34 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  62. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  63. package/dist-types/ts3.4/models/models_0.d.ts +131 -15
  64. package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  67. package/package.json +4 -4
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
5
+ import { ListKeysRequest, ListKeysResponse } from "../models/models_0";
6
+ export interface ListKeysCommandInput extends ListKeysRequest {
7
+ }
8
+ export interface ListKeysCommandOutput extends ListKeysResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Lists API key resources in your Amazon Web Services account.</p>
12
+ * <important>
13
+ * <p>The API keys feature is in preview. We may add, change, or remove
14
+ * features before announcing general availability. For more information, see
15
+ * <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
16
+ * </important>
17
+ * @example
18
+ * Use a bare-bones client and the command you need to make an API call.
19
+ * ```javascript
20
+ * import { LocationClient, ListKeysCommand } from "@aws-sdk/client-location"; // ES Modules import
21
+ * // const { LocationClient, ListKeysCommand } = require("@aws-sdk/client-location"); // CommonJS import
22
+ * const client = new LocationClient(config);
23
+ * const command = new ListKeysCommand(input);
24
+ * const response = await client.send(command);
25
+ * ```
26
+ *
27
+ * @see {@link ListKeysCommandInput} for command's `input` shape.
28
+ * @see {@link ListKeysCommandOutput} for command's `response` shape.
29
+ * @see {@link LocationClientResolvedConfig | config} for LocationClient's `config` shape.
30
+ *
31
+ */
32
+ export declare class ListKeysCommand extends $Command<ListKeysCommandInput, ListKeysCommandOutput, LocationClientResolvedConfig> {
33
+ readonly input: ListKeysCommandInput;
34
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
35
+ constructor(input: ListKeysCommandInput);
36
+ /**
37
+ * @internal
38
+ */
39
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LocationClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListKeysCommandInput, ListKeysCommandOutput>;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -8,7 +8,7 @@ export interface ListMapsCommandInput extends ListMapsRequest {
8
8
  export interface ListMapsCommandOutput extends ListMapsResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Lists map resources in your AWS account.</p>
11
+ * <p>Lists map resources in your Amazon Web Services account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -8,7 +8,7 @@ export interface ListPlaceIndexesCommandInput extends ListPlaceIndexesRequest {
8
8
  export interface ListPlaceIndexesCommandOutput extends ListPlaceIndexesResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Lists place index resources in your AWS account.</p>
11
+ * <p>Lists place index resources in your Amazon Web Services account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -8,7 +8,7 @@ export interface ListRouteCalculatorsCommandInput extends ListRouteCalculatorsRe
8
8
  export interface ListRouteCalculatorsCommandOutput extends ListRouteCalculatorsResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Lists route calculator resources in your AWS account.</p>
11
+ * <p>Lists route calculator resources in your Amazon Web Services account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -8,7 +8,7 @@ export interface ListTrackersCommandInput extends ListTrackersRequest {
8
8
  export interface ListTrackersCommandOutput extends ListTrackersResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Lists tracker resources in your AWS account.</p>
11
+ * <p>Lists tracker resources in your Amazon Web Services account.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -8,11 +8,11 @@ export interface TagResourceCommandInput extends TagResourceRequest {
8
8
  export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Assigns one or more tags (key-value pairs) to the specified Amazon
12
- * Location Service resource.</p>
13
- * <p>Tags can help you organize and categorize your resources.
14
- * You can also use them to scope user permissions, by granting a user
15
- * permission to access or change only resources with certain tag values.</p>
11
+ * <p>Assigns one or more tags (key-value pairs) to the specified Amazon Location Service
12
+ * resource.</p>
13
+ * <p>Tags can help you organize and categorize your resources. You can also use them to
14
+ * scope user permissions, by granting a user permission to access or change only resources
15
+ * with certain tag values.</p>
16
16
  * <p>You can use the <code>TagResource</code> operation with an Amazon Location Service
17
17
  * resource that already has tags. If you specify a new tag key for the resource, this tag
18
18
  * is appended to the tags already associated with the resource. If you specify a tag key
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
5
+ import { UpdateKeyRequest, UpdateKeyResponse } from "../models/models_0";
6
+ export interface UpdateKeyCommandInput extends UpdateKeyRequest {
7
+ }
8
+ export interface UpdateKeyCommandOutput extends UpdateKeyResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Updates the specified properties of a given API key resource.</p>
12
+ * <important>
13
+ * <p>The API keys feature is in preview. We may add, change, or remove
14
+ * features before announcing general availability. For more information, see
15
+ * <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
16
+ * </important>
17
+ * @example
18
+ * Use a bare-bones client and the command you need to make an API call.
19
+ * ```javascript
20
+ * import { LocationClient, UpdateKeyCommand } from "@aws-sdk/client-location"; // ES Modules import
21
+ * // const { LocationClient, UpdateKeyCommand } = require("@aws-sdk/client-location"); // CommonJS import
22
+ * const client = new LocationClient(config);
23
+ * const command = new UpdateKeyCommand(input);
24
+ * const response = await client.send(command);
25
+ * ```
26
+ *
27
+ * @see {@link UpdateKeyCommandInput} for command's `input` shape.
28
+ * @see {@link UpdateKeyCommandOutput} for command's `response` shape.
29
+ * @see {@link LocationClientResolvedConfig | config} for LocationClient's `config` shape.
30
+ *
31
+ */
32
+ export declare class UpdateKeyCommand extends $Command<UpdateKeyCommandInput, UpdateKeyCommandOutput, LocationClientResolvedConfig> {
33
+ readonly input: UpdateKeyCommandInput;
34
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
35
+ constructor(input: UpdateKeyCommandInput);
36
+ /**
37
+ * @internal
38
+ */
39
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LocationClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateKeyCommandInput, UpdateKeyCommandOutput>;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -8,16 +8,19 @@ export * from "./BatchUpdateDevicePositionCommand";
8
8
  export * from "./CalculateRouteCommand";
9
9
  export * from "./CalculateRouteMatrixCommand";
10
10
  export * from "./CreateGeofenceCollectionCommand";
11
+ export * from "./CreateKeyCommand";
11
12
  export * from "./CreateMapCommand";
12
13
  export * from "./CreatePlaceIndexCommand";
13
14
  export * from "./CreateRouteCalculatorCommand";
14
15
  export * from "./CreateTrackerCommand";
15
16
  export * from "./DeleteGeofenceCollectionCommand";
17
+ export * from "./DeleteKeyCommand";
16
18
  export * from "./DeleteMapCommand";
17
19
  export * from "./DeletePlaceIndexCommand";
18
20
  export * from "./DeleteRouteCalculatorCommand";
19
21
  export * from "./DeleteTrackerCommand";
20
22
  export * from "./DescribeGeofenceCollectionCommand";
23
+ export * from "./DescribeKeyCommand";
21
24
  export * from "./DescribeMapCommand";
22
25
  export * from "./DescribePlaceIndexCommand";
23
26
  export * from "./DescribeRouteCalculatorCommand";
@@ -34,6 +37,7 @@ export * from "./GetPlaceCommand";
34
37
  export * from "./ListDevicePositionsCommand";
35
38
  export * from "./ListGeofenceCollectionsCommand";
36
39
  export * from "./ListGeofencesCommand";
40
+ export * from "./ListKeysCommand";
37
41
  export * from "./ListMapsCommand";
38
42
  export * from "./ListPlaceIndexesCommand";
39
43
  export * from "./ListRouteCalculatorsCommand";
@@ -47,6 +51,7 @@ export * from "./SearchPlaceIndexForTextCommand";
47
51
  export * from "./TagResourceCommand";
48
52
  export * from "./UntagResourceCommand";
49
53
  export * from "./UpdateGeofenceCollectionCommand";
54
+ export * from "./UpdateKeyCommand";
50
55
  export * from "./UpdateMapCommand";
51
56
  export * from "./UpdatePlaceIndexCommand";
52
57
  export * from "./UpdateRouteCalculatorCommand";
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;