Skip to main content

invalidations

Creates, updates, deletes, gets or lists an invalidations resource.

Overview

Nameinvalidations
TypeResource
Idaws.cloudfront.invalidations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_timestringThe date and time the invalidation request was first made.
idstringThe identifier for the invalidation request. For example: IDFDVBD632BHDS5.
invalidation_batchstringThe current invalidation information for the batch request.
statusstringThe status of the invalidation request. When the invalidation batch is finished, the status is Completed.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_invalidationselectdistribution_id, id, regionGet the information about an invalidation.
list_invalidationsselectdistribution_id, regionMarker, MaxItemsLists invalidation batches.
create_invalidationinsertdistribution_id, region, InvalidationBatchCreate a new invalidation. For more information, see Invalidating files in the Amazon CloudFront Developer Guide.

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
distribution_idstringThe distribution's id.
idstringThe identifier for the invalidation request, for example, IDFDVBD632BHDS5.
regionstringAWS region (default: us-east-1)
MarkerstringUse this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.
MaxItemsstringThe maximum number of invalidation batches that you want in the response body.

SELECT examples

Get the information about an invalidation.

SELECT
create_time,
id,
invalidation_batch,
status
FROM aws.cloudfront.invalidations
WHERE distribution_id = '{{ distribution_id }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new invalidation. For more information, see Invalidating files in the Amazon CloudFront Developer Guide.

INSERT INTO aws.cloudfront.invalidations (
InvalidationBatch,
distribution_id,
region
)
SELECT
'{{ InvalidationBatch }}' /* required */,
'{{ distribution_id }}',
'{{ region }}'
RETURNING
create_time,
id,
invalidation_batch,
status
;