list_hosted_zones
async
¶
list_hosted_zones(
*,
config_overrides: Optional[AsyncRoute53ClientConfig] = 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/async_route53.py
3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 | |