Skip to content
v2.274.0

Experimental

@aws-cdk/aws-location-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AllowPlacesAction Enum ​

Actions for Places that an API key resource grants permissions to perform.

Example ​

ts
new location.ApiKey(this, 'APIKeyAny', {
  // specify allowed actions
  allowMapsActions: [
    location.AllowMapsAction.GET_STATIC_MAP,
  ],
  allowPlacesActions: [
    location.AllowPlacesAction.GET_PLACE,
  ],
  allowRoutesActions: [
    location.AllowRoutesAction.CALCULATE_ISOLINES,
  ],
});

Members ​

MemberDescription
AUTOCOMPLETEAllows auto-completion of search text.
GEOCODEAllows finding geo coordinates of a known place.
GET_PLACEAllows getting details of a place.
REVERSE_GEOCODEAllows getting nearest address to geo coordinates.
SEARCH_NEARBYAllows category based places search around geo coordinates.
SEARCH_TEXTAllows place or address search based on free-form text.
SUGGESTAllows suggestions based on an incomplete or misspelled query.
ANYAllows any places actions.

Referenced by ​

  • ApiKeyProps.allowPlacesActionsallow_places_actionsallowPlacesActionsAllowPlacesActionsAllowPlacesActions