aws_sdk_context/client/list_ontologies.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 [`ListOntologies`](crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`max_results(i32)`](crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of ontology summaries to return in one page, 1–100. Defaults to 50. A value outside this range fails with ValidationException. AWS Context doesn't clamp it.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder::set_next_token):<br>required: **false**<br><p>Opaque continuation token from a prior response's nextToken. Omit on the first page.</p><br>
9 /// - On success, responds with [`ListOntologiesOutput`](crate::operation::list_ontologies::ListOntologiesOutput) with field(s):
10 /// - [`items(Vec::<OntologySummary>)`](crate::operation::list_ontologies::ListOntologiesOutput::items): <p>One entry for each ontology that you own. Always present, and empty when you have none.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_ontologies::ListOntologiesOutput::next_token): <p>The token for the next page of results. Pass it as <code>nextToken</code> in your next request. Absent on the last page. Treat the token as opaque.</p>
12 /// - On failure, responds with [`SdkError<ListOntologiesError>`](crate::operation::list_ontologies::ListOntologiesError)
13 pub fn list_ontologies(&self) -> crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder {
14 crate::operation::list_ontologies::builders::ListOntologiesFluentBuilder::new(self.handle.clone())
15 }
16}