maps
Creates, updates, deletes or gets a map
resource or lists maps
in a region
Overview
Name | maps |
Type | Resource |
Description | Definition of AWS::Location::Map Resource Type |
Id | aws.location.maps |
Fields
Name | Datatype | Description |
---|---|---|
configuration | object | |
create_time | string | The datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ) |
description | string | |
map_arn | string | |
map_name | string | |
pricing_plan | string | |
tags | array | An array of key-value pairs to apply to this resource. |
update_time | string | The datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ) |
arn | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Configuration, MapName, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.location.maps (
Configuration,
MapName,
region
)
SELECT
'{{ Configuration }}',
'{{ MapName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.location.maps (
Configuration,
Description,
MapName,
PricingPlan,
Tags,
region
)
SELECT
'{{ Configuration }}',
'{{ Description }}',
'{{ MapName }}',
'{{ PricingPlan }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: map
props:
- name: Configuration
value:
Style: '{{ Style }}'
PoliticalView: '{{ PoliticalView }}'
CustomLayers:
- '{{ CustomLayers[0] }}'
- name: Description
value: '{{ Description }}'
- name: MapName
value: '{{ MapName }}'
- name: PricingPlan
value: '{{ PricingPlan }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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