UNPKG

@aws-sdk/client-iot

Version:

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

115 lines (114 loc) 5.18 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { ValidateSecurityProfileBehaviorsRequest, ValidateSecurityProfileBehaviorsResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ValidateSecurityProfileBehaviorsCommand}. */ export interface ValidateSecurityProfileBehaviorsCommandInput extends ValidateSecurityProfileBehaviorsRequest { } /** * @public * * The output of {@link ValidateSecurityProfileBehaviorsCommand}. */ export interface ValidateSecurityProfileBehaviorsCommandOutput extends ValidateSecurityProfileBehaviorsResponse, __MetadataBearer { } declare const ValidateSecurityProfileBehaviorsCommand_base: { new (input: ValidateSecurityProfileBehaviorsCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateSecurityProfileBehaviorsCommandInput, ValidateSecurityProfileBehaviorsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: ValidateSecurityProfileBehaviorsCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateSecurityProfileBehaviorsCommandInput, ValidateSecurityProfileBehaviorsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Validates a Device Defender security profile behaviors specification.</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">ValidateSecurityProfileBehaviors</a> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, ValidateSecurityProfileBehaviorsCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, ValidateSecurityProfileBehaviorsCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = { // ValidateSecurityProfileBehaviorsRequest * behaviors: [ // Behaviors // required * { // Behavior * name: "STRING_VALUE", // required * metric: "STRING_VALUE", * metricDimension: { // MetricDimension * dimensionName: "STRING_VALUE", // required * operator: "IN" || "NOT_IN", * }, * criteria: { // BehaviorCriteria * comparisonOperator: "less-than" || "less-than-equals" || "greater-than" || "greater-than-equals" || "in-cidr-set" || "not-in-cidr-set" || "in-port-set" || "not-in-port-set" || "in-set" || "not-in-set", * value: { // MetricValue * count: Number("long"), * cidrs: [ // Cidrs * "STRING_VALUE", * ], * ports: [ // Ports * Number("int"), * ], * number: Number("double"), * numbers: [ // NumberList * Number("double"), * ], * strings: [ // StringList * "STRING_VALUE", * ], * }, * durationSeconds: Number("int"), * consecutiveDatapointsToAlarm: Number("int"), * consecutiveDatapointsToClear: Number("int"), * statisticalThreshold: { // StatisticalThreshold * statistic: "STRING_VALUE", * }, * mlDetectionConfig: { // MachineLearningDetectionConfig * confidenceLevel: "LOW" || "MEDIUM" || "HIGH", // required * }, * }, * suppressAlerts: true || false, * exportMetric: true || false, * }, * ], * }; * const command = new ValidateSecurityProfileBehaviorsCommand(input); * const response = await client.send(command); * // { // ValidateSecurityProfileBehaviorsResponse * // valid: true || false, * // validationErrors: [ // ValidationErrors * // { // ValidationError * // errorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param ValidateSecurityProfileBehaviorsCommandInput - {@link ValidateSecurityProfileBehaviorsCommandInput} * @returns {@link ValidateSecurityProfileBehaviorsCommandOutput} * @see {@link ValidateSecurityProfileBehaviorsCommandInput} for command's `input` shape. * @see {@link ValidateSecurityProfileBehaviorsCommandOutput} 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 ValidateSecurityProfileBehaviorsCommand extends ValidateSecurityProfileBehaviorsCommand_base { }