UNPKG

@aws-sdk/client-iot

Version:

AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native

71 lines (70 loc) 3.24 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { GetV2LoggingOptionsRequest, GetV2LoggingOptionsResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetV2LoggingOptionsCommand}. */ export interface GetV2LoggingOptionsCommandInput extends GetV2LoggingOptionsRequest { } /** * @public * * The output of {@link GetV2LoggingOptionsCommand}. */ export interface GetV2LoggingOptionsCommandOutput extends GetV2LoggingOptionsResponse, __MetadataBearer { } declare const GetV2LoggingOptionsCommand_base: { new (input: GetV2LoggingOptionsCommandInput): import("@smithy/smithy-client").CommandImpl<GetV2LoggingOptionsCommandInput, GetV2LoggingOptionsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (...[input]: [] | [GetV2LoggingOptionsCommandInput]): import("@smithy/smithy-client").CommandImpl<GetV2LoggingOptionsCommandInput, GetV2LoggingOptionsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Gets the fine grained logging options.</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">GetV2LoggingOptions</a> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, GetV2LoggingOptionsCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, GetV2LoggingOptionsCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = {}; * const command = new GetV2LoggingOptionsCommand(input); * const response = await client.send(command); * // { // GetV2LoggingOptionsResponse * // roleArn: "STRING_VALUE", * // defaultLogLevel: "DEBUG" || "INFO" || "ERROR" || "WARN" || "DISABLED", * // disableAllLogs: true || false, * // }; * * ``` * * @param GetV2LoggingOptionsCommandInput - {@link GetV2LoggingOptionsCommandInput} * @returns {@link GetV2LoggingOptionsCommandOutput} * @see {@link GetV2LoggingOptionsCommandInput} for command's `input` shape. * @see {@link GetV2LoggingOptionsCommandOutput} 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 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 GetV2LoggingOptionsCommand extends GetV2LoggingOptionsCommand_base { }