aws_sdk_ssoadmin/client/list_application_grants.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 [`ListApplicationGrants`](crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`application_arn(impl Into<String>)`](crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder::application_arn) / [`set_application_arn(Option<String>)`](crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder::set_application_arn):<br>required: **true**<br><p>Specifies the ARN of the application whose grants you want to list.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder::set_next_token):<br>required: **false**<br><p>Specifies that you want to receive the next page of results. Valid only if you received a <code>NextToken</code> response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's <code>NextToken</code> response to request the next page of results.</p><br>
9 /// - On success, responds with [`ListApplicationGrantsOutput`](crate::operation::list_application_grants::ListApplicationGrantsOutput) with field(s):
10 /// - [`grants(Vec::<GrantItem>)`](crate::operation::list_application_grants::ListApplicationGrantsOutput::grants): <p>An array list of structures that describe the requested grants.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_application_grants::ListApplicationGrantsOutput::next_token): <p>If present, this value indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the <code>NextToken</code> response element comes back as <code>null</code>. This indicates that this is the last page of results.</p>
12 /// - On failure, responds with [`SdkError<ListApplicationGrantsError>`](crate::operation::list_application_grants::ListApplicationGrantsError)
13 pub fn list_application_grants(&self) -> crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder {
14 crate::operation::list_application_grants::builders::ListApplicationGrantsFluentBuilder::new(self.handle.clone())
15 }
16}