Skip to content

CreateOntologyRequest

Source code in docs_src/capo_context/types/create_ontology_request.py
class CreateOntologyRequest(TypedDict, closed=True):
    client_token: NotRequired["capo_context.types.client_token.ClientToken"]
    """<p>Client idempotency token. A reused token with an identical request returns the existing ontology with no second write. A reused token with a different request (any member differs, for example <code>name</code>, <code>description</code>, <code>sourceFormat</code>, or <code>source</code>) is a ValidationException naming <code>clientToken</code>, never a ConflictException. The AWS SDKs generate the token automatically. A request that arrives without a token is a ValidationException.</p>"""
    name: "capo_context.types.ontology_name.OntologyName"
    """<p>Friendly display name for the ontology (for example, "Sales Org"). AWS Context assigns the ontology its opaque ID. This name is a non-unique label. You can rename the ontology in the AWS Context console.</p>"""
    description: NotRequired["capo_context.types.user_defined_string.UserDefinedString"]
    """<p>Optional description of the ontology. Part of the idempotency comparison on a replay.</p>"""
    source_format: "capo_context.types.ontology_source_format.OntologySourceFormat"
    """<p>The format of <code>source</code>. The only supported value is <code>TURTLE</code>.</p>"""
    source: "capo_context.types.ontology_source.OntologySource"
    """<p>An OWL ontology to derive the template from, in <code>sourceFormat</code>.</p>"""
    tags: NotRequired["capo_context.types.tag_map.TagMap"]
    """<p>Tags to add to the ontology when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with <code>aws:</code>. To add tags, you also need <code>context:TagResource</code> permission on the new ontology. If you specify more than 50 user tags, the request fails with <code>ServiceQuotaExceededException</code>, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with <code>ValidationException</code>.</p>"""

client_token instance-attribute

client_token: NotRequired[ClientToken]

Client idempotency token. A reused token with an identical request returns the existing ontology with no second write. A reused token with a different request (any member differs, for example name, description, sourceFormat, or source) is a ValidationException naming clientToken, never a ConflictException. The AWS SDKs generate the token automatically. A request that arrives without a token is a ValidationException.

description instance-attribute

description: NotRequired[UserDefinedString]

Optional description of the ontology. Part of the idempotency comparison on a replay.

name instance-attribute

Friendly display name for the ontology (for example, "Sales Org"). AWS Context assigns the ontology its opaque ID. This name is a non-unique label. You can rename the ontology in the AWS Context console.

source instance-attribute

An OWL ontology to derive the template from, in sourceFormat.

source_format instance-attribute

source_format: OntologySourceFormat

The format of source. The only supported value is TURTLE.

tags instance-attribute

tags: NotRequired[TagMap]

Tags to add to the ontology when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with aws:. To add tags, you also need context:TagResource permission on the new ontology. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException.