delete_lifecycle_policy

ECR.Client.delete_lifecycle_policy(**kwargs)

Deletes the lifecycle policy associated with the specified repository.

See also: AWS API Documentation

Request Syntax

response = client.delete_lifecycle_policy(
    registryId='string',
    repositoryName='string'
)
Parameters
  • registryId (string) -- 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 (string) --

    [REQUIRED]

    The name of the repository.

Return type

dict

Returns

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.ServerException
  • ECR.Client.exceptions.InvalidParameterException
  • ECR.Client.exceptions.RepositoryNotFoundException
  • ECR.Client.exceptions.LifecyclePolicyNotFoundException