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 { DisableRuleRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DisableRuleCommand}. */ export interface DisableRuleCommandInput extends DisableRuleRequest { } /** * @public * * The output of {@link DisableRuleCommand}. */ export interface DisableRuleCommandOutput extends __MetadataBearer { } declare const DisableRuleCommand_base: { new (input: DisableRuleCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DisableRuleCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Disables the specified rule. A disabled rule won't match any events, and won't * self-trigger if it has a schedule expression.

*

When you disable a rule, incoming events might continue to match to the disabled 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, DisableRuleCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, DisableRuleCommand } = 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 = { // DisableRuleRequest * Name: "STRING_VALUE", // required * EventBusName: "STRING_VALUE", * }; * const command = new DisableRuleCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DisableRuleCommandInput - {@link DisableRuleCommandInput} * @returns {@link DisableRuleCommandOutput} * @see {@link DisableRuleCommandInput} for command's `input` shape. * @see {@link DisableRuleCommandOutput} 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 DisableRuleCommand extends DisableRuleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DisableRuleRequest; output: {}; }; sdk: { input: DisableRuleCommandInput; output: DisableRuleCommandOutput; }; }; }