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

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

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

## Example

TypeScript:

```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,
  ],
});
```

Python:

```python
location.ApiKey(self, "APIKeyAny",
    # specify allowed actions
    allow_maps_actions=[location.AllowMapsAction.GET_STATIC_MAP
    ],
    allow_places_actions=[location.AllowPlacesAction.GET_PLACE
    ],
    allow_routes_actions=[location.AllowRoutesAction.CALCULATE_ISOLINES
    ]
)
```

Java:

```java
ApiKey.Builder.create(this, "APIKeyAny")
        // specify allowed actions
        .allowMapsActions(List.of(AllowMapsAction.GET_STATIC_MAP))
        .allowPlacesActions(List.of(AllowPlacesAction.GET_PLACE))
        .allowRoutesActions(List.of(AllowRoutesAction.CALCULATE_ISOLINES))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Location.Alpha
new ApiKey(this, "APIKeyAny", new ApiKeyProps {
    // specify allowed actions
    AllowMapsActions = new [] { AllowMapsAction.GET_STATIC_MAP },
    AllowPlacesActions = new [] { AllowPlacesAction.GET_PLACE },
    AllowRoutesActions = new [] { AllowRoutesAction.CALCULATE_ISOLINES }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdklocationalpha/v2
location.NewApiKey(this, jsii.String("APIKeyAny"), &ApiKeyProps{
	// specify allowed actions
	AllowMapsActions: []AllowMapsAction{
		location.AllowMapsAction_GET_STATIC_MAP,
	},
	AllowPlacesActions: []AllowPlacesAction{
		location.AllowPlacesAction_GET_PLACE,
	},
	AllowRoutesActions: []AllowRoutesAction{
		location.AllowRoutesAction_CALCULATE_ISOLINES,
	},
})
```

## Members

| Member | Description |
| --- | --- |
| `GET_STATIC_MAP` | Allows getting static map images. |
| `GET_TILE` | Allows getting map tiles for rendering. |
| `ANY` | Allows any maps actions. |

## Referenced by

- [`ApiKeyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-location-alpha.ApiKeyProps.html).allowMapsActions
