aws_sdk_databrew/client/list_rulesets.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListRulesets`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`target_arn(impl Into<String>)`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::target_arn) / [`set_target_arn(Option<String>)`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::set_target_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of a resource (dataset). Using this parameter indicates to return only those rulesets that are associated with the specified resource.</p><br>
/// - [`max_results(i32)`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in this request.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token generated by DataBrew that specifies where to continue pagination if a previous request was truncated. To get the next set of pages, pass in the NextToken value from the response object of the previous page call.</p><br>
/// - On success, responds with [`ListRulesetsOutput`](crate::operation::list_rulesets::ListRulesetsOutput) with field(s):
/// - [`rulesets(Vec::<RulesetItem>)`](crate::operation::list_rulesets::ListRulesetsOutput::rulesets): <p>A list of RulesetItem. RulesetItem contains meta data of a ruleset.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_rulesets::ListRulesetsOutput::next_token): <p>A token that you can use in a subsequent call to retrieve the next set of results.</p>
/// - On failure, responds with [`SdkError<ListRulesetsError>`](crate::operation::list_rulesets::ListRulesetsError)
pub fn list_rulesets(&self) -> crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder {
crate::operation::list_rulesets::builders::ListRulesetsFluentBuilder::new(self.handle.clone())
}
}