aws_sdk_context/client/get_ontology_induction.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 [`GetOntologyInduction`](crate::operation::get_ontology_induction::builders::GetOntologyInductionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`ontology_induction_id(impl Into<String>)`](crate::operation::get_ontology_induction::builders::GetOntologyInductionFluentBuilder::ontology_induction_id) / [`set_ontology_induction_id(Option<String>)`](crate::operation::get_ontology_induction::builders::GetOntologyInductionFluentBuilder::set_ontology_induction_id):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the ontology induction to return.</p><br>
7 /// - On success, responds with [`GetOntologyInductionOutput`](crate::operation::get_ontology_induction::GetOntologyInductionOutput) with field(s):
8 /// - [`id(String)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::id): <p>The ID of the induction, assigned by AWS Context.</p>
9 /// - [`arn(String)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::arn): <p>The Amazon Resource Name (ARN) of the ontology induction.</p>
10 /// - [`status(OntologyInductionStatus)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::status): <p>The status of the ontology induction: <code>INDUCING</code> while it runs, then <code>DRAFT</code> once it has created a draft ontology, or <code>FAILED</code>. An induction that CancelOntologyInduction stops is <code>CANCELLED</code>. <code>DRAFT</code>, <code>FAILED</code>, and <code>CANCELLED</code> are final.</p>
11 /// - [`failure(Option<OntologyInductionFailure>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::failure): <p>Why the induction is FAILED. Absent in every other status.</p>
12 /// - [`ontology_name(Option<String>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::ontology_name): <p>The name the induction's ontology gets, as StartOntologyInduction took it (<code>ontologyName</code>). Once the ontology exists, its current name is GetOntology's.</p>
13 /// - [`ontology_description(Option<String>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::ontology_description): <p>The description the induction's ontology gets (<code>ontologyDescription</code>). Absent when there is none.</p>
14 /// - [`ontology_id(Option<String>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::ontology_id): <p>The ontology the induction created. Present exactly when the status is DRAFT: the ontology is created as DRAFT, in the same step that makes the induction DRAFT. Absent while INDUCING, and on a FAILED or CANCELLED induction, which never has an ontology. Returned even after the ontology is deleted.</p>
15 /// - [`ontology_arn(Option<String>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::ontology_arn): <p>The ARN of <code>ontologyId</code>. Present when it is.</p>
16 /// - [`created_at(DateTime)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::created_at): <p>The date and time when the ontology induction was created.</p>
17 /// - [`updated_at(DateTime)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::updated_at): <p>The date and time when the ontology induction was last updated. Set when the induction is created, and updated on every change, such as a change of status.</p>
18 /// - [`seed_ontology_id(Option<String>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::seed_ontology_id): <p>The seed ontology the induction started from. Absent when started without a seed. Returned in every status.</p>
19 /// - [`prompt(Option<String>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::prompt): <p>The prompt that the induction was started with. Absent if the induction was started without a prompt.</p>
20 /// - [`input_config(Option<OntologyInductionInputConfigSummary>)`](crate::operation::get_ontology_induction::GetOntologyInductionOutput::input_config): <p>What the induction was started from, without the document content.</p>
21 /// - On failure, responds with [`SdkError<GetOntologyInductionError>`](crate::operation::get_ontology_induction::GetOntologyInductionError)
22 pub fn get_ontology_induction(&self) -> crate::operation::get_ontology_induction::builders::GetOntologyInductionFluentBuilder {
23 crate::operation::get_ontology_induction::builders::GetOntologyInductionFluentBuilder::new(self.handle.clone())
24 }
25}