Skip to content

list_reusable_delegation_sets async

list_reusable_delegation_sets(
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
    marker: Optional[PageMarker] = None,
    max_items: Optional[int] = None,
) -> ListReusableDelegationSetsResponse

Retrieves a list of the reusable delegation sets that are associated with the current Amazon Web Services account.

Parameters:

  • marker (Optional[PageMarker], default: None ) –

    If the value of IsTruncated in the previous response was true, you have more reusable delegation sets. To get another group, submit another ListReusableDelegationSets request.

    For the value of marker, specify the value of NextMarker from the previous response, which is the ID of the first reusable delegation set that Amazon Route 53 will return if you submit another request.

    If the value of IsTruncated in the previous response was false, there are no more reusable delegation sets to get.

  • max_items (Optional[int], default: None ) –

    The number of reusable delegation sets that you want Amazon Route 53 to return in the response to this request. If you specify a value greater than 100, Route 53 returns only the first 100 reusable delegation sets.

Raises:

Source code in docs_src/capo_route_53/_services/async_route53.py
async def list_reusable_delegation_sets(
    self,
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
    marker: Optional["capo_route_53.types.page_marker.PageMarker"] = None,
    max_items: Optional[int] = None,
) -> "capo_route_53.types.list_reusable_delegation_sets_response.ListReusableDelegationSetsResponse":
    """<p>Retrieves a list of the reusable delegation sets that are associated with the current Amazon Web Services account.</p>

    Args:
        marker: <p>If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more reusable delegation sets. To get another group, submit another <code>ListReusableDelegationSets</code> request. </p> <p>For the value of <code>marker</code>, specify the value of <code>NextMarker</code> from the previous response, which is the ID of the first reusable delegation set that Amazon Route 53 will return if you submit another request.</p> <p>If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no more reusable delegation sets to get.</p>
        max_items: <p>The number of reusable delegation sets that you want Amazon Route 53 to return in the response to this request. If you specify a value greater than 100, Route 53 returns only the first 100 reusable delegation sets.</p>

    Raises:
        capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</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.list_reusable_delegation_sets_request.ListReusableDelegationSetsRequest]",
    ) -> AsyncOperationResponse[
        "capo_route_53.types.list_reusable_delegation_sets_response.ListReusableDelegationSetsResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.list_reusable_delegation_sets

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListReusableDelegationSets")
    )
    input_: capo_route_53.types.list_reusable_delegation_sets_request.ListReusableDelegationSetsRequest = {}
    if marker is not None:
        input_["marker"] = marker
    if max_items is not None:
        input_["max_items"] = max_items

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