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 [`GetIdentityPolicies`](crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`identity(impl Into<String>)`](crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder::identity) / [`set_identity(Option<String>)`](crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder::set_identity):<br>required: **true**<br><p>The identity for which the policies are retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p> <p>To successfully call this operation, you must own the identity.</p><br>
    ///   - [`policy_names(impl Into<String>)`](crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder::policy_names) / [`set_policy_names(Option<Vec::<String>>)`](crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder::set_policy_names):<br>required: **true**<br><p>A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use <code>ListIdentityPolicies</code>.</p><br>
    /// - On success, responds with [`GetIdentityPoliciesOutput`](crate::operation::get_identity_policies::GetIdentityPoliciesOutput) with field(s):
    ///   - [`policies(HashMap::<String, String>)`](crate::operation::get_identity_policies::GetIdentityPoliciesOutput::policies): <p>A map of policy names to policies.</p>
    /// - On failure, responds with [`SdkError<GetIdentityPoliciesError>`](crate::operation::get_identity_policies::GetIdentityPoliciesError)
    pub fn get_identity_policies(&self) -> crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder {
        crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder::new(self.handle.clone())
    }
}