Provides a Location Service Route Calculator.
resource "aws_location_route_calculator" "example" {
calculator_name = "example"
data_source = "Here"
}
The following arguments are required:
calculator_name
- (Required) The name of the route calculator resource.data_source
- (Required) Specifies the data provider of traffic and road network data.The following arguments are optional:
description
- (Optional) The optional description for the route calculator resource.tags
- (Optional) Key-value tags for the route calculator. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
calculator_arn
- The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.create_time
- The timestamp for when the route calculator resource was created in ISO 8601 format.update_time
- The timestamp for when the route calculator resource was last update in ISO 8601.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.create
- (Default 30m
)update
- (Default 30m
)delete
- (Default 30m
)In Terraform v1.5.0 and later, use an import
block to import aws_location_route_calculator
using the route calculator name. For example:
import {
to = aws_location_route_calculator.example
id = "example"
}
Using terraform import
, import aws_location_route_calculator
using the route calculator name. For example:
% terraform import aws_location_route_calculator.example example