aws_sdk_bedrock/client/list_inference_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 [`ListInferenceProfiles`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`max_results(i32)`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::set_next_token):<br>required: **false**<br><p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p><br>
9 /// - [`type_equals(InferenceProfileType)`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::type_equals) / [`set_type_equals(Option<InferenceProfileType>)`](crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::set_type_equals):<br>required: **false**<br><p>Filters for inference profiles that match the type you specify.</p> <ul> <li> <p><code>SYSTEM_DEFINED</code> – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.</p></li> <li> <p><code>APPLICATION</code> – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.</p></li> </ul><br>
10 /// - On success, responds with [`ListInferenceProfilesOutput`](crate::operation::list_inference_profiles::ListInferenceProfilesOutput) with field(s):
11 /// - [`inference_profile_summaries(Option<Vec::<InferenceProfileSummary>>)`](crate::operation::list_inference_profiles::ListInferenceProfilesOutput::inference_profile_summaries): <p>A list of information about each inference profile that you can use.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_inference_profiles::ListInferenceProfilesOutput::next_token): <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
13 /// - On failure, responds with [`SdkError<ListInferenceProfilesError>`](crate::operation::list_inference_profiles::ListInferenceProfilesError)
14 pub fn list_inference_profiles(&self) -> crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder {
15 crate::operation::list_inference_profiles::builders::ListInferenceProfilesFluentBuilder::new(self.handle.clone())
16 }
17}