aws_sdk_iam/client/
list_instance_profiles.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 [`ListInstanceProfiles`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`path_prefix(impl Into<String>)`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::path_prefix) / [`set_path_prefix(Option<String>)`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::set_path_prefix):<br>required: **false**<br><p>The path prefix for filtering the results. For example, the prefix <code>/application_abc/component_xyz/</code> gets all instance profiles whose path starts with <code>/application_abc/component_xyz/</code>.</p> <p>This parameter is optional. If it is not included, it defaults to a slash (/), listing all instance profiles. This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL character (<code>\u007F</code>), including most punctuation characters, digits, and upper and lowercased letters.</p><br>
8    ///   - [`marker(impl Into<String>)`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::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>
9    ///   - [`max_items(i32)`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::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 might 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>
10    /// - On success, responds with [`ListInstanceProfilesOutput`](crate::operation::list_instance_profiles::ListInstanceProfilesOutput) with field(s):
11    ///   - [`instance_profiles(Vec::<InstanceProfile>)`](crate::operation::list_instance_profiles::ListInstanceProfilesOutput::instance_profiles): <p>A list of instance profiles.</p>
12    ///   - [`is_truncated(bool)`](crate::operation::list_instance_profiles::ListInstanceProfilesOutput::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. Note that IAM might return fewer than the <code>MaxItems</code> number of results even when there are more results available. We recommend that you check <code>IsTruncated</code> after every call to ensure that you receive all your results.</p>
13    ///   - [`marker(Option<String>)`](crate::operation::list_instance_profiles::ListInstanceProfilesOutput::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>
14    /// - On failure, responds with [`SdkError<ListInstanceProfilesError>`](crate::operation::list_instance_profiles::ListInstanceProfilesError)
15    pub fn list_instance_profiles(&self) -> crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder {
16        crate::operation::list_instance_profiles::builders::ListInstanceProfilesFluentBuilder::new(self.handle.clone())
17    }
18}