DeleteV2LoggingLevelCommand

Deletes a logging level.

Requires permission to access the DeleteV2LoggingLevel  action.

Example Syntax

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

import { IoTClient, DeleteV2LoggingLevelCommand } from "@aws-sdk/client-iot"; // ES Modules import
// const { IoTClient, DeleteV2LoggingLevelCommand } = require("@aws-sdk/client-iot"); // CommonJS import
const client = new IoTClient(config);
const input = { // DeleteV2LoggingLevelRequest
  targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID", // required
  targetName: "STRING_VALUE", // required
};
const command = new DeleteV2LoggingLevelCommand(input);
const response = await client.send(command);
// {};

DeleteV2LoggingLevelCommand Input

Parameter
Type
Description
targetName
Required
string | undefined

The name of the resource for which you are configuring logging.

targetType
Required
LogTargetType | undefined

The type of resource for which you are configuring logging. Must be THING_Group.

DeleteV2LoggingLevelCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
InternalException
server

An unexpected error has occurred.

InvalidRequestException
client

The request is not valid.

ServiceUnavailableException
server

The service is temporarily unavailable.

IoTServiceException
Base exception class for all service exceptions from IoT service.