1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListTargetsByRule`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`rule(impl Into<String>)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::rule) / [`set_rule(Option<String>)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::set_rule):<br>required: **true**<br><p>The name of the rule.</p><br>
    ///   - [`event_bus_name(impl Into<String>)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::event_bus_name) / [`set_event_bus_name(Option<String>)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::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>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::set_next_token):<br>required: **false**<br><p>The token returned by a previous call to retrieve the next set of results.</p><br>
    ///   - [`limit(i32)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of results to return.</p><br>
    /// - On success, responds with [`ListTargetsByRuleOutput`](crate::operation::list_targets_by_rule::ListTargetsByRuleOutput) with field(s):
    ///   - [`targets(Option<Vec::<Target>>)`](crate::operation::list_targets_by_rule::ListTargetsByRuleOutput::targets): <p>The targets assigned to the rule.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_targets_by_rule::ListTargetsByRuleOutput::next_token): <p>Indicates whether there are additional results to retrieve. If there are no more results, the value is null.</p>
    /// - On failure, responds with [`SdkError<ListTargetsByRuleError>`](crate::operation::list_targets_by_rule::ListTargetsByRuleError)
    pub fn list_targets_by_rule(&self) -> crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder {
        crate::operation::list_targets_by_rule::builders::ListTargetsByRuleFluentBuilder::new(self.handle.clone())
    }
}