aws_sdk_licensemanager/client/list_received_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 [`ListReceivedGrants`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`grant_arns(impl Into<String>)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::grant_arns) / [`set_grant_arns(Option<Vec::<String>>)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::set_grant_arns):<br>required: **false**<br><p>Amazon Resource Names (ARNs) of the grants.</p><br>
7 /// - [`filters(Filter)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::set_filters):<br>required: **false**<br><p>Filters to scope the results. The following filters are supported:</p> <ul> <li> <p><code>ProductSKU</code></p></li> <li> <p><code>LicenseIssuerName</code></p></li> <li> <p><code>LicenseArn</code></p></li> <li> <p><code>GrantStatus</code></p></li> <li> <p><code>GranterAccountId</code></p></li> </ul><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::set_next_token):<br>required: **false**<br><p>Token for the next set of results.</p><br>
9 /// - [`max_results(i32)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum number of results to return in a single call.</p><br>
10 /// - On success, responds with [`ListReceivedGrantsOutput`](crate::operation::list_received_grants::ListReceivedGrantsOutput) with field(s):
11 /// - [`grants(Option<Vec::<Grant>>)`](crate::operation::list_received_grants::ListReceivedGrantsOutput::grants): <p>Received grant details.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_received_grants::ListReceivedGrantsOutput::next_token): <p>Token for the next set of results.</p>
13 /// - On failure, responds with [`SdkError<ListReceivedGrantsError>`](crate::operation::list_received_grants::ListReceivedGrantsError)
14 pub fn list_received_grants(&self) -> crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder {
15 crate::operation::list_received_grants::builders::ListReceivedGrantsFluentBuilder::new(self.handle.clone())
16 }
17}