import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient"; import type { PutInsightRuleInput, PutInsightRuleOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutInsightRuleCommand}. */ export interface PutInsightRuleCommandInput extends PutInsightRuleInput { } /** * @public * * The output of {@link PutInsightRuleCommand}. */ export interface PutInsightRuleCommandOutput extends PutInsightRuleOutput, __MetadataBearer { } declare const PutInsightRuleCommand_base: { new (input: PutInsightRuleCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutInsightRuleCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs * log group, enabling you to find contributor data for the log events in that log group. * For more information, see Using Contributor * Insights to Analyze High-Cardinality Data.

*

If you create a rule, delete it, and then re-create it with the same name, historical * data from the first time the rule was created might not be available.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudWatchClient, PutInsightRuleCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import * // const { CloudWatchClient, PutInsightRuleCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import * // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch"; * const config = {}; // type is CloudWatchClientConfig * const client = new CloudWatchClient(config); * const input = { // PutInsightRuleInput * RuleName: "STRING_VALUE", // required * RuleState: "STRING_VALUE", * RuleDefinition: "STRING_VALUE", // required * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * ApplyOnTransformedLogs: true || false, * }; * const command = new PutInsightRuleCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param PutInsightRuleCommandInput - {@link PutInsightRuleCommandInput} * @returns {@link PutInsightRuleCommandOutput} * @see {@link PutInsightRuleCommandInput} for command's `input` shape. * @see {@link PutInsightRuleCommandOutput} for command's `response` shape. * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape. * * @throws {@link InvalidParameterValueException} (client fault) *

The value of an input parameter is bad or out-of-range.

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

The operation exceeded one or more limits.

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

An input parameter that is required is missing.

* * @throws {@link CloudWatchServiceException} *

Base exception class for all service exceptions from CloudWatch service.

* * * @public */ export declare class PutInsightRuleCommand extends PutInsightRuleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutInsightRuleInput; output: {}; }; sdk: { input: PutInsightRuleCommandInput; output: PutInsightRuleCommandOutput; }; }; }