UNPKG

@aws-sdk/client-iot

Version:

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

91 lines (90 loc) 3.92 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { DeleteCustomMetricRequest, DeleteCustomMetricResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteCustomMetricCommand}. */ export interface DeleteCustomMetricCommandInput extends DeleteCustomMetricRequest { } /** * @public * * The output of {@link DeleteCustomMetricCommand}. */ export interface DeleteCustomMetricCommandOutput extends DeleteCustomMetricResponse, __MetadataBearer { } declare const DeleteCustomMetricCommand_base: { new (input: DeleteCustomMetricCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCustomMetricCommandInput, DeleteCustomMetricCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (input: DeleteCustomMetricCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCustomMetricCommandInput, DeleteCustomMetricCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p> * Deletes a Device Defender detect custom metric. * </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">DeleteCustomMetric</a> action.</p> * <note> * <p>Before you can delete a custom metric, you must first remove the custom metric from all * security profiles it's a part of. * The * security * profile associated with the custom metric can be found using the <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_ListSecurityProfiles.html">ListSecurityProfiles</a> * API with <code>metricName</code> set to your custom metric name.</p> * </note> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, DeleteCustomMetricCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, DeleteCustomMetricCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = { // DeleteCustomMetricRequest * metricName: "STRING_VALUE", // required * }; * const command = new DeleteCustomMetricCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteCustomMetricCommandInput - {@link DeleteCustomMetricCommandInput} * @returns {@link DeleteCustomMetricCommandOutput} * @see {@link DeleteCustomMetricCommandInput} for command's `input` shape. * @see {@link DeleteCustomMetricCommandOutput} 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 DeleteCustomMetricCommand extends DeleteCustomMetricCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteCustomMetricRequest; output: {}; }; sdk: { input: DeleteCustomMetricCommandInput; output: DeleteCustomMetricCommandOutput; }; }; }