Skip to content

describe_queue

describe_queue(
    queue_arn: QueueARN, *, config_overrides: Optional[KinesisClientConfig] = None
) -> DescribeQueueOutput

Returns a description of the specified queue, including its status, the data stream it delivers records from, and its configuration attributes.

Parameters:

  • queue_arn (QueueARN) –

    The ARN of the queue to describe.

Raises:

  • AccessDeniedException –

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

  • 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.

  • ResourceNotFoundException –

    The requested resource could not be found. The stream might not be specified correctly.

  • 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 describe_queue(
    self,
    queue_arn: "capo_kinesis.types.queue_arn.QueueARN",
    *,
    config_overrides: Optional[KinesisClientConfig] = None,
) -> "capo_kinesis.types.describe_queue_output.DescribeQueueOutput":
    """<p>Returns a description of the specified queue, including its status, the data stream it delivers records from, and its configuration attributes.</p>

    Args:
        queue_arn: <p>The ARN of the queue to describe.</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.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.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found. The stream might not be specified correctly.</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.describe_queue_input.DescribeQueueInput]",
    ) -> OperationResponse[
        "capo_kinesis.types.describe_queue_output.DescribeQueueOutput"
    ]:
        import capo_kinesis._operations.kinesis_20131202.describe_queue

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeQueue")
    )
    input_: capo_kinesis.types.describe_queue_input.DescribeQueueInput = {
        "queue_arn": queue_arn
    }

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