

# GetOntologyInduction

Returns an ontology induction's status, and, once it is a draft, the ontology it created.

## Request Parameters
<a name="API_GetOntologyInduction_RequestParameters"></a>

 ** ontologyInductionId **   
The ID or Amazon Resource Name (ARN) of the ontology induction to return.  
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-induction/)?oi-[a-z0-9]+(-[a-z0-9]+)*`   
Required: Yes

## Response Elements
<a name="API_GetOntologyInduction_ResponseElements"></a>

The following elements are returned by the service.

 ** arn **   
The Amazon Resource Name (ARN) of the ontology induction.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1011.  
Pattern: `arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:ontology-induction/oi-[a-z0-9]+(-[a-z0-9]+)*` 

 ** createdAt **   
The date and time when the ontology induction was created.  
Type: Timestamp

 ** failure **   
Why the induction is FAILED. Absent in every other status.  
Type: [OntologyInductionFailure](API_OntologyInductionFailure.md) object

 ** id **   
The ID of the induction, assigned by AWS 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-induction/)?oi-[a-z0-9]+(-[a-z0-9]+)*` 

 ** inputConfig **   
What the induction was started from, without the document content.  
Type: [OntologyInductionInputConfigSummary](API_OntologyInductionInputConfigSummary.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.

 ** ontologyArn **   
The ARN of `ontologyId`. Present when it is.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1011.  
Pattern: `arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:(\d{12})?:ontology/[a-z0-9]+(-[a-z0-9]+)*` 

 ** ontologyDescription **   
The description the induction's ontology gets (`ontologyDescription`). Absent when there is none.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Pattern: `\P{Cc}*` 

 ** ontologyId **   
The ontology the induction created. Present exactly when the status is DRAFT: the ontology is created as DRAFT, in the same step that makes the induction DRAFT. Absent while INDUCING, and on a FAILED or CANCELLED induction, which never has an ontology. Returned even after the ontology is deleted.  
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]+)*` 

 ** ontologyName **   
The name the induction's ontology gets, as StartOntologyInduction took it (`ontologyName`). Once the ontology exists, its current name is GetOntology's.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `[^\s\p{Cc}\p{Z}\p{Cf}](\P{Cc}*[^\s\p{Cc}\p{Z}\p{Cf}])?` 

 ** prompt **   
The prompt that the induction was started with. Absent if the induction was started without a prompt.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 8000.

 ** seedOntologyId **   
The seed ontology the induction started from. Absent when started without a seed. Returned in every status.  
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]+)*` 

 ** status **   
The status of the ontology induction: `INDUCING` while it runs, then `DRAFT` once it has created a draft ontology, or `FAILED`. An induction that CancelOntologyInduction stops is `CANCELLED`. `DRAFT`, `FAILED`, and `CANCELLED` are final.  
Type: String  
Valid Values: `INDUCING | DRAFT | FAILED | CANCELLED` 

 ** updatedAt **   
The date and time when the ontology induction was last updated. Set when the induction is created, and updated on every change, such as a change of status.  
Type: Timestamp

## Errors
<a name="API_GetOntologyInduction_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.    
 ** message **   
A message that describes the error.
HTTP Status Code: 403

 ** InternalServerException **   
The request failed because of an internal error. Retry the request.    
 ** message **   
A message that describes the error.
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.    
 ** message **   
A message that describes the error.  
 ** resourceId **   
The ID of the resource that was not found.  
 ** resourceType **   
The type of the resource that wasn't found.  
Valid values:  
+  `agent-context` - An agent context.
+  `connection` - A connection.
+  `curation-policy` - A curation policy.
+  `evaluation` - Reserved for future use.
+  `ontology` - An ontology.
+  `ontology-induction` - An ontology induction.
+  `resource-policy` - A resource-based policy.
HTTP Status Code: 404

 ** ThrottlingException **   
The request was denied because it exceeded a request rate quota. Wait, then retry the request.    
 ** message **   
A message that describes the error.  
 ** quotaCode **   
The code of the quota that throttled the request.  
 ** retryAfterSeconds **   
The number of seconds to wait before you retry the request, if AWS Context provides one.  
 ** serviceCode **   
The code of the service whose quota throttled the request.
HTTP Status Code: 429

 ** ValidationException **   
The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.    
 ** fieldList **   
The fields that failed validation, each with a message that describes why.  
 ** message **   
A message that describes the error.  
 ** reason **   
The reason that the input failed validation. Valid values:  
+  `unknownOperation` - The operation isn't recognized.
+  `cannotParse` - The request couldn't be parsed.
+  `fieldValidationFailed` - One or more fields failed validation. `fieldList` describes them.
+  `other` - Another reason. `message` describes it.
HTTP Status Code: 400

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/context-2022-07-26/GetOntologyInduction) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/GetOntologyInduction) 