The CDK Construct Library for AWS::Location
Project description
AWS::Location Construct Library
---The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
This module is part of the AWS Cloud Development Kit project.
Amazon Location Service lets you add location data and functionality to applications, which includes capabilities such as maps, points of interest, geocoding, routing, geofences, and tracking. Amazon Location provides location-based services (LBS) using high-quality data from global, trusted providers Esri and HERE. With affordable data, tracking and geofencing capabilities, and built-in metrics for health monitoring, you can build sophisticated location-enabled applications.
Place Index
A key function of Amazon Location Service is the ability to search the geolocation information. Amazon Location provides this functionality via the Place index resource. The place index includes which data provider to use for the search.
To create a place index, define a PlaceIndex
:
location.PlaceIndex(self, "PlaceIndex",
place_index_name="MyPlaceIndex", # optional, defaults to a generated name
data_source=location.DataSource.HERE
)
Use the grant()
or grantSearch()
method to grant the given identity permissions to perform actions
on the place index:
# role: iam.Role
place_index = location.PlaceIndex(self, "PlaceIndex")
place_index.grant_search(role)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aws-cdk.aws-location-alpha-2.114.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78c8de92c62616e83469bf7f20163540c125940c4bfb1f63a9ac257d86c8e571 |
|
MD5 | 3d30688b77ddd8ac056f450ca58891ef |
|
BLAKE2b-256 | 5d9c6b4a3cdd0e9edfab0e5dc7a6f89925ff946c916b2bc8aa6330a28d67d1e7 |
Hashes for aws_cdk.aws_location_alpha-2.114.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb09de47f2dd2e78e4871b1866544a305cd2be0b96fd93401091dbe5fa45dd8 |
|
MD5 | 0d2f98caa8692d356ccab14dd708030d |
|
BLAKE2b-256 | f3bbf8fc1d4170d34b6370c84a9a8af00de8c3d61e80811661f8f5bc8e36782d |