Skip to content

Commit a522957

Browse files
authored
feat(aws-android-sdk-comprehend): update models to latest (#2787)
1 parent faaa892 commit a522957

File tree

507 files changed

+4951
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

507 files changed

+4951
-499
lines changed

aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehend.java

Lines changed: 111 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
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.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -471,6 +471,30 @@ DeleteEntityRecognizerResult deleteEntityRecognizer(
471471
DeleteEntityRecognizerRequest deleteEntityRecognizerRequest)
472472
throws AmazonClientException, AmazonServiceException;
473473

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+
474498
/**
475499
* <p>
476500
* Gets the properties associated with a document classification job. Use
@@ -701,6 +725,31 @@ DescribePiiEntitiesDetectionJobResult describePiiEntitiesDetectionJob(
701725
DescribePiiEntitiesDetectionJobRequest describePiiEntitiesDetectionJobRequest)
702726
throws AmazonClientException, AmazonServiceException;
703727

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+
704753
/**
705754
* <p>
706755
* Gets the properties associated with a sentiment detection job. Use this
@@ -901,6 +950,43 @@ DetectSentimentResult detectSentiment(DetectSentimentRequest detectSentimentRequ
901950
DetectSyntaxResult detectSyntax(DetectSyntaxRequest detectSyntaxRequest)
902951
throws AmazonClientException, AmazonServiceException;
903952

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+
904990
/**
905991
* <p>
906992
* Gets a list of the documentation classification jobs that you have
@@ -1257,6 +1343,30 @@ ListTopicsDetectionJobsResult listTopicsDetectionJobs(
12571343
ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest)
12581344
throws AmazonClientException, AmazonServiceException;
12591345

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+
12601370
/**
12611371
* <p>
12621372
* Starts an asynchronous document classification job. Use the operation to

0 commit comments

Comments
 (0)