import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListHostedZonesRequest, ListHostedZonesResponse } from "../models/models_0"; import type { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListHostedZonesCommand}. */ export interface ListHostedZonesCommandInput extends ListHostedZonesRequest { } /** * @public * * The output of {@link ListHostedZonesCommand}. */ export interface ListHostedZonesCommandOutput extends ListHostedZonesResponse, __MetadataBearer { } declare const ListHostedZonesCommand_base: { new (input: ListHostedZonesCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListHostedZonesCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53Client, ListHostedZonesCommand } from "@aws-sdk/client-route-53"; // ES Modules import * // const { Route53Client, ListHostedZonesCommand } = require("@aws-sdk/client-route-53"); // CommonJS import * // import type { Route53ClientConfig } from "@aws-sdk/client-route-53"; * const config = {}; // type is Route53ClientConfig * const client = new Route53Client(config); * const input = { // ListHostedZonesRequest * Marker: "STRING_VALUE", * MaxItems: Number("int"), * DelegationSetId: "STRING_VALUE", * HostedZoneType: "PrivateHostedZone", * }; * const command = new ListHostedZonesCommand(input); * const response = await client.send(command); * // { // ListHostedZonesResponse * // HostedZones: [ // HostedZones // required * // { // HostedZone * // Id: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // CallerReference: "STRING_VALUE", // required * // Config: { // HostedZoneConfig * // Comment: "STRING_VALUE", * // PrivateZone: true || false, * // }, * // ResourceRecordSetCount: Number("long"), * // LinkedService: { // LinkedService * // ServicePrincipal: "STRING_VALUE", * // Description: "STRING_VALUE", * // }, * // Features: { // HostedZoneFeatures * // AcceleratedRecoveryStatus: "ENABLING" || "ENABLE_FAILED" || "ENABLING_HOSTED_ZONE_LOCKED" || "ENABLED" || "DISABLING" || "DISABLE_FAILED" || "DISABLED" || "DISABLING_HOSTED_ZONE_LOCKED", * // FailureReasons: { // HostedZoneFailureReasons * // AcceleratedRecovery: "STRING_VALUE", * // }, * // }, * // }, * // ], * // Marker: "STRING_VALUE", // required * // IsTruncated: true || false, // required * // NextMarker: "STRING_VALUE", * // MaxItems: Number("int"), // required * // }; * * ``` * * @param ListHostedZonesCommandInput - {@link ListHostedZonesCommandInput} * @returns {@link ListHostedZonesCommandOutput} * @see {@link ListHostedZonesCommandInput} for command's `input` shape. * @see {@link ListHostedZonesCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link DelegationSetNotReusable} (client fault) *

A reusable delegation set with the specified ID does not exist.

* * @throws {@link InvalidInput} (client fault) *

The input is not valid.

* * @throws {@link NoSuchDelegationSet} (client fault) *

A reusable delegation set with the specified ID does not exist.

* * @throws {@link Route53ServiceException} *

Base exception class for all service exceptions from Route53 service.

* * * @public */ export declare class ListHostedZonesCommand extends ListHostedZonesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListHostedZonesRequest; output: ListHostedZonesResponse; }; sdk: { input: ListHostedZonesCommandInput; output: ListHostedZonesCommandOutput; }; }; }