Skip to content

get_reusable_delegation_set_limit async

get_reusable_delegation_set_limit(
    type: ReusableDelegationSetLimitType,
    delegation_set_id: ResourceId,
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> GetReusableDelegationSetLimitResponse

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.

Parameters:

  • type (ReusableDelegationSetLimitType) –

    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.

  • delegation_set_id (ResourceId) –

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

Raises:

Source code in docs_src/capo_route_53/_services/async_route53.py
async def get_reusable_delegation_set_limit(
    self,
    type: "capo_route_53.types.reusable_delegation_set_limit_type.ReusableDelegationSetLimitType",
    delegation_set_id: "capo_route_53.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> "capo_route_53.types.get_reusable_delegation_set_limit_response.GetReusableDelegationSetLimitResponse":
    """<p>Gets the maximum number of hosted zones that you can associate with the specified reusable delegation set.</p> <p>For the default limit, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html">Limits</a> in the <i>Amazon Route 53 Developer Guide</i>. To request a higher limit, <a href="https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53">open a case</a>.</p>

    Args:
        type: <p>Specify <code>MAX_ZONES_BY_REUSABLE_DELEGATION_SET</code> to get the maximum number of hosted zones that you can associate with the specified reusable delegation set.</p>
        delegation_set_id: <p>The ID of the delegation set that you want to get the limit for.</p>

    Raises:
        capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</p>
        capo_route_53.errors.no_such_delegation_set.NoSuchDelegationSet: <p>A reusable delegation set with the specified ID does not exist.</p>
        capo_route_53.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_route_53.types.get_reusable_delegation_set_limit_request.GetReusableDelegationSetLimitRequest]",
    ) -> AsyncOperationResponse[
        "capo_route_53.types.get_reusable_delegation_set_limit_response.GetReusableDelegationSetLimitResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.get_reusable_delegation_set_limit

        (
            output,
            http_response,
        ) = await capo_route_53._operations.aws_dns_v20130401.get_reusable_delegation_set_limit.async_get_reusable_delegation_set_limit(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetReusableDelegationSetLimit")
    )
    input_: capo_route_53.types.get_reusable_delegation_set_limit_request.GetReusableDelegationSetLimitRequest = {
        "type": type,
        "delegation_set_id": delegation_set_id,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output