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