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 { DeleteCustomMetricRequest, DeleteCustomMetricResponse } from "../models/models_0"; /** * @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/core/client").CommandImpl; new (input: DeleteCustomMetricCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

* Deletes a Device Defender detect custom metric. *

*

Requires permission to access the DeleteCustomMetric action.

* *

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 ListSecurityProfiles * API with metricName set to your custom metric name.

*
* @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 * // import type { IoTClientConfig } from "@aws-sdk/client-iot"; * const config = {}; // type is IoTClientConfig * 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) *

An unexpected error has occurred.

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

The request is not valid.

* * @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 DeleteCustomMetricCommand extends DeleteCustomMetricCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteCustomMetricRequest; output: {}; }; sdk: { input: DeleteCustomMetricCommandInput; output: DeleteCustomMetricCommandOutput; }; }; }