|
164 | 164 | * <li> |
165 | 165 | * <p> |
166 | 166 | * <a href= |
| 167 | + * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CopyProjectVersion.html" |
| 168 | + * >CopyProjectVersion</a> |
| 169 | + * </p> |
| 170 | + * </li> |
| 171 | + * <li> |
| 172 | + * <p> |
| 173 | + * <a href= |
167 | 174 | * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateDataset.html" |
168 | 175 | * >CreateDataset</a> |
169 | 176 | * </p> |
|
199 | 206 | * <li> |
200 | 207 | * <p> |
201 | 208 | * <a href= |
| 209 | + * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProjectPolicy.html" |
| 210 | + * >DeleteProjectPolicy</a> |
| 211 | + * </p> |
| 212 | + * </li> |
| 213 | + * <li> |
| 214 | + * <p> |
| 215 | + * <a href= |
202 | 216 | * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProjectVersion.html" |
203 | 217 | * >DeleteProjectVersion</a> |
204 | 218 | * </p> |
|
255 | 269 | * <li> |
256 | 270 | * <p> |
257 | 271 | * <a href= |
| 272 | + * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListProjectPolicies.html" |
| 273 | + * >ListProjectPolicies</a> |
| 274 | + * </p> |
| 275 | + * </li> |
| 276 | + * <li> |
| 277 | + * <p> |
| 278 | + * <a href= |
| 279 | + * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_PutProjectPolicy.html" |
| 280 | + * >PutProjectPolicy</a> |
| 281 | + * </p> |
| 282 | + * </li> |
| 283 | + * <li> |
| 284 | + * <p> |
| 285 | + * <a href= |
258 | 286 | * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartProjectVersion.html" |
259 | 287 | * >StartProjectVersion</a> |
260 | 288 | * </p> |
|
437 | 465 | * >StopStreamProcessor</a> |
438 | 466 | * </p> |
439 | 467 | * </li> |
| 468 | + * <li> |
| 469 | + * <p> |
| 470 | + * <a href= |
| 471 | + * "https://docs.aws.amazon.com/rekognition/latest/APIReference/API_UpdateStreamProcessor.html" |
| 472 | + * >UpdateStreamProcessor</a> |
| 473 | + * </p> |
| 474 | + * </li> |
440 | 475 | * </ul> |
441 | 476 | **/ |
442 | 477 | public interface AmazonRekognition { |
@@ -605,6 +640,66 @@ public interface AmazonRekognition { |
605 | 640 | CompareFacesResult compareFaces(CompareFacesRequest compareFacesRequest) |
606 | 641 | throws AmazonClientException, AmazonServiceException; |
607 | 642 |
|
| 643 | + /** |
| 644 | + * <p> |
| 645 | + * Copies a version of an Amazon Rekognition Custom Labels model from a |
| 646 | + * source project to a destination project. The source and destination |
| 647 | + * projects can be in different AWS accounts but must be in the same AWS |
| 648 | + * Region. You can't copy a model to another AWS service. |
| 649 | + * </p> |
| 650 | + * <p> |
| 651 | + * To copy a model version to a different AWS account, you need to create a |
| 652 | + * resource-based policy known as a <i>project policy</i>. You attach the |
| 653 | + * project policy to the source project by calling <a>PutProjectPolicy</a>. |
| 654 | + * The project policy gives permission to copy the model version from a |
| 655 | + * trusting AWS account to a trusted account. |
| 656 | + * </p> |
| 657 | + * <p> |
| 658 | + * For more information creating and attaching a project policy, see |
| 659 | + * Attaching a project policy (SDK) in the <i>Amazon Rekognition Custom |
| 660 | + * Labels Developer Guide</i>. |
| 661 | + * </p> |
| 662 | + * <p> |
| 663 | + * If you are copying a model version to a project in the same AWS account, |
| 664 | + * you don't need to create a project policy. |
| 665 | + * </p> |
| 666 | + * <note> |
| 667 | + * <p> |
| 668 | + * To copy a model, the destination project, source project, and source |
| 669 | + * model version must already exist. |
| 670 | + * </p> |
| 671 | + * </note> |
| 672 | + * <p> |
| 673 | + * Copying a model version takes a while to complete. To get the current |
| 674 | + * status, call <a>DescribeProjectVersions</a> and check the value of |
| 675 | + * <code>Status</code> in the <a>ProjectVersionDescription</a> object. The |
| 676 | + * copy operation has finished when the value of <code>Status</code> is |
| 677 | + * <code>COPYING_COMPLETED</code>. |
| 678 | + * </p> |
| 679 | + * |
| 680 | + * @param copyProjectVersionRequest |
| 681 | + * @return copyProjectVersionResult The response from the CopyProjectVersion |
| 682 | + * service method, as returned by Amazon Rekognition. |
| 683 | + * @throws AccessDeniedException |
| 684 | + * @throws InternalServerErrorException |
| 685 | + * @throws InvalidParameterException |
| 686 | + * @throws LimitExceededException |
| 687 | + * @throws ResourceNotFoundException |
| 688 | + * @throws ThrottlingException |
| 689 | + * @throws ServiceQuotaExceededException |
| 690 | + * @throws ProvisionedThroughputExceededException |
| 691 | + * @throws ResourceInUseException |
| 692 | + * @throws AmazonClientException If any internal errors are encountered |
| 693 | + * inside the client while attempting to make the request or |
| 694 | + * handle the response. For example if a network connection is |
| 695 | + * not available. |
| 696 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 697 | + * Rekognition indicating either a problem with the data in the |
| 698 | + * request, or a server side issue. |
| 699 | + */ |
| 700 | + CopyProjectVersionResult copyProjectVersion(CopyProjectVersionRequest copyProjectVersionRequest) |
| 701 | + throws AmazonClientException, AmazonServiceException; |
| 702 | + |
608 | 703 | /** |
609 | 704 | * <p> |
610 | 705 | * Creates a collection in an AWS Region. You can add faces to the |
@@ -1018,7 +1113,9 @@ DeleteFacesResult deleteFaces(DeleteFacesRequest deleteFacesRequest) |
1018 | 1113 | * <p> |
1019 | 1114 | * <code>DeleteProject</code> is an asynchronous operation. To check if the |
1020 | 1115 | * project is deleted, call <a>DescribeProjects</a>. The project is deleted |
1021 | | - * when the project no longer appears in the response. |
| 1116 | + * when the project no longer appears in the response. Be aware that |
| 1117 | + * deleting a given project will also delete any |
| 1118 | + * <code>ProjectPolicies</code> associated with that project. |
1022 | 1119 | * </p> |
1023 | 1120 | * <p> |
1024 | 1121 | * This operation requires permissions to perform the |
@@ -1046,6 +1143,39 @@ DeleteFacesResult deleteFaces(DeleteFacesRequest deleteFacesRequest) |
1046 | 1143 | DeleteProjectResult deleteProject(DeleteProjectRequest deleteProjectRequest) |
1047 | 1144 | throws AmazonClientException, AmazonServiceException; |
1048 | 1145 |
|
| 1146 | + /** |
| 1147 | + * <p> |
| 1148 | + * Deletes an existing project policy. |
| 1149 | + * </p> |
| 1150 | + * <p> |
| 1151 | + * To get a list of project policies attached to a project, call |
| 1152 | + * <a>ListProjectPolicies</a>. To attach a project policy to a project, call |
| 1153 | + * <a>PutProjectPolicy</a>. |
| 1154 | + * </p> |
| 1155 | + * |
| 1156 | + * @param deleteProjectPolicyRequest |
| 1157 | + * @return deleteProjectPolicyResult The response from the |
| 1158 | + * DeleteProjectPolicy service method, as returned by Amazon |
| 1159 | + * Rekognition. |
| 1160 | + * @throws AccessDeniedException |
| 1161 | + * @throws InternalServerErrorException |
| 1162 | + * @throws InvalidParameterException |
| 1163 | + * @throws ResourceNotFoundException |
| 1164 | + * @throws ThrottlingException |
| 1165 | + * @throws ProvisionedThroughputExceededException |
| 1166 | + * @throws InvalidPolicyRevisionIdException |
| 1167 | + * @throws AmazonClientException If any internal errors are encountered |
| 1168 | + * inside the client while attempting to make the request or |
| 1169 | + * handle the response. For example if a network connection is |
| 1170 | + * not available. |
| 1171 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 1172 | + * Rekognition indicating either a problem with the data in the |
| 1173 | + * request, or a server side issue. |
| 1174 | + */ |
| 1175 | + DeleteProjectPolicyResult deleteProjectPolicy( |
| 1176 | + DeleteProjectPolicyRequest deleteProjectPolicyRequest) throws AmazonClientException, |
| 1177 | + AmazonServiceException; |
| 1178 | + |
1049 | 1179 | /** |
1050 | 1180 | * <p> |
1051 | 1181 | * Deletes an Amazon Rekognition Custom Labels model. |
@@ -2736,6 +2866,38 @@ ListDatasetLabelsResult listDatasetLabels(ListDatasetLabelsRequest listDatasetLa |
2736 | 2866 | ListFacesResult listFaces(ListFacesRequest listFacesRequest) throws AmazonClientException, |
2737 | 2867 | AmazonServiceException; |
2738 | 2868 |
|
| 2869 | + /** |
| 2870 | + * <p> |
| 2871 | + * Gets a list of the project policies attached to a project. |
| 2872 | + * </p> |
| 2873 | + * <p> |
| 2874 | + * To attach a project policy to a project, call <a>PutProjectPolicy</a>. To |
| 2875 | + * remove a project policy from a project, call <a>DeleteProjectPolicy</a>. |
| 2876 | + * </p> |
| 2877 | + * |
| 2878 | + * @param listProjectPoliciesRequest |
| 2879 | + * @return listProjectPoliciesResult The response from the |
| 2880 | + * ListProjectPolicies service method, as returned by Amazon |
| 2881 | + * Rekognition. |
| 2882 | + * @throws AccessDeniedException |
| 2883 | + * @throws InternalServerErrorException |
| 2884 | + * @throws InvalidParameterException |
| 2885 | + * @throws ResourceNotFoundException |
| 2886 | + * @throws ThrottlingException |
| 2887 | + * @throws ProvisionedThroughputExceededException |
| 2888 | + * @throws InvalidPaginationTokenException |
| 2889 | + * @throws AmazonClientException If any internal errors are encountered |
| 2890 | + * inside the client while attempting to make the request or |
| 2891 | + * handle the response. For example if a network connection is |
| 2892 | + * not available. |
| 2893 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 2894 | + * Rekognition indicating either a problem with the data in the |
| 2895 | + * request, or a server side issue. |
| 2896 | + */ |
| 2897 | + ListProjectPoliciesResult listProjectPolicies( |
| 2898 | + ListProjectPoliciesRequest listProjectPoliciesRequest) throws AmazonClientException, |
| 2899 | + AmazonServiceException; |
| 2900 | + |
2739 | 2901 | /** |
2740 | 2902 | * <p> |
2741 | 2903 | * Gets a list of stream processors that you have created with |
@@ -2796,6 +2958,59 @@ ListTagsForResourceResult listTagsForResource( |
2796 | 2958 | ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonClientException, |
2797 | 2959 | AmazonServiceException; |
2798 | 2960 |
|
| 2961 | + /** |
| 2962 | + * <p> |
| 2963 | + * Attaches a project policy to a Amazon Rekognition Custom Labels project |
| 2964 | + * in a trusting AWS account. A project policy specifies that a trusted AWS |
| 2965 | + * account can copy a model version from a trusting AWS account to a project |
| 2966 | + * in the trusted AWS account. To copy a model version you use the |
| 2967 | + * <a>CopyProjectVersion</a> operation. |
| 2968 | + * </p> |
| 2969 | + * <p> |
| 2970 | + * For more information about the format of a project policy document, see |
| 2971 | + * Attaching a project policy (SDK) in the <i>Amazon Rekognition Custom |
| 2972 | + * Labels Developer Guide</i>. |
| 2973 | + * </p> |
| 2974 | + * <p> |
| 2975 | + * The response from <code>PutProjectPolicy</code> is a revision ID for the |
| 2976 | + * project policy. You can attach multiple project policies to a project. |
| 2977 | + * You can also update an existing project policy by specifying the policy |
| 2978 | + * revision ID of the existing policy. |
| 2979 | + * </p> |
| 2980 | + * <p> |
| 2981 | + * To remove a project policy from a project, call |
| 2982 | + * <a>DeleteProjectPolicy</a>. To get a list of project policies attached to |
| 2983 | + * a project, call <a>ListProjectPolicies</a>. |
| 2984 | + * </p> |
| 2985 | + * <p> |
| 2986 | + * You copy a model version by calling <a>CopyProjectVersion</a>. |
| 2987 | + * </p> |
| 2988 | + * |
| 2989 | + * @param putProjectPolicyRequest |
| 2990 | + * @return putProjectPolicyResult The response from the PutProjectPolicy |
| 2991 | + * service method, as returned by Amazon Rekognition. |
| 2992 | + * @throws AccessDeniedException |
| 2993 | + * @throws InternalServerErrorException |
| 2994 | + * @throws InvalidParameterException |
| 2995 | + * @throws InvalidPolicyRevisionIdException |
| 2996 | + * @throws MalformedPolicyDocumentException |
| 2997 | + * @throws ResourceNotFoundException |
| 2998 | + * @throws ResourceAlreadyExistsException |
| 2999 | + * @throws ThrottlingException |
| 3000 | + * @throws ServiceQuotaExceededException |
| 3001 | + * @throws ProvisionedThroughputExceededException |
| 3002 | + * @throws LimitExceededException |
| 3003 | + * @throws AmazonClientException If any internal errors are encountered |
| 3004 | + * inside the client while attempting to make the request or |
| 3005 | + * handle the response. For example if a network connection is |
| 3006 | + * not available. |
| 3007 | + * @throws AmazonServiceException If an error response is returned by Amazon |
| 3008 | + * Rekognition indicating either a problem with the data in the |
| 3009 | + * request, or a server side issue. |
| 3010 | + */ |
| 3011 | + PutProjectPolicyResult putProjectPolicy(PutProjectPolicyRequest putProjectPolicyRequest) |
| 3012 | + throws AmazonClientException, AmazonServiceException; |
| 3013 | + |
2799 | 3014 | /** |
2800 | 3015 | * <p> |
2801 | 3016 | * Returns an array of celebrities recognized in the input image. For more |
|
0 commit comments