Amazon ECR Ecr Lifecycle Policy API
The Ecr Lifecycle Policy API from Amazon ECR — 3 operation(s) for ecr lifecycle policy.
The Ecr Lifecycle Policy API from Amazon ECR — 3 operation(s) for ecr lifecycle policy.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-ecr:amazon-ecr-lifecycle-policy-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Amazon Elastic Container Registry Lifecycle Policy API
version: '2015-09-21'
description: Generated from AWS's published Smithy model for Amazon Elastic Container Registry. 3 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://api.ecr.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
tags:
- name: Lifecycle Policy
paths:
/#DeleteLifecyclePolicy:
post:
operationId: DeleteLifecyclePolicy
summary: Delete Lifecycle Policy
description: Deletes the lifecycle policy associated with the specified repository.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteLifecyclePolicyResponse'
'400':
description: InvalidParameterException; LifecyclePolicyNotFoundException; RepositoryNotFoundException; ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'500':
description: ServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ServerException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteLifecyclePolicyRequest'
tags:
- Lifecycle Policy
/#GetLifecyclePolicy:
post:
operationId: GetLifecyclePolicy
summary: Get Lifecycle Policy
description: Retrieves the lifecycle policy for the specified repository.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetLifecyclePolicyResponse'
'400':
description: InvalidParameterException; LifecyclePolicyNotFoundException; RepositoryNotFoundException; ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'500':
description: ServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ServerException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetLifecyclePolicyRequest'
tags:
- Lifecycle Policy
/#PutLifecyclePolicy:
post:
operationId: PutLifecyclePolicy
summary: Put Lifecycle Policy
description: Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle policy template.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/PutLifecyclePolicyResponse'
'400':
description: InvalidParameterException; RepositoryNotFoundException; ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'500':
description: ServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ServerException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/PutLifecyclePolicyRequest'
tags:
- Lifecycle Policy
components:
schemas:
ServerException:
type: object
properties:
message:
type: string
description: The error message associated with the exception.
PutLifecyclePolicyResponse:
type: object
properties:
registryId:
type: string
description: The registry ID associated with the request.
repositoryName:
type: string
description: The repository name associated with the request.
lifecyclePolicyText:
type: string
description: The JSON repository policy text.
GetLifecyclePolicyRequest:
type: object
properties:
registryId:
type: string
description: 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:
type: string
description: The name of the repository.
required:
- repositoryName
DeleteLifecyclePolicyResponse:
type: object
properties:
registryId:
type: string
description: The registry ID associated with the request.
repositoryName:
type: string
description: The repository name associated with the request.
lifecyclePolicyText:
type: string
description: The JSON lifecycle policy text.
lastEvaluatedAt:
type: string
format: date-time
description: The time stamp of the last time that the lifecycle policy was run.
PutLifecyclePolicyRequest:
type: object
properties:
registryId:
type: string
description: 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:
type: string
description: The name of the repository to receive the policy.
lifecyclePolicyText:
type: string
description: The JSON repository policy text to apply to the repository.
required:
- repositoryName
- lifecyclePolicyText
GetLifecyclePolicyResponse:
type: object
properties:
registryId:
type: string
description: The registry ID associated with the request.
repositoryName:
type: string
description: The repository name associated with the request.
lifecyclePolicyText:
type: string
description: The JSON lifecycle policy text.
lastEvaluatedAt:
type: string
format: date-time
description: The time stamp of the last time that the lifecycle policy was run.
DeleteLifecyclePolicyRequest:
type: object
properties:
registryId:
type: string
description: 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:
type: string
description: The name of the repository.
required:
- repositoryName
InvalidParameterException:
type: object
properties:
message:
type: string
description: The error message associated with the exception.
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: ecr
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/ecr/service/2015-09-21/ecr-2015-09-21.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)