updateAssertion method
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);
}