IoT / Client / set_v2_logging_options

set_v2_logging_options#

IoT.Client.set_v2_logging_options(**kwargs)#

Sets the logging options for the V2 logging service.

Requires permission to access the SetV2LoggingOptions action.

See also: AWS API Documentation

Request Syntax

response = client.set_v2_logging_options(
    roleArn='string',
    defaultLogLevel='DEBUG'|'INFO'|'ERROR'|'WARN'|'DISABLED',
    disableAllLogs=True|False
)
Parameters:
  • roleArn (string) – The ARN of the role that allows IoT to write to Cloudwatch logs.

  • defaultLogLevel (string) – The default logging level.

  • disableAllLogs (boolean) – If true all logs are disabled. The default is false.

Returns:

None

Exceptions

  • IoT.Client.exceptions.InternalException

  • IoT.Client.exceptions.InvalidRequestException

  • IoT.Client.exceptions.ServiceUnavailableException