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.
Idawscc.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.
network_function_groupsarrayThe network function groups within a core network.
edgesarrayThe edges within a core network.
owner_accountstringOwner of the core network
tagsarrayThe tags for the global network.
regionstringAWS region.

For more information, see AWS::NetworkManager::CoreNetwork.

Methods

NameResourceAccessible byRequired Params
create_resourcecore_networksINSERTGlobalNetworkId, region
delete_resourcecore_networksDELETEIdentifier, region
update_resourcecore_networksUPDATEIdentifier, PatchDocument, region
list_resourcescore_networks_list_onlySELECTregion
get_resourcecore_networksSELECTIdentifier, region

SELECT examples

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,
network_function_groups,
edges,
owner_account,
tags
FROM awscc.networkmanager.core_networks
WHERE
region = '{{ region }}' AND
Identifier = '{{ core_network_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.networkmanager.core_networks (
GlobalNetworkId,
region
)
SELECT
'{{ global_network_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.networkmanager.core_networks
SET PatchDocument = string('{{ {
"PolicyDocument": policy_document,
"Description": description,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ core_network_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.networkmanager.core_networks
WHERE
Identifier = '{{ core_network_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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