UNPKG

@aws-sdk/client-iot

Version:

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

104 lines (103 loc) 4.93 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { ListDetectMitigationActionsExecutionsRequest, ListDetectMitigationActionsExecutionsResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListDetectMitigationActionsExecutionsCommand}. */ export interface ListDetectMitigationActionsExecutionsCommandInput extends ListDetectMitigationActionsExecutionsRequest { } /** * @public * * The output of {@link ListDetectMitigationActionsExecutionsCommand}. */ export interface ListDetectMitigationActionsExecutionsCommandOutput extends ListDetectMitigationActionsExecutionsResponse, __MetadataBearer { } declare const ListDetectMitigationActionsExecutionsCommand_base: { new (input: ListDetectMitigationActionsExecutionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListDetectMitigationActionsExecutionsCommandInput, ListDetectMitigationActionsExecutionsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (...[input]: [] | [ListDetectMitigationActionsExecutionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListDetectMitigationActionsExecutionsCommandInput, ListDetectMitigationActionsExecutionsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p> * Lists mitigation actions executions for a Device Defender ML Detect Security Profile. * </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">ListDetectMitigationActionsExecutions</a> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, ListDetectMitigationActionsExecutionsCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, ListDetectMitigationActionsExecutionsCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = { // ListDetectMitigationActionsExecutionsRequest * taskId: "STRING_VALUE", * violationId: "STRING_VALUE", * thingName: "STRING_VALUE", * startTime: new Date("TIMESTAMP"), * endTime: new Date("TIMESTAMP"), * maxResults: Number("int"), * nextToken: "STRING_VALUE", * }; * const command = new ListDetectMitigationActionsExecutionsCommand(input); * const response = await client.send(command); * // { // ListDetectMitigationActionsExecutionsResponse * // actionsExecutions: [ // DetectMitigationActionExecutionList * // { // DetectMitigationActionExecution * // taskId: "STRING_VALUE", * // violationId: "STRING_VALUE", * // actionName: "STRING_VALUE", * // thingName: "STRING_VALUE", * // executionStartDate: new Date("TIMESTAMP"), * // executionEndDate: new Date("TIMESTAMP"), * // status: "IN_PROGRESS" || "SUCCESSFUL" || "FAILED" || "SKIPPED", * // errorCode: "STRING_VALUE", * // message: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListDetectMitigationActionsExecutionsCommandInput - {@link ListDetectMitigationActionsExecutionsCommandInput} * @returns {@link ListDetectMitigationActionsExecutionsCommandOutput} * @see {@link ListDetectMitigationActionsExecutionsCommandInput} for command's `input` shape. * @see {@link ListDetectMitigationActionsExecutionsCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) * <p>An unexpected error has occurred.</p> * * @throws {@link InvalidRequestException} (client fault) * <p>The request is not valid.</p> * * @throws {@link ThrottlingException} (client fault) * <p>The rate exceeds the limit.</p> * * @throws {@link IoTServiceException} * <p>Base exception class for all service exceptions from IoT service.</p> * * * @public */ export declare class ListDetectMitigationActionsExecutionsCommand extends ListDetectMitigationActionsExecutionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListDetectMitigationActionsExecutionsRequest; output: ListDetectMitigationActionsExecutionsResponse; }; sdk: { input: ListDetectMitigationActionsExecutionsCommandInput; output: ListDetectMitigationActionsExecutionsCommandOutput; }; }; }