lifecycle_policy_previews
Creates, updates, deletes, gets or lists a lifecycle_policy_previews resource.
Overview
| Name | lifecycle_policy_previews |
| Type | Resource |
| Id | aws.ecr.lifecycle_policy_previews |
Fields
The following fields are returned by SELECT queries:
- get_lifecycle_policy_preview
| Name | Datatype | Description |
|---|---|---|
action | object | The type of action to be taken. |
applied_rule_priority | integer | The priority of the applied rule. |
image_digest | string | The sha256 digest of the image manifest. |
image_pushed_at | string (date-time) | The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository. |
image_tags | array | The list of tags associated with this image. |
storage_class | string | The storage class of the image. (ARCHIVE, STANDARD) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_lifecycle_policy_preview | select | region | Retrieves 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_lifecycle_policy_preview
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
;