import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EventBridgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EventBridgeClient"; import type { EnableRuleRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link EnableRuleCommand}. */ export interface EnableRuleCommandInput extends EnableRuleRequest { } /** * @public * * The output of {@link EnableRuleCommand}. */ export interface EnableRuleCommandOutput extends __MetadataBearer { } declare const EnableRuleCommand_base: { new (input: EnableRuleCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: EnableRuleCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Enables the specified rule. If the rule does not exist, the operation fails.

*

When you enable a rule, incoming events might not immediately start matching to a newly * enabled rule. Allow a short period of time for changes to take effect.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, EnableRuleCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, EnableRuleCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import * // import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; * const config = {}; // type is EventBridgeClientConfig * const client = new EventBridgeClient(config); * const input = { // EnableRuleRequest * Name: "STRING_VALUE", // required * EventBusName: "STRING_VALUE", * }; * const command = new EnableRuleCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param EnableRuleCommandInput - {@link EnableRuleCommandInput} * @returns {@link EnableRuleCommandOutput} * @see {@link EnableRuleCommandInput} for command's `input` shape. * @see {@link EnableRuleCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

There is concurrent modification on a rule, target, archive, or replay.

* * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

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

This rule was created by an Amazon Web Services service on behalf of your account. It is * managed by that service. If you see this error in response to DeleteRule or * RemoveTargets, you can use the Force parameter in those calls to * delete the rule or remove targets from the rule. You cannot modify these managed rules by * using DisableRule, EnableRule, PutTargets, * PutRule, TagResource, or UntagResource.

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

An entity that you specified does not exist.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class EnableRuleCommand extends EnableRuleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: EnableRuleRequest; output: {}; }; sdk: { input: EnableRuleCommandInput; output: EnableRuleCommandOutput; }; }; }