@aws-sdk/client-route-53
Version:
AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native
78 lines (77 loc) • 3.23 kB
TypeScript
import { Command as $Command } from "@smithy/core/client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { GetHostedZoneCountRequest, GetHostedZoneCountResponse } from "../models/models_0";
import type { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetHostedZoneCountCommand}.
*/
export interface GetHostedZoneCountCommandInput extends GetHostedZoneCountRequest {
}
/**
* @public
*
* The output of {@link GetHostedZoneCountCommand}.
*/
export interface GetHostedZoneCountCommandOutput extends GetHostedZoneCountResponse, __MetadataBearer {
}
declare const GetHostedZoneCountCommand_base: {
new (input: GetHostedZoneCountCommandInput): import("@smithy/core/client").CommandImpl<GetHostedZoneCountCommandInput, GetHostedZoneCountCommandOutput, Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (...[input]: [] | [GetHostedZoneCountCommandInput]): import("@smithy/core/client").CommandImpl<GetHostedZoneCountCommandInput, GetHostedZoneCountCommandOutput, Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): {
[x: string]: unknown;
};
};
/**
* <p>Retrieves the number of hosted zones that are associated with the current Amazon Web Services account.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { Route53Client, GetHostedZoneCountCommand } from "@aws-sdk/client-route-53"; // ES Modules import
* // const { Route53Client, GetHostedZoneCountCommand } = 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 = {};
* const command = new GetHostedZoneCountCommand(input);
* const response = await client.send(command);
* // { // GetHostedZoneCountResponse
* // HostedZoneCount: Number("long"), // required
* // };
*
* ```
*
* @param GetHostedZoneCountCommandInput - {@link GetHostedZoneCountCommandInput}
* @returns {@link GetHostedZoneCountCommandOutput}
* @see {@link GetHostedZoneCountCommandInput} for command's `input` shape.
* @see {@link GetHostedZoneCountCommandOutput} for command's `response` shape.
* @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape.
*
* @throws {@link InvalidInput} (client fault)
* <p>The input is not valid.</p>
*
* @throws {@link Route53ServiceException}
* <p>Base exception class for all service exceptions from Route53 service.</p>
*
*
* @public
*/
export declare class GetHostedZoneCountCommand extends GetHostedZoneCountCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: {};
output: GetHostedZoneCountResponse;
};
sdk: {
input: GetHostedZoneCountCommandInput;
output: GetHostedZoneCountCommandOutput;
};
};
}