import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient"; import type { BatchUpdateDetectorRequest, BatchUpdateDetectorResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link BatchUpdateDetectorCommand}. */ export interface BatchUpdateDetectorCommandInput extends BatchUpdateDetectorRequest { } /** * @public * * The output of {@link BatchUpdateDetectorCommand}. */ export interface BatchUpdateDetectorCommandOutput extends BatchUpdateDetectorResponse, __MetadataBearer { } declare const BatchUpdateDetectorCommand_base: { new (input: BatchUpdateDetectorCommandInput): import("@smithy/core/client").CommandImpl; new (input: BatchUpdateDetectorCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Updates the state, variable values, and timer settings of one or more detectors * (instances) of a specified detector model.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTEventsDataClient, BatchUpdateDetectorCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import * // const { IoTEventsDataClient, BatchUpdateDetectorCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import * // import type { IoTEventsDataClientConfig } from "@aws-sdk/client-iot-events-data"; * const config = {}; // type is IoTEventsDataClientConfig * const client = new IoTEventsDataClient(config); * const input = { // BatchUpdateDetectorRequest * detectors: [ // UpdateDetectorRequests // required * { // UpdateDetectorRequest * messageId: "STRING_VALUE", // required * detectorModelName: "STRING_VALUE", // required * keyValue: "STRING_VALUE", * state: { // DetectorStateDefinition * stateName: "STRING_VALUE", // required * variables: [ // VariableDefinitions // required * { // VariableDefinition * name: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * timers: [ // TimerDefinitions // required * { // TimerDefinition * name: "STRING_VALUE", // required * seconds: Number("int"), // required * }, * ], * }, * }, * ], * }; * const command = new BatchUpdateDetectorCommand(input); * const response = await client.send(command); * // { // BatchUpdateDetectorResponse * // batchUpdateDetectorErrorEntries: [ // BatchUpdateDetectorErrorEntries * // { // BatchUpdateDetectorErrorEntry * // messageId: "STRING_VALUE", * // errorCode: "ResourceNotFoundException" || "InvalidRequestException" || "InternalFailureException" || "ServiceUnavailableException" || "ThrottlingException", * // errorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param BatchUpdateDetectorCommandInput - {@link BatchUpdateDetectorCommandInput} * @returns {@link BatchUpdateDetectorCommandOutput} * @see {@link BatchUpdateDetectorCommandInput} for command's `input` shape. * @see {@link BatchUpdateDetectorCommandOutput} for command's `response` shape. * @see {@link IoTEventsDataClientResolvedConfig | config} for IoTEventsDataClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) *

An internal failure occurred.

* * @throws {@link InvalidRequestException} (client fault) *

The request was invalid.

* * @throws {@link ServiceUnavailableException} (server fault) *

The service is currently unavailable.

* * @throws {@link ThrottlingException} (client fault) *

The request could not be completed due to throttling.

* * @throws {@link IoTEventsDataServiceException} *

Base exception class for all service exceptions from IoTEventsData service.

* * * @public */ export declare class BatchUpdateDetectorCommand extends BatchUpdateDetectorCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchUpdateDetectorRequest; output: BatchUpdateDetectorResponse; }; sdk: { input: BatchUpdateDetectorCommandInput; output: BatchUpdateDetectorCommandOutput; }; }; }