Skip to content

get_queue_limit_association async

get_queue_limit_association(
    farm_id: FarmId,
    queue_id: QueueId,
    limit_id: LimitId,
    *,
    config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> GetQueueLimitAssociationResponse

Gets information about a specific association between a queue and a limit.

Parameters:

  • farm_id (FarmId) –

    The unique identifier of the farm that contains the associated queue and limit.

  • queue_id (QueueId) –

    The unique identifier of the queue associated with the limit.

  • limit_id (LimitId) –

    The unique identifier of the limit associated with the queue.

Raises:

Source code in docs_src/capo_deadline/_services/async_deadline.py
async def get_queue_limit_association(
    self,
    farm_id: "capo_deadline.types.farm_id.FarmId",
    queue_id: "capo_deadline.types.queue_id.QueueId",
    limit_id: "capo_deadline.types.limit_id.LimitId",
    *,
    config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> "capo_deadline.types.get_queue_limit_association_response.GetQueueLimitAssociationResponse":
    """<p>Gets information about a specific association between a queue and a limit.</p>

    Args:
        farm_id: <p>The unique identifier of the farm that contains the associated queue and limit.</p>
        queue_id: <p>The unique identifier of the queue associated with the limit.</p>
        limit_id: <p>The unique identifier of the limit associated with the queue.</p>

    Raises:
        capo_deadline.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform the action.</p>
        capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: <p>Deadline Cloud can't process your request right now. Try again later.</p>
        capo_deadline.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource can't be found.</p>
        capo_deadline.errors.throttling_exception.ThrottlingException: <p>Your request exceeded a request rate quota.</p>
        capo_deadline.errors.validation_exception.ValidationException: <p>The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.</p>
        capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_deadline.types.get_queue_limit_association_request.GetQueueLimitAssociationRequest]",
    ) -> AsyncOperationResponse[
        "capo_deadline.types.get_queue_limit_association_response.GetQueueLimitAssociationResponse"
    ]:
        import capo_deadline._operations.deadline.get_queue_limit_association

        (
            output,
            http_response,
        ) = await capo_deadline._operations.deadline.get_queue_limit_association.async_get_queue_limit_association(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetQueueLimitAssociation")
    )
    input_: capo_deadline.types.get_queue_limit_association_request.GetQueueLimitAssociationRequest = {
        "farm_id": farm_id,
        "queue_id": queue_id,
        "limit_id": limit_id,
    }

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