// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DescribePolicy`](crate::operation::describe_policy::builders::DescribePolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`policy_id(impl Into<String>)`](crate::operation::describe_policy::builders::DescribePolicyFluentBuilder::policy_id) / [`set_policy_id(Option<String>)`](crate::operation::describe_policy::builders::DescribePolicyFluentBuilder::set_policy_id):<br>required: **true**<br><p>The unique identifier (ID) of the policy that you want details about. You can get the ID from the <code>ListPolicies</code> or <code>ListPoliciesForTarget</code> operations.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).</p><br>
/// - On success, responds with [`DescribePolicyOutput`](crate::operation::describe_policy::DescribePolicyOutput) with field(s):
/// - [`policy(Option<Policy>)`](crate::operation::describe_policy::DescribePolicyOutput::policy): <p>A structure that contains details about the specified policy.</p>
/// - On failure, responds with [`SdkError<DescribePolicyError>`](crate::operation::describe_policy::DescribePolicyError)
pub fn describe_policy(&self) -> crate::operation::describe_policy::builders::DescribePolicyFluentBuilder {
crate::operation::describe_policy::builders::DescribePolicyFluentBuilder::new(self.handle.clone())
}
}