Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class GetHostedZoneLimitCommandProtected

Gets the specified limit for a specified hosted zone, for example, the maximum number of records that you can create in the hosted zone.

For the default limit, see Limits in the Amazon Route 53 Developer Guide. To request a higher limit, open a case.

Example

Use a bare-bones client and the command you need to make an API call.

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

Returns

GetHostedZoneLimitCommandOutput

See

Throws

HostedZoneNotPrivate (client fault)

The specified hosted zone is a public hosted zone, not a private hosted zone.

Throws

InvalidInput (client fault)

The input is not valid.

Throws

NoSuchHostedZone (client fault)

No hosted zone exists with the ID that you specified.

Throws

Route53ServiceException

Base exception class for all service exceptions from Route53 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods