cancelSession method
Cancels an approval session. For more information, see Session in the Multi-party approval User Guide.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter sessionArn :
Amazon Resource Name (ARN) for the session.
Implementation
Future<void> cancelSession({
required String sessionArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri: '/sessions/${Uri.encodeComponent(sessionArn)}',
exceptionFnMap: _exceptionFns,
);
}