CmdID

CmdID / aws / aws cloudfront

aws cloudfront get-invalidation

Get the information about an invalidation. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To get a CloudFront invalidation

The following get-invalidation example gets the invalidation with the ID I2J0I21PCUYOIK for the CloudFront distribution with the ID EDFDVBD6EXAMPLE.

aws cloudfront get-invalidation --id I2J0I21PCUYOIK --distribution-id EDFDVBD6EXAMPLEIdentify
--idThe identifier for the invalidation request, for example, IDFDVBD632BHDS5.
--distribution-idThe distribution's ID.
Its output
{
    "Invalidation": {
        "Status": "Completed",
        "InvalidationBatch": {
            "Paths": {
                "Items": [
                    "/example-path/example-file.jpg",
                    "/example-path/example-file-2.jpg"
                ],
                "Quantity": 2
            },
            "CallerReference": "cli-example"
        },
        "Id": "I2J0I21PCUYOIK",
        "CreateTime": "2019-12-05T18:40:49.413Z"
    }
}

For more information, see Invalidate files to remove content in the Amazon CloudFront Developer Guide.

Options

2 in the AWS CLI reference
--distribution-idThe distribution's ID.
--idThe identifier for the invalidation request, for example, IDFDVBD632BHDS5.