attachment_routing_policy_associations
Creates, updates, deletes, gets or lists an attachment_routing_policy_associations resource.
Overview
| Name | attachment_routing_policy_associations |
| Type | Resource |
| Id | aws.networkmanager.attachment_routing_policy_associations |
Fields
The following fields are returned by SELECT queries:
- list_attachment_routing_policy_associations
| Name | Datatype | Description |
|---|---|---|
associated_routing_policies | array | The list of routing policies currently associated with the attachment. |
attachment_id | string | The ID of the attachment associated with the routing policy. (pattern: <code>^attachment-([0-9a-f]{8,17})$</code>) |
pending_routing_policies | array | The list of routing policies that are pending association with the attachment. |
routing_policy_label | string | The routing policy label associated with the attachment. (pattern: <code>[\s\S]*</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_attachment_routing_policy_associations | select | core_network_id, region | attachmentId, maxResults, nextToken | Lists 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.
| Name | Datatype | Description |
|---|---|---|
core_network_id | string | The ID of the core network to list attachment routing policy associations for. |
region | string | AWS region (default: us-east-1) |
attachmentId | string | The ID of a specific attachment to filter the routing policy associations. |
maxResults | integer | The maximum number of results to return in a single page. |
nextToken | string | The token for the next page of results. |
SELECT examples
- list_attachment_routing_policy_associations
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 }}'
;