Skip to main content

maps

Creates, updates, deletes or gets a map resource or lists maps in a region

Overview

Namemaps
TypeResource
DescriptionDefinition of AWS::Location::Map Resource Type
Idawscc.location.maps

Fields

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

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

Methods

NameResourceAccessible byRequired Params
create_resourcemapsINSERTConfiguration, MapName, region
delete_resourcemapsDELETEIdentifier, region
update_resourcemapsUPDATEIdentifier, PatchDocument, region
list_resourcesmaps_list_onlySELECTregion
get_resourcemapsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual map.

SELECT
region,
configuration,
create_time,
description,
map_arn,
map_name,
pricing_plan,
tags,
update_time,
arn
FROM awscc.location.maps
WHERE
region = 'us-east-1' AND
Identifier = '{{ map_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.location.maps (
Configuration,
MapName,
region
)
SELECT
'{{ configuration }}',
'{{ map_name }}',
'{{ region }}';

UPDATE example

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

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

DELETE example

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

Permissions

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

geo:CreateMap,
geo:DescribeMap,
geo:TagResource,
geo:UntagResource