GetLogLevelsByResourceTypesCommand

Returns current default log levels or log levels by resource types. Based on the resource type, log levels can be returned for wireless device, wireless gateway, or FUOTA task log options.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { IoTWirelessClient, GetLogLevelsByResourceTypesCommand } from "@aws-sdk/client-iot-wireless"; // ES Modules import
// const { IoTWirelessClient, GetLogLevelsByResourceTypesCommand } = require("@aws-sdk/client-iot-wireless"); // CommonJS import
const client = new IoTWirelessClient(config);
const input = {};
const command = new GetLogLevelsByResourceTypesCommand(input);
const response = await client.send(command);
// { // GetLogLevelsByResourceTypesResponse
//   DefaultLogLevel: "INFO" || "ERROR" || "DISABLED",
//   WirelessGatewayLogOptions: [ // WirelessGatewayLogOptionList
//     { // WirelessGatewayLogOption
//       Type: "LoRaWAN", // required
//       LogLevel: "INFO" || "ERROR" || "DISABLED", // required
//       Events: [ // WirelessGatewayEventLogOptionList
//         { // WirelessGatewayEventLogOption
//           Event: "CUPS_Request" || "Certificate", // required
//           LogLevel: "INFO" || "ERROR" || "DISABLED", // required
//         },
//       ],
//     },
//   ],
//   WirelessDeviceLogOptions: [ // WirelessDeviceLogOptionList
//     { // WirelessDeviceLogOption
//       Type: "Sidewalk" || "LoRaWAN", // required
//       LogLevel: "INFO" || "ERROR" || "DISABLED", // required
//       Events: [ // WirelessDeviceEventLogOptionList
//         { // WirelessDeviceEventLogOption
//           Event: "Join" || "Rejoin" || "Uplink_Data" || "Downlink_Data" || "Registration", // required
//           LogLevel: "INFO" || "ERROR" || "DISABLED", // required
//         },
//       ],
//     },
//   ],
//   FuotaTaskLogOptions: [ // FuotaTaskLogOptionList
//     { // FuotaTaskLogOption
//       Type: "LoRaWAN", // required
//       LogLevel: "INFO" || "ERROR" || "DISABLED", // required
//       Events: [ // FuotaTaskEventLogOptionList
//         { // FuotaTaskEventLogOption
//           Event: "Fuota", // required
//           LogLevel: "INFO" || "ERROR" || "DISABLED", // required
//         },
//       ],
//     },
//   ],
// };

GetLogLevelsByResourceTypesCommand Input

See GetLogLevelsByResourceTypesCommandInput for more details
GetLogLevelsByResourceTypesCommandInput extends GetLogLevelsByResourceTypesRequest 

GetLogLevelsByResourceTypesCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
DefaultLogLevel
LogLevel | undefined

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.

FuotaTaskLogOptions
FuotaTaskLogOption[] | undefined

The list of FUOTA task log options.

WirelessDeviceLogOptions
WirelessDeviceLogOption[] | undefined

The list of wireless device log options.

WirelessGatewayLogOptions
WirelessGatewayLogOption[] | undefined

The list of wireless gateway log options.

Throws

Name
Fault
Details
AccessDeniedException
client

User does not have permission to perform this action.

InternalServerException
server

An unexpected error occurred while processing a request.

ResourceNotFoundException
client

Resource does not exist.

ThrottlingException
client

The request was denied because it exceeded the allowed API request rate.

ValidationException
client

The input did not meet the specified constraints.

IoTWirelessServiceException
Base exception class for all service exceptions from IoTWireless service.