configureLogsForChannel method
Configures Amazon CloudWatch log settings for a channel.
Parameter channelName :
The name of the channel.
Parameter logTypes :
The types of logs to collect.
Implementation
Future<ConfigureLogsForChannelResponse> configureLogsForChannel({
required String channelName,
required List<LogType> logTypes,
}) async {
final $payload = <String, dynamic>{
'ChannelName': channelName,
'LogTypes': logTypes.map((e) => e.value).toList(),
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/configureLogs/channel',
exceptionFnMap: _exceptionFns,
);
return ConfigureLogsForChannelResponse.fromJson(response);
}