aws_sdk_secretsmanager/client/list_resource_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 [`ListResourcePolicies`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`secret_id(impl Into<String>)`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::secret_id) / [`set_secret_id(Option<String>)`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::set_secret_id):<br>required: **true**<br><p>The ARN or name of the secret.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::set_max_results):<br>required: **false**<br><p>The number of results to include in the response. If you don't specify this value, the service returns up to 100 results.</p> <p>If there are more results available, in the response, Secrets Manager includes <code>NextToken</code>. To get the next results, call <code>ListResourcePolicies</code> again with the value from <code>NextToken</code>.</p><br>
9 /// - [`next_token(impl Into<String>)`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::set_next_token):<br>required: **false**<br><p>A token that indicates where the output should continue from, if a previous call did not show all results. To get the next results, call <code>ListResourcePolicies</code> again with this value.</p><br>
10 /// - On success, responds with [`ListResourcePoliciesOutput`](crate::operation::list_resource_policies::ListResourcePoliciesOutput) with field(s):
11 /// - [`resource_policies(Vec::<ResourcePolicySummary>)`](crate::operation::list_resource_policies::ListResourcePoliciesOutput::resource_policies): <p>A list of the resource policies attached to the secret.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_resource_policies::ListResourcePoliciesOutput::next_token): <p>Secrets Manager includes this value if there's more output available than what is included in the current response. To get the next results, call <code>ListResourcePolicies</code> again with this value.</p>
13 /// - On failure, responds with [`SdkError<ListResourcePoliciesError>`](crate::operation::list_resource_policies::ListResourcePoliciesError)
14 pub fn list_resource_policies(&self) -> crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder {
15 crate::operation::list_resource_policies::builders::ListResourcePoliciesFluentBuilder::new(self.handle.clone())
16 }
17}