Skip to main content

managed_prefix_list_associations

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

Overview

Namemanaged_prefix_list_associations
TypeResource
Idaws.ec2.managed_prefix_list_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_idstringThe ID of the resource.
resource_ownerstringThe owner of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_prefix_list_associationsselectPrefixListId, regionDryRun, MaxResults, NextTokenGets 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.

NameDatatypeDescription
PrefixListIdstringThe ID of the prefix list.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.

SELECT examples

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 }}'
;