Smaws_Client_Comprehend.ImportModelCreates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one.
If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it.
The source model must be in the same Amazon Web Services Region that you're using when you import. You can't import a model that's in a different Region.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `KmsKeyValidationException of Types.kms_key_validation_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceLimitExceededException of Types.resource_limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ResourceUnavailableException of Types.resource_unavailable_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `TooManyTagsException of Types.too_many_tags_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.import_model_request ->
(Types.import_model_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `KmsKeyValidationException of Types.kms_key_validation_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceLimitExceededException of
Types.resource_limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ResourceUnavailableException of Types.resource_unavailable_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `TooManyTagsException of Types.too_many_tags_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.import_model_request ->
(Types.import_model_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `KmsKeyValidationException of Types.kms_key_validation_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceLimitExceededException of
Types.resource_limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ResourceUnavailableException of Types.resource_unavailable_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `TooManyTagsException of Types.too_many_tags_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result