aws_sdk_datazone/client/
update_rule.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 [`UpdateRule`](crate::operation::update_rule::builders::UpdateRuleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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>
9    ///   - [`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>
10    ///   - [`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>
11    ///   - [`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>
12    ///   - [`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>
13    /// - On success, responds with [`UpdateRuleOutput`](crate::operation::update_rule::UpdateRuleOutput) with field(s):
14    ///   - [`identifier(String)`](crate::operation::update_rule::UpdateRuleOutput::identifier): <p>The ID of the rule.</p>
15    ///   - [`revision(String)`](crate::operation::update_rule::UpdateRuleOutput::revision): <p>The revision of the rule.</p>
16    ///   - [`name(String)`](crate::operation::update_rule::UpdateRuleOutput::name): <p>The name of the rule.</p>
17    ///   - [`rule_type(RuleType)`](crate::operation::update_rule::UpdateRuleOutput::rule_type): <p>The type of the rule.</p>
18    ///   - [`target(Option<RuleTarget>)`](crate::operation::update_rule::UpdateRuleOutput::target): <p>The target of the rule.</p>
19    ///   - [`action(RuleAction)`](crate::operation::update_rule::UpdateRuleOutput::action): <p>The action of the rule.</p>
20    ///   - [`scope(Option<RuleScope>)`](crate::operation::update_rule::UpdateRuleOutput::scope): <p>The scope of the rule.</p>
21    ///   - [`detail(Option<RuleDetail>)`](crate::operation::update_rule::UpdateRuleOutput::detail): <p>The detail of the rule.</p>
22    ///   - [`description(Option<String>)`](crate::operation::update_rule::UpdateRuleOutput::description): <p>The description of the rule.</p>
23    ///   - [`created_at(DateTime)`](crate::operation::update_rule::UpdateRuleOutput::created_at): <p>The timestamp at which the rule was created.</p>
24    ///   - [`updated_at(DateTime)`](crate::operation::update_rule::UpdateRuleOutput::updated_at): <p>The timestamp at which the rule was last updated.</p>
25    ///   - [`created_by(String)`](crate::operation::update_rule::UpdateRuleOutput::created_by): <p>The user who created the rule.</p>
26    ///   - [`last_updated_by(String)`](crate::operation::update_rule::UpdateRuleOutput::last_updated_by): <p>The timestamp at which the rule was last updated.</p>
27    /// - On failure, responds with [`SdkError<UpdateRuleError>`](crate::operation::update_rule::UpdateRuleError)
28    pub fn update_rule(&self) -> crate::operation::update_rule::builders::UpdateRuleFluentBuilder {
29        crate::operation::update_rule::builders::UpdateRuleFluentBuilder::new(self.handle.clone())
30    }
31}