StartOntologyInductionRequest
¶
Source code in docs_src/capo_context/types/start_ontology_induction_request.py
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
¶
input_config: OntologyInductionInputConfig
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_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.