updateSessionLogger method

Future<UpdateSessionLoggerResponse> updateSessionLogger({
  1. required String sessionLoggerArn,
  2. String? displayName,
  3. EventFilter? eventFilter,
  4. LogConfiguration? logConfiguration,
})

Updates the details of a session logger.

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

Parameter sessionLoggerArn : The ARN of the session logger to update.

Parameter displayName : The updated display name.

Parameter eventFilter : The updated eventFilter.

Parameter logConfiguration : The updated logConfiguration.

Implementation

Future<UpdateSessionLoggerResponse> updateSessionLogger({
  required String sessionLoggerArn,
  String? displayName,
  EventFilter? eventFilter,
  LogConfiguration? logConfiguration,
}) async {
  final $payload = <String, dynamic>{
    if (displayName != null) 'displayName': displayName,
    if (eventFilter != null) 'eventFilter': eventFilter,
    if (logConfiguration != null) 'logConfiguration': logConfiguration,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/sessionLoggers/${sessionLoggerArn.split('/').map(Uri.encodeComponent).join('/')}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateSessionLoggerResponse.fromJson(response);
}