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

Deletes the specified rule.

*

Before you can delete the rule, you must remove all targets, using RemoveTargets.

*

When you delete a rule, incoming events might continue to match to the deleted rule. Allow * a short period of time for changes to take effect.

*

If you call delete rule multiple times for the same rule, all calls will succeed. When you * call delete rule for a non-existent custom eventbus, ResourceNotFoundException is * returned.

*

Managed rules are rules created and managed by another Amazon Web Services service on your * behalf. These rules are created by those other Amazon Web Services services to support * functionality in those services. You can delete these rules using the Force * option, but you should do so only if you are sure the other service is not still using that * rule.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, DeleteRuleCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, DeleteRuleCommand } = 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 = { // DeleteRuleRequest * Name: "STRING_VALUE", // required * EventBusName: "STRING_VALUE", * Force: true || false, * }; * const command = new DeleteRuleCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteRuleCommandInput - {@link DeleteRuleCommandInput} * @returns {@link DeleteRuleCommandOutput} * @see {@link DeleteRuleCommandInput} for command's `input` shape. * @see {@link DeleteRuleCommandOutput} 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 DeleteRuleCommand extends DeleteRuleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteRuleRequest; output: {}; }; sdk: { input: DeleteRuleCommandInput; output: DeleteRuleCommandOutput; }; }; }