getAccountLimit method
Gets the specified limit for the current account, for example, the maximum number of health checks that you can create using the account.
For the default limit, see Limits in the Amazon Route 53 Developer Guide. To request a higher limit, open a case.
May throw InvalidInput.
Parameter type
:
The limit that you want to get. Valid values include the following:
- MAX_HEALTH_CHECKS_BY_OWNER: The maximum number of health checks that you can create using the current account.
- MAX_HOSTED_ZONES_BY_OWNER: The maximum number of hosted zones that you can create using the current account.
- MAX_REUSABLE_DELEGATION_SETS_BY_OWNER: The maximum number of reusable delegation sets that you can create using the current account.
- MAX_TRAFFIC_POLICIES_BY_OWNER: The maximum number of traffic policies that you can create using the current account.
- MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER: The maximum number of traffic policy instances that you can create using the current account. (Traffic policy instances are referred to as traffic flow policy records in the Amazon Route 53 console.)
Implementation
Future<GetAccountLimitResponse> getAccountLimit({
required AccountLimitType type,
}) async {
ArgumentError.checkNotNull(type, 'type');
final $result = await _protocol.send(
method: 'GET',
requestUri:
'/2013-04-01/accountlimit/${Uri.encodeComponent(type.toValue())}',
exceptionFnMap: _exceptionFns,
);
return GetAccountLimitResponse.fromXml($result.body);
}