Skip to main content

core_networks

Creates, updates, deletes or gets a core_network resource or lists core_networks in a region

Overview

Namecore_networks
TypeResource
DescriptionAWS::NetworkManager::CoreNetwork Resource Type Definition.
Idaws.networkmanager.core_networks

Fields

NameDatatypeDescription
global_network_idstringThe ID of the global network that your core network is a part of.
core_network_idstringThe Id of core network
core_network_arnstringThe ARN (Amazon resource name) of core network
policy_documentobjectLive policy document for the core network, you must provide PolicyDocument in Json Format
descriptionstringThe description of core network
created_atstringThe creation time of core network
statestringThe state of core network
segmentsarrayThe segments within a core network.
edgesarrayThe edges within a core network.
owner_accountstringOwner of the core network
tagsarrayThe tags for the global network.
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 core_networks in a region.

SELECT
region,
global_network_id,
core_network_id,
core_network_arn,
policy_document,
description,
created_at,
state,
segments,
edges,
owner_account,
tags
FROM aws.networkmanager.core_networks
WHERE region = 'us-east-1';

Gets all properties from an individual core_network.

SELECT
region,
global_network_id,
core_network_id,
core_network_arn,
policy_document,
description,
created_at,
state,
segments,
edges,
owner_account,
tags
FROM aws.networkmanager.core_networks
WHERE region = 'us-east-1' AND data__Identifier = '<CoreNetworkId>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

networkmanager:CreateCoreNetwork,
networkmanager:GetCoreNetwork,
networkmanager:GetCoreNetworkPolicy,
networkmanager:TagResource,
ec2:DescribeRegions

Read

networkmanager:GetCoreNetwork,
networkmanager:GetCoreNetworkPolicy

Update

networkmanager:UpdateCoreNetwork,
networkmanager:GetCoreNetwork,
networkmanager:ListTagsForResource,
networkmanager:PutCoreNetworkPolicy,
networkmanager:GetCoreNetworkPolicy,
networkmanager:ExecuteCoreNetworkChangeSet,
networkmanager:TagResource,
networkmanager:UntagResource,
ec2:DescribeRegions

Delete

networkmanager:DeleteCoreNetwork,
networkmanager:UntagResource,
networkmanager:GetCoreNetwork,
networkmanager:GetCoreNetworkPolicy,
ec2:DescribeRegions

List

networkmanager:ListCoreNetworks