aws_sdk_iam/client/
list_delegation_requests.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 [`ListDelegationRequests`](crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`owner_id(impl Into<String>)`](crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder::owner_id) / [`set_owner_id(Option<String>)`](crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder::set_owner_id):<br>required: **false**<br><p>The owner ID to filter delegation requests by.</p><br>
7    ///   - [`marker(impl Into<String>)`](crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder::set_marker):<br>required: **false**<br><p>Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the <code>Marker</code> element in the response that you received to indicate where the next call should start.</p><br>
8    ///   - [`max_items(i32)`](crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder::set_max_items):<br>required: **false**<br><p>Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>.</p> <p>If you do not include this parameter, the number of items defaults to 100. Note that IAM may return fewer results, even when there are more results available. In that case, the <code>IsTruncated</code> response element returns <code>true</code>, and <code>Marker</code> contains a value to include in the subsequent call that tells the service where to continue from.</p><br>
9    /// - On success, responds with [`ListDelegationRequestsOutput`](crate::operation::list_delegation_requests::ListDelegationRequestsOutput) with field(s):
10    ///   - [`delegation_requests(Option<Vec::<DelegationRequest>>)`](crate::operation::list_delegation_requests::ListDelegationRequestsOutput::delegation_requests): <p>A list of delegation requests that match the specified criteria.</p>
11    ///   - [`marker(Option<String>)`](crate::operation::list_delegation_requests::ListDelegationRequestsOutput::marker): <p>When <code>isTruncated</code> is <code>true</code>, this element is present and contains the value to use for the <code>Marker</code> parameter in a subsequent pagination request.</p>
12    ///   - [`is_truncated(bool)`](crate::operation::list_delegation_requests::ListDelegationRequestsOutput::is_truncated): <p>A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the <code>Marker</code> request parameter to retrieve more items.</p>
13    /// - On failure, responds with [`SdkError<ListDelegationRequestsError>`](crate::operation::list_delegation_requests::ListDelegationRequestsError)
14    pub fn list_delegation_requests(&self) -> crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder {
15        crate::operation::list_delegation_requests::builders::ListDelegationRequestsFluentBuilder::new(self.handle.clone())
16    }
17}