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
Idaws.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.
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_resourceINSERTConfiguration, MapName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all maps in a region.

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

Gets all properties from an individual map.

SELECT
region,
configuration,
create_time,
description,
map_arn,
map_name,
pricing_plan,
tags,
update_time,
arn
FROM aws.location.maps
WHERE region = 'us-east-1' AND data__Identifier = '<MapName>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

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

Read

geo:DescribeMap

Update

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

Delete

geo:DeleteMap,
geo:DescribeMap

List

geo:ListMaps