aws_sdk_eventbridge/client/
list_rule_names_by_target.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListRuleNamesByTarget`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`target_arn(impl Into<String>)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::target_arn) / [`set_target_arn(Option<String>)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::set_target_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the target resource.</p><br>
7    ///   - [`event_bus_name(impl Into<String>)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::event_bus_name) / [`set_event_bus_name(Option<String>)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::set_event_bus_name):<br>required: **false**<br><p>The name or ARN of the event bus to list rules for. If you omit this, the default event bus is used.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::set_next_token):<br>required: **false**<br><p>The token returned by a previous call, which you can use to retrieve the next set of results.</p> <p>The value of <code>nextToken</code> is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.</p> <p>Using an expired pagination token results in an <code>HTTP 400 InvalidToken</code> error.</p><br>
9    ///   - [`limit(i32)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of results to return.</p><br>
10    /// - On success, responds with [`ListRuleNamesByTargetOutput`](crate::operation::list_rule_names_by_target::ListRuleNamesByTargetOutput) with field(s):
11    ///   - [`rule_names(Option<Vec::<String>>)`](crate::operation::list_rule_names_by_target::ListRuleNamesByTargetOutput::rule_names): <p>The names of the rules that can invoke the given target.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_rule_names_by_target::ListRuleNamesByTargetOutput::next_token): <p>A token indicating there are more results available. If there are no more results, no token is included in the response.</p> <p>The value of <code>nextToken</code> is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.</p> <p>Using an expired pagination token results in an <code>HTTP 400 InvalidToken</code> error.</p>
13    /// - On failure, responds with [`SdkError<ListRuleNamesByTargetError>`](crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError)
14    pub fn list_rule_names_by_target(&self) -> crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder {
15        crate::operation::list_rule_names_by_target::builders::ListRuleNamesByTargetFluentBuilder::new(self.handle.clone())
16    }
17}