1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeRule`](crate::operation::describe_rule::builders::DescribeRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::describe_rule::builders::DescribeRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::describe_rule::builders::DescribeRuleFluentBuilder::set_name):<br>required: **true**<br><p>The name of the rule.</p><br>
    ///   - [`event_bus_name(impl Into<String>)`](crate::operation::describe_rule::builders::DescribeRuleFluentBuilder::event_bus_name) / [`set_event_bus_name(Option<String>)`](crate::operation::describe_rule::builders::DescribeRuleFluentBuilder::set_event_bus_name):<br>required: **false**<br><p>The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.</p><br>
    /// - On success, responds with [`DescribeRuleOutput`](crate::operation::describe_rule::DescribeRuleOutput) with field(s):
    ///   - [`name(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::name): <p>The name of the rule.</p>
    ///   - [`arn(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::arn): <p>The Amazon Resource Name (ARN) of the rule.</p>
    ///   - [`event_pattern(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::event_pattern): <p>The event pattern. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
    ///   - [`schedule_expression(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::schedule_expression): <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".</p>
    ///   - [`state(Option<RuleState>)`](crate::operation::describe_rule::DescribeRuleOutput::state): <p>Specifies whether the rule is enabled or disabled.</p>
    ///   - [`description(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::description): <p>The description of the rule.</p>
    ///   - [`role_arn(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::role_arn): <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
    ///   - [`managed_by(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::managed_by): <p>If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the principal name of the Amazon Web Services service that created the rule.</p>
    ///   - [`event_bus_name(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::event_bus_name): <p>The name of the event bus associated with the rule.</p>
    ///   - [`created_by(Option<String>)`](crate::operation::describe_rule::DescribeRuleOutput::created_by): <p>The account ID of the user that created the rule. If you use <code>PutRule</code> to put a rule on an event bus in another account, the other account is the owner of the rule, and the rule ARN includes the account ID for that account. However, the value for <code>CreatedBy</code> is the account ID as the account that created the rule in the other account.</p>
    /// - On failure, responds with [`SdkError<DescribeRuleError>`](crate::operation::describe_rule::DescribeRuleError)
    pub fn describe_rule(&self) -> crate::operation::describe_rule::builders::DescribeRuleFluentBuilder {
        crate::operation::describe_rule::builders::DescribeRuleFluentBuilder::new(self.handle.clone())
    }
}