Skip to content

list_queues

list_queues(
    *,
    config_overrides: Optional[KinesisClientConfig] = None,
    max_results: Optional[ListQueuesInputLimit] = None,
    next_token: Optional[NextToken] = None,
    stream_filter: Optional[QueueStreamFilterList] = None,
) -> ListQueuesOutput

Returns a summary of each queue in the Amazon Web Services account and Region used by the request. Use StreamFilter to list only the queues on a particular data stream.

If the response contains a NextToken, more queues are available. Call ListQueues again with that value to retrieve the next page.

Parameters:

  • max_results (Optional[ListQueuesInputLimit], default: None ) –

    The maximum number of queue summaries to return in one response. The response might contain fewer summaries than this value, and might contain a NextToken even when it contains fewer.

  • next_token (Optional[NextToken], default: None ) –

    The NextToken returned by a previous ListQueues request. Use it to retrieve the next page of queue summaries.

  • stream_filter (Optional[QueueStreamFilterList], default: None ) –

    Lists only the queues created on the specified data stream.

Raises:

  • AccessDeniedException –

    Specifies that you do not have the permissions required to perform this operation.

  • ExpiredNextTokenException –

    The pagination token passed to the operation is expired.

  • InternalFailureException –

    The processing of the request failed because of an unknown error, exception, or failure.

  • InvalidArgumentException –

    A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.

  • LimitExceededException –

    The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.

  • ValidationException –

    The request failed validation. For example, a parameter value is not valid, a combination of parameters is not supported, or the operation is not supported for the stream's capacity mode. The error message describes the specific reason.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_kinesis/_services/kinesis.py
def list_queues(
    self,
    *,
    config_overrides: Optional[KinesisClientConfig] = None,
    max_results: Optional[
        "capo_kinesis.types.list_queues_input_limit.ListQueuesInputLimit"
    ] = None,
    next_token: Optional["capo_kinesis.types.next_token.NextToken"] = None,
    stream_filter: Optional[
        "capo_kinesis.types.queue_stream_filter_list.QueueStreamFilterList"
    ] = None,
) -> "capo_kinesis.types.list_queues_output.ListQueuesOutput":
    """<p>Returns a summary of each queue in the Amazon Web Services account and Region used by the request. Use <code>StreamFilter</code> to list only the queues on a particular data stream.</p> <p>If the response contains a <code>NextToken</code>, more queues are available. Call <code>ListQueues</code> again with that value to retrieve the next page.</p>

    Args:
        max_results: <p>The maximum number of queue summaries to return in one response. The response might contain fewer summaries than this value, and might contain a <code>NextToken</code> even when it contains fewer.</p>
        next_token: <p>The <code>NextToken</code> returned by a previous <code>ListQueues</code> request. Use it to retrieve the next page of queue summaries.</p>
        stream_filter: <p>Lists only the queues created on the specified data stream.</p>

    Raises:
        capo_kinesis.errors.access_denied_exception.AccessDeniedException: <p>Specifies that you do not have the permissions required to perform this operation.</p>
        capo_kinesis.errors.expired_next_token_exception.ExpiredNextTokenException: <p>The pagination token passed to the operation is expired.</p>
        capo_kinesis.errors.internal_failure_exception.InternalFailureException: <p>The processing of the request failed because of an unknown error, exception, or failure.</p>
        capo_kinesis.errors.invalid_argument_exception.InvalidArgumentException: <p>A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.</p>
        capo_kinesis.errors.limit_exceeded_exception.LimitExceededException: <p>The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed. </p>
        capo_kinesis.errors.validation_exception.ValidationException: <p>The request failed validation. For example, a parameter value is not valid, a combination of parameters is not supported, or the operation is not supported for the stream's capacity mode. The error message describes the specific reason.</p>
        capo_kinesis.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_kinesis.types.list_queues_input.ListQueuesInput]",
    ) -> OperationResponse[
        "capo_kinesis.types.list_queues_output.ListQueuesOutput"
    ]:
        import capo_kinesis._operations.kinesis_20131202.list_queues

        output, http_response = (
            capo_kinesis._operations.kinesis_20131202.list_queues.list_queues(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListQueues")
    )
    input_: capo_kinesis.types.list_queues_input.ListQueuesInput = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if stream_filter is not None:
        input_["stream_filter"] = stream_filter

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output