UNPKG

@aws-sdk/client-route-53

Version:

AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native

90 lines (89 loc) 4.14 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { GetHostedZoneLimitRequest, GetHostedZoneLimitResponse } from "../models/models_0"; import { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetHostedZoneLimitCommand}. */ export interface GetHostedZoneLimitCommandInput extends GetHostedZoneLimitRequest { } /** * @public * * The output of {@link GetHostedZoneLimitCommand}. */ export interface GetHostedZoneLimitCommandOutput extends GetHostedZoneLimitResponse, __MetadataBearer { } declare const GetHostedZoneLimitCommand_base: { new (input: GetHostedZoneLimitCommandInput): import("@smithy/smithy-client").CommandImpl<GetHostedZoneLimitCommandInput, GetHostedZoneLimitCommandOutput, Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: GetHostedZoneLimitCommandInput): import("@smithy/smithy-client").CommandImpl<GetHostedZoneLimitCommandInput, GetHostedZoneLimitCommandOutput, Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Gets the specified limit for a specified hosted zone, for example, the maximum number * of records that you can create in the hosted zone. </p> * <p>For the default limit, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html">Limits</a> in the * <i>Amazon Route 53 Developer Guide</i>. To request a higher limit, * <a href="https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53">open a case</a>.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53Client, GetHostedZoneLimitCommand } from "@aws-sdk/client-route-53"; // ES Modules import * // const { Route53Client, GetHostedZoneLimitCommand } = require("@aws-sdk/client-route-53"); // CommonJS import * const client = new Route53Client(config); * const input = { // GetHostedZoneLimitRequest * Type: "MAX_RRSETS_BY_ZONE" || "MAX_VPCS_ASSOCIATED_BY_ZONE", // required * HostedZoneId: "STRING_VALUE", // required * }; * const command = new GetHostedZoneLimitCommand(input); * const response = await client.send(command); * // { // GetHostedZoneLimitResponse * // Limit: { // HostedZoneLimit * // Type: "MAX_RRSETS_BY_ZONE" || "MAX_VPCS_ASSOCIATED_BY_ZONE", // required * // Value: Number("long"), // required * // }, * // Count: Number("long"), // required * // }; * * ``` * * @param GetHostedZoneLimitCommandInput - {@link GetHostedZoneLimitCommandInput} * @returns {@link GetHostedZoneLimitCommandOutput} * @see {@link GetHostedZoneLimitCommandInput} for command's `input` shape. * @see {@link GetHostedZoneLimitCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link HostedZoneNotPrivate} (client fault) * <p>The specified hosted zone is a public hosted zone, not a private hosted zone.</p> * * @throws {@link InvalidInput} (client fault) * <p>The input is not valid.</p> * * @throws {@link NoSuchHostedZone} (client fault) * <p>No hosted zone exists with the ID that you specified.</p> * * @throws {@link Route53ServiceException} * <p>Base exception class for all service exceptions from Route53 service.</p> * * @public */ export declare class GetHostedZoneLimitCommand extends GetHostedZoneLimitCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetHostedZoneLimitRequest; output: GetHostedZoneLimitResponse; }; sdk: { input: GetHostedZoneLimitCommandInput; output: GetHostedZoneLimitCommandOutput; }; }; }