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.

AllowRoutesAction Enum ​

Actions for Routes 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
CALCULATE_ISOLINESAllows isoline calculation.
CALCULATE_ROUTESAllows point to point routing.
CALCULATE_ROUTE_MATRIXAllows matrix routing.
OPTIMIZE_WAYPOINTSAllows computing the best sequence of waypoints.
SNAP_TO_ROADSAllows snapping GPS points to a likely route.
ANYAllows any routes actions.

Referenced by ​

  • ApiKeyProps.allowRoutesActionsallow_routes_actionsallowRoutesActionsAllowRoutesActionsAllowRoutesActions