IoTWireless / Client / update_log_levels_by_resource_types

update_log_levels_by_resource_types#

IoTWireless.Client.update_log_levels_by_resource_types(**kwargs)#

Set default log level, or log levels by resource types. This can be for wireless device log options or wireless gateways log options and is used to control the log messages that’ll be displayed in CloudWatch.

See also: AWS API Documentation

Request Syntax

response = client.update_log_levels_by_resource_types(
    DefaultLogLevel='INFO'|'ERROR'|'DISABLED',
    WirelessDeviceLogOptions=[
        {
            'Type': 'Sidewalk'|'LoRaWAN',
            'LogLevel': 'INFO'|'ERROR'|'DISABLED',
            'Events': [
                {
                    'Event': 'Join'|'Rejoin'|'Uplink_Data'|'Downlink_Data'|'Registration',
                    'LogLevel': 'INFO'|'ERROR'|'DISABLED'
                },
            ]
        },
    ],
    WirelessGatewayLogOptions=[
        {
            'Type': 'LoRaWAN',
            'LogLevel': 'INFO'|'ERROR'|'DISABLED',
            'Events': [
                {
                    'Event': 'CUPS_Request'|'Certificate',
                    'LogLevel': 'INFO'|'ERROR'|'DISABLED'
                },
            ]
        },
    ]
)
Parameters:
  • DefaultLogLevel (string) – The log level for a log message. The log levels can be disabled, or set to ERROR to display less verbose logs containing only error information, or to INFO for more detailed logs.

  • WirelessDeviceLogOptions (list) –

    The list of wireless device log options.

    • (dict) –

      The log options for wireless devices and can be used to set log levels for a specific type of wireless device.

      • Type (string) – [REQUIRED]

        The wireless device type.

      • LogLevel (string) – [REQUIRED]

        The log level for a log message. The log levels can be disabled, or set to ERROR to display less verbose logs containing only error information, or to INFO for more detailed logs.

      • Events (list) –

        The list of wireless device event log options.

        • (dict) –

          The log options for a wireless device event and can be used to set log levels for a specific wireless device event.

          For a LoRaWAN device, possible events for a log messsage are: Join, Rejoin, Downlink_Data, and Uplink_Data. For a Sidewalk device, possible events for a log message are Registration, Downlink_Data, and Uplink_Data.

          • Event (string) – [REQUIRED]

            The event for a log message, if the log message is tied to a wireless device.

          • LogLevel (string) – [REQUIRED]

            The log level for a log message. The log levels can be disabled, or set to ERROR to display less verbose logs containing only error information, or to INFO for more detailed logs.

  • WirelessGatewayLogOptions (list) –

    The list of wireless gateway log options.

    • (dict) –

      The log options for wireless gateways and can be used to set log levels for a specific type of wireless gateway.

      • Type (string) – [REQUIRED]

        The wireless gateway type.

      • LogLevel (string) – [REQUIRED]

        The log level for a log message. The log levels can be disabled, or set to ERROR to display less verbose logs containing only error information, or to INFO for more detailed logs.

      • Events (list) –

        The list of wireless gateway event log options.

        • (dict) –

          The log options for a wireless gateway event and can be used to set log levels for a specific wireless gateway event.

          For a LoRaWAN gateway, possible events for a log message are CUPS_Request and Certificate.

          • Event (string) – [REQUIRED]

            The event for a log message, if the log message is tied to a wireless gateway.

          • LogLevel (string) – [REQUIRED]

            The log level for a log message. The log levels can be disabled, or set to ERROR to display less verbose logs containing only error information, or to INFO for more detailed logs.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • IoTWireless.Client.exceptions.AccessDeniedException

  • IoTWireless.Client.exceptions.ConflictException

  • IoTWireless.Client.exceptions.InternalServerException

  • IoTWireless.Client.exceptions.ResourceNotFoundException

  • IoTWireless.Client.exceptions.ThrottlingException

  • IoTWireless.Client.exceptions.ValidationException