Skip to content

Put Lifecycle Policy

ecr_put_lifecycle_policy R Documentation

Creates or updates the lifecycle policy for the specified repository

Description

Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle policy template.

Usage

ecr_put_lifecycle_policy(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 receive the policy.

lifecyclePolicyText

[required] The JSON repository policy text to apply to the repository.

Value

A list with the following syntax:

list(
  registryId = "string",
  repositoryName = "string",
  lifecyclePolicyText = "string"
)

Request syntax

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