1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAccessPolicy`](crate::operation::get_access_policy::builders::GetAccessPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`r#type(AccessPolicyType)`](crate::operation::get_access_policy::builders::GetAccessPolicyFluentBuilder::type) / [`set_type(Option<AccessPolicyType>)`](crate::operation::get_access_policy::builders::GetAccessPolicyFluentBuilder::set_type):<br>required: **true**<br><p>Tye type of policy. Currently, the only supported value is <code>data</code>.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::get_access_policy::builders::GetAccessPolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_access_policy::builders::GetAccessPolicyFluentBuilder::set_name):<br>required: **true**<br><p>The name of the access policy.</p><br>
    /// - On success, responds with [`GetAccessPolicyOutput`](crate::operation::get_access_policy::GetAccessPolicyOutput) with field(s):
    ///   - [`access_policy_detail(Option<AccessPolicyDetail>)`](crate::operation::get_access_policy::GetAccessPolicyOutput::access_policy_detail): <p>Details about the requested access policy.</p>
    /// - On failure, responds with [`SdkError<GetAccessPolicyError>`](crate::operation::get_access_policy::GetAccessPolicyError)
    pub fn get_access_policy(&self) -> crate::operation::get_access_policy::builders::GetAccessPolicyFluentBuilder {
        crate::operation::get_access_policy::builders::GetAccessPolicyFluentBuilder::new(self.handle.clone())
    }
}