Skip to main content

distributions_by_cache_policy_ids

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

Overview

Namedistributions_by_cache_policy_ids
TypeResource
Idaws.cloudfront.distributions_by_cache_policy_ids

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
is_truncatedbooleanA flag that indicates whether more distribution IDs remain to be listed. If your results were truncated, you can make a subsequent request using the Marker request field to retrieve more distribution IDs in the list.
itemsstringContains the distribution IDs in the list.
markerstringThe value provided in the Marker request field.
max_itemsintegerThe maximum number of distribution IDs requested.
next_markerstringContains the value that you should use in the Marker field of a subsequent request to continue listing distribution IDs where you left off.
quantityintegerThe total number of distribution IDs returned in the response.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_distributions_by_cache_policy_idselectcache_policy_id, regionMarker, MaxItemsGets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified cache policy. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

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
cache_policy_idstringThe ID of the cache policy whose associated distribution IDs you want to list.
regionstringAWS region (default: us-east-1)
MarkerstringUse this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field's value to the value of NextMarker from the current page's response.
MaxItemsstringThe maximum number of distribution IDs that you want in the response.

SELECT examples

Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified cache policy. You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

SELECT
is_truncated,
items,
marker,
max_items,
next_marker,
quantity
FROM aws.cloudfront.distributions_by_cache_policy_ids
WHERE cache_policy_id = '{{ cache_policy_id }}' -- required
AND region = '{{ region }}' -- required
AND Marker = '{{ Marker }}'
AND MaxItems = '{{ MaxItems }}'
;