aws_sdk_iot/client/get_topic_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 [`GetTopicRule`](crate::operation::get_topic_rule::builders::GetTopicRuleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`rule_name(impl Into<String>)`](crate::operation::get_topic_rule::builders::GetTopicRuleFluentBuilder::rule_name) / [`set_rule_name(Option<String>)`](crate::operation::get_topic_rule::builders::GetTopicRuleFluentBuilder::set_rule_name):<br>required: **true**<br><p>The name of the rule.</p><br>
7 /// - On success, responds with [`GetTopicRuleOutput`](crate::operation::get_topic_rule::GetTopicRuleOutput) with field(s):
8 /// - [`rule_arn(Option<String>)`](crate::operation::get_topic_rule::GetTopicRuleOutput::rule_arn): <p>The rule ARN.</p>
9 /// - [`rule(Option<TopicRule>)`](crate::operation::get_topic_rule::GetTopicRuleOutput::rule): <p>The rule.</p>
10 /// - On failure, responds with [`SdkError<GetTopicRuleError>`](crate::operation::get_topic_rule::GetTopicRuleError)
11 pub fn get_topic_rule(&self) -> crate::operation::get_topic_rule::builders::GetTopicRuleFluentBuilder {
12 crate::operation::get_topic_rule::builders::GetTopicRuleFluentBuilder::new(self.handle.clone())
13 }
14}