CloudFront / Client / list_distribution_tenants
list_distribution_tenants¶
- CloudFront.Client.list_distribution_tenants(**kwargs)¶
Lists the distribution tenants in your Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.list_distribution_tenants( AssociationFilter={ 'DistributionId': 'string', 'ConnectionGroupId': 'string' }, Marker='string', MaxItems=123 )
- Parameters:
AssociationFilter (dict) –
Filter by the associated distribution ID or connection group ID.
DistributionId (string) –
The distribution ID to filter by. You can find distribution tenants associated with a specific distribution.
ConnectionGroupId (string) –
The ID of the connection group to filter by. You can find distribution tenants associated with a specific connection group.
Marker (string) – The marker for the next set of results.
MaxItems (integer) – The maximum number of distribution tenants to return.
- Return type:
dict
- Returns:
Response Syntax
{ 'NextMarker': 'string', 'DistributionTenantList': [ { 'Id': 'string', 'DistributionId': 'string', 'Name': 'string', 'Arn': 'string', 'Domains': [ { 'Domain': 'string', 'Status': 'active'|'inactive' }, ], 'ConnectionGroupId': 'string', 'Customizations': { 'WebAcl': { 'Action': 'override'|'disable', 'Arn': 'string' }, 'Certificate': { 'Arn': 'string' }, 'GeoRestrictions': { 'RestrictionType': 'blacklist'|'whitelist'|'none', 'Locations': [ 'string', ] } }, 'CreatedTime': datetime(2015, 1, 1), 'LastModifiedTime': datetime(2015, 1, 1), 'ETag': 'string', 'Enabled': True|False, 'Status': 'string' }, ] }
Response Structure
(dict) –
NextMarker (string) –
A token used for pagination of results returned in the response. You can use the token from the previous request to define where the current request should begin.
DistributionTenantList (list) –
The list of distribution tenants that you retrieved.
(dict) –
A summary of the information about a distribution tenant.
Id (string) –
The ID of the distribution tenant.
DistributionId (string) –
The identifier for the multi-tenant distribution. For example:
EDFDVBD632BHDS5
.Name (string) –
The name of the distribution tenant.
Arn (string) –
The Amazon Resource Name (ARN) of the distribution tenant.
Domains (list) –
The domains associated with the distribution tenant.
(dict) –
The details about the domain result.
Domain (string) –
The specified domain.
Status (string) –
Whether the domain is active or inactive.
ConnectionGroupId (string) –
The ID of the connection group ID for the distribution tenant. If you don’t specify a connection group, CloudFront uses the default connection group.
Customizations (dict) –
Customizations for the distribution tenant. For each distribution tenant, you can specify the geographic restrictions, and the Amazon Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are specific values that you can override or disable from the multi-tenant distribution that was used to create the distribution tenant.
WebAcl (dict) –
The WAF web ACL.
Action (string) –
The action for the WAF web ACL customization. You can specify
override
to specify a separate WAF web ACL for the distribution tenant. If you specifydisable
, the distribution tenant won’t have WAF web ACL protections and won’t inherit from the multi-tenant distribution.Arn (string) –
The Amazon Resource Name (ARN) of the WAF web ACL.
Certificate (dict) –
The Certificate Manager (ACM) certificate.
Arn (string) –
The Amazon Resource Name (ARN) of the ACM certificate.
GeoRestrictions (dict) –
The geographic restrictions.
RestrictionType (string) –
The method that you want to use to restrict distribution of your content by country:
none
: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.blacklist
: TheLocation
elements specify the countries in which you don’t want CloudFront to distribute your content.whitelist
: TheLocation
elements specify the countries in which you want CloudFront to distribute your content.
Locations (list) –
The locations for geographic restrictions.
(string) –
CreatedTime (datetime) –
The date and time when the distribution tenant was created.
LastModifiedTime (datetime) –
The date and time when the distribution tenant was updated.
ETag (string) –
The current version of the distribution tenant.
Enabled (boolean) –
Indicates whether the distribution tenants are in an enabled state. If disabled, the distribution tenant won’t service traffic.
Status (string) –
The status of the distribution tenant.
Exceptions