Skip to content

Retrieves the lifecycle policy for the specified repository

Description

Retrieves the lifecycle policy for the specified repository.

Usage

ecr_get_lifecycle_policy(registryId, repositoryName)

Arguments

  • registryId

    The 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.

Value

A list with the following syntax:

list(
  registryId = "string",
  repositoryName = "string",
  lifecyclePolicyText = "string",
  lastEvaluatedAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$get_lifecycle_policy(
  registryId = "string",
  repositoryName = "string"
)