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
Idawscc.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.
arnstring
regionstringAWS region.

For more information, see AWS::Location::PlaceIndex.

Methods

NameResourceAccessible byRequired Params
create_resourceplace_indicesINSERTDataSource, IndexName, region
delete_resourceplace_indicesDELETEIdentifier, region
update_resourceplace_indicesUPDATEIdentifier, PatchDocument, region
list_resourcesplace_indices_list_onlySELECTregion
get_resourceplace_indicesSELECTIdentifier, region

SELECT examples

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 awscc.location.place_indices
WHERE
region = 'us-east-1' AND
Identifier = '{{ index_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.location.place_indices
SET PatchDocument = string('{{ {
"DataSourceConfiguration": data_source_configuration,
"Description": description,
"PricingPlan": pricing_plan,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ index_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.location.place_indices
WHERE
Identifier = '{{ index_name }}' AND
region = 'us-east-1';

Permissions

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

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