getReusableDelegationSetLimit method

Future<GetReusableDelegationSetLimitResponse> getReusableDelegationSetLimit({
  1. required String delegationSetId,
  2. required ReusableDelegationSetLimitType type,
})

Gets the maximum number of hosted zones that you can associate with the specified reusable delegation set.

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

May throw InvalidInput. May throw NoSuchDelegationSet.

Parameter delegationSetId : The ID of the delegation set that you want to get the limit for.

Parameter type : Specify MAX_ZONES_BY_REUSABLE_DELEGATION_SET to get the maximum number of hosted zones that you can associate with the specified reusable delegation set.

Implementation

Future<GetReusableDelegationSetLimitResponse> getReusableDelegationSetLimit({
  required String delegationSetId,
  required ReusableDelegationSetLimitType type,
}) async {
  ArgumentError.checkNotNull(delegationSetId, 'delegationSetId');
  _s.validateStringLength(
    'delegationSetId',
    delegationSetId,
    0,
    32,
    isRequired: true,
  );
  ArgumentError.checkNotNull(type, 'type');
  final $result = await _protocol.send(
    method: 'GET',
    requestUri:
        '/2013-04-01/reusabledelegationsetlimit/${Uri.encodeComponent(delegationSetId)}/${Uri.encodeComponent(type.toValue())}',
    exceptionFnMap: _exceptionFns,
  );
  return GetReusableDelegationSetLimitResponse.fromXml($result.body);
}