Terraform resource for managing an AWS Location Geofence Collection.
resource "aws_location_geofence_collection" "example" {
collection_name = "example"
}
The following arguments are required:
collection_name
- (Required) The name of the geofence collection.The following arguments are optional:
description
- (Optional) The optional description for the geofence collection.kms_key_id
- (Optional) A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.tags
- (Optional) Key-value tags for the geofence collection. 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:
collection_arn
- The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all AWS.create_time
- The timestamp for when the geofence collection resource was created in ISO 8601 format.update_time
- The timestamp for when the geofence collection resource was last updated in ISO 8601 format.create
- (Default 30m
)update
- (Default 30m
)delete
- (Default 30m
)In Terraform v1.5.0 and later, use an import
block to import Location Geofence Collection using the collection_name
. For example:
import {
to = aws_location_geofence_collection.example
id = "example"
}
Using terraform import
, import Location Geofence Collection using the collection_name
. For example:
% terraform import aws_location_geofence_collection.example example