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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.location.place_indices
WHERE
Identifier = '{{ index_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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