core_network_policy_versions
Creates, updates, deletes, gets or lists a core_network_policy_versions resource.
Overview
| Name | core_network_policy_versions |
| Type | Resource |
| Id | aws.networkmanager.core_network_policy_versions |
Fields
The following fields are returned by SELECT queries:
- list_core_network_policy_versions
| Name | Datatype | Description |
|---|---|---|
alias | string | Whether a core network policy is the current policy or the most recently submitted policy. (LIVE, LATEST) |
change_set_state | string | The status of the policy version change set. (PENDING_GENERATION, FAILED_GENERATION, READY_TO_EXECUTE, EXECUTING, EXECUTION_SUCCEEDED, OUT_OF_DATE) |
core_network_id | string | The ID of a core network. (pattern: <code>^core-network-([0-9a-f]{8,17})$</code>) |
created_at | string (date-time) | The timestamp when a core network policy version was created. |
description | string | The description of a core network policy version. (pattern: <code>[\s\S]*</code>) |
policy_version_id | integer | The ID of the policy version. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_core_network_policy_versions | select | core_network_id, region | maxResults, nextToken | Returns a list of core network policy versions. |
delete_core_network_policy_version | delete | core_network_id, policy_version_id, region | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
core_network_id | string | The ID of a core network for the deleted policy. |
policy_version_id | integer | The version ID of the deleted policy. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to return. |
nextToken | string | The token for the next page of results. |
SELECT examples
- list_core_network_policy_versions
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
- delete_core_network_policy_version
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
;