updateAssertion method

Future<UpdateAssertionResponse> updateAssertion({
  1. required String assertionId,
  2. required String serviceArn,
  3. String? text,
})

Updates a resilience assertion.

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

Parameter assertionId : The unique identifier of the assertion to update.

Parameter text : The updated text content of the assertion.

Implementation

Future<UpdateAssertionResponse> updateAssertion({
  required String assertionId,
  required String serviceArn,
  String? text,
}) async {
  final $payload = <String, dynamic>{
    'assertionId': assertionId,
    'serviceArn': serviceArn,
    if (text != null) 'text': text,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v2/update-assertion',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAssertionResponse.fromJson(response);
}