CmdID / aws / aws cloudfront
aws cloudfront list-invalidations
Lists invalidation batches. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list CloudFront invalidations
The following list-invalidations example gets a list of the invalidations for the CloudFront distribution with the ID EDFDVBD6EXAMPLE.
aws cloudfront list-invalidations --distribution-id EDFDVBD6EXAMPLEIdentify--distribution-idThe distribution's ID.Its output
{
"InvalidationList": {
"Marker": "",
"Items": [
{
"Status": "Completed",
"Id": "YNY2LI2BVJ4NJU",
"CreateTime": "2019-08-31T21:15:52.042Z"
}
],
"IsTruncated": false,
"MaxItems": 100,
"Quantity": 1
}
}For more information, see Invalidate files to remove content in the Amazon CloudFront Developer Guide.
Options
--distribution-idThe distribution's ID.--markerUse this parameter when paginating results to indicate where to begin in your list of invalidation batches.--max-itemsThe maximum number of invalidation batches that you want in the response body.