UNPKG

@aws-sdk/client-iot

Version:

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

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