> **Experimental**
>
> `@aws-cdk/aws-location-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# AllowPlacesAction

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

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/api-key.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-location-alpha/lib/api-key.ts#L147)

## 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

| Member | Description |
| --- | --- |
| `AUTOCOMPLETE` | Allows auto-completion of search text. |
| `GEOCODE` | Allows finding geo coordinates of a known place. |
| `GET_PLACE` | Allows getting details of a place. |
| `REVERSE_GEOCODE` | Allows getting nearest address to geo coordinates. |
| `SEARCH_NEARBY` | Allows category based places search around geo coordinates. |
| `SEARCH_TEXT` | Allows place or address search based on free-form text. |
| `SUGGEST` | Allows suggestions based on an incomplete or misspelled query. |
| `ANY` | Allows any places actions. |

## Referenced by

- [`ApiKeyProps`](/v2/docs/@aws-cdk_aws-location-alpha.ApiKeyProps).allowPlacesActions
