distributions_by_owned_resources
Creates, updates, deletes, gets or lists a distributions_by_owned_resources resource.
Overview
| Name | distributions_by_owned_resources |
| Type | Resource |
| Id | aws.cloudfront.distributions_by_owned_resources |
Fields
The following fields are returned by SELECT queries:
- list_distributions_by_owned_resource
| Name | Datatype | Description |
|---|---|---|
is_truncated | boolean | A flag that indicates whether more DistributionIdOwner objects remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more results in the list. |
items | string | The number of DistributionIdOwner objects. |
marker | string | Use this field when paginating results to indicate where to begin in your list of DistributionIdOwner objects. The response includes distributions 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. |
max_items | integer | The maximum number of DistributionIdOwner objects to return. |
next_marker | string | A token used for pagination of results returned in the response. You can use the token from the previous request to define where the current request should begin. |
quantity | integer | Specifies the actual number of DistributionIdOwner objects included in the list for the current page. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_distributions_by_owned_resource | select | resource_arn, region | Marker, MaxItems | Lists the CloudFront distributions that are associated with the specified resource that you own. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
resource_arn | string | The ARN of the CloudFront resource that you've shared with other Amazon Web Services accounts. |
Marker | string | Use this field when paginating results to indicate where to begin in your list of distributions. The response includes distributions 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. |
MaxItems | string | The maximum number of distributions to return. |
SELECT examples
- list_distributions_by_owned_resource
Lists the CloudFront distributions that are associated with the specified resource that you own.
SELECT
is_truncated,
items,
marker,
max_items,
next_marker,
quantity
FROM aws.cloudfront.distributions_by_owned_resources
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
AND Marker = '{{ Marker }}'
AND MaxItems = '{{ MaxItems }}'
;