Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
Synopsis
- data PutRecommendationFeedback = PutRecommendationFeedback' {
- codeReviewArn :: Text
- recommendationId :: Text
- reactions :: [Reaction]
- newPutRecommendationFeedback :: Text -> Text -> PutRecommendationFeedback
- putRecommendationFeedback_codeReviewArn :: Lens' PutRecommendationFeedback Text
- putRecommendationFeedback_recommendationId :: Lens' PutRecommendationFeedback Text
- putRecommendationFeedback_reactions :: Lens' PutRecommendationFeedback [Reaction]
- data PutRecommendationFeedbackResponse = PutRecommendationFeedbackResponse' {
- httpStatus :: Int
- newPutRecommendationFeedbackResponse :: Int -> PutRecommendationFeedbackResponse
- putRecommendationFeedbackResponse_httpStatus :: Lens' PutRecommendationFeedbackResponse Int
Creating a Request
data PutRecommendationFeedback Source #
See: newPutRecommendationFeedback
smart constructor.
PutRecommendationFeedback' | |
|
Instances
newPutRecommendationFeedback Source #
:: Text | |
-> Text | |
-> PutRecommendationFeedback |
Create a value of PutRecommendationFeedback
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:codeReviewArn:PutRecommendationFeedback'
, putRecommendationFeedback_codeReviewArn
- The Amazon Resource Name (ARN) of the
CodeReview
object.
$sel:recommendationId:PutRecommendationFeedback'
, putRecommendationFeedback_recommendationId
- The recommendation ID that can be used to track the provided
recommendations and then to collect the feedback.
$sel:reactions:PutRecommendationFeedback'
, putRecommendationFeedback_reactions
- List for storing reactions. Reactions are utf-8 text code for emojis. If
you send an empty list it clears all your feedback.
Request Lenses
putRecommendationFeedback_codeReviewArn :: Lens' PutRecommendationFeedback Text Source #
The Amazon Resource Name (ARN) of the CodeReview object.
putRecommendationFeedback_recommendationId :: Lens' PutRecommendationFeedback Text Source #
The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
putRecommendationFeedback_reactions :: Lens' PutRecommendationFeedback [Reaction] Source #
List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.
Destructuring the Response
data PutRecommendationFeedbackResponse Source #
See: newPutRecommendationFeedbackResponse
smart constructor.
PutRecommendationFeedbackResponse' | |
|
Instances
Eq PutRecommendationFeedbackResponse Source # | |
Read PutRecommendationFeedbackResponse Source # | |
Show PutRecommendationFeedbackResponse Source # | |
Generic PutRecommendationFeedbackResponse Source # | |
NFData PutRecommendationFeedbackResponse Source # | |
Defined in Amazonka.CodeGuruReviewer.PutRecommendationFeedback rnf :: PutRecommendationFeedbackResponse -> () # | |
type Rep PutRecommendationFeedbackResponse Source # | |
Defined in Amazonka.CodeGuruReviewer.PutRecommendationFeedback type Rep PutRecommendationFeedbackResponse = D1 ('MetaData "PutRecommendationFeedbackResponse" "Amazonka.CodeGuruReviewer.PutRecommendationFeedback" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "PutRecommendationFeedbackResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutRecommendationFeedbackResponse Source #
Create a value of PutRecommendationFeedbackResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PutRecommendationFeedbackResponse'
, putRecommendationFeedbackResponse_httpStatus
- The response's http status code.
Response Lenses
putRecommendationFeedbackResponse_httpStatus :: Lens' PutRecommendationFeedbackResponse Int Source #
The response's http status code.