Skip to content

Start Lifecycle Policy Preview

ecr_start_lifecycle_policy_preview R Documentation

Starts a preview of a lifecycle policy for the specified repository

Description

Starts a preview of a lifecycle policy for the specified repository. This allows you to see the results before associating the lifecycle policy with the repository.

Usage

ecr_start_lifecycle_policy_preview(registryId, repositoryName,
  lifecyclePolicyText)

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 to be evaluated.

lifecyclePolicyText

The policy to be evaluated against. If you do not specify a policy, the current policy for the repository is used.

Value

A list with the following syntax:

list(
  registryId = "string",
  repositoryName = "string",
  lifecyclePolicyText = "string",
  status = "IN_PROGRESS"|"COMPLETE"|"EXPIRED"|"FAILED"
)

Request syntax

svc$start_lifecycle_policy_preview(
  registryId = "string",
  repositoryName = "string",
  lifecyclePolicyText = "string"
)