import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import type { StartDetectMitigationActionsTaskRequest, StartDetectMitigationActionsTaskResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link StartDetectMitigationActionsTaskCommand}. */ export interface StartDetectMitigationActionsTaskCommandInput extends StartDetectMitigationActionsTaskRequest { } /** * @public * * The output of {@link StartDetectMitigationActionsTaskCommand}. */ export interface StartDetectMitigationActionsTaskCommandOutput extends StartDetectMitigationActionsTaskResponse, __MetadataBearer { } declare const StartDetectMitigationActionsTaskCommand_base: { new (input: StartDetectMitigationActionsTaskCommandInput): import("@smithy/core/client").CommandImpl; new (input: StartDetectMitigationActionsTaskCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

* Starts a Device Defender ML Detect mitigation actions task. *

*

Requires permission to access the StartDetectMitigationActionsTask action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, StartDetectMitigationActionsTaskCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, StartDetectMitigationActionsTaskCommand } = require("@aws-sdk/client-iot"); // CommonJS import * // import type { IoTClientConfig } from "@aws-sdk/client-iot"; * const config = {}; // type is IoTClientConfig * const client = new IoTClient(config); * const input = { // StartDetectMitigationActionsTaskRequest * taskId: "STRING_VALUE", // required * target: { // DetectMitigationActionsTaskTarget * violationIds: [ // TargetViolationIdsForDetectMitigationActions * "STRING_VALUE", * ], * securityProfileName: "STRING_VALUE", * behaviorName: "STRING_VALUE", * }, * actions: [ // DetectMitigationActionsToExecuteList // required * "STRING_VALUE", * ], * violationEventOccurrenceRange: { // ViolationEventOccurrenceRange * startTime: new Date("TIMESTAMP"), // required * endTime: new Date("TIMESTAMP"), // required * }, * includeOnlyActiveViolations: true || false, * includeSuppressedAlerts: true || false, * clientRequestToken: "STRING_VALUE", // required * }; * const command = new StartDetectMitigationActionsTaskCommand(input); * const response = await client.send(command); * // { // StartDetectMitigationActionsTaskResponse * // taskId: "STRING_VALUE", * // }; * * ``` * * @param StartDetectMitigationActionsTaskCommandInput - {@link StartDetectMitigationActionsTaskCommandInput} * @returns {@link StartDetectMitigationActionsTaskCommandOutput} * @see {@link StartDetectMitigationActionsTaskCommandInput} for command's `input` shape. * @see {@link StartDetectMitigationActionsTaskCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) *

An unexpected error has occurred.

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

The request is not valid.

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

A limit has been exceeded.

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

* This exception occurs if you attempt to start a task with the same task-id as an existing task but with a different clientRequestToken. *

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

The rate exceeds the limit.

* * @throws {@link IoTServiceException} *

Base exception class for all service exceptions from IoT service.

* * * @public */ export declare class StartDetectMitigationActionsTaskCommand extends StartDetectMitigationActionsTaskCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartDetectMitigationActionsTaskRequest; output: StartDetectMitigationActionsTaskResponse; }; sdk: { input: StartDetectMitigationActionsTaskCommandInput; output: StartDetectMitigationActionsTaskCommandOutput; }; }; }