aws_sdk_ses/client/
get_identity_policies.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 [`GetIdentityPolicies`](crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    /// - On success, responds with [`GetIdentityPoliciesOutput`](crate::operation::get_identity_policies::GetIdentityPoliciesOutput) with field(s):
9    ///   - [`policies(HashMap::<String, String>)`](crate::operation::get_identity_policies::GetIdentityPoliciesOutput::policies): <p>A map of policy names to policies.</p>
10    /// - On failure, responds with [`SdkError<GetIdentityPoliciesError>`](crate::operation::get_identity_policies::GetIdentityPoliciesError)
11    pub fn get_identity_policies(&self) -> crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder {
12        crate::operation::get_identity_policies::builders::GetIdentityPoliciesFluentBuilder::new(self.handle.clone())
13    }
14}