Skip to main content

sites

Creates, updates, deletes or gets a site resource or lists sites in a region

Overview

Namesites
TypeResource
DescriptionThe AWS::NetworkManager::Site type describes a site.
Idaws.networkmanager.sites

Fields

NameDatatypeDescription
site_arnstringThe Amazon Resource Name (ARN) of the site.
site_idstringThe ID of the site.
descriptionstringThe description of the site.
tagsarrayThe tags for the site.
global_network_idstringThe ID of the global network.
locationobjectThe location of the site.
created_atstringThe date and time that the device was created.
statestringThe state of the site.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTGlobalNetworkId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all sites in a region.

SELECT
region,
site_arn,
site_id,
description,
tags,
global_network_id,
location,
created_at,
state
FROM aws.networkmanager.sites
WHERE region = 'us-east-1';

Gets all properties from an individual site.

SELECT
region,
site_arn,
site_id,
description,
tags,
global_network_id,
location,
created_at,
state
FROM aws.networkmanager.sites
WHERE region = 'us-east-1' AND data__Identifier = '<GlobalNetworkId>|<SiteId>';

INSERT example

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

/*+ create */
INSERT INTO aws.networkmanager.sites (
GlobalNetworkId,
region
)
SELECT
'{{ GlobalNetworkId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkmanager.sites
WHERE data__Identifier = '<GlobalNetworkId|SiteId>'
AND region = 'us-east-1';

Permissions

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

Create

networkmanager:CreateSite,
networkmanager:GetSites,
networkmanager:TagResource

Read

networkmanager:GetSites

Update

networkmanager:GetSites,
networkmanager:ListTagsForResource,
networkmanager:TagResource,
networkmanager:UntagResource,
networkmanager:UpdateSite

Delete

networkmanager:GetSites,
networkmanager:DeleteSite

List

networkmanager:GetSites