Skip to content

Update Image Storage Class

ecr_update_image_storage_class R Documentation

Transitions an image between storage classes

Description

Transitions an image between storage classes. You can transition images from Amazon ECR standard storage class to Amazon ECR archival storage class for long-term storage, or restore archived images back to Amazon ECR standard.

Usage

ecr_update_image_storage_class(registryId, repositoryName, imageId,
  targetStorageClass)

Arguments

registryId

The Amazon Web Services account ID associated with the registry that contains the image to transition. If you do not specify a registry, the default registry is assumed.

repositoryName

[required] The name of the repository that contains the image to transition.

imageId

[required] An object with identifying information for an image in an Amazon ECR repository.

targetStorageClass

[required] The target storage class for the image.

Value

A list with the following syntax:

list(
  registryId = "string",
  repositoryName = "string",
  imageId = list(
    imageDigest = "string",
    imageTag = "string"
  ),
  imageStatus = "ACTIVE"|"ARCHIVED"|"ACTIVATING"
)

Request syntax

svc$update_image_storage_class(
  registryId = "string",
  repositoryName = "string",
  imageId = list(
    imageDigest = "string",
    imageTag = "string"
  ),
  targetStorageClass = "STANDARD"|"ARCHIVE"
)