ECR.Client.get_lifecycle_policy(**kwargs)¶Retrieves the lifecycle policy for the specified repository.
See also: AWS API Documentation
Request Syntax
response = client.get_lifecycle_policy(
registryId='string',
repositoryName='string'
)
[REQUIRED]
The name of the repository.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'lifecyclePolicyText': 'string',
'lastEvaluatedAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
registryId (string) --
The registry ID associated with the request.
repositoryName (string) --
The repository name associated with the request.
lifecyclePolicyText (string) --
The JSON lifecycle policy text.
lastEvaluatedAt (datetime) --
The time stamp of the last time that the lifecycle policy was run.
Exceptions
ECR.Client.exceptions.ServerExceptionECR.Client.exceptions.InvalidParameterExceptionECR.Client.exceptions.RepositoryNotFoundExceptionECR.Client.exceptions.LifecyclePolicyNotFoundException