Skip to main content

global_networks

Creates, updates, deletes or gets a global_network resource or lists global_networks in a region

Overview

Nameglobal_networks
TypeResource
DescriptionThe AWS::NetworkManager::GlobalNetwork type specifies a global network of the user's account
Idaws.networkmanager.global_networks

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the global network.
idstringThe ID of the global network.
descriptionstringThe description of the global network.
tagsarrayThe tags for the global network.
created_atstringThe date and time that the global network was created.
statestringThe state of the global network.
regionstringAWS region.

Methods

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

SELECT examples

Gets all global_networks in a region.

SELECT
region,
arn,
id,
description,
tags,
created_at,
state
FROM aws.networkmanager.global_networks
WHERE region = 'us-east-1';

Gets all properties from an individual global_network.

SELECT
region,
arn,
id,
description,
tags,
created_at,
state
FROM aws.networkmanager.global_networks
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.networkmanager.global_networks (
Description,
Tags,
CreatedAt,
State,
region
)
SELECT
'{{ Description }}',
'{{ Tags }}',
'{{ CreatedAt }}',
'{{ State }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkmanager.global_networks
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

networkmanager:CreateGlobalNetwork,
networkmanager:DescribeGlobalNetworks,
networkmanager:TagResource,
iam:CreateServiceLinkedRole

Read

networkmanager:DescribeGlobalNetworks

Update

networkmanager:UpdateGlobalNetwork,
networkmanager:DescribeGlobalNetworks,
networkmanager:TagResource,
networkmanager:UntagResource,
networkmanager:ListTagsForResource

Delete

networkmanager:DeleteGlobalNetwork,
networkmanager:DescribeGlobalNetworks

List

networkmanager:DescribeGlobalNetworks