Skip to main content

recommendation_feedbacks

Creates, updates, deletes, gets or lists a recommendation_feedbacks resource.

Overview

Namerecommendation_feedbacks
TypeResource
Idaws.codeguru_reviewer.recommendation_feedbacks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
code_review_arnstringThe Amazon Resource Name (ARN) of the CodeReview object. (pattern: <code>^arn:aws[^:\s]*:codeguru-reviewer:[^:\s]+:[\d]{12}:[a-z-]+:[\w-]+$</code>)
created_time_stampstring (date-time)The time at which the feedback was created.
last_updated_time_stampstring (date-time)The time at which the feedback was last updated.
reactionsarrayList for storing reactions. Reactions are utf-8 text code for emojis. You can send an empty list to clear off all your feedback.
recommendation_idstringThe recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
user_idstringThe ID of the user that made the API call. 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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_recommendation_feedbackselectcode_review_arn, RecommendationId, regionUserIdDescribes the customer feedback for a CodeGuru Reviewer recommendation.
list_recommendation_feedbackselectcode_review_arn, regionNextToken, MaxResults, UserIds, RecommendationIdsReturns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.
put_recommendation_feedbackreplaceregion, CodeReviewArn, RecommendationId, ReactionsStores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
RecommendationIdstringThe recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
code_review_arnstringThe Amazon Resource Name (ARN) of the CodeReview object.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results that are returned per call. The default is 100.
NextTokenstringIf 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.
RecommendationIdsarrayUsed to query the recommendation feedback for a given recommendation.
UserIdstringOptional parameter to describe the feedback for a given user. If this is not supplied, it defaults to the user making the request. 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.
UserIdsarrayAn 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.

SELECT examples

Describes the customer feedback for a CodeGuru Reviewer recommendation.

SELECT
code_review_arn,
created_time_stamp,
last_updated_time_stamp,
reactions,
recommendation_id,
user_id
FROM aws.codeguru_reviewer.recommendation_feedbacks
WHERE code_review_arn = '{{ code_review_arn }}' -- required
AND RecommendationId = '{{ RecommendationId }}' -- required
AND region = '{{ region }}' -- required
AND UserId = '{{ UserId }}'
;

REPLACE examples

Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.

REPLACE aws.codeguru_reviewer.recommendation_feedbacks
SET
CodeReviewArn = '{{ CodeReviewArn }}',
RecommendationId = '{{ RecommendationId }}',
Reactions = '{{ Reactions }}'
WHERE
region = '{{ region }}' --required
AND CodeReviewArn = '{{ CodeReviewArn }}' --required
AND RecommendationId = '{{ RecommendationId }}' --required
AND Reactions = '{{ Reactions }}' --required;