Skip to main content

attachment_routing_policy_associations

Creates, updates, deletes, gets or lists an attachment_routing_policy_associations resource.

Overview

Nameattachment_routing_policy_associations
TypeResource
Idaws.networkmanager.attachment_routing_policy_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_routing_policiesarrayThe list of routing policies currently associated with the attachment.
attachment_idstringThe ID of the attachment associated with the routing policy. (pattern: <code>^attachment-([0-9a-f]{8,17})$</code>)
pending_routing_policiesarrayThe list of routing policies that are pending association with the attachment.
routing_policy_labelstringThe routing policy label associated with the attachment. (pattern: <code>[\s\S]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_attachment_routing_policy_associationsselectcore_network_id, regionattachmentId, maxResults, nextTokenLists the routing policy associations for attachments in a core network.

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 to list attachment routing policy associations for.
regionstringAWS region (default: us-east-1)
attachmentIdstringThe ID of a specific attachment to filter the routing policy associations.
maxResultsintegerThe maximum number of results to return in a single page.
nextTokenstringThe token for the next page of results.

SELECT examples

Lists the routing policy associations for attachments in a core network.

SELECT
associated_routing_policies,
attachment_id,
pending_routing_policies,
routing_policy_label
FROM aws.networkmanager.attachment_routing_policy_associations
WHERE core_network_id = '{{ core_network_id }}' -- required
AND region = '{{ region }}' -- required
AND attachmentId = '{{ attachmentId }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;