|
1 | 1 | /* |
2 | | - * Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | + * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"). |
5 | 5 | * You may not use this file except in compliance with the License. |
@@ -471,6 +471,30 @@ DeleteEntityRecognizerResult deleteEntityRecognizer( |
471 | 471 | DeleteEntityRecognizerRequest deleteEntityRecognizerRequest) |
472 | 472 | throws AmazonClientException, AmazonServiceException; |
473 | 473 |
|
| 474 | + /** |
| 475 | + * <p> |
| 476 | + * Deletes a resource-based policy that is attached to a custom model. |
| 477 | + * </p> |
| 478 | + * |
| 479 | + * @param deleteResourcePolicyRequest |
| 480 | + * @return deleteResourcePolicyResult The response from the |
| 481 | + * DeleteResourcePolicy service method, as returned by Amazon |
| 482 | + * Comprehend. |
| 483 | + * @throws InvalidRequestException |
| 484 | + * @throws ResourceNotFoundException |
| 485 | + * @throws InternalServerException |
| 486 | + * @throws AmazonClientException If any internal errors are encountered |
| 487 | + * inside the client while attempting to make the request or |
| 488 | + * handle the response. For example if a network connection is |
| 489 | + * not available. |
| 490 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 491 | + * Comprehend indicating either a problem with the data in the |
| 492 | + * request, or a server side issue. |
| 493 | + */ |
| 494 | + DeleteResourcePolicyResult deleteResourcePolicy( |
| 495 | + DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws AmazonClientException, |
| 496 | + AmazonServiceException; |
| 497 | + |
474 | 498 | /** |
475 | 499 | * <p> |
476 | 500 | * Gets the properties associated with a document classification job. Use |
@@ -701,6 +725,31 @@ DescribePiiEntitiesDetectionJobResult describePiiEntitiesDetectionJob( |
701 | 725 | DescribePiiEntitiesDetectionJobRequest describePiiEntitiesDetectionJobRequest) |
702 | 726 | throws AmazonClientException, AmazonServiceException; |
703 | 727 |
|
| 728 | + /** |
| 729 | + * <p> |
| 730 | + * Gets the details of a resource-based policy that is attached to a custom |
| 731 | + * model, including the JSON body of the policy. |
| 732 | + * </p> |
| 733 | + * |
| 734 | + * @param describeResourcePolicyRequest |
| 735 | + * @return describeResourcePolicyResult The response from the |
| 736 | + * DescribeResourcePolicy service method, as returned by Amazon |
| 737 | + * Comprehend. |
| 738 | + * @throws InvalidRequestException |
| 739 | + * @throws ResourceNotFoundException |
| 740 | + * @throws InternalServerException |
| 741 | + * @throws AmazonClientException If any internal errors are encountered |
| 742 | + * inside the client while attempting to make the request or |
| 743 | + * handle the response. For example if a network connection is |
| 744 | + * not available. |
| 745 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 746 | + * Comprehend indicating either a problem with the data in the |
| 747 | + * request, or a server side issue. |
| 748 | + */ |
| 749 | + DescribeResourcePolicyResult describeResourcePolicy( |
| 750 | + DescribeResourcePolicyRequest describeResourcePolicyRequest) |
| 751 | + throws AmazonClientException, AmazonServiceException; |
| 752 | + |
704 | 753 | /** |
705 | 754 | * <p> |
706 | 755 | * Gets the properties associated with a sentiment detection job. Use this |
@@ -901,6 +950,43 @@ DetectSentimentResult detectSentiment(DetectSentimentRequest detectSentimentRequ |
901 | 950 | DetectSyntaxResult detectSyntax(DetectSyntaxRequest detectSyntaxRequest) |
902 | 951 | throws AmazonClientException, AmazonServiceException; |
903 | 952 |
|
| 953 | + /** |
| 954 | + * <p> |
| 955 | + * Creates a new custom model that replicates a source custom model that you |
| 956 | + * import. The source model can be in your AWS account or another one. |
| 957 | + * </p> |
| 958 | + * <p> |
| 959 | + * If the source model is in another AWS account, then it must have a |
| 960 | + * resource-based policy that authorizes you to import it. |
| 961 | + * </p> |
| 962 | + * <p> |
| 963 | + * The source model must be in the same AWS region that you're using when |
| 964 | + * you import. You can't import a model that's in a different region. |
| 965 | + * </p> |
| 966 | + * |
| 967 | + * @param importModelRequest |
| 968 | + * @return importModelResult The response from the ImportModel service |
| 969 | + * method, as returned by Amazon Comprehend. |
| 970 | + * @throws InvalidRequestException |
| 971 | + * @throws ResourceNotFoundException |
| 972 | + * @throws ResourceInUseException |
| 973 | + * @throws ResourceUnavailableException |
| 974 | + * @throws TooManyTagsException |
| 975 | + * @throws TooManyRequestsException |
| 976 | + * @throws ResourceLimitExceededException |
| 977 | + * @throws KmsKeyValidationException |
| 978 | + * @throws InternalServerException |
| 979 | + * @throws AmazonClientException If any internal errors are encountered |
| 980 | + * inside the client while attempting to make the request or |
| 981 | + * handle the response. For example if a network connection is |
| 982 | + * not available. |
| 983 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 984 | + * Comprehend indicating either a problem with the data in the |
| 985 | + * request, or a server side issue. |
| 986 | + */ |
| 987 | + ImportModelResult importModel(ImportModelRequest importModelRequest) |
| 988 | + throws AmazonClientException, AmazonServiceException; |
| 989 | + |
904 | 990 | /** |
905 | 991 | * <p> |
906 | 992 | * Gets a list of the documentation classification jobs that you have |
@@ -1257,6 +1343,30 @@ ListTopicsDetectionJobsResult listTopicsDetectionJobs( |
1257 | 1343 | ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest) |
1258 | 1344 | throws AmazonClientException, AmazonServiceException; |
1259 | 1345 |
|
| 1346 | + /** |
| 1347 | + * <p> |
| 1348 | + * Attaches a resource-based policy to a custom model. You can use this |
| 1349 | + * policy to authorize an entity in another AWS account to import the custom |
| 1350 | + * model, which replicates it in Amazon Comprehend in their account. |
| 1351 | + * </p> |
| 1352 | + * |
| 1353 | + * @param putResourcePolicyRequest |
| 1354 | + * @return putResourcePolicyResult The response from the PutResourcePolicy |
| 1355 | + * service method, as returned by Amazon Comprehend. |
| 1356 | + * @throws InvalidRequestException |
| 1357 | + * @throws ResourceNotFoundException |
| 1358 | + * @throws InternalServerException |
| 1359 | + * @throws AmazonClientException If any internal errors are encountered |
| 1360 | + * inside the client while attempting to make the request or |
| 1361 | + * handle the response. For example if a network connection is |
| 1362 | + * not available. |
| 1363 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 1364 | + * Comprehend indicating either a problem with the data in the |
| 1365 | + * request, or a server side issue. |
| 1366 | + */ |
| 1367 | + PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) |
| 1368 | + throws AmazonClientException, AmazonServiceException; |
| 1369 | + |
1260 | 1370 | /** |
1261 | 1371 | * <p> |
1262 | 1372 | * Starts an asynchronous document classification job. Use the operation to |
|
0 commit comments