enum AllowRoutesAction
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Location.Alpha.AllowRoutesAction |
Go | github.com/aws/aws-cdk-go/awscdklocationalpha/v2#AllowRoutesAction |
Java | software.amazon.awscdk.services.location.alpha.AllowRoutesAction |
Python | aws_cdk.aws_location_alpha.AllowRoutesAction |
TypeScript (source) | @aws-cdk/aws-location-alpha ยป AllowRoutesAction |
Actions for Routes that an API key resource grants permissions to perform.
Example
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
| Name | Description |
|---|---|
| CALCULATE_ISOLINES | Allows isoline calculation. |
| CALCULATE_ROUTES | Allows point to point routing. |
| CALCULATE_ROUTE_MATRIX | Allows matrix routing. |
| OPTIMIZE_WAYPOINTS | Allows computing the best sequence of waypoints. |
| SNAP_TO_ROADS | Allows snapping GPS points to a likely route. |
| ANY | Allows any routes actions. |
CALCULATE_ISOLINES
Allows isoline calculation.
CALCULATE_ROUTES
Allows point to point routing.
CALCULATE_ROUTE_MATRIX
Allows matrix routing.
OPTIMIZE_WAYPOINTS
Allows computing the best sequence of waypoints.
SNAP_TO_ROADS
Allows snapping GPS points to a likely route.
ANY
Allows any routes actions.

.NET
Go
Java
Python
TypeScript (