- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
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
See DeleteV2LoggingLevelCommandInput for more details
Parameter | Type | Description |
---|
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 |
DeleteV2LoggingLevelCommand Output
See DeleteV2LoggingLevelCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
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. |