1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetPolicy`](crate::operation::get_policy::builders::GetPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`policy_name(impl Into<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The name of the policy.</p><br>
    /// - On success, responds with [`GetPolicyOutput`](crate::operation::get_policy::GetPolicyOutput) with field(s):
    ///   - [`policy_name(Option<String>)`](crate::operation::get_policy::GetPolicyOutput::policy_name): <p>The policy name.</p>
    ///   - [`policy_arn(Option<String>)`](crate::operation::get_policy::GetPolicyOutput::policy_arn): <p>The policy ARN.</p>
    ///   - [`policy_document(Option<String>)`](crate::operation::get_policy::GetPolicyOutput::policy_document): <p>The JSON document that describes the policy.</p>
    ///   - [`default_version_id(Option<String>)`](crate::operation::get_policy::GetPolicyOutput::default_version_id): <p>The default policy version ID.</p>
    ///   - [`creation_date(Option<DateTime>)`](crate::operation::get_policy::GetPolicyOutput::creation_date): <p>The date the policy was created.</p>
    ///   - [`last_modified_date(Option<DateTime>)`](crate::operation::get_policy::GetPolicyOutput::last_modified_date): <p>The date the policy was last modified.</p>
    ///   - [`generation_id(Option<String>)`](crate::operation::get_policy::GetPolicyOutput::generation_id): <p>The generation ID of the policy.</p>
    /// - On failure, responds with [`SdkError<GetPolicyError>`](crate::operation::get_policy::GetPolicyError)
    pub fn get_policy(&self) -> crate::operation::get_policy::builders::GetPolicyFluentBuilder {
        crate::operation::get_policy::builders::GetPolicyFluentBuilder::new(self.handle.clone())
    }
}