aws_sdk_datazone/client/
update_rule.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateRule`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain in which a rule is to be updated.</p><br>
    ///   - [`identifier(impl Into<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the rule that is to be updated</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_name):<br>required: **false**<br><p>The name of the rule.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_description):<br>required: **false**<br><p>The description of the rule.</p><br>
    ///   - [`scope(RuleScope)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::scope) / [`set_scope(Option<RuleScope>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_scope):<br>required: **false**<br><p>The scrope of the rule.</p><br>
    ///   - [`detail(RuleDetail)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::detail) / [`set_detail(Option<RuleDetail>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_detail):<br>required: **false**<br><p>The detail of the rule.</p><br>
    ///   - [`include_child_domain_units(bool)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::include_child_domain_units) / [`set_include_child_domain_units(Option<bool>)`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder::set_include_child_domain_units):<br>required: **false**<br><p>Specifies whether to update this rule in the child domain units.</p><br>
    /// - On success, responds with [`UpdateRuleOutput`](crate::operation::update_rule::UpdateRuleOutput) with field(s):
    ///   - [`identifier(String)`](crate::operation::update_rule::UpdateRuleOutput::identifier): <p>The ID of the rule.</p>
    ///   - [`revision(String)`](crate::operation::update_rule::UpdateRuleOutput::revision): <p>The revision of the rule.</p>
    ///   - [`name(String)`](crate::operation::update_rule::UpdateRuleOutput::name): <p>The name of the rule.</p>
    ///   - [`rule_type(RuleType)`](crate::operation::update_rule::UpdateRuleOutput::rule_type): <p>The type of the rule.</p>
    ///   - [`target(Option<RuleTarget>)`](crate::operation::update_rule::UpdateRuleOutput::target): <p>The target of the rule.</p>
    ///   - [`action(RuleAction)`](crate::operation::update_rule::UpdateRuleOutput::action): <p>The action of the rule.</p>
    ///   - [`scope(Option<RuleScope>)`](crate::operation::update_rule::UpdateRuleOutput::scope): <p>The scope of the rule.</p>
    ///   - [`detail(Option<RuleDetail>)`](crate::operation::update_rule::UpdateRuleOutput::detail): <p>The detail of the rule.</p>
    ///   - [`description(Option<String>)`](crate::operation::update_rule::UpdateRuleOutput::description): <p>The description of the rule.</p>
    ///   - [`created_at(DateTime)`](crate::operation::update_rule::UpdateRuleOutput::created_at): <p>The timestamp at which the rule was created.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::update_rule::UpdateRuleOutput::updated_at): <p>The timestamp at which the rule was last updated.</p>
    ///   - [`created_by(String)`](crate::operation::update_rule::UpdateRuleOutput::created_by): <p>The user who created the rule.</p>
    ///   - [`last_updated_by(String)`](crate::operation::update_rule::UpdateRuleOutput::last_updated_by): <p>The timestamp at which the rule was last updated.</p>
    /// - On failure, responds with [`SdkError<UpdateRuleError>`](crate::operation::update_rule::UpdateRuleError)
    pub fn update_rule(&self) -> crate::operation::update_rule::builders::UpdateRuleFluentBuilder {
        crate::operation::update_rule::builders::UpdateRuleFluentBuilder::new(self.handle.clone())
    }
}