Skip to content

GetOntologyRequest

Source code in docs_src/capo_context/types/get_ontology_request.py
class GetOntologyRequest(TypedDict, closed=True):
    ontology_id: "capo_context.types.ontology_identifier.OntologyIdentifier"
    """<p>The ontology to return, by its ID or ARN (see <code>OntologyIdentifier</code>).</p>"""
    version: NotRequired[
        "capo_context.types.ontology_version_string.OntologyVersionString"
    ]
    """<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>"""
    source_format: NotRequired[
        "capo_context.types.ontology_source_format.OntologySourceFormat"
    ]
    """<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>"""

ontology_id instance-attribute

ontology_id: OntologyIdentifier

The ontology to return, by its ID or ARN (see OntologyIdentifier).

source_format instance-attribute

source_format: NotRequired[OntologySourceFormat]

Return the version's source document in source, in this format, in place of the template. The response then has no template. The format must be the version's sourceFormat. On a DRAFT ontology, GetOntology returns the draft, with or without version (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 ValidationException. If you omit it, the response has the template and no source.

version instance-attribute

version: NotRequired[OntologyVersionString]

The version to return, in MAJOR.MINOR.PATCH form, for example 1.0.0. If you omit it, GetOntology returns the current default version.