aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetOntology`](crate::operation::get_ontology::builders::GetOntologyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`ontology_id(impl Into<String>)`](crate::operation::get_ontology::builders::GetOntologyFluentBuilder::ontology_id) / [`set_ontology_id(Option<String>)`](crate::operation::get_ontology::builders::GetOntologyFluentBuilder::set_ontology_id):<br>required: **true**<br><p>The ontology to return, by its ID or ARN (see <code>OntologyIdentifier</code>).</p><br>
    ///   - [`version(impl Into<String>)`](crate::operation::get_ontology::builders::GetOntologyFluentBuilder::version) / [`set_version(Option<String>)`](crate::operation::get_ontology::builders::GetOntologyFluentBuilder::set_version):<br>required: **false**<br><p>The version to return, in MAJOR.MINOR.PATCH form, for example <code>1.0.0</code>. If you omit it, GetOntology returns the current default version.</p><br>
    ///   - [`source_format(OntologySourceFormat)`](crate::operation::get_ontology::builders::GetOntologyFluentBuilder::source_format) / [`set_source_format(Option<OntologySourceFormat>)`](crate::operation::get_ontology::builders::GetOntologyFluentBuilder::set_source_format):<br>required: **false**<br><p>Return the version's source document in <code>source</code>, in this format, in place of the template. The response then has no <code>template</code>. The format must be the version's <code>sourceFormat</code>. On a <code>DRAFT</code> ontology, GetOntology returns the draft, with or without <code>version</code> (its only version is 1.0.0). If the ontology is AWS managed, whose source is never returned, or the version has no source document, the request fails with <code>ValidationException</code>. If you omit it, the response has the template and no source.</p><br>
    /// - On success, responds with [`GetOntologyOutput`](crate::operation::get_ontology::GetOntologyOutput) with field(s):
    ///   - [`arn(String)`](crate::operation::get_ontology::GetOntologyOutput::arn): <p>The ARN of the ontology. It has no account for an AWS managed ontology, and includes the account for a customer-owned one. Use it to address the same ontology again.</p>
    ///   - [`version(String)`](crate::operation::get_ontology::GetOntologyOutput::version): <p>The version of the ontology, in MAJOR.MINOR.PATCH form, for example <code>1.0.0</code>.</p>
    ///   - [`template(Option<String>)`](crate::operation::get_ontology::GetOntologyOutput::template): <p>The serialized template JSON for this version (see OntologyTemplate).</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_ontology::GetOntologyOutput::created_at): <p>When this version was created. Absent when the stored version carries no creation time.</p>
    ///   - [`published_at(Option<DateTime>)`](crate::operation::get_ontology::GetOntologyOutput::published_at): <p>Publish time of the DEFAULT version. Absent for non-default versions, and while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.</p>
    ///   - [`name(Option<String>)`](crate::operation::get_ontology::GetOntologyOutput::name): <p>The ontology's current display name. The same for every version. Absent for an AWS managed ontology, which has no name, and for a customer-owned ontology that was created without a name and hasn't been named since.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_ontology::GetOntologyOutput::description): <p>The ontology's description. The same for every version. Absent when the ontology has none.</p>
    ///   - [`derivation_version(Option<String>)`](crate::operation::get_ontology::GetOntologyOutput::derivation_version): <p>Identifies the derivation rules that produced this template. Node ID formulas don't change after a version is published.</p>
    ///   - [`id(String)`](crate::operation::get_ontology::GetOntologyOutput::id): <p>The ID of the ontology, assigned by AWS Context.</p>
    ///   - [`status(OntologyStatus)`](crate::operation::get_ontology::GetOntologyOutput::status): <p>The ontology's status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::get_ontology::GetOntologyOutput::updated_at): <p>When the ontology itself last changed. Equal to the ontology's creation time until the first update. The top-level <code>createdAt</code> (from the version fields) is the returned version's creation time, not the ontology's.</p>
    ///   - [`ontology_induction_id(Option<String>)`](crate::operation::get_ontology::GetOntologyOutput::ontology_induction_id): <p>The induction that made the ontology. Absent for an ontology CreateOntology made.</p>
    ///   - [`source(Option<String>)`](crate::operation::get_ontology::GetOntologyOutput::source): <p>The source document of the returned version, or the draft of a <code>DRAFT</code> ontology, with or without <code>version</code>. Set only when the request set <code>sourceFormat</code>. Absent otherwise.</p>
    ///   - [`source_format(Option<OntologySourceFormat>)`](crate::operation::get_ontology::GetOntologyOutput::source_format): <p>The format of the version's source document. On a <code>DRAFT</code>, <code>TURTLE</code>, the format of the draft. Set whether or not the request asked for <code>source</code>, and a <code>source</code> in the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (see <code>sourceFormat</code> on the request).</p>
    ///   - [`revision_id(Option<String>)`](crate::operation::get_ontology::GetOntologyOutput::revision_id): <p>The revision of the draft. Set only for a DRAFT ontology.</p>
    ///   - [`validation_issues(Option<Vec::<OntologyValidationIssue>>)`](crate::operation::get_ontology::GetOntologyOutput::validation_issues): <p>Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.</p>
    /// - On failure, responds with [`SdkError<GetOntologyError>`](crate::operation::get_ontology::GetOntologyError)
    pub fn get_ontology(&self) -> crate::operation::get_ontology::builders::GetOntologyFluentBuilder {
        crate::operation::get_ontology::builders::GetOntologyFluentBuilder::new(self.handle.clone())
    }
}