IoT / Client / set_v2_logging_level

set_v2_logging_level#

IoT.Client.set_v2_logging_level(**kwargs)#

Sets the logging level.

Requires permission to access the SetV2LoggingLevel action.

See also: AWS API Documentation

Request Syntax

response = client.set_v2_logging_level(
    logTarget={
        'targetType': 'DEFAULT'|'THING_GROUP'|'CLIENT_ID'|'SOURCE_IP'|'PRINCIPAL_ID',
        'targetName': 'string'
    },
    logLevel='DEBUG'|'INFO'|'ERROR'|'WARN'|'DISABLED'
)
Parameters:
  • logTarget (dict) –

    [REQUIRED]

    The log target.

    • targetType (string) – [REQUIRED]

      The target type.

    • targetName (string) –

      The target name.

  • logLevel (string) –

    [REQUIRED]

    The log level.

Returns:

None

Exceptions

  • IoT.Client.exceptions.InternalException

  • IoT.Client.exceptions.NotConfiguredException

  • IoT.Client.exceptions.InvalidRequestException

  • IoT.Client.exceptions.ServiceUnavailableException

  • IoT.Client.exceptions.LimitExceededException