Skip to main content

geofence_collections

Creates, updates, deletes, gets or lists a geofence_collections resource.

Overview

Namegeofence_collections
TypeResource
Idaws.location.geofence_collections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
collection_arnstringThe Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all Amazon Web Services. Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection (pattern: <code>arn(:[a-z0-9]+([.-][a-z0-9]+)){2}(:([a-z0-9]+([.-][a-z0-9]+))?){2}:([^/].*)?</code>)
collection_namestringThe name of the geofence collection. (pattern: <code>[-._\w]+</code>)
create_timestring (date-time)The timestamp for when the geofence resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
descriptionstringThe optional description for the geofence collection.
geofence_countintegerThe number of geofences in the geofence collection.
kms_key_idstringA key identifier for an Amazon Web Services KMS customer managed key assigned to the Amazon Location resource
pricing_planstringNo longer used. Always returns RequestBasedUsage. (RequestBasedUsage, MobileAssetTracking, MobileAssetManagement)
pricing_plan_data_sourcestringNo longer used. Always returns an empty string.
tagsobjectDisplays the key, value pairs of tags associated with this resource.
update_timestring (date-time)The timestamp for when the geofence collection was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_geofence_collectionselectcollection_name, regionRetrieves the geofence collection details.
list_geofence_collectionsselectregionLists geofence collections in your Amazon Web Services account.
create_geofence_collectioninsertregion, CollectionNameCreates a geofence collection, which manages and stores geofences.
update_geofence_collectionupdatecollection_name, regionUpdates the specified properties of a given geofence collection.
delete_geofence_collectiondeletecollection_name, regionDeletes a geofence collection from your Amazon Web Services account. This operation deletes the resource permanently. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
collection_namestringThe name of the geofence collection to be deleted.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the geofence collection details.

SELECT
collection_arn,
collection_name,
create_time,
description,
geofence_count,
kms_key_id,
pricing_plan,
pricing_plan_data_source,
tags,
update_time
FROM aws.location.geofence_collections
WHERE collection_name = '{{ collection_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a geofence collection, which manages and stores geofences.

INSERT INTO aws.location.geofence_collections (
CollectionName,
PricingPlan,
PricingPlanDataSource,
Description,
Tags,
KmsKeyId,
region
)
SELECT
'{{ CollectionName }}' /* required */,
'{{ PricingPlan }}',
'{{ PricingPlanDataSource }}',
'{{ Description }}',
'{{ Tags }}',
'{{ KmsKeyId }}',
'{{ region }}'
RETURNING
collection_arn,
collection_name,
create_time
;

UPDATE examples

Updates the specified properties of a given geofence collection.

UPDATE aws.location.geofence_collections
SET
PricingPlan = '{{ PricingPlan }}',
PricingPlanDataSource = '{{ PricingPlanDataSource }}',
Description = '{{ Description }}'
WHERE
collection_name = '{{ collection_name }}' --required
AND region = '{{ region }}' --required
RETURNING
collection_arn,
collection_name,
update_time;

DELETE examples

Deletes a geofence collection from your Amazon Web Services account. This operation deletes the resource permanently. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored.

DELETE FROM aws.location.geofence_collections
WHERE collection_name = '{{ collection_name }}' --required
AND region = '{{ region }}' --required
;