ECR / Client / update_image_storage_class
update_image_storage_class¶
- ECR.Client.update_image_storage_class(**kwargs)¶
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.
See also: AWS API Documentation
Request Syntax
response = client.update_image_storage_class( registryId='string', repositoryName='string', imageId={ 'imageDigest': 'string', 'imageTag': 'string' }, targetStorageClass='STANDARD'|'ARCHIVE' )
- Parameters:
registryId (string) – 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 (string) –
[REQUIRED]
The name of the repository that contains the image to transition.
imageId (dict) –
[REQUIRED]
An object with identifying information for an image in an Amazon ECR repository.
imageDigest (string) –
The
sha256digest of the image manifest.imageTag (string) –
The tag used for the image.
targetStorageClass (string) –
[REQUIRED]
The target storage class for the image.
- Return type:
dict
- Returns:
Response Syntax
{ 'registryId': 'string', 'repositoryName': 'string', 'imageId': { 'imageDigest': 'string', 'imageTag': 'string' }, 'imageStatus': 'ACTIVE'|'ARCHIVED'|'ACTIVATING' }
Response Structure
(dict) –
registryId (string) –
The registry ID associated with the request.
repositoryName (string) –
The repository name associated with the request.
imageId (dict) –
An object with identifying information for an image in an Amazon ECR repository.
imageDigest (string) –
The
sha256digest of the image manifest.imageTag (string) –
The tag used for the image.
imageStatus (string) –
The current status of the image after the call to UpdateImageStorageClass is complete. Valid values are
ACTIVE,ARCHIVED, andACTIVATING.
Exceptions