1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetResourceShares`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_share_arns(impl Into<String>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::resource_share_arns) / [`set_resource_share_arns(Option<Vec::<String>>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_resource_share_arns):<br>required: **false**<br><p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> of individual resource shares that you want information about.</p><br>
    ///   - [`resource_share_status(ResourceShareStatus)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::resource_share_status) / [`set_resource_share_status(Option<ResourceShareStatus>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_resource_share_status):<br>required: **false**<br><p>Specifies that you want to retrieve details of only those resource shares that have this status.</p><br>
    ///   - [`resource_owner(ResourceOwner)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::resource_owner) / [`set_resource_owner(Option<ResourceOwner>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_resource_owner):<br>required: **true**<br><p>Specifies that you want to retrieve details of only those resource shares that match the following:</p>  <ul>   <li> <p> <b> <code>SELF</code> </b> – resource shares that your account shares with other accounts</p> </li>   <li> <p> <b> <code>OTHER-ACCOUNTS</code> </b> – resource shares that other accounts share with your account</p> </li>  </ul><br>
    ///   - [`name(impl Into<String>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_name):<br>required: **false**<br><p>Specifies the name of an individual resource share that you want to retrieve details about.</p><br>
    ///   - [`tag_filters(TagFilter)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::tag_filters) / [`set_tag_filters(Option<Vec::<TagFilter>>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_tag_filters):<br>required: **false**<br><p>Specifies that you want to retrieve details of only those resource shares that match the specified tag keys and values.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::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>
    ///   - [`max_results(i32)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_max_results):<br>required: **false**<br><p>Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the <code>NextToken</code> response element is returned with a value (not null). Include the specified value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p><br>
    ///   - [`permission_arn(impl Into<String>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::permission_arn) / [`set_permission_arn(Option<String>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_permission_arn):<br>required: **false**<br><p>Specifies that you want to retrieve details of only those resource shares that use the managed permission with this <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a>.</p><br>
    ///   - [`permission_version(i32)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::permission_version) / [`set_permission_version(Option<i32>)`](crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::set_permission_version):<br>required: **false**<br><p>Specifies that you want to retrieve details for only those resource shares that use the specified version of the managed permission.</p><br>
    /// - On success, responds with [`GetResourceSharesOutput`](crate::operation::get_resource_shares::GetResourceSharesOutput) with field(s):
    ///   - [`resource_shares(Option<Vec::<ResourceShare>>)`](crate::operation::get_resource_shares::GetResourceSharesOutput::resource_shares): <p>An array of objects that contain the information about the resource shares.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::get_resource_shares::GetResourceSharesOutput::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>
    /// - On failure, responds with [`SdkError<GetResourceSharesError>`](crate::operation::get_resource_shares::GetResourceSharesError)
    pub fn get_resource_shares(&self) -> crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder {
        crate::operation::get_resource_shares::builders::GetResourceSharesFluentBuilder::new(self.handle.clone())
    }
}