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
Examples
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 linesFor more information, see Create custom connection group (optional) in the Amazon CloudFront Developer Guide.
Options
--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.