getHostedZoneLimit method
Future<GetHostedZoneLimitResponse>
getHostedZoneLimit({
- required String hostedZoneId,
- required HostedZoneLimitType type,
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.
May throw NoSuchHostedZone. May throw InvalidInput. May throw HostedZoneNotPrivate.
Parameter hostedZoneId
:
The ID of the hosted zone that you want to get a limit for.
Parameter type
:
The limit that you want to get. Valid values include the following:
- MAX_RRSETS_BY_ZONE: The maximum number of records that you can create in the specified hosted zone.
- MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you can associate with the specified private hosted zone.
Implementation
Future<GetHostedZoneLimitResponse> getHostedZoneLimit({
required String hostedZoneId,
required HostedZoneLimitType type,
}) async {
ArgumentError.checkNotNull(hostedZoneId, 'hostedZoneId');
_s.validateStringLength(
'hostedZoneId',
hostedZoneId,
0,
32,
isRequired: true,
);
ArgumentError.checkNotNull(type, 'type');
final $result = await _protocol.send(
method: 'GET',
requestUri:
'/2013-04-01/hostedzonelimit/${Uri.encodeComponent(hostedZoneId)}/${Uri.encodeComponent(type.toValue())}',
exceptionFnMap: _exceptionFns,
);
return GetHostedZoneLimitResponse.fromXml($result.body);
}