list_hosted_zones
¶
list_hosted_zones(
*,
config_overrides: Optional[Route53ClientConfig] = None,
marker: Optional[PageMarker] = None,
max_items: Optional[int] = None,
delegation_set_id: Optional[ResourceId] = None,
hosted_zone_type: Optional[HostedZoneType] = None,
) -> ListHostedZonesResponse
Retrieves a list of the public and private hosted zones that are associated with the current Amazon Web Services account. The response includes a HostedZones child element for each hosted zone.
Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the maxitems parameter to list them in groups of up to 100.
Parameters:
-
marker(Optional[PageMarker], default:None) –If the value of
IsTruncatedin the previous response wastrue, you have more hosted zones. To get more hosted zones, submit anotherListHostedZonesrequest.For the value of
marker, specify the value ofNextMarkerfrom the previous response, which is the ID of the first hosted zone that Amazon Route 53 will return if you submit another request.If the value of
IsTruncatedin the previous response wasfalse, there are no more hosted zones to get. -
max_items(Optional[int], default:None) –(Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If you have more than
maxitemshosted zones, the value ofIsTruncatedin the response istrue, and the value ofNextMarkeris the hosted zone ID of the first hosted zone that Route 53 will return if you submit another request. -
delegation_set_id(Optional[ResourceId], default:None) –If you're using reusable delegation sets and you want to list all of the hosted zones that are associated with a reusable delegation set, specify the ID of that reusable delegation set.
-
hosted_zone_type(Optional[HostedZoneType], default:None) –(Optional) Specifies if the hosted zone is private.
Raises:
-
DelegationSetNotReusable–A reusable delegation set with the specified ID does not exist.
-
InvalidInput–The input is not valid.
-
NoSuchDelegationSet–A reusable delegation set with the specified ID does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_route_53/_services/route53.py
3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 | |