AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates 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.
For .NET Core this operation is only available in asynchronous form. Please refer to ImportModelAsync.
Namespace: Amazon.Comprehend
Assembly: AWSSDK.Comprehend.dll
Version: 3.x.y.z
public virtual ImportModelResponse ImportModel( ImportModelRequest request )
Container for the necessary parameters to execute the ImportModel service method.
| Exception | Condition |
|---|---|
| InternalServerException | An internal server error occurred. Retry your request. |
| InvalidRequestException | The request is invalid. |
| KmsKeyValidationException | The KMS customer managed key (CMK) entered cannot be validated. Verify the key and re-enter it. |
| ResourceInUseException | The specified resource name is already in use. Use a different name and try your request again. |
| ResourceLimitExceededException | The maximum number of resources per account has been exceeded. Review the resources, and then try your request again. |
| ResourceNotFoundException | The specified resource ARN was not found. Check the ARN and try your request again. |
| ResourceUnavailableException | The specified resource is not available. Check the resource and try your request again. |
| TooManyRequestsException | The number of requests exceeds the limit. Resubmit your request later. |
| TooManyTagsException | The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. |
.NET Framework:
Supported in: 4.7.2 and newer