aws_sdk_config/client/
get_custom_rule_policy.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 [`GetCustomRulePolicy`](crate::operation::get_custom_rule_policy::builders::GetCustomRulePolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`config_rule_name(impl Into<String>)`](crate::operation::get_custom_rule_policy::builders::GetCustomRulePolicyFluentBuilder::config_rule_name) / [`set_config_rule_name(Option<String>)`](crate::operation::get_custom_rule_policy::builders::GetCustomRulePolicyFluentBuilder::set_config_rule_name):<br>required: **false**<br><p>The name of your Config Custom Policy rule.</p><br>
7    /// - On success, responds with [`GetCustomRulePolicyOutput`](crate::operation::get_custom_rule_policy::GetCustomRulePolicyOutput) with field(s):
8    ///   - [`policy_text(Option<String>)`](crate::operation::get_custom_rule_policy::GetCustomRulePolicyOutput::policy_text): <p>The policy definition containing the logic for your Config Custom Policy rule.</p>
9    /// - On failure, responds with [`SdkError<GetCustomRulePolicyError>`](crate::operation::get_custom_rule_policy::GetCustomRulePolicyError)
10    pub fn get_custom_rule_policy(&self) -> crate::operation::get_custom_rule_policy::builders::GetCustomRulePolicyFluentBuilder {
11        crate::operation::get_custom_rule_policy::builders::GetCustomRulePolicyFluentBuilder::new(self.handle.clone())
12    }
13}