Skip to main content

place_indices

Creates, updates, deletes or gets a place_index resource or lists place_indices in a region

Overview

Nameplace_indices
TypeResource
DescriptionDefinition of AWS::Location::PlaceIndex Resource Type
Idaws.location.place_indices

Fields

NameDatatypeDescription
create_timestringThe datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ)
data_sourcestring
data_source_configurationobject
descriptionstring
index_arnstring
index_namestring
pricing_planstring
tagsarrayAn array of key-value pairs to apply to this resource.
update_timestringThe datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ)
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDataSource, IndexName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all place_indices in a region.

SELECT
region,
create_time,
data_source,
data_source_configuration,
description,
index_arn,
index_name,
pricing_plan,
tags,
update_time,
arn
FROM aws.location.place_indices
WHERE region = 'us-east-1';

Gets all properties from an individual place_index.

SELECT
region,
create_time,
data_source,
data_source_configuration,
description,
index_arn,
index_name,
pricing_plan,
tags,
update_time,
arn
FROM aws.location.place_indices
WHERE region = 'us-east-1' AND data__Identifier = '<IndexName>';

INSERT example

Use the following StackQL query and manifest file to create a new place_index resource, using stack-deploy.

/*+ create */
INSERT INTO aws.location.place_indices (
DataSource,
IndexName,
region
)
SELECT
'{{ DataSource }}',
'{{ IndexName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.location.place_indices
WHERE data__Identifier = '<IndexName>'
AND region = 'us-east-1';

Permissions

To operate on the place_indices resource, the following permissions are required:

Create

geo:CreatePlaceIndex,
geo:DescribePlaceIndex,
geo:TagResource,
geo:UntagResource

Read

geo:DescribePlaceIndex

Update

geo:CreatePlaceIndex,
geo:DescribePlaceIndex,
geo:TagResource,
geo:UntagResource,
geo:UpdatePlaceIndex

Delete

geo:DeletePlaceIndex,
geo:DescribePlaceIndex

List

geo:ListPlaceIndexes