CmdID

CmdID / aws / aws cloudfront

aws cloudfront list-distributions

List CloudFront distributions. 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 list CloudFront distributions

The following list-distributions example gets a list of the CloudFront distributions in your AWS account.

aws cloudfront list-distributionsIdentify
Its output, shortened
{
    "DistributionList": {
        "Items": [
            {
                "Id": "E23YS8OEXAMPLE",
                "ARN": "arn:aws:cloudfront::123456789012:distribution/E23YS8OEXAMPLE",
                "Status": "Deployed",
                "LastModifiedTime": "2024-08-05T18:23:40.375000+00:00",
                "DomainName": "abcdefgh12ijk.cloudfront.net",
                "Aliases": {
                    "Quantity": 0
                },
                "Origins": {
                    "Quantity": 1,
                    "Items": [
                        {
                            "Id": "amzn-s3-demo-bucket.s3.us-west-2.amazonaws.com",
                            "DomainName": "amzn-s3-demo-bucket.s3.us-west-2.amazonaws.com",
                            "OriginPath": "",
                            "CustomHeaders": {
                                "Quantity": 0
                            },
                            "S3OriginConfig": {
                                "OriginAccessIdentity": ""
                            },
                            "ConnectionAttempts": 3,
                            "ConnectionTimeout": 10,
                            "OriginShield": {
                                "Enabled": false
                            },
… 72 more lines

For more information, see Configure distributions in the Amazon CloudFront Developer Guide.

Options

2 in the AWS CLI reference
--markerUse this when paginating results to indicate where to begin in your list of distributions.
--max-itemsThe maximum number of distributions you want in the response body.