Skip to main content

pull_time_update_exclusions

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

Overview

Namepull_time_update_exclusions
TypeResource
Idaws.ecr.pull_time_update_exclusions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
pull_time_update_exclusionstringThe list of IAM principal ARNs that are excluded from having their image pull times recorded.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_pull_time_update_exclusionsselectregionLists the IAM principals that are excluded from having their image pull times recorded.
register_pull_time_update_exclusioninsertregion, principalArnAdds an IAM principal to the pull time update exclusion list for a registry. Amazon ECR will not record the pull time if an excluded principal pulls an image.
deregister_pull_time_update_exclusiondeleteregionRemoves a principal from the pull time update exclusion list for a registry. Once removed, Amazon ECR will resume updating the pull time if the specified principal pulls an image.

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

Lists the IAM principals that are excluded from having their image pull times recorded.

SELECT
pull_time_update_exclusion
FROM aws.ecr.pull_time_update_exclusions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Adds an IAM principal to the pull time update exclusion list for a registry. Amazon ECR will not record the pull time if an excluded principal pulls an image.

INSERT INTO aws.ecr.pull_time_update_exclusions (
principalArn,
region
)
SELECT
'{{ principalArn }}' /* required */,
'{{ region }}'
RETURNING
created_at,
principal_arn
;

DELETE examples

Removes a principal from the pull time update exclusion list for a registry. Once removed, Amazon ECR will resume updating the pull time if the specified principal pulls an image.

DELETE FROM aws.ecr.pull_time_update_exclusions
WHERE region = '{{ region }}' --required
;