1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::list_policies::_list_policies_output::ListPoliciesOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::list_policies::_list_policies_input::ListPoliciesInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::list_policies::_list_policies_output::ListPoliciesOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::list_policies::builders::ListPoliciesInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::list_policies::ListPoliciesOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::list_policies::ListPoliciesError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.list_policies();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `ListPolicies`.
|
24 24 | ///
|
25 25 | /// <p>Lists all the managed policies that are available in your Amazon Web Services account, including your own customer-defined managed policies and all Amazon Web Services managed policies.</p>
|
26 26 | /// <p>You can filter the list of policies that is returned using the optional <code>OnlyAttached</code>, <code>Scope</code>, and <code>PathPrefix</code> parameters. For example, to list only the customer managed policies in your Amazon Web Services account, set <code>Scope</code> to <code>Local</code>. To list only Amazon Web Services managed policies, set <code>Scope</code> to <code>AWS</code>.</p>
|
27 27 | /// <p>You can paginate the results using the <code>MaxItems</code> and <code>Marker</code> parameters.</p>
|
28 28 | /// <p>For more information about managed policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed policies and inline policies</a> in the <i>IAM User Guide</i>.</p><note>
|
29 29 | /// <p>IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a customer manged policy, see <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetPolicy.html">GetPolicy</a>.</p>
|
30 30 | /// </note>
|
31 31 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
32 32 | pub struct ListPoliciesFluentBuilder {
|
33 33 | handle: ::std::sync::Arc<crate::client::Handle>,
|
34 34 | inner: crate::operation::list_policies::builders::ListPoliciesInputBuilder,
|
35 35 | config_override: ::std::option::Option<crate::config::Builder>,
|