upgradeLensReview method

Future<void> upgradeLensReview({
  1. required String lensAlias,
  2. required String milestoneName,
  3. required String workloadId,
  4. String? clientRequestToken,
})

Upgrade lens review for a particular workload.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Implementation

Future<void> upgradeLensReview({
  required String lensAlias,
  required String milestoneName,
  required String workloadId,
  String? clientRequestToken,
}) async {
  final $payload = <String, dynamic>{
    'MilestoneName': milestoneName,
    if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/workloads/${Uri.encodeComponent(workloadId)}/lensReviews/${Uri.encodeComponent(lensAlias)}/upgrade',
    exceptionFnMap: _exceptionFns,
  );
}