aws_ecr_get_lifecycle_policy
Retrieve the lifecycle policy for an Amazon ECR repository to manage image retention rules and optimize storage costs.
Instructions
Get the lifecycle policy for an ECR repository.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repository_name": "<repository_name>"
},
"name": "aws_ecr_get_lifecycle_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | AWS profile name from ~/.aws/config (e.g., 'default', 'production') | |
| region | No | AWS region override (e.g., 'us-east-1', 'sa-east-1') | |
| repository_name | Yes | ECR repository name |