managed_prefix_list_associations
Creates, updates, deletes, gets or lists a managed_prefix_list_associations resource.
Overview
| Name | managed_prefix_list_associations |
| Type | Resource |
| Id | aws.ec2.managed_prefix_list_associations |
Fields
The following fields are returned by SELECT queries:
- get_managed_prefix_list_associations
| Name | Datatype | Description |
|---|---|---|
resource_id | string | The ID of the resource. |
resource_owner | string | The owner of the resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_managed_prefix_list_associations | select | PrefixListId, region | DryRun, MaxResults, NextToken | Gets information about the resources that are associated with the specified managed 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.
| Name | Datatype | Description |
|---|---|---|
PrefixListId | string | The ID of the prefix list. |
region | string | AWS region (default: us-east-1) |
DryRun | boolean | Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. |
MaxResults | integer | The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. |
NextToken | string | The token for the next page of results. |
SELECT examples
- get_managed_prefix_list_associations
Gets information about the resources that are associated with the specified managed prefix list.
SELECT
resource_id,
resource_owner
FROM aws.ec2.managed_prefix_list_associations
WHERE PrefixListId = '{{ PrefixListId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;