Skip to content

list_recommendation_feedback async

list_recommendation_feedback(
    code_review_arn: Arn,
    *,
    config_overrides: Optional[AsyncCodeGuruReviewerClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    user_ids: Optional[UserIds] = None,
    recommendation_ids: Optional[RecommendationIds] = None,
) -> ListRecommendationFeedbackResponse

Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.

Parameters:

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

    If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

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

    The maximum number of results that are returned per call. The default is 100.

  • code_review_arn (Arn) –

    The Amazon Resource Name (ARN) of the CodeReview object.

  • user_ids (Optional[UserIds], default: None ) –

    An Amazon Web Services user's account ID or Amazon Resource Name (ARN). Use this ID to query the recommendation feedback for a code review from that user.

    The UserId is an IAM principal that can be specified as an Amazon Web Services account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the Amazon Web Services Identity and Access Management User Guide.

  • recommendation_ids (Optional[RecommendationIds], default: None ) –

    Used to query the recommendation feedback for a given recommendation.

Raises:

Source code in docs_src/capo_codeguru_reviewer/_services/async_code_guru_reviewer.py
async def list_recommendation_feedback(
    self,
    code_review_arn: "capo_codeguru_reviewer.types.arn.Arn",
    *,
    config_overrides: Optional[AsyncCodeGuruReviewerClientConfig] = None,
    next_token: Optional[
        "capo_codeguru_reviewer.types.next_token.NextToken"
    ] = None,
    max_results: Optional[
        "capo_codeguru_reviewer.types.max_results.MaxResults"
    ] = None,
    user_ids: Optional["capo_codeguru_reviewer.types.user_ids.UserIds"] = None,
    recommendation_ids: Optional[
        "capo_codeguru_reviewer.types.recommendation_ids.RecommendationIds"
    ] = None,
) -> "capo_codeguru_reviewer.types.list_recommendation_feedback_response.ListRecommendationFeedbackResponse":
    """<p>Returns a list of <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html">RecommendationFeedbackSummary</a> objects that contain customer recommendation feedback for all CodeGuru Reviewer users.</p>

    Args:
        next_token: <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.</p>
        max_results: <p>The maximum number of results that are returned per call. The default is 100.</p>
        code_review_arn: <p>The Amazon Resource Name (ARN) of the <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">CodeReview</a> object. </p>
        user_ids: <p>An Amazon Web Services user's account ID or Amazon Resource Name (ARN). Use this ID to query the recommendation feedback for a code review from that user.</p> <p> The <code>UserId</code> is an IAM principal that can be specified as an Amazon Web Services account ID or an Amazon Resource Name (ARN). For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying"> Specifying a Principal</a> in the <i>Amazon Web Services Identity and Access Management User Guide</i>.</p>
        recommendation_ids: <p>Used to query the recommendation feedback for a given recommendation.</p>

    Raises:
        capo_codeguru_reviewer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_codeguru_reviewer.errors.internal_server_exception.InternalServerException: <p>The server encountered an internal error and is unable to complete the request.</p>
        capo_codeguru_reviewer.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource specified in the request was not found. </p>
        capo_codeguru_reviewer.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_codeguru_reviewer.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
        capo_codeguru_reviewer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codeguru_reviewer.types.list_recommendation_feedback_request.ListRecommendationFeedbackRequest]",
    ) -> AsyncOperationResponse[
        "capo_codeguru_reviewer.types.list_recommendation_feedback_response.ListRecommendationFeedbackResponse"
    ]:
        import capo_codeguru_reviewer._operations.aws_guru_frontend_service.list_recommendation_feedback

        (
            output,
            http_response,
        ) = await capo_codeguru_reviewer._operations.aws_guru_frontend_service.list_recommendation_feedback.async_list_recommendation_feedback(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListRecommendationFeedback")
    )
    input_: capo_codeguru_reviewer.types.list_recommendation_feedback_request.ListRecommendationFeedbackRequest = {
        "code_review_arn": code_review_arn
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if user_ids is not None:
        input_["user_ids"] = user_ids
    if recommendation_ids is not None:
        input_["recommendation_ids"] = recommendation_ids

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