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 { CreateCustomMetricRequest, CreateCustomMetricResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateCustomMetricCommand}. */ export interface CreateCustomMetricCommandInput extends CreateCustomMetricRequest { } /** * @public * * The output of {@link CreateCustomMetricCommand}. */ export interface CreateCustomMetricCommandOutput extends CreateCustomMetricResponse, __MetadataBearer { } declare const CreateCustomMetricCommand_base: { new (input: CreateCustomMetricCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateCustomMetricCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Use this API to define a * Custom * Metric * published by your devices to Device Defender.

*

Requires permission to access the CreateCustomMetric action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, CreateCustomMetricCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, CreateCustomMetricCommand } = 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 = { // CreateCustomMetricRequest * metricName: "STRING_VALUE", // required * displayName: "STRING_VALUE", * metricType: "string-list" || "ip-address-list" || "number-list" || "number", // required * tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * clientRequestToken: "STRING_VALUE", // required * }; * const command = new CreateCustomMetricCommand(input); * const response = await client.send(command); * // { // CreateCustomMetricResponse * // metricName: "STRING_VALUE", * // metricArn: "STRING_VALUE", * // }; * * ``` * * @param CreateCustomMetricCommandInput - {@link CreateCustomMetricCommandInput} * @returns {@link CreateCustomMetricCommandOutput} * @see {@link CreateCustomMetricCommandInput} for command's `input` shape. * @see {@link CreateCustomMetricCommandOutput} 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 ResourceAlreadyExistsException} (client fault) *

The resource already exists.

* * @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 CreateCustomMetricCommand extends CreateCustomMetricCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCustomMetricRequest; output: CreateCustomMetricResponse; }; sdk: { input: CreateCustomMetricCommandInput; output: CreateCustomMetricCommandOutput; }; }; }