Skip to content

StartOntologyInductionRequest

Source code in docs_src/capo_context/types/start_ontology_induction_request.py
class StartOntologyInductionRequest(TypedDict, closed=True):
    client_token: NotRequired["capo_context.types.client_token.ClientToken"]
    """<p>A unique, case-sensitive identifier that you provide to make the request idempotent. A retry of the same request with the same token returns the induction that the first request created, and the same token used with a different request returns a <code>ValidationException</code>. If that induction, or the ontology it created, was deleted since, a retry with the token fails with <code>ConflictException</code>.</p>"""
    ontology_name: "capo_context.types.ontology_name.OntologyName"
    """<p>The new ontology's display name.</p>"""
    ontology_description: NotRequired[
        "capo_context.types.user_defined_string.UserDefinedString"
    ]
    """<p>Optional. The new ontology's description. An empty string is the same as none.</p>"""
    input_config: "capo_context.types.ontology_induction_input_config.OntologyInductionInputConfig"
    """<p>The input to induce the ontology from. Set exactly one member.</p>"""
    seed_ontology_id: NotRequired[
        "capo_context.types.ontology_identifier.OntologyIdentifier"
    ]
    """<p>Optional. An existing ontology to start from, by ID or ARN. If you omit it, AWS Context induces the ontology from the documents alone. The seed must be an ontology that you own, it must be <code>PUBLISHED</code>, and its current version must be derived from a Turtle source document. You also need <code>context:GetOntology</code> permission on the seed. If the seed doesn't exist, the request fails with <code>ResourceNotFoundException</code>. If it can't be used, the request fails with <code>ValidationException</code>. If the seed's source document is deleted while the induction runs, is larger than 400,000 bytes, or doesn't parse, the induction fails with <code>SEED_INVALID</code>.</p>"""
    prompt: NotRequired[
        "capo_context.types.ontology_induction_prompt.OntologyInductionPrompt"
    ]
    """<p>Optional. Instructions for the induction.</p>"""
    tags: NotRequired["capo_context.types.tag_map.TagMap"]
    """<p>Tags to add to the induction 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 induction. 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>. These tags go on the induction only. <code>ontologyTags</code> go on the ontology.</p>"""
    ontology_tags: NotRequired["capo_context.types.tag_map.TagMap"]
    """<p>Tags to add to the ontology the induction creates at DRAFT, with the same limits and rules as <code>tags</code>. They are checked here, and supplying them also requires <code>context:TagResource</code> on the new ontology. These tags go on the ontology only. <code>tags</code> go on the induction.</p>"""

client_token instance-attribute

client_token: NotRequired[ClientToken]

A unique, case-sensitive identifier that you provide to make the request idempotent. A retry of the same request with the same token returns the induction that the first request created, and the same token used with a different request returns a ValidationException. If that induction, or the ontology it created, was deleted since, a retry with the token fails with ConflictException.

input_config instance-attribute

The input to induce the ontology from. Set exactly one member.

ontology_description instance-attribute

ontology_description: NotRequired[UserDefinedString]

Optional. The new ontology's description. An empty string is the same as none.

ontology_name instance-attribute

ontology_name: OntologyName

The new ontology's display name.

ontology_tags instance-attribute

ontology_tags: NotRequired[TagMap]

Tags to add to the ontology the induction creates at DRAFT, with the same limits and rules as tags. They are checked here, and supplying them also requires context:TagResource on the new ontology. These tags go on the ontology only. tags go on the induction.

prompt instance-attribute

prompt: NotRequired[OntologyInductionPrompt]

Optional. Instructions for the induction.

seed_ontology_id instance-attribute

seed_ontology_id: NotRequired[OntologyIdentifier]

Optional. An existing ontology to start from, by ID or ARN. If you omit it, AWS Context induces the ontology from the documents alone. The seed must be an ontology that you own, it must be PUBLISHED, and its current version must be derived from a Turtle source document. You also need context:GetOntology permission on the seed. If the seed doesn't exist, the request fails with ResourceNotFoundException. If it can't be used, the request fails with ValidationException. If the seed's source document is deleted while the induction runs, is larger than 400,000 bytes, or doesn't parse, the induction fails with SEED_INVALID.

tags instance-attribute

tags: NotRequired[TagMap]

Tags to add to the induction 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 induction. 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. These tags go on the induction only. ontologyTags go on the ontology.