Skip to content

get_reusable_delegation_set async

get_reusable_delegation_set(
    id: ResourceId, *, config_overrides: Optional[AsyncRoute53ClientConfig] = None
) -> GetReusableDelegationSetResponse

Retrieves information about a specified reusable delegation set, including the four name servers that are assigned to the delegation set.

Parameters:

  • id (ResourceId) –

    The ID of the reusable delegation set that you want to get a list of name servers for.

Raises:

Source code in docs_src/capo_route_53/_services/async_route53.py
async def get_reusable_delegation_set(
    self,
    id: "capo_route_53.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> "capo_route_53.types.get_reusable_delegation_set_response.GetReusableDelegationSetResponse":
    """<p>Retrieves information about a specified reusable delegation set, including the four name servers that are assigned to the delegation set.</p>

    Args:
        id: <p>The ID of the reusable delegation set that you want to get a list of name servers for.</p>

    Raises:
        capo_route_53.errors.delegation_set_not_reusable.DelegationSetNotReusable: <p>A reusable delegation set with the specified ID does not exist.</p>
        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_request.GetReusableDelegationSetRequest]",
    ) -> AsyncOperationResponse[
        "capo_route_53.types.get_reusable_delegation_set_response.GetReusableDelegationSetResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.get_reusable_delegation_set

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetReusableDelegationSet")
    )
    input_: capo_route_53.types.get_reusable_delegation_set_request.GetReusableDelegationSetRequest = {
        "id": id
    }

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