

# OntologyReference

An ontology to import into the agent context, and optionally the version of it to import.

## Contents
<a name="API_OntologyReference_Contents"></a>

 ** ontologyId **   <a name="context-Type-OntologyReference-ontologyId"></a>
An ontology ID or ARN, in the account that owns the agent context.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 180.  
Pattern: `(arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:(\d{12})?:ontology/)?[a-z0-9]+(-[a-z0-9]+)*`   
Required: Yes

 ** ontologyVersion **   <a name="context-Type-OntologyReference-ontologyVersion"></a>
The ontology version to import. If you omit it, the task imports the ontology's default version at the time the import runs.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)`   
Required: No

## See Also
<a name="API_OntologyReference_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/OntologyReference) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/OntologyReference) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/OntologyReference) 