Provides a Location Service Place Index.
resource "aws_location_place_index" "example" {
data_source = "Here"
index_name = "example"
}
The following arguments are required:
data_source
- (Required) Specifies the geospatial data provider for the new place index.index_name
- (Required) The name of the place index resource.The following arguments are optional:
data_source_configuration
- (Optional) Configuration block with the data storage option chosen for requesting Places. Detailed below.description
- (Optional) The optional description for the place index resource.tags
- (Optional) Key-value tags for the place index. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following arguments are optional:
intended_use
- (Optional) Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse
, Storage
. Default: SingleUse
.This resource exports the following attributes in addition to the arguments above:
create_time
- The timestamp for when the place index resource was created in ISO 8601 format.index_arn
- The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.update_time
- The timestamp for when the place index resource was last update in ISO 8601.In Terraform v1.5.0 and later, use an import
block to import aws_location_place_index
resources using the place index name. For example:
import {
to = aws_location_place_index.example
id = "example"
}
Using terraform import
, import aws_location_place_index
resources using the place index name. For example:
% terraform import aws_location_place_index.example example