Skip to main content

route_calculators

Creates, updates, deletes or gets a route_calculator resource or lists route_calculators in a region

Overview

Nameroute_calculators
TypeResource
DescriptionDefinition of AWS::Location::RouteCalculator Resource Type
Idaws.location.route_calculators

Fields

NameDatatypeDescription
calculator_arnstring
calculator_namestring
create_timestringThe datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ)
data_sourcestring
descriptionstring
pricing_planstring
tagsarrayAn array of key-value pairs to apply to this resource.
update_timestringThe datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ)
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDataSource, CalculatorName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all route_calculators in a region.

SELECT
region,
calculator_arn,
calculator_name,
create_time,
data_source,
description,
pricing_plan,
tags,
update_time,
arn
FROM aws.location.route_calculators
WHERE region = 'us-east-1';

Gets all properties from an individual route_calculator.

SELECT
region,
calculator_arn,
calculator_name,
create_time,
data_source,
description,
pricing_plan,
tags,
update_time,
arn
FROM aws.location.route_calculators
WHERE region = 'us-east-1' AND data__Identifier = '<CalculatorName>';

INSERT example

Use the following StackQL query and manifest file to create a new route_calculator resource, using stack-deploy.

/*+ create */
INSERT INTO aws.location.route_calculators (
CalculatorName,
DataSource,
region
)
SELECT
'{{ CalculatorName }}',
'{{ DataSource }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.location.route_calculators
WHERE data__Identifier = '<CalculatorName>'
AND region = 'us-east-1';

Permissions

To operate on the route_calculators resource, the following permissions are required:

Create

geo:CreateRouteCalculator,
geo:DescribeRouteCalculator,
geo:TagResource,
geo:UntagResource

Read

geo:DescribeRouteCalculator

Update

geo:CreateRouteCalculator,
geo:DescribeRouteCalculator,
geo:TagResource,
geo:UntagResource,
geo:UpdateRouteCalculator

Delete

geo:DeleteRouteCalculator,
geo:DescribeRouteCalculator

List

geo:ListRouteCalculators