CmdID

CmdID / aws / aws cloudfront

aws cloudfront list-distributions-by-connection-mode

Lists the distributions by the connection mode that you specify. AWS CLI reference

1 example 3 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 by connection mode

The following list-distributions-by-connection-mode example lists CloudFront distributions with the specified connection mode.

aws cloudfront list-distributions-by-connection-mode --connection-mode tenant-onlyIdentify
--connection-modeThis field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants (tenant-only).
Its output, shortened
{
    "DistributionList": {
        "Items": [
            {
                "Id": "E1XNX8R2GOAABC",
                "ARN": "arn:aws:cloudfront::123456789012:distribution/E1XNX8R2GOAABC",
                "ETag": "EPT4JPJQDY1ABC",
                "Status": "Deployed",
                "LastModifiedTime": "2025-05-23T16:16:15.691000+00:00",
                "DomainName": "-",
                "Aliases": {
                    "Quantity": 0
                },
                "Origins": {
                    "Quantity": 1,
                    "Items": [
                        {
                            "Id": "example-cfn-simple-distribution123",
                            "DomainName": "example.com",
                            "OriginPath": "",
                            "CustomHeaders": {
                                "Quantity": 0
                            },
                            "S3OriginConfig": {
                                "OriginAccessIdentity": ""
                            },
                            "ConnectionAttempts": 3,
                            "ConnectionTimeout": 10,
                            "OriginShield": {
                                "Enabled": false
… 74 more lines

For more information, see Create custom connection group (optional) in the Amazon CloudFront Developer Guide.

Options

3 in the AWS CLI reference
--connection-modeThis field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants (tenant-only).
--markerThe marker for the next set of distributions to retrieve.
--max-itemsThe maximum number of distributions to return.