404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.16.139.76: ~ $
**To create a lifecycle policy preview**

The following ``start-lifecycle-policy-preview`` example creates a lifecycle policy preview defined by a JSON file for the specified repository. ::

    aws ecr start-lifecycle-policy-preview \
        --repository-name "project-a/amazon-ecs-sample" \
        --lifecycle-policy-text "file://policy.json"

Contents of ``policy.json``::

    {
       "rules": [
           {
               "rulePriority": 1,
               "description": "Expire images older than 14 days",
               "selection": {
                   "tagStatus": "untagged",
                   "countType": "sinceImagePushed",
                   "countUnit": "days",
                   "countNumber": 14
               },
               "action": {
                   "type": "expire"
               }
           }
       ]
    }

Output::

    {
       "registryId": "012345678910",
       "repositoryName": "project-a/amazon-ecs-sample",
       "lifecyclePolicyText": "{\n    \"rules\": [\n        {\n            \"rulePriority\": 1,\n            \"description\": \"Expire images older than 14 days\",\n            \"selection\": {\n                \"tagStatus\": \"untagged\",\n                \"countType\": \"sinceImagePushed\",\n                \"countUnit\": \"days\",\n                \"countNumber\": 14\n            },\n            \"action\": {\n                \"type\": \"expire\"\n            }\n        }\n    ]\n}\n",
       "status": "IN_PROGRESS"
    }

Filemanager

Name Type Size Permission Actions
batch-check-layer-availability.rst File 836 B 0644
batch-delete-image.rst File 1.29 KB 0644
batch-get-image.rst File 3.1 KB 0644
complete-layer-upload.rst File 664 B 0644
create-repository.rst File 2.25 KB 0644
delete-lifecycle-policy.rst File 647 B 0644
delete-repository-policy.rst File 675 B 0644
delete-repository.rst File 702 B 0644
describe-image-scan-findings.rst File 2.32 KB 0644
describe-images.rst File 767 B 0644
describe-repositories.rst File 612 B 0644
get-authorization-token.rst File 491 B 0644
get-download-url-for-layer.rst File 1 KB 0644
get-lifecycle-policy-preview.rst File 1.22 KB 0644
get-lifecycle-policy.rst File 888 B 0644
get-login-password.rst File 894 B 0644
get-login-password_description.rst File 914 B 0644
get-login_description.rst File 1.06 KB 0644
get-repository-policy.rst File 686 B 0644
initiate-layer-upload.rst File 344 B 0644
list-images.rst File 798 B 0644
list-tags-for-resource.rst File 433 B 0644
put-image-scanning-configuration.rst File 672 B 0644
put-image-tag-mutability.rst File 686 B 0644
put-image.rst File 6.26 KB 0644
put-lifecycle-policy.rst File 1.35 KB 0644
set-repository-policy.rst File 1.16 KB 0644
start-image-scan.rst File 810 B 0644
start-lifecycle-policy-preview.rst File 1.45 KB 0644
tag-resource.rst File 334 B 0644
untag-resource.rst File 319 B 0644
upload-layer-part.rst File 680 B 0644