Skip to content

Commit 9e9ef3f

Browse files
author
awstools
committed
feat(client-location): This release adds support for authenticating with Amazon Location Service's Places & Routes APIs with an API Key. Also, with this release developers can publish tracked device position updates to Amazon EventBridge.
1 parent 18a5919 commit 9e9ef3f

16 files changed

+289
-79
lines changed

clients/client-location/src/commands/CalculateRouteCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
117117
* Unit: "STRING_VALUE",
118118
* },
119119
* },
120+
* Key: "STRING_VALUE",
120121
* };
121122
* const command = new CalculateRouteCommand(input);
122123
* const response = await client.send(command);

clients/client-location/src/commands/CalculateRouteMatrixCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixR
123123
* Unit: "STRING_VALUE",
124124
* },
125125
* },
126+
* Key: "STRING_VALUE",
126127
* };
127128
* const command = new CalculateRouteMatrixCommand(input);
128129
* const response = await client.send(command);

clients/client-location/src/commands/CreateKeyCommand.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
3737
/**
3838
* @public
3939
* <p>Creates an API key resource in your Amazon Web Services account, which lets you grant
40-
* <code>geo:GetMap*</code> actions for Amazon Location Map resources to the API key
41-
* bearer.</p>
42-
* <important>
43-
* <p>The API keys feature is in preview. We may add, change, or remove
44-
* features before announcing general availability. For more information, see
45-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
46-
* </important>
40+
* actions for Amazon Location resources to the API key bearer.</p>
41+
* <note>
42+
* <p>For more information, see <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
43+
* </note>
4744
* @example
4845
* Use a bare-bones client and the command you need to make an API call.
4946
* ```javascript

clients/client-location/src/commands/CreateTrackerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface CreateTrackerCommandOutput extends CreateTrackerResponse, __Met
5454
* "<keys>": "STRING_VALUE",
5555
* },
5656
* PositionFiltering: "STRING_VALUE",
57+
* EventBridgeEnabled: true || false,
5758
* };
5859
* const command = new CreateTrackerCommand(input);
5960
* const response = await client.send(command);

clients/client-location/src/commands/DescribeKeyCommand.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ export interface DescribeKeyCommandOutput extends DescribeKeyResponse, __Metadat
3737
/**
3838
* @public
3939
* <p>Retrieves the API key resource details.</p>
40-
* <important>
41-
* <p>The API keys feature is in preview. We may add, change, or remove
42-
* features before announcing general availability. For more information, see
43-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
44-
* </important>
4540
* @example
4641
* Use a bare-bones client and the command you need to make an API call.
4742
* ```javascript

clients/client-location/src/commands/DescribeTrackerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface DescribeTrackerCommandOutput extends DescribeTrackerResponse, _
6161
* // UpdateTime: new Date("TIMESTAMP"), // required
6262
* // KmsKeyId: "STRING_VALUE",
6363
* // PositionFiltering: "STRING_VALUE",
64+
* // EventBridgeEnabled: true || false,
6465
* // };
6566
*
6667
* ```

clients/client-location/src/commands/GetPlaceCommand.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ import {
1414
} from "@smithy/types";
1515

1616
import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
17-
import { GetPlaceRequest, GetPlaceResponse, GetPlaceResponseFilterSensitiveLog } from "../models/models_0";
17+
import {
18+
GetPlaceRequest,
19+
GetPlaceRequestFilterSensitiveLog,
20+
GetPlaceResponse,
21+
GetPlaceResponseFilterSensitiveLog,
22+
} from "../models/models_0";
1823
import { de_GetPlaceCommand, se_GetPlaceCommand } from "../protocols/Aws_restJson1";
1924

2025
/**
@@ -63,6 +68,7 @@ export interface GetPlaceCommandOutput extends GetPlaceResponse, __MetadataBeare
6368
* IndexName: "STRING_VALUE", // required
6469
* PlaceId: "STRING_VALUE", // required
6570
* Language: "STRING_VALUE",
71+
* Key: "STRING_VALUE",
6672
* };
6773
* const command = new GetPlaceCommand(input);
6874
* const response = await client.send(command);
@@ -172,7 +178,7 @@ export class GetPlaceCommand extends $Command<
172178
logger,
173179
clientName,
174180
commandName,
175-
inputFilterSensitiveLog: (_: any) => _,
181+
inputFilterSensitiveLog: GetPlaceRequestFilterSensitiveLog,
176182
outputFilterSensitiveLog: GetPlaceResponseFilterSensitiveLog,
177183
};
178184
const { requestHandler } = configuration;

clients/client-location/src/commands/ListKeysCommand.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ export interface ListKeysCommandOutput extends ListKeysResponse, __MetadataBeare
3737
/**
3838
* @public
3939
* <p>Lists API key resources in your Amazon Web Services account.</p>
40-
* <important>
41-
* <p>The API keys feature is in preview. We may add, change, or remove
42-
* features before announcing general availability. For more information, see
43-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
44-
* </important>
4540
* @example
4641
* Use a bare-bones client and the command you need to make an API call.
4742
* ```javascript

clients/client-location/src/commands/SearchPlaceIndexForPositionCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface SearchPlaceIndexForPositionCommandOutput
6161
* ],
6262
* MaxResults: Number("int"),
6363
* Language: "STRING_VALUE",
64+
* Key: "STRING_VALUE",
6465
* };
6566
* const command = new SearchPlaceIndexForPositionCommand(input);
6667
* const response = await client.send(command);

clients/client-location/src/commands/SearchPlaceIndexForSuggestionsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export interface SearchPlaceIndexForSuggestionsCommandOutput
8181
* FilterCategories: [ // FilterPlaceCategoryList
8282
* "STRING_VALUE",
8383
* ],
84+
* Key: "STRING_VALUE",
8485
* };
8586
* const command = new SearchPlaceIndexForSuggestionsCommand(input);
8687
* const response = await client.send(command);

0 commit comments

Comments
 (0)