Command option Sample:aws ecr start-lifecycle-policy-preview

Search command sample in the internet.It is the result.

Starts a preview of the specified lifecycle policy.Show details from next link. https://docs.aws.amazon.com/ja_jp/cli/latest/reference/ecr/start-lifecycle-policy-preview.html

aws ecr start-lifecycle-policy-preview --repository-name "project-a/amazon-ecs-sample" --lifecycle-policy-text "file://policy.json"
    upload-layer-part — AWS CLI 1.16.6 Command Reference : http://docs.aws.amazon.com/cli/latest/reference/ecr/start-lifecycle-policy-preview.html

aws のオプション一覧