set_v2_logging_options
async
¶
set_v2_logging_options(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
role_arn: Optional[AwsArn] = None,
default_log_level: Optional[LogLevel] = None,
disable_all_logs: Optional[DisableAllLogs] = None,
event_configurations: Optional[LogEventConfigurations] = None,
) -> None
Sets the logging options for the V2 logging service.
Requires permission to access the SetV2LoggingOptions action.
Parameters:
-
role_arn(Optional[AwsArn], default:None) –The ARN of the role that allows IoT to write to Cloudwatch logs.
-
default_log_level(Optional[LogLevel], default:None) –The default logging level.
-
disable_all_logs(Optional[DisableAllLogs], default:None) –If true all logs are disabled. The default is false.
-
event_configurations(Optional[LogEventConfigurations], default:None) –The list of event configurations that override account-level logging.
Raises:
-
InternalException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 | |