We are excited to announce our new API Documentation.
Protected
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.
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 importconst 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// };
GetHostedZoneLimitCommandInput
GetHostedZoneLimitCommandOutput
input
response
config
HostedZoneNotPrivate (client fault)
The specified hosted zone is a public hosted zone, not a private hosted zone.
InvalidInput (client fault)
The input is not valid.
NoSuchHostedZone (client fault)
No hosted zone exists with the ID that you specified.
Route53ServiceException
Base exception class for all service exceptions from Route53 service.
Readonly
Static
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.
Param
GetHostedZoneLimitCommandInput
Returns
GetHostedZoneLimitCommandOutput
See
input
shape.response
shape.config
shape.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.