set_v2_logging_options
¶
set_v2_logging_options(
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 | |