Skip to main content

core_networks

Creates, updates, deletes, gets or lists a core_networks resource.

Overview

Namecore_networks
TypeResource
Idaws.networkmanager.core_networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
core_network_arnstringThe ARN of a core network. (pattern: <code>[\s\S]*</code>)
core_network_idstringThe ID of a core network. (pattern: <code>^core-network-([0-9a-f]{8,17})$</code>)
created_atstring (date-time)The timestamp when a core network was created.
descriptionstringThe description of a core network. (pattern: <code>[\s\S]*</code>)
edgesarrayThe edges within a core network.
global_network_idstringThe ID of the global network that your core network is a part of. (pattern: <code>[\s\S]*</code>)
network_function_groupsarrayThe network function groups associated with a core network.
segmentsarrayThe segments within a core network.
statestringThe current state of a core network. (CREATING, UPDATING, AVAILABLE, DELETING)
tagsarrayThe list of key-value tags associated with a core network.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_core_networkselectcore_network_id, regionReturns information about the LIVE policy for a core network.
list_core_networksselectregionmaxResults, nextTokenReturns a list of owned and shared core networks.
create_core_networkinsertregion, GlobalNetworkIdCreates a core network as part of your global network, and optionally, with a core network policy.
update_core_networkupdatecore_network_id, regionUpdates the description of a core network.
delete_core_networkdeletecore_network_id, regionDeletes a core network along with all core network policies. This can only be done if there are no attachments on a core network.
execute_core_network_change_setexeccore_network_id, policy_version_id, regionExecutes a change set on your core network. Deploys changes globally based on the policy submitted..

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
core_network_idstringThe ID of a core network.
policy_version_idintegerThe ID of the policy version.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.

SELECT examples

Returns information about the LIVE policy for a core network.

SELECT
core_network_arn,
core_network_id,
created_at,
description,
edges,
global_network_id,
network_function_groups,
segments,
state,
tags
FROM aws.networkmanager.core_networks
WHERE core_network_id = '{{ core_network_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a core network as part of your global network, and optionally, with a core network policy.

INSERT INTO aws.networkmanager.core_networks (
GlobalNetworkId,
Description,
Tags,
PolicyDocument,
ClientToken,
region
)
SELECT
'{{ GlobalNetworkId }}' /* required */,
'{{ Description }}',
'{{ Tags }}',
'{{ PolicyDocument }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
core_network
;

UPDATE examples

Updates the description of a core network.

UPDATE aws.networkmanager.core_networks
SET
Description = '{{ Description }}'
WHERE
core_network_id = '{{ core_network_id }}' --required
AND region = '{{ region }}' --required
RETURNING
core_network;

DELETE examples

Deletes a core network along with all core network policies. This can only be done if there are no attachments on a core network.

DELETE FROM aws.networkmanager.core_networks
WHERE core_network_id = '{{ core_network_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Executes a change set on your core network. Deploys changes globally based on the policy submitted..

EXEC aws.networkmanager.core_networks.execute_core_network_change_set
@core_network_id='{{ core_network_id }}' --required,
@policy_version_id='{{ policy_version_id }}' --required,
@region='{{ region }}' --required
;