Skip to main content

core_network_policy_versions

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

Overview

Namecore_network_policy_versions
TypeResource
Idaws.networkmanager.core_network_policy_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aliasstringWhether a core network policy is the current policy or the most recently submitted policy. (LIVE, LATEST)
change_set_statestringThe status of the policy version change set. (PENDING_GENERATION, FAILED_GENERATION, READY_TO_EXECUTE, EXECUTING, EXECUTION_SUCCEEDED, OUT_OF_DATE)
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 policy version was created.
descriptionstringThe description of a core network policy version. (pattern: <code>[\s\S]*</code>)
policy_version_idintegerThe ID of the policy version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_core_network_policy_versionsselectcore_network_id, regionmaxResults, nextTokenReturns a list of core network policy versions.
delete_core_network_policy_versiondeletecore_network_id, policy_version_id, regionDeletes a policy version from a core network. You can't delete the current LIVE policy.

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 for the deleted policy.
policy_version_idintegerThe version ID of the deleted policy.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.

SELECT examples

Returns a list of core network policy versions.

SELECT
alias,
change_set_state,
core_network_id,
created_at,
description,
policy_version_id
FROM aws.networkmanager.core_network_policy_versions
WHERE core_network_id = '{{ core_network_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

DELETE examples

Deletes a policy version from a core network. You can't delete the current LIVE policy.

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