Skip to main content

lifecycle_policy_previews

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

Overview

Namelifecycle_policy_previews
TypeResource
Idaws.ecr.lifecycle_policy_previews

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionobjectThe type of action to be taken.
applied_rule_priorityintegerThe priority of the applied rule.
image_digeststringThe sha256 digest of the image manifest.
image_pushed_atstring (date-time)The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository.
image_tagsarrayThe list of tags associated with this image.
storage_classstringThe storage class of the image. (ARCHIVE, STANDARD)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_lifecycle_policy_previewselectregionRetrieves the results of the lifecycle policy preview request for the specified repository.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the results of the lifecycle policy preview request for the specified repository.

SELECT
action,
applied_rule_priority,
image_digest,
image_pushed_at,
image_tags,
storage_class
FROM aws.ecr.lifecycle_policy_previews
WHERE region = '{{ region }}' -- required
;