aws_sdk_iam/client/
list_policies_granting_service_access.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 [`ListPoliciesGrantingServiceAccess`](crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`marker(impl Into<String>)`](crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder::set_marker):<br>required: **false**<br><p>Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the <code>Marker</code> element in the response that you received to indicate where the next call should start.</p><br>
7    ///   - [`arn(impl Into<String>)`](crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder::set_arn):<br>required: **true**<br><p>The ARN of the IAM identity (user, group, or role) whose policies you want to list.</p><br>
8    ///   - [`service_namespaces(impl Into<String>)`](crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder::service_namespaces) / [`set_service_namespaces(Option<Vec::<String>>)`](crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder::set_service_namespaces):<br>required: **true**<br><p>The service namespace for the Amazon Web Services services whose policies you want to list.</p> <p>To learn the service namespace for a service, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html">Actions, resources, and condition keys for Amazon Web Services services</a> in the <i>IAM User Guide</i>. Choose the name of the service to view details for that service. In the first paragraph, find the service prefix. For example, <code>(service prefix: a4b)</code>. For more information about service namespaces, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces">Amazon Web Services service namespaces</a> in the&nbsp;<i>Amazon Web Services General Reference</i>.</p><br>
9    /// - On success, responds with [`ListPoliciesGrantingServiceAccessOutput`](crate::operation::list_policies_granting_service_access::ListPoliciesGrantingServiceAccessOutput) with field(s):
10    ///   - [`policies_granting_service_access(Vec::<ListPoliciesGrantingServiceAccessEntry>)`](crate::operation::list_policies_granting_service_access::ListPoliciesGrantingServiceAccessOutput::policies_granting_service_access): <p>A&nbsp;<code>ListPoliciesGrantingServiceAccess</code> object that contains details about the permissions policies attached to the specified identity (user, group, or role).</p>
11    ///   - [`is_truncated(bool)`](crate::operation::list_policies_granting_service_access::ListPoliciesGrantingServiceAccessOutput::is_truncated): <p>A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the <code>Marker</code> request parameter to retrieve more items. We recommend that you check <code>IsTruncated</code> after every call to ensure that you receive all your results.</p>
12    ///   - [`marker(Option<String>)`](crate::operation::list_policies_granting_service_access::ListPoliciesGrantingServiceAccessOutput::marker): <p>When <code>IsTruncated</code> is <code>true</code>, this element is present and contains the value to use for the <code>Marker</code> parameter in a subsequent pagination request.</p>
13    /// - On failure, responds with [`SdkError<ListPoliciesGrantingServiceAccessError>`](crate::operation::list_policies_granting_service_access::ListPoliciesGrantingServiceAccessError)
14    pub fn list_policies_granting_service_access(
15        &self,
16    ) -> crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder {
17        crate::operation::list_policies_granting_service_access::builders::ListPoliciesGrantingServiceAccessFluentBuilder::new(self.handle.clone())
18    }
19}