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 { DescribeRuleRequest, DescribeRuleResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeRuleCommand}. */ export interface DescribeRuleCommandInput extends DescribeRuleRequest { } /** * @public * * The output of {@link DescribeRuleCommand}. */ export interface DescribeRuleCommandOutput extends DescribeRuleResponse, __MetadataBearer { } declare const DescribeRuleCommand_base: { new (input: DescribeRuleCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeRuleCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes the specified rule.

*

DescribeRule does not list the targets of a rule. To see the targets associated with a * rule, use ListTargetsByRule.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, DescribeRuleCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, DescribeRuleCommand } = 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 = { // DescribeRuleRequest * Name: "STRING_VALUE", // required * EventBusName: "STRING_VALUE", * }; * const command = new DescribeRuleCommand(input); * const response = await client.send(command); * // { // DescribeRuleResponse * // Name: "STRING_VALUE", * // Arn: "STRING_VALUE", * // EventPattern: "STRING_VALUE", * // ScheduleExpression: "STRING_VALUE", * // State: "ENABLED" || "DISABLED" || "ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS", * // Description: "STRING_VALUE", * // RoleArn: "STRING_VALUE", * // ManagedBy: "STRING_VALUE", * // EventBusName: "STRING_VALUE", * // CreatedBy: "STRING_VALUE", * // }; * * ``` * * @param DescribeRuleCommandInput - {@link DescribeRuleCommandInput} * @returns {@link DescribeRuleCommandOutput} * @see {@link DescribeRuleCommandInput} for command's `input` shape. * @see {@link DescribeRuleCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @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 DescribeRuleCommand extends DescribeRuleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeRuleRequest; output: DescribeRuleResponse; }; sdk: { input: DescribeRuleCommandInput; output: DescribeRuleCommandOutput; }; }; }