aws_sdk_datazone/client/get_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 [`GetRule`](crate::operation::get_rule::builders::GetRuleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`domain_identifier(impl Into<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain where the <code>GetRule</code> action is to be invoked.</p><br>
7 /// - [`identifier(impl Into<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the rule.</p><br>
8 /// - [`revision(impl Into<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::revision) / [`set_revision(Option<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::set_revision):<br>required: **false**<br><p>The revision of the rule.</p><br>
9 /// - On success, responds with [`GetRuleOutput`](crate::operation::get_rule::GetRuleOutput) with field(s):
10 /// - [`identifier(String)`](crate::operation::get_rule::GetRuleOutput::identifier): <p>The ID of the rule.</p>
11 /// - [`revision(String)`](crate::operation::get_rule::GetRuleOutput::revision): <p>The revision of the rule.</p>
12 /// - [`name(String)`](crate::operation::get_rule::GetRuleOutput::name): <p>The name of the rule.</p>
13 /// - [`rule_type(RuleType)`](crate::operation::get_rule::GetRuleOutput::rule_type): <p>The type of the rule.</p>
14 /// - [`target(Option<RuleTarget>)`](crate::operation::get_rule::GetRuleOutput::target): <p>The target of the rule.</p>
15 /// - [`action(RuleAction)`](crate::operation::get_rule::GetRuleOutput::action): <p>The action of the rule.</p>
16 /// - [`scope(Option<RuleScope>)`](crate::operation::get_rule::GetRuleOutput::scope): <p>The scope of the rule.</p>
17 /// - [`detail(Option<RuleDetail>)`](crate::operation::get_rule::GetRuleOutput::detail): <p>The detail of the rule.</p>
18 /// - [`target_type(Option<RuleTargetType>)`](crate::operation::get_rule::GetRuleOutput::target_type): <p>The target type of the rule.</p>
19 /// - [`description(Option<String>)`](crate::operation::get_rule::GetRuleOutput::description): <p>The description of the rule.</p>
20 /// - [`created_at(DateTime)`](crate::operation::get_rule::GetRuleOutput::created_at): <p>The timestamp at which the rule was created.</p>
21 /// - [`updated_at(DateTime)`](crate::operation::get_rule::GetRuleOutput::updated_at): <p>The timestamp at which the rule was last updated.</p>
22 /// - [`created_by(String)`](crate::operation::get_rule::GetRuleOutput::created_by): <p>The user who created the rule.</p>
23 /// - [`last_updated_by(String)`](crate::operation::get_rule::GetRuleOutput::last_updated_by): <p>The timestamp at which the rule was last updated.</p>
24 /// - On failure, responds with [`SdkError<GetRuleError>`](crate::operation::get_rule::GetRuleError)
25 pub fn get_rule(&self) -> crate::operation::get_rule::builders::GetRuleFluentBuilder {
26 crate::operation::get_rule::builders::GetRuleFluentBuilder::new(self.handle.clone())
27 }
28}