aws_sdk_databrew/client/
create_ruleset.rs

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 [`CreateRuleset`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::set_name):<br>required: **true**<br><p>The name of the ruleset to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::set_description):<br>required: **false**<br><p>The description of the ruleset.</p><br>
    ///   - [`target_arn(impl Into<String>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::target_arn) / [`set_target_arn(Option<String>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::set_target_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.</p><br>
    ///   - [`rules(Rule)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::rules) / [`set_rules(Option<Vec::<Rule>>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::set_rules):<br>required: **true**<br><p>A list of rules that are defined with the ruleset. A rule includes one or more checks to be validated on a DataBrew dataset.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata tags to apply to the ruleset.</p><br>
    /// - On success, responds with [`CreateRulesetOutput`](crate::operation::create_ruleset::CreateRulesetOutput) with field(s):
    ///   - [`name(String)`](crate::operation::create_ruleset::CreateRulesetOutput::name): <p>The unique name of the created ruleset.</p>
    /// - On failure, responds with [`SdkError<CreateRulesetError>`](crate::operation::create_ruleset::CreateRulesetError)
    pub fn create_ruleset(&self) -> crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder {
        crate::operation::create_ruleset::builders::CreateRulesetFluentBuilder::new(self.handle.clone())
    }
}