Get Lifecycle Policy Preview
| ecr_get_lifecycle_policy_preview | R Documentation |
Retrieves the results of the lifecycle policy preview request for the specified repository¶
Description¶
Retrieves the results of the lifecycle policy preview request for the specified repository.
Usage¶
ecr_get_lifecycle_policy_preview(registryId, repositoryName, imageIds,
nextToken, maxResults, filter)
Arguments¶
registryIdThe Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
repositoryName[required] The name of the repository.
imageIdsThe list of imageIDs to be included.
nextTokenThe
nextTokenvalue returned from a previous paginatedGetLifecyclePolicyPreviewRequestrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return. This option cannot be used when you specify images withimageIds.maxResultsThe maximum number of repository results returned by
GetLifecyclePolicyPreviewRequestin paginated output. When this parameter is used,GetLifecyclePolicyPreviewRequestonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherGetLifecyclePolicyPreviewRequestrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter is not used, thenGetLifecyclePolicyPreviewRequestreturns up to 100 results and anextTokenvalue, if applicable. This option cannot be used when you specify images withimageIds.filterAn optional parameter that filters results based on image tag status and all tags, if tagged.
Value¶
A list with the following syntax:
list(
registryId = "string",
repositoryName = "string",
lifecyclePolicyText = "string",
status = "IN_PROGRESS"|"COMPLETE"|"EXPIRED"|"FAILED",
nextToken = "string",
previewResults = list(
list(
imageTags = list(
"string"
),
imageDigest = "string",
imagePushedAt = as.POSIXct(
"2015-01-01"
),
action = list(
type = "EXPIRE"
),
appliedRulePriority = 123
)
),
summary = list(
expiringImageTotalCount = 123
)
)