Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

set_v2_logging_level

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