@aws-sdk/client-iot
Version:
AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native
97 lines (96 loc) • 4.16 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import { ListV2LoggingLevelsRequest, ListV2LoggingLevelsResponse } from "../models/models_2";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link ListV2LoggingLevelsCommand}.
*/
export interface ListV2LoggingLevelsCommandInput extends ListV2LoggingLevelsRequest {
}
/**
* @public
*
* The output of {@link ListV2LoggingLevelsCommand}.
*/
export interface ListV2LoggingLevelsCommandOutput extends ListV2LoggingLevelsResponse, __MetadataBearer {
}
declare const ListV2LoggingLevelsCommand_base: {
new (input: ListV2LoggingLevelsCommandInput): import("@smithy/smithy-client").CommandImpl<ListV2LoggingLevelsCommandInput, ListV2LoggingLevelsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (...[input]: [] | [ListV2LoggingLevelsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListV2LoggingLevelsCommandInput, ListV2LoggingLevelsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Lists logging levels.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListV2LoggingLevels</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { IoTClient, ListV2LoggingLevelsCommand } from "@aws-sdk/client-iot"; // ES Modules import
* // const { IoTClient, ListV2LoggingLevelsCommand } = require("@aws-sdk/client-iot"); // CommonJS import
* const client = new IoTClient(config);
* const input = { // ListV2LoggingLevelsRequest
* targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID",
* nextToken: "STRING_VALUE",
* maxResults: Number("int"),
* };
* const command = new ListV2LoggingLevelsCommand(input);
* const response = await client.send(command);
* // { // ListV2LoggingLevelsResponse
* // logTargetConfigurations: [ // LogTargetConfigurations
* // { // LogTargetConfiguration
* // logTarget: { // LogTarget
* // targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID", // required
* // targetName: "STRING_VALUE",
* // },
* // logLevel: "DEBUG" || "INFO" || "ERROR" || "WARN" || "DISABLED",
* // },
* // ],
* // nextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param ListV2LoggingLevelsCommandInput - {@link ListV2LoggingLevelsCommandInput}
* @returns {@link ListV2LoggingLevelsCommandOutput}
* @see {@link ListV2LoggingLevelsCommandInput} for command's `input` shape.
* @see {@link ListV2LoggingLevelsCommandOutput} for command's `response` shape.
* @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
*
* @throws {@link InternalException} (server fault)
* <p>An unexpected error has occurred.</p>
*
* @throws {@link InvalidRequestException} (client fault)
* <p>The request is not valid.</p>
*
* @throws {@link NotConfiguredException} (client fault)
* <p>The resource is not configured.</p>
*
* @throws {@link ServiceUnavailableException} (server fault)
* <p>The service is temporarily unavailable.</p>
*
* @throws {@link IoTServiceException}
* <p>Base exception class for all service exceptions from IoT service.</p>
*
*
* @public
*/
export declare class ListV2LoggingLevelsCommand extends ListV2LoggingLevelsCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListV2LoggingLevelsRequest;
output: ListV2LoggingLevelsResponse;
};
sdk: {
input: ListV2LoggingLevelsCommandInput;
output: ListV2LoggingLevelsCommandOutput;
};
};
}