route_calculators
Creates, updates, deletes or gets a route_calculator
resource or lists route_calculators
in a region
Overview
Name | route_calculators |
Type | Resource |
Description | Definition of AWS::Location::RouteCalculator Resource Type |
Id | aws.location.route_calculators |
Fields
Name | Datatype | Description |
---|---|---|
calculator_arn | string | |
calculator_name | string | |
create_time | string | The datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ) |
data_source | string | |
description | string | |
pricing_plan | string | |
tags | array | An array of key-value pairs to apply to this resource. |
update_time | string | The datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ) |
arn | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | DataSource, CalculatorName, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.location.route_calculators (
CalculatorName,
DataSource,
region
)
SELECT
'{{ CalculatorName }}',
'{{ DataSource }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.location.route_calculators (
CalculatorName,
DataSource,
Description,
PricingPlan,
Tags,
region
)
SELECT
'{{ CalculatorName }}',
'{{ DataSource }}',
'{{ Description }}',
'{{ PricingPlan }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: route_calculator
props:
- name: CalculatorName
value: '{{ CalculatorName }}'
- name: DataSource
value: '{{ DataSource }}'
- name: Description
value: '{{ Description }}'
- name: PricingPlan
value: '{{ PricingPlan }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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