Skip to main content

core_network_prefix_list_associations

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

Overview

Namecore_network_prefix_list_associations
TypeResource
Idaws.networkmanager.core_network_prefix_list_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
core_network_idstringThe core network id in the association. (pattern: <code>^core-network-([0-9a-f]{8,17})$</code>)
prefix_list_aliasstringThe alias of the prefix list in the association. (pattern: <code>[\s\S]*</code>)
prefix_list_arnstringThe ARN of the prefix list in the association. (pattern: <code>[\s\S]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_core_network_prefix_list_associationsselectcore_network_id, regionprefixListArn, maxResults, nextTokenLists the prefix list associations for a core network.
create_core_network_prefix_list_associationinsertregion, CoreNetworkId, PrefixListArn, PrefixListAliasCreates an association between a core network and a prefix list for routing control.
delete_core_network_prefix_list_associationdeletecore_network_id, prefix_list_arn, regionDeletes an association between a core network and a prefix list.

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 the core network from which to delete the prefix list association.
prefix_list_arnstringThe ARN of the prefix list to disassociate from the core network.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in a single page.
nextTokenstringThe token for the next page of results.
prefixListArnstringThe ARN of a specific prefix list to filter the associations.

SELECT examples

Lists the prefix list associations for a core network.

SELECT
core_network_id,
prefix_list_alias,
prefix_list_arn
FROM aws.networkmanager.core_network_prefix_list_associations
WHERE core_network_id = '{{ core_network_id }}' -- required
AND region = '{{ region }}' -- required
AND prefixListArn = '{{ prefixListArn }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates an association between a core network and a prefix list for routing control.

INSERT INTO aws.networkmanager.core_network_prefix_list_associations (
CoreNetworkId,
PrefixListArn,
PrefixListAlias,
ClientToken,
region
)
SELECT
'{{ CoreNetworkId }}' /* required */,
'{{ PrefixListArn }}' /* required */,
'{{ PrefixListAlias }}' /* required */,
'{{ ClientToken }}',
'{{ region }}'
RETURNING
core_network_id,
prefix_list_alias,
prefix_list_arn
;

DELETE examples

Deletes an association between a core network and a prefix list.

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