updateReviewTemplateLensReview method
Update a lens review associated with a review template.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter templateArn :
The review template ARN.
Implementation
Future<UpdateReviewTemplateLensReviewOutput> updateReviewTemplateLensReview({
required String lensAlias,
required String templateArn,
String? lensNotes,
Map<String, String>? pillarNotes,
}) async {
final $payload = <String, dynamic>{
if (lensNotes != null) 'LensNotes': lensNotes,
if (pillarNotes != null) 'PillarNotes': pillarNotes,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/reviewTemplates/${Uri.encodeComponent(templateArn)}/lensReviews/${Uri.encodeComponent(lensAlias)}',
exceptionFnMap: _exceptionFns,
);
return UpdateReviewTemplateLensReviewOutput.fromJson(response);
}