From b282995e594d7360790387274af58f6349932366 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Fri, 19 Aug 2022 15:26:18 -0400 Subject: [PATCH 1/3] feat(aws-android-sdk-rekognition): update models to latest (#2980) --- .../rekognition/AmazonRekognition.java | 217 +++- .../rekognition/AmazonRekognitionClient.java | 327 +++++- .../model/CopyProjectVersionRequest.java | 933 ++++++++++++++++++ .../model/CopyProjectVersionResult.java | 144 +++ .../model/DeleteProjectPolicyRequest.java | 313 ++++++ .../model/DeleteProjectPolicyResult.java | 57 ++ .../model/DeleteProjectRequest.java | 4 +- .../model/DeleteProjectVersionResult.java | 18 +- .../InvalidPolicyRevisionIdException.java | 37 + .../model/ListProjectPoliciesRequest.java | 337 +++++++ .../model/ListProjectPoliciesResult.java | 234 +++++ .../MalformedPolicyDocumentException.java | 38 + .../rekognition/model/ProjectPolicy.java | 509 ++++++++++ .../model/ProjectVersionDescription.java | 121 ++- .../model/ProjectVersionStatus.java | 8 +- .../model/PutProjectPolicyRequest.java | 467 +++++++++ .../model/PutProjectPolicyResult.java | 134 +++ .../model/StartProjectVersionResult.java | 18 +- .../model/StopProjectVersionResult.java | 18 +- .../CopyProjectVersionRequestMarshaller.java | 127 +++ ...yProjectVersionResultJsonUnmarshaller.java | 55 ++ .../DeleteProjectPolicyRequestMarshaller.java | 98 ++ ...teProjectPolicyResultJsonUnmarshaller.java | 42 + ...PolicyRevisionIdExceptionUnmarshaller.java | 43 + .../ListProjectPoliciesRequestMarshaller.java | 98 ++ ...ProjectPoliciesResultJsonUnmarshaller.java | 60 ++ ...edPolicyDocumentExceptionUnmarshaller.java | 43 + .../ProjectPolicyJsonMarshaller.java | 69 ++ .../ProjectPolicyJsonUnmarshaller.java | 71 ++ ...ojectVersionDescriptionJsonMarshaller.java | 5 + ...ectVersionDescriptionJsonUnmarshaller.java | 4 + .../PutProjectPolicyRequestMarshaller.java | 102 ++ ...utProjectPolicyResultJsonUnmarshaller.java | 55 ++ .../services/rekognition/package-info.java | 2 +- 34 files changed, 4778 insertions(+), 30 deletions(-) create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/CopyProjectVersionRequest.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/CopyProjectVersionResult.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DeleteProjectPolicyRequest.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DeleteProjectPolicyResult.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/InvalidPolicyRevisionIdException.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/ListProjectPoliciesRequest.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/ListProjectPoliciesResult.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/MalformedPolicyDocumentException.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/ProjectPolicy.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/PutProjectPolicyRequest.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/PutProjectPolicyResult.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/CopyProjectVersionRequestMarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/CopyProjectVersionResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/DeleteProjectPolicyRequestMarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/DeleteProjectPolicyResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/InvalidPolicyRevisionIdExceptionUnmarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/ListProjectPoliciesRequestMarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/ListProjectPoliciesResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/MalformedPolicyDocumentExceptionUnmarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/ProjectPolicyJsonMarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/ProjectPolicyJsonUnmarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/PutProjectPolicyRequestMarshaller.java create mode 100644 aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/PutProjectPolicyResultJsonUnmarshaller.java diff --git a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognition.java b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognition.java index b72c5a842a..722e7f54fd 100644 --- a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognition.java +++ b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognition.java @@ -164,6 +164,13 @@ *
* CopyProjectVersion + *
+ *+ * CreateDataset *
@@ -199,6 +206,13 @@ ** DeleteProjectPolicy + *
+ *+ * DeleteProjectVersion *
@@ -255,6 +269,20 @@ ** ListProjectPolicies + *
+ *+ * PutProjectPolicy + *
+ *+ * StartProjectVersion *
@@ -437,6 +465,13 @@ * >StopStreamProcessor * *+ * UpdateStreamProcessor + *
+ *+ * Copies a version of an Amazon Rekognition Custom Labels model from a + * source project to a destination project. The source and destination + * projects can be in different AWS accounts but must be in the same AWS + * Region. You can't copy a model to another AWS service. + *
+ *+ * To copy a model version to a different AWS account, you need to create a + * resource-based policy known as a project policy. You attach the + * project policy to the source project by calling PutProjectPolicy. + * The project policy gives permission to copy the model version from a + * trusting AWS account to a trusted account. + *
+ *+ * For more information creating and attaching a project policy, see + * Attaching a project policy (SDK) in the Amazon Rekognition Custom + * Labels Developer Guide. + *
+ *+ * If you are copying a model version to a project in the same AWS account, + * you don't need to create a project policy. + *
+ *+ * To copy a model, the destination project, source project, and source + * model version must already exist. + *
+ *
+ * Copying a model version takes a while to complete. To get the current
+ * status, call DescribeProjectVersions and check the value of
+ * Status
in the ProjectVersionDescription object. The
+ * copy operation has finished when the value of Status
is
+ * COPYING_COMPLETED
.
+ *
* Creates a collection in an AWS Region. You can add faces to the @@ -1018,7 +1113,9 @@ DeleteFacesResult deleteFaces(DeleteFacesRequest deleteFacesRequest) *
* DeleteProject
is an asynchronous operation. To check if the
* project is deleted, call DescribeProjects. The project is deleted
- * when the project no longer appears in the response.
+ * when the project no longer appears in the response. Be aware that
+ * deleting a given project will also delete any
+ * ProjectPolicies
associated with that project.
*
* This operation requires permissions to perform the @@ -1046,6 +1143,39 @@ DeleteFacesResult deleteFaces(DeleteFacesRequest deleteFacesRequest) DeleteProjectResult deleteProject(DeleteProjectRequest deleteProjectRequest) throws AmazonClientException, AmazonServiceException; + /** + *
+ * Deletes an existing project policy. + *
+ *+ * To get a list of project policies attached to a project, call + * ListProjectPolicies. To attach a project policy to a project, call + * PutProjectPolicy. + *
+ * + * @param deleteProjectPolicyRequest + * @return deleteProjectPolicyResult The response from the + * DeleteProjectPolicy service method, as returned by Amazon + * Rekognition. + * @throws AccessDeniedException + * @throws InternalServerErrorException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ProvisionedThroughputExceededException + * @throws InvalidPolicyRevisionIdException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Rekognition indicating either a problem with the data in the + * request, or a server side issue. + */ + DeleteProjectPolicyResult deleteProjectPolicy( + DeleteProjectPolicyRequest deleteProjectPolicyRequest) throws AmazonClientException, + AmazonServiceException; + /** ** Deletes an Amazon Rekognition Custom Labels model. @@ -2736,6 +2866,38 @@ ListDatasetLabelsResult listDatasetLabels(ListDatasetLabelsRequest listDatasetLa ListFacesResult listFaces(ListFacesRequest listFacesRequest) throws AmazonClientException, AmazonServiceException; + /** + *
+ * Gets a list of the project policies attached to a project. + *
+ *+ * To attach a project policy to a project, call PutProjectPolicy. To + * remove a project policy from a project, call DeleteProjectPolicy. + *
+ * + * @param listProjectPoliciesRequest + * @return listProjectPoliciesResult The response from the + * ListProjectPolicies service method, as returned by Amazon + * Rekognition. + * @throws AccessDeniedException + * @throws InternalServerErrorException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ProvisionedThroughputExceededException + * @throws InvalidPaginationTokenException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Rekognition indicating either a problem with the data in the + * request, or a server side issue. + */ + ListProjectPoliciesResult listProjectPolicies( + ListProjectPoliciesRequest listProjectPoliciesRequest) throws AmazonClientException, + AmazonServiceException; + /** ** Gets a list of stream processors that you have created with @@ -2796,6 +2958,59 @@ ListTagsForResourceResult listTagsForResource( ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonClientException, AmazonServiceException; + /** + *
+ * Attaches a project policy to a Amazon Rekognition Custom Labels project + * in a trusting AWS account. A project policy specifies that a trusted AWS + * account can copy a model version from a trusting AWS account to a project + * in the trusted AWS account. To copy a model version you use the + * CopyProjectVersion operation. + *
+ *+ * For more information about the format of a project policy document, see + * Attaching a project policy (SDK) in the Amazon Rekognition Custom + * Labels Developer Guide. + *
+ *
+ * The response from PutProjectPolicy
is a revision ID for the
+ * project policy. You can attach multiple project policies to a project.
+ * You can also update an existing project policy by specifying the policy
+ * revision ID of the existing policy.
+ *
+ * To remove a project policy from a project, call + * DeleteProjectPolicy. To get a list of project policies attached to + * a project, call ListProjectPolicies. + *
+ *+ * You copy a model version by calling CopyProjectVersion. + *
+ * + * @param putProjectPolicyRequest + * @return putProjectPolicyResult The response from the PutProjectPolicy + * service method, as returned by Amazon Rekognition. + * @throws AccessDeniedException + * @throws InternalServerErrorException + * @throws InvalidParameterException + * @throws InvalidPolicyRevisionIdException + * @throws MalformedPolicyDocumentException + * @throws ResourceNotFoundException + * @throws ResourceAlreadyExistsException + * @throws ThrottlingException + * @throws ServiceQuotaExceededException + * @throws ProvisionedThroughputExceededException + * @throws LimitExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Rekognition indicating either a problem with the data in the + * request, or a server side issue. + */ + PutProjectPolicyResult putProjectPolicy(PutProjectPolicyRequest putProjectPolicyRequest) + throws AmazonClientException, AmazonServiceException; + /** ** Returns an array of celebrities recognized in the input image. For more diff --git a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognitionClient.java b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognitionClient.java index 6e2f62dbdd..62ca572dc9 100644 --- a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognitionClient.java +++ b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognitionClient.java @@ -177,6 +177,13 @@ *
* CopyProjectVersion + *
+ *+ * CreateDataset *
@@ -212,6 +219,13 @@ ** DeleteProjectPolicy + *
+ *+ * DeleteProjectVersion *
@@ -268,6 +282,20 @@ ** ListProjectPolicies + *
+ *+ * PutProjectPolicy + *
+ *+ * StartProjectVersion *
@@ -450,6 +478,13 @@ * >StopStreamProcessor * *+ * UpdateStreamProcessor + *
+ *+ * Copies a version of an Amazon Rekognition Custom Labels model from a + * source project to a destination project. The source and destination + * projects can be in different AWS accounts but must be in the same AWS + * Region. You can't copy a model to another AWS service. + *
+ *+ * To copy a model version to a different AWS account, you need to create a + * resource-based policy known as a project policy. You attach the + * project policy to the source project by calling PutProjectPolicy. + * The project policy gives permission to copy the model version from a + * trusting AWS account to a trusted account. + *
+ *+ * For more information creating and attaching a project policy, see + * Attaching a project policy (SDK) in the Amazon Rekognition Custom + * Labels Developer Guide. + *
+ *+ * If you are copying a model version to a project in the same AWS account, + * you don't need to create a project policy. + *
+ *+ * To copy a model, the destination project, source project, and source + * model version must already exist. + *
+ *
+ * Copying a model version takes a while to complete. To get the current
+ * status, call DescribeProjectVersions and check the value of
+ * Status
in the ProjectVersionDescription object. The
+ * copy operation has finished when the value of Status
is
+ * COPYING_COMPLETED
.
+ *
* Creates a collection in an AWS Region. You can add faces to the @@ -1530,7 +1655,9 @@ public DeleteFacesResult deleteFaces(DeleteFacesRequest deleteFacesRequest) *
* DeleteProject
is an asynchronous operation. To check if the
* project is deleted, call DescribeProjects. The project is deleted
- * when the project no longer appears in the response.
+ * when the project no longer appears in the response. Be aware that
+ * deleting a given project will also delete any
+ * ProjectPolicies
associated with that project.
*
* This operation requires permissions to perform the @@ -1584,6 +1711,66 @@ public DeleteProjectResult deleteProject(DeleteProjectRequest deleteProjectReque } } + /** + *
+ * Deletes an existing project policy. + *
+ *+ * To get a list of project policies attached to a project, call + * ListProjectPolicies. To attach a project policy to a project, call + * PutProjectPolicy. + *
+ * + * @param deleteProjectPolicyRequest + * @return deleteProjectPolicyResult The response from the + * DeleteProjectPolicy service method, as returned by Amazon + * Rekognition. + * @throws AccessDeniedException + * @throws InternalServerErrorException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ProvisionedThroughputExceededException + * @throws InvalidPolicyRevisionIdException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Rekognition indicating either a problem with the data in the + * request, or a server side issue. + */ + public DeleteProjectPolicyResult deleteProjectPolicy( + DeleteProjectPolicyRequest deleteProjectPolicyRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(deleteProjectPolicyRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request* Deletes an Amazon Rekognition Custom Labels model. @@ -4024,6 +4211,65 @@ public ListFacesResult listFaces(ListFacesRequest listFacesRequest) } } + /** + *
+ * Gets a list of the project policies attached to a project. + *
+ *+ * To attach a project policy to a project, call PutProjectPolicy. To + * remove a project policy from a project, call DeleteProjectPolicy. + *
+ * + * @param listProjectPoliciesRequest + * @return listProjectPoliciesResult The response from the + * ListProjectPolicies service method, as returned by Amazon + * Rekognition. + * @throws AccessDeniedException + * @throws InternalServerErrorException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ProvisionedThroughputExceededException + * @throws InvalidPaginationTokenException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Rekognition indicating either a problem with the data in the + * request, or a server side issue. + */ + public ListProjectPoliciesResult listProjectPolicies( + ListProjectPoliciesRequest listProjectPoliciesRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(listProjectPoliciesRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request* Gets a list of stream processors that you have created with @@ -4138,6 +4384,85 @@ public ListTagsForResourceResult listTagsForResource( } } + /** + *
+ * Attaches a project policy to a Amazon Rekognition Custom Labels project + * in a trusting AWS account. A project policy specifies that a trusted AWS + * account can copy a model version from a trusting AWS account to a project + * in the trusted AWS account. To copy a model version you use the + * CopyProjectVersion operation. + *
+ *+ * For more information about the format of a project policy document, see + * Attaching a project policy (SDK) in the Amazon Rekognition Custom + * Labels Developer Guide. + *
+ *
+ * The response from PutProjectPolicy
is a revision ID for the
+ * project policy. You can attach multiple project policies to a project.
+ * You can also update an existing project policy by specifying the policy
+ * revision ID of the existing policy.
+ *
+ * To remove a project policy from a project, call + * DeleteProjectPolicy. To get a list of project policies attached to + * a project, call ListProjectPolicies. + *
+ *+ * You copy a model version by calling CopyProjectVersion. + *
+ * + * @param putProjectPolicyRequest + * @return putProjectPolicyResult The response from the PutProjectPolicy + * service method, as returned by Amazon Rekognition. + * @throws AccessDeniedException + * @throws InternalServerErrorException + * @throws InvalidParameterException + * @throws InvalidPolicyRevisionIdException + * @throws MalformedPolicyDocumentException + * @throws ResourceNotFoundException + * @throws ResourceAlreadyExistsException + * @throws ThrottlingException + * @throws ServiceQuotaExceededException + * @throws ProvisionedThroughputExceededException + * @throws LimitExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Rekognition indicating either a problem with the data in the + * request, or a server side issue. + */ + public PutProjectPolicyResult putProjectPolicy(PutProjectPolicyRequest putProjectPolicyRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(putProjectPolicyRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request* Returns an array of celebrities recognized in the input image. For more diff --git a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/CopyProjectVersionRequest.java b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/CopyProjectVersionRequest.java new file mode 100644 index 0000000000..d584ceaa95 --- /dev/null +++ b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/CopyProjectVersionRequest.java @@ -0,0 +1,933 @@ +/* + * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.rekognition.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *
+ * Copies a version of an Amazon Rekognition Custom Labels model from a source + * project to a destination project. The source and destination projects can be + * in different AWS accounts but must be in the same AWS Region. You can't copy + * a model to another AWS service. + *
+ *+ * To copy a model version to a different AWS account, you need to create a + * resource-based policy known as a project policy. You attach the + * project policy to the source project by calling PutProjectPolicy. The + * project policy gives permission to copy the model version from a trusting AWS + * account to a trusted account. + *
+ *+ * For more information creating and attaching a project policy, see Attaching a + * project policy (SDK) in the Amazon Rekognition Custom Labels Developer + * Guide. + *
+ *+ * If you are copying a model version to a project in the same AWS account, you + * don't need to create a project policy. + *
+ *+ * To copy a model, the destination project, source project, and source model + * version must already exist. + *
+ *
+ * Copying a model version takes a while to complete. To get the current status,
+ * call DescribeProjectVersions and check the value of
+ * Status
in the ProjectVersionDescription object. The copy
+ * operation has finished when the value of Status
is
+ * COPYING_COMPLETED
.
+ *
+ * The ARN of the source project in the trusting AWS account. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String sourceProjectArn;
+
+ /**
+ *
+ * The ARN of the model version in the source project that you want to copy + * to a destination project. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String sourceProjectVersionArn;
+
+ /**
+ *
+ * The ARN of the project in the trusted AWS account that you want to copy + * the model version to. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String destinationProjectArn;
+
+ /**
+ *
+ * A name for the version of the model that's copied to the destination + * project. + *
+ *
+ * Constraints:
+ * Length: 1 - 255
+ * Pattern: [a-zA-Z0-9_.\-]+
+ */
+ private String versionName;
+
+ /**
+ *
+ * The S3 bucket and folder location where the training output for the + * source model version is placed. + *
+ */ + private OutputConfig outputConfig; + + /** + *+ * The key-value tags to assign to the model version. + *
+ */ + private java.util.Map
+ * The identifier for your AWS Key Management Service key (AWS KMS key). You
+ * can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your
+ * KMS key, an alias for your KMS key, or an alias ARN. The key is used to
+ * encrypt training results and manifest files written to the output Amazon
+ * S3 bucket (OutputConfig
).
+ *
+ * If you choose to use your own KMS key, you need the following permissions + * on the KMS key. + *
+ *+ * kms:CreateGrant + *
+ *+ * kms:DescribeKey + *
+ *+ * kms:GenerateDataKey + *
+ *+ * kms:Decrypt + *
+ *
+ * If you don't specify a value for KmsKeyId
, images copied
+ * into the service are encrypted using a key that AWS owns and manages.
+ *
+ * Constraints:
+ * Length: 1 - 2048
+ * Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
+ */
+ private String kmsKeyId;
+
+ /**
+ *
+ * The ARN of the source project in the trusting AWS account. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * The ARN of the source project in the trusting AWS account. + *
+ */ + public String getSourceProjectArn() { + return sourceProjectArn; + } + + /** + *+ * The ARN of the source project in the trusting AWS account. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param sourceProjectArn
+ * The ARN of the source project in the trusting AWS account. + *
+ */ + public void setSourceProjectArn(String sourceProjectArn) { + this.sourceProjectArn = sourceProjectArn; + } + + /** + *+ * The ARN of the source project in the trusting AWS account. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param sourceProjectArn
+ * The ARN of the source project in the trusting AWS account. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CopyProjectVersionRequest withSourceProjectArn(String sourceProjectArn) { + this.sourceProjectArn = sourceProjectArn; + return this; + } + + /** + *+ * The ARN of the model version in the source project that you want to copy + * to a destination project. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * The ARN of the model version in the source project that you want + * to copy to a destination project. + *
+ */ + public String getSourceProjectVersionArn() { + return sourceProjectVersionArn; + } + + /** + *+ * The ARN of the model version in the source project that you want to copy + * to a destination project. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param sourceProjectVersionArn
+ * The ARN of the model version in the source project that you + * want to copy to a destination project. + *
+ */ + public void setSourceProjectVersionArn(String sourceProjectVersionArn) { + this.sourceProjectVersionArn = sourceProjectVersionArn; + } + + /** + *+ * The ARN of the model version in the source project that you want to copy + * to a destination project. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param sourceProjectVersionArn
+ * The ARN of the model version in the source project that you + * want to copy to a destination project. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CopyProjectVersionRequest withSourceProjectVersionArn(String sourceProjectVersionArn) { + this.sourceProjectVersionArn = sourceProjectVersionArn; + return this; + } + + /** + *+ * The ARN of the project in the trusted AWS account that you want to copy + * the model version to. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * The ARN of the project in the trusted AWS account that you want + * to copy the model version to. + *
+ */ + public String getDestinationProjectArn() { + return destinationProjectArn; + } + + /** + *+ * The ARN of the project in the trusted AWS account that you want to copy + * the model version to. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param destinationProjectArn
+ * The ARN of the project in the trusted AWS account that you + * want to copy the model version to. + *
+ */ + public void setDestinationProjectArn(String destinationProjectArn) { + this.destinationProjectArn = destinationProjectArn; + } + + /** + *+ * The ARN of the project in the trusted AWS account that you want to copy + * the model version to. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param destinationProjectArn
+ * The ARN of the project in the trusted AWS account that you + * want to copy the model version to. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CopyProjectVersionRequest withDestinationProjectArn(String destinationProjectArn) { + this.destinationProjectArn = destinationProjectArn; + return this; + } + + /** + *+ * A name for the version of the model that's copied to the destination + * project. + *
+ *
+ * Constraints:
+ * Length: 1 - 255
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @return
+ * A name for the version of the model that's copied to the + * destination project. + *
+ */ + public String getVersionName() { + return versionName; + } + + /** + *+ * A name for the version of the model that's copied to the destination + * project. + *
+ *
+ * Constraints:
+ * Length: 1 - 255
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param versionName
+ * A name for the version of the model that's copied to the + * destination project. + *
+ */ + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + /** + *+ * A name for the version of the model that's copied to the destination + * project. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 1 - 255
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param versionName
+ * A name for the version of the model that's copied to the + * destination project. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CopyProjectVersionRequest withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + *+ * The S3 bucket and folder location where the training output for the + * source model version is placed. + *
+ * + * @return+ * The S3 bucket and folder location where the training output for + * the source model version is placed. + *
+ */ + public OutputConfig getOutputConfig() { + return outputConfig; + } + + /** + *+ * The S3 bucket and folder location where the training output for the + * source model version is placed. + *
+ * + * @param outputConfig+ * The S3 bucket and folder location where the training output + * for the source model version is placed. + *
+ */ + public void setOutputConfig(OutputConfig outputConfig) { + this.outputConfig = outputConfig; + } + + /** + *+ * The S3 bucket and folder location where the training output for the + * source model version is placed. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param outputConfig
+ * The S3 bucket and folder location where the training output + * for the source model version is placed. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CopyProjectVersionRequest withOutputConfig(OutputConfig outputConfig) { + this.outputConfig = outputConfig; + return this; + } + + /** + *+ * The key-value tags to assign to the model version. + *
+ * + * @return+ * The key-value tags to assign to the model version. + *
+ */ + public java.util.Map+ * The key-value tags to assign to the model version. + *
+ * + * @param tags+ * The key-value tags to assign to the model version. + *
+ */ + public void setTags(java.util.Map+ * The key-value tags to assign to the model version. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags
+ * The key-value tags to assign to the model version. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CopyProjectVersionRequest withTags(java.util.Map+ * The key-value tags to assign to the model version. + *
+ *
+ * The method adds a new key-value pair into Tags parameter, and returns a
+ * reference to this object so that method calls can be chained together.
+ *
+ * @param key The key of the entry to be added into Tags.
+ * @param value The corresponding value of the entry to be added into Tags.
+ * @return A reference to this updated object so that method calls can be
+ * chained together.
+ */
+ public CopyProjectVersionRequest addTagsEntry(String key, String value) {
+ if (null == this.tags) {
+ this.tags = new java.util.HashMap
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ */
+ public CopyProjectVersionRequest clearTagsEntries() {
+ this.tags = null;
+ return this;
+ }
+
+ /**
+ *
+ * The identifier for your AWS Key Management Service key (AWS KMS key). You
+ * can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your
+ * KMS key, an alias for your KMS key, or an alias ARN. The key is used to
+ * encrypt training results and manifest files written to the output Amazon
+ * S3 bucket (
+ * If you choose to use your own KMS key, you need the following permissions
+ * on the KMS key.
+ *
+ * kms:CreateGrant
+ *
+ * kms:DescribeKey
+ *
+ * kms:GenerateDataKey
+ *
+ * kms:Decrypt
+ *
+ * If you don't specify a value for
+ * Constraints:
+ * The identifier for your AWS Key Management Service key (AWS KMS
+ * key). You can supply the Amazon Resource Name (ARN) of your KMS
+ * key, the ID of your KMS key, an alias for your KMS key, or an
+ * alias ARN. The key is used to encrypt training results and
+ * manifest files written to the output Amazon S3 bucket (
+ *
+ * If you choose to use your own KMS key, you need the following
+ * permissions on the KMS key.
+ *
+ * kms:CreateGrant
+ *
+ * kms:DescribeKey
+ *
+ * kms:GenerateDataKey
+ *
+ * kms:Decrypt
+ *
+ * If you don't specify a value for
+ * The identifier for your AWS Key Management Service key (AWS KMS key). You
+ * can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your
+ * KMS key, an alias for your KMS key, or an alias ARN. The key is used to
+ * encrypt training results and manifest files written to the output Amazon
+ * S3 bucket (
+ * If you choose to use your own KMS key, you need the following permissions
+ * on the KMS key.
+ *
+ * kms:CreateGrant
+ *
+ * kms:DescribeKey
+ *
+ * kms:GenerateDataKey
+ *
+ * kms:Decrypt
+ *
+ * If you don't specify a value for
+ * Constraints:
+ * The identifier for your AWS Key Management Service key (AWS
+ * KMS key). You can supply the Amazon Resource Name (ARN) of
+ * your KMS key, the ID of your KMS key, an alias for your KMS
+ * key, or an alias ARN. The key is used to encrypt training
+ * results and manifest files written to the output Amazon S3
+ * bucket (
+ * If you choose to use your own KMS key, you need the following
+ * permissions on the KMS key.
+ *
+ * kms:CreateGrant
+ *
+ * kms:DescribeKey
+ *
+ * kms:GenerateDataKey
+ *
+ * kms:Decrypt
+ *
+ * If you don't specify a value for
+ * The identifier for your AWS Key Management Service key (AWS KMS key). You
+ * can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your
+ * KMS key, an alias for your KMS key, or an alias ARN. The key is used to
+ * encrypt training results and manifest files written to the output Amazon
+ * S3 bucket (
+ * If you choose to use your own KMS key, you need the following permissions
+ * on the KMS key.
+ *
+ * kms:CreateGrant
+ *
+ * kms:DescribeKey
+ *
+ * kms:GenerateDataKey
+ *
+ * kms:Decrypt
+ *
+ * If you don't specify a value for
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The identifier for your AWS Key Management Service key (AWS
+ * KMS key). You can supply the Amazon Resource Name (ARN) of
+ * your KMS key, the ID of your KMS key, an alias for your KMS
+ * key, or an alias ARN. The key is used to encrypt training
+ * results and manifest files written to the output Amazon S3
+ * bucket (
+ * If you choose to use your own KMS key, you need the following
+ * permissions on the KMS key.
+ *
+ * kms:CreateGrant
+ *
+ * kms:DescribeKey
+ *
+ * kms:GenerateDataKey
+ *
+ * kms:Decrypt
+ *
+ * If you don't specify a value for
+ * The ARN of the copied model version in the destination project.
+ *
+ * Constraints:
+ * The ARN of the copied model version in the destination project.
+ *
+ * Constraints:
+ * The ARN of the copied model version in the destination project.
+ *
+ * The ARN of the copied model version in the destination project.
+ *
+ * Constraints:
+ * The ARN of the copied model version in the destination
+ * project.
+ *
+ * The ARN of the copied model version in the destination project.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The ARN of the copied model version in the destination
+ * project.
+ *
+ * Deletes an existing project policy.
+ *
+ * To get a list of project policies attached to a project, call
+ * ListProjectPolicies. To attach a project policy to a project, call
+ * PutProjectPolicy.
+ *
+ * The Amazon Resource Name (ARN) of the project that the project policy you
+ * want to delete is attached to.
+ *
+ * Constraints:
+ * The name of the policy that you want to delete.
+ *
+ * Constraints:
+ * The ID of the project policy revision that you want to delete.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project policy you
+ * want to delete is attached to.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project
+ * policy you want to delete is attached to.
+ *
+ * The Amazon Resource Name (ARN) of the project that the project policy you
+ * want to delete is attached to.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project
+ * policy you want to delete is attached to.
+ *
+ * The Amazon Resource Name (ARN) of the project that the project policy you
+ * want to delete is attached to.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project
+ * policy you want to delete is attached to.
+ *
+ * The name of the policy that you want to delete.
+ *
+ * Constraints:
+ * The name of the policy that you want to delete.
+ *
+ * The name of the policy that you want to delete.
+ *
+ * Constraints:
+ * The name of the policy that you want to delete.
+ *
+ * The name of the policy that you want to delete.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The name of the policy that you want to delete.
+ *
+ * The ID of the project policy revision that you want to delete.
+ *
+ * Constraints:
+ * The ID of the project policy revision that you want to delete.
+ *
+ * The ID of the project policy revision that you want to delete.
+ *
+ * Constraints:
+ * The ID of the project policy revision that you want to delete.
+ *
+ * The ID of the project policy revision that you want to delete.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The ID of the project policy revision that you want to delete.
+ *
*
* This operation requires permissions to perform the
diff --git a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DeleteProjectVersionResult.java b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DeleteProjectVersionResult.java
index 9cba300752..65a4d32646 100644
--- a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DeleteProjectVersionResult.java
+++ b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DeleteProjectVersionResult.java
@@ -25,7 +25,8 @@ public class DeleteProjectVersionResult implements Serializable {
*
* Constraints:
* Constraints:
* The status of the deletion operation.
@@ -54,7 +56,8 @@ public String getStatus() {
*
* Constraints:
* The status of the deletion operation.
@@ -75,7 +78,8 @@ public void setStatus(String status) {
*
* Constraints:
* The status of the deletion operation.
@@ -96,7 +100,8 @@ public DeleteProjectVersionResult withStatus(String status) {
*
* Constraints:
* The status of the deletion operation.
@@ -117,7 +122,8 @@ public void setStatus(ProjectVersionStatus status) {
*
* Constraints:
* The status of the deletion operation.
diff --git a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/InvalidPolicyRevisionIdException.java b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/InvalidPolicyRevisionIdException.java
new file mode 100644
index 0000000000..f32b24964f
--- /dev/null
+++ b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/InvalidPolicyRevisionIdException.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package com.amazonaws.services.rekognition.model;
+
+import com.amazonaws.AmazonServiceException;
+
+/**
+ *
+ * The supplied revision id for the project policy is invalid.
+ *
+ * Gets a list of the project policies attached to a project.
+ *
+ * To attach a project policy to a project, call PutProjectPolicy. To
+ * remove a project policy from a project, call DeleteProjectPolicy.
+ *
+ * The ARN of the project for which you want to list the project policies.
+ *
+ * Constraints:
+ * If the previous response was incomplete (because there is more results to
+ * retrieve), Amazon Rekognition Custom Labels returns a pagination token in
+ * the response. You can use this pagination token to retrieve the next set
+ * of results.
+ *
+ * Constraints:
+ * The maximum number of results to return per paginated call. The largest
+ * value you can specify is 5. If you specify a value greater than 5, a
+ * ValidationException error occurs. The default value is 5.
+ *
+ * Constraints:
+ * The ARN of the project for which you want to list the project policies.
+ *
+ * Constraints:
+ * The ARN of the project for which you want to list the project
+ * policies.
+ *
+ * The ARN of the project for which you want to list the project policies.
+ *
+ * Constraints:
+ * The ARN of the project for which you want to list the project
+ * policies.
+ *
+ * The ARN of the project for which you want to list the project policies.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The ARN of the project for which you want to list the project
+ * policies.
+ *
+ * If the previous response was incomplete (because there is more results to
+ * retrieve), Amazon Rekognition Custom Labels returns a pagination token in
+ * the response. You can use this pagination token to retrieve the next set
+ * of results.
+ *
+ * Constraints:
+ * If the previous response was incomplete (because there is more
+ * results to retrieve), Amazon Rekognition Custom Labels returns a
+ * pagination token in the response. You can use this pagination
+ * token to retrieve the next set of results.
+ *
+ * If the previous response was incomplete (because there is more results to
+ * retrieve), Amazon Rekognition Custom Labels returns a pagination token in
+ * the response. You can use this pagination token to retrieve the next set
+ * of results.
+ *
+ * Constraints:
+ * If the previous response was incomplete (because there is more
+ * results to retrieve), Amazon Rekognition Custom Labels returns
+ * a pagination token in the response. You can use this
+ * pagination token to retrieve the next set of results.
+ *
+ * If the previous response was incomplete (because there is more results to
+ * retrieve), Amazon Rekognition Custom Labels returns a pagination token in
+ * the response. You can use this pagination token to retrieve the next set
+ * of results.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * If the previous response was incomplete (because there is more
+ * results to retrieve), Amazon Rekognition Custom Labels returns
+ * a pagination token in the response. You can use this
+ * pagination token to retrieve the next set of results.
+ *
+ * The maximum number of results to return per paginated call. The largest
+ * value you can specify is 5. If you specify a value greater than 5, a
+ * ValidationException error occurs. The default value is 5.
+ *
+ * Constraints:
+ * The maximum number of results to return per paginated call. The
+ * largest value you can specify is 5. If you specify a value
+ * greater than 5, a ValidationException error occurs. The default
+ * value is 5.
+ *
+ * The maximum number of results to return per paginated call. The largest
+ * value you can specify is 5. If you specify a value greater than 5, a
+ * ValidationException error occurs. The default value is 5.
+ *
+ * Constraints:
+ * The maximum number of results to return per paginated call.
+ * The largest value you can specify is 5. If you specify a value
+ * greater than 5, a ValidationException error occurs. The
+ * default value is 5.
+ *
+ * The maximum number of results to return per paginated call. The largest
+ * value you can specify is 5. If you specify a value greater than 5, a
+ * ValidationException error occurs. The default value is 5.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The maximum number of results to return per paginated call.
+ * The largest value you can specify is 5. If you specify a value
+ * greater than 5, a ValidationException error occurs. The
+ * default value is 5.
+ *
+ * A list of project policies attached to the project.
+ *
+ * If the response is truncated, Amazon Rekognition returns this token that
+ * you can use in the subsequent request to retrieve the next set of project
+ * policies.
+ *
+ * Constraints:
+ * A list of project policies attached to the project.
+ *
+ * A list of project policies attached to the project.
+ *
+ * A list of project policies attached to the project.
+ *
+ * A list of project policies attached to the project.
+ *
+ * A list of project policies attached to the project.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param projectPolicies
+ * A list of project policies attached to the project.
+ *
+ * A list of project policies attached to the project.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param projectPolicies
+ * A list of project policies attached to the project.
+ *
+ * If the response is truncated, Amazon Rekognition returns this token that
+ * you can use in the subsequent request to retrieve the next set of project
+ * policies.
+ *
+ * Constraints:
+ * If the response is truncated, Amazon Rekognition returns this
+ * token that you can use in the subsequent request to retrieve the
+ * next set of project policies.
+ *
+ * If the response is truncated, Amazon Rekognition returns this token that
+ * you can use in the subsequent request to retrieve the next set of project
+ * policies.
+ *
+ * Constraints:
+ * If the response is truncated, Amazon Rekognition returns this
+ * token that you can use in the subsequent request to retrieve
+ * the next set of project policies.
+ *
+ * If the response is truncated, Amazon Rekognition returns this token that
+ * you can use in the subsequent request to retrieve the next set of project
+ * policies.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * If the response is truncated, Amazon Rekognition returns this
+ * token that you can use in the subsequent request to retrieve
+ * the next set of project policies.
+ *
+ * The format of the project policy document that you supplied to
+ *
+ * Describes a project policy in the response from ListProjectPolicies.
+ *
+ *
+ * The Amazon Resource Name (ARN) of the project to which the project policy
+ * is attached.
+ *
+ * Constraints:
+ * The name of the project policy.
+ *
+ * Constraints:
+ * The revision ID of the project policy.
+ *
+ * Constraints:
+ * The JSON document for the project policy.
+ *
+ * Constraints:
+ * The Unix datetime for the creation of the project policy.
+ *
+ * The Unix datetime for when the project policy was last updated.
+ *
+ * The Amazon Resource Name (ARN) of the project to which the project policy
+ * is attached.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project to which the
+ * project policy is attached.
+ *
+ * The Amazon Resource Name (ARN) of the project to which the project policy
+ * is attached.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project to which the
+ * project policy is attached.
+ *
+ * The Amazon Resource Name (ARN) of the project to which the project policy
+ * is attached.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project to which the
+ * project policy is attached.
+ *
+ * The name of the project policy.
+ *
+ * Constraints:
+ * The name of the project policy.
+ *
+ * The name of the project policy.
+ *
+ * Constraints:
+ * The name of the project policy.
+ *
+ * The name of the project policy.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The name of the project policy.
+ *
+ * The revision ID of the project policy.
+ *
+ * Constraints:
+ * The revision ID of the project policy.
+ *
+ * The revision ID of the project policy.
+ *
+ * Constraints:
+ * The revision ID of the project policy.
+ *
+ * The revision ID of the project policy.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The revision ID of the project policy.
+ *
+ * The JSON document for the project policy.
+ *
+ * Constraints:
+ * The JSON document for the project policy.
+ *
+ * The JSON document for the project policy.
+ *
+ * Constraints:
+ * The JSON document for the project policy.
+ *
+ * The JSON document for the project policy.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The JSON document for the project policy.
+ *
+ * The Unix datetime for the creation of the project policy.
+ *
+ * The Unix datetime for the creation of the project policy.
+ *
+ * The Unix datetime for the creation of the project policy.
+ *
+ * The Unix datetime for the creation of the project policy.
+ *
+ * The Unix datetime for the creation of the project policy.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param creationTimestamp
+ * The Unix datetime for the creation of the project policy.
+ *
+ * The Unix datetime for when the project policy was last updated.
+ *
+ * The Unix datetime for when the project policy was last updated.
+ *
+ * The Unix datetime for when the project policy was last updated.
+ *
+ * The Unix datetime for when the project policy was last
+ * updated.
+ *
+ * The Unix datetime for when the project policy was last updated.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param lastUpdatedTimestamp
+ * The Unix datetime for when the project policy was last
+ * updated.
+ *
* Constraints:
+ * If the model version was copied from a different project,
+ *
+ * Constraints:
* The Amazon Resource Name (ARN) of the model version.
@@ -327,7 +343,8 @@ public ProjectVersionDescription withMinInferenceUnits(Integer minInferenceUnits
*
* Constraints:
* The current status of the model version.
@@ -345,7 +362,8 @@ public String getStatus() {
*
* Constraints:
* The current status of the model version.
@@ -366,7 +384,8 @@ public void setStatus(String status) {
*
* Constraints:
* The current status of the model version.
@@ -387,7 +406,8 @@ public ProjectVersionDescription withStatus(String status) {
*
* Constraints:
* The current status of the model version.
@@ -408,7 +428,8 @@ public void setStatus(ProjectVersionStatus status) {
*
* Constraints:
* The current status of the model version.
@@ -948,6 +969,81 @@ public ProjectVersionDescription withMaxInferenceUnits(Integer maxInferenceUnits
return this;
}
+ /**
+ *
+ * If the model version was copied from a different project,
+ *
+ * Constraints:
+ * If the model version was copied from a different project,
+ *
+ * If the model version was copied from a different project,
+ *
+ * Constraints:
+ * If the model version was copied from a different project,
+ *
+ * If the model version was copied from a different project,
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * If the model version was copied from a different project,
+ *
+ * Attaches a project policy to a Amazon Rekognition Custom Labels project in a
+ * trusting AWS account. A project policy specifies that a trusted AWS account
+ * can copy a model version from a trusting AWS account to a project in the
+ * trusted AWS account. To copy a model version you use the
+ * CopyProjectVersion operation.
+ *
+ * For more information about the format of a project policy document, see
+ * Attaching a project policy (SDK) in the Amazon Rekognition Custom Labels
+ * Developer Guide.
+ *
+ * The response from
+ * To remove a project policy from a project, call DeleteProjectPolicy.
+ * To get a list of project policies attached to a project, call
+ * ListProjectPolicies.
+ *
+ * You copy a model version by calling CopyProjectVersion.
+ *
+ * The Amazon Resource Name (ARN) of the project that the project policy is
+ * attached to.
+ *
+ * Constraints:
+ * A name for the policy.
+ *
+ * Constraints:
+ * The revision ID for the Project Policy. Each time you modify a policy,
+ * Amazon Rekognition Custom Labels generates and assigns a new
+ *
+ * Constraints:
+ * A resource policy to add to the model. The policy is a JSON structure
+ * that contains one or more statements that define the policy. The policy
+ * must follow the IAM syntax. For more information about the contents of a
+ * JSON policy document, see IAM JSON policy reference.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project policy is
+ * attached to.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project
+ * policy is attached to.
+ *
+ * The Amazon Resource Name (ARN) of the project that the project policy is
+ * attached to.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project
+ * policy is attached to.
+ *
+ * The Amazon Resource Name (ARN) of the project that the project policy is
+ * attached to.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the project that the project
+ * policy is attached to.
+ *
+ * A name for the policy.
+ *
+ * Constraints:
+ * A name for the policy.
+ *
+ * A name for the policy.
+ *
+ * Constraints:
+ * A name for the policy.
+ *
+ * A name for the policy.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * A name for the policy.
+ *
+ * The revision ID for the Project Policy. Each time you modify a policy,
+ * Amazon Rekognition Custom Labels generates and assigns a new
+ *
+ * Constraints:
+ * The revision ID for the Project Policy. Each time you modify a
+ * policy, Amazon Rekognition Custom Labels generates and assigns a
+ * new
+ * The revision ID for the Project Policy. Each time you modify a policy,
+ * Amazon Rekognition Custom Labels generates and assigns a new
+ *
+ * Constraints:
+ * The revision ID for the Project Policy. Each time you modify a
+ * policy, Amazon Rekognition Custom Labels generates and assigns
+ * a new
+ * The revision ID for the Project Policy. Each time you modify a policy,
+ * Amazon Rekognition Custom Labels generates and assigns a new
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The revision ID for the Project Policy. Each time you modify a
+ * policy, Amazon Rekognition Custom Labels generates and assigns
+ * a new
+ * A resource policy to add to the model. The policy is a JSON structure
+ * that contains one or more statements that define the policy. The policy
+ * must follow the IAM syntax. For more information about the contents of a
+ * JSON policy document, see IAM JSON policy reference.
+ *
+ * Constraints:
+ * A resource policy to add to the model. The policy is a JSON
+ * structure that contains one or more statements that define the
+ * policy. The policy must follow the IAM syntax. For more
+ * information about the contents of a JSON policy document, see IAM JSON policy reference.
+ *
+ * A resource policy to add to the model. The policy is a JSON structure
+ * that contains one or more statements that define the policy. The policy
+ * must follow the IAM syntax. For more information about the contents of a
+ * JSON policy document, see IAM JSON policy reference.
+ *
+ * Constraints:
+ * A resource policy to add to the model. The policy is a JSON
+ * structure that contains one or more statements that define the
+ * policy. The policy must follow the IAM syntax. For more
+ * information about the contents of a JSON policy document, see
+ * IAM JSON policy reference.
+ *
+ * A resource policy to add to the model. The policy is a JSON structure
+ * that contains one or more statements that define the policy. The policy
+ * must follow the IAM syntax. For more information about the contents of a
+ * JSON policy document, see IAM JSON policy reference.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * A resource policy to add to the model. The policy is a JSON
+ * structure that contains one or more statements that define the
+ * policy. The policy must follow the IAM syntax. For more
+ * information about the contents of a JSON policy document, see
+ * IAM JSON policy reference.
+ *
+ * The ID of the project policy.
+ *
+ * Constraints:
+ * The ID of the project policy.
+ *
+ * Constraints:
+ * The ID of the project policy.
+ *
+ * The ID of the project policy.
+ *
+ * Constraints:
+ * The ID of the project policy.
+ *
+ * The ID of the project policy.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The ID of the project policy.
+ *
* Constraints:
* Constraints:
* The current running status of the model.
@@ -54,7 +56,8 @@ public String getStatus() {
*
* Constraints:
* The current running status of the model.
@@ -75,7 +78,8 @@ public void setStatus(String status) {
*
* Constraints:
* The current running status of the model.
@@ -96,7 +100,8 @@ public StartProjectVersionResult withStatus(String status) {
*
* Constraints:
* The current running status of the model.
@@ -117,7 +122,8 @@ public void setStatus(ProjectVersionStatus status) {
*
* Constraints:
* The current running status of the model.
diff --git a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/StopProjectVersionResult.java b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/StopProjectVersionResult.java
index 9d5047d3e2..9cfce18919 100644
--- a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/StopProjectVersionResult.java
+++ b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/StopProjectVersionResult.java
@@ -25,7 +25,8 @@ public class StopProjectVersionResult implements Serializable {
*
* Constraints:
* Constraints:
* The current status of the stop operation.
@@ -54,7 +56,8 @@ public String getStatus() {
*
* Constraints:
* The current status of the stop operation.
@@ -75,7 +78,8 @@ public void setStatus(String status) {
*
* Constraints:
* The current status of the stop operation.
@@ -96,7 +100,8 @@ public StopProjectVersionResult withStatus(String status) {
*
* Constraints:
* The current status of the stop operation.
@@ -117,7 +122,8 @@ public void setStatus(ProjectVersionStatus status) {
*
* Constraints:
* The current status of the stop operation.
diff --git a/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/CopyProjectVersionRequestMarshaller.java b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/CopyProjectVersionRequestMarshaller.java
new file mode 100644
index 0000000000..1687b726fa
--- /dev/null
+++ b/aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/transform/CopyProjectVersionRequestMarshaller.java
@@ -0,0 +1,127 @@
+/*
+ * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package com.amazonaws.services.rekognition.model.transform;
+
+import static com.amazonaws.util.StringUtils.UTF8;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.OutputStreamWriter;
+import java.io.StringWriter;
+import java.io.Writer;
+
+import android.text.TextUtils;
+
+import com.amazonaws.AmazonClientException;
+import com.amazonaws.Request;
+import com.amazonaws.DefaultRequest;
+import com.amazonaws.http.HttpMethodName;
+import com.amazonaws.services.rekognition.model.*;
+import com.amazonaws.transform.Marshaller;
+import com.amazonaws.util.BinaryUtils;
+import com.amazonaws.util.DateUtils;
+import com.amazonaws.util.StringUtils;
+import com.amazonaws.util.StringInputStream;
+import com.amazonaws.util.json.AwsJsonWriter;
+import com.amazonaws.util.json.JsonUtils;
+
+/**
+ * JSON request marshaller for CopyProjectVersionRequest
+ */
+public class CopyProjectVersionRequestMarshaller implements
+ Marshaller This is the API Reference for Amazon Rekognition Image, Amazon Rekognition Custom Labels, Amazon Rekognition Stored Video, Amazon Rekognition Streaming Video. It provides descriptions of actions, data types, common parameters, and common errors. Amazon Rekognition Image Amazon Rekognition Custom Labels Amazon Rekognition Video Stored Video Amazon Rekognition Video Streaming Video This is the API Reference for Amazon Rekognition Image, Amazon Rekognition Custom Labels, Amazon Rekognition Stored Video, Amazon Rekognition Streaming Video. It provides descriptions of actions, data types, common parameters, and common errors. Amazon Rekognition Image Amazon Rekognition Custom Labels Amazon Rekognition Video Stored Video Amazon Rekognition Video Streaming Video
* This operation requires permission for the lambda:InvokeFunction action.
+ * >lambda:InvokeFunction action. For details on how to set up
+ * permissions for cross-account invocations, see Granting function access to other accounts.
*
* This operation requires permission for the lambda:InvokeFunction action.
+ * >lambda:InvokeFunction action. For details on how to set up
+ * permissions for cross-account invocations, see Granting function access to other accounts.
*
* This operation requires permission for the lambda:InvokeFunction action.
+ * >lambda:InvokeFunction action. For details on how to set up permissions
+ * for cross-account invocations, see Granting function access to other accounts.
*
* Constraints:
* Constraints:
* Constraints:
* The event type.
@@ -156,7 +158,8 @@ public String getEventType() {
*
* Constraints:
* The event type.
@@ -176,7 +179,8 @@ public void setEventType(String eventType) {
* together.
*
* Constraints:
* The event type.
@@ -196,7 +200,8 @@ public AuthEventType withEventType(String eventType) {
*
* Constraints:
* The event type.
@@ -216,7 +221,8 @@ public void setEventType(EventType eventType) {
* together.
*
* Constraints:
* The event type.
@@ -281,7 +287,7 @@ public AuthEventType withCreationDate(java.util.Date creationDate) {
*
* Constraints:
* The event response.
@@ -298,7 +304,7 @@ public String getEventResponse() {
*
* Constraints:
* The event response.
@@ -318,7 +324,7 @@ public void setEventResponse(String eventResponse) {
* together.
*
* Constraints:
* The event response.
@@ -338,7 +344,7 @@ public AuthEventType withEventResponse(String eventResponse) {
*
* Constraints:
* The event response.
@@ -358,7 +364,7 @@ public void setEventResponse(EventResponseType eventResponse) {
* together.
*
* Constraints:
* The event response.
diff --git a/aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/EventResponseType.java b/aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/EventResponseType.java
index 3f14d591c4..0a791477e7 100644
--- a/aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/EventResponseType.java
+++ b/aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/EventResponseType.java
@@ -23,8 +23,9 @@
*/
public enum EventResponseType {
- Success("Success"),
- Failure("Failure");
+ Pass("Pass"),
+ Fail("Fail"),
+ InProgress("InProgress");
private String value;
@@ -40,8 +41,9 @@ public String toString() {
private static final MapOutputConfig
).
+ *
+ *
+ * KmsKeyId
, images copied
+ * into the service are encrypted using a key that AWS owns and manages.
+ *
+ * Length: 1 - 2048
+ * Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
+ *
+ * @return OutputConfig
).
+ *
+ *
+ * KmsKeyId
, images
+ * copied into the service are encrypted using a key that AWS owns
+ * and manages.
+ * OutputConfig
).
+ *
+ *
+ * KmsKeyId
, images copied
+ * into the service are encrypted using a key that AWS owns and manages.
+ *
+ * Length: 1 - 2048
+ * Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
+ *
+ * @param kmsKeyId OutputConfig
).
+ *
+ *
+ * KmsKeyId
, images
+ * copied into the service are encrypted using a key that AWS
+ * owns and manages.
+ * OutputConfig
).
+ *
+ *
+ * KmsKeyId
, images copied
+ * into the service are encrypted using a key that AWS owns and manages.
+ *
+ * Length: 1 - 2048
+ * Pattern: ^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$
+ *
+ * @param kmsKeyId OutputConfig
).
+ *
+ *
+ * KmsKeyId
, images
+ * copied into the service are encrypted using a key that AWS
+ * owns and manages.
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String projectVersionArn;
+
+ /**
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectVersionArn
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectVersionArn
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String projectArn;
+
+ /**
+ *
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ */
+ private String policyName;
+
+ /**
+ *
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ */
+ private String policyRevisionId;
+
+ /**
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @return
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param policyName
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param policyName
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @return
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId DeleteProject
is an asynchronous operation. To check if the
* project is deleted, call DescribeProjects. The project is deleted when
- * the project no longer appears in the response.
+ * the project no longer appears in the response. Be aware that deleting a given
+ * project will also delete any ProjectPolicies
associated with
+ * that project.
*
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*/
private String status;
@@ -36,7 +37,8 @@ public class DeleteProjectVersionResult implements Serializable {
*
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @return
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String projectArn;
+
+ /**
+ *
+ * Length: - 1024
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Range: 1 - 5
+ */
+ private Integer maxResults;
+
+ /**
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: - 1024
+ *
+ * @return
+ * Length: - 1024
+ *
+ * @param nextToken
+ * Length: - 1024
+ *
+ * @param nextToken
+ * Range: 1 - 5
+ *
+ * @return
+ * Range: 1 - 5
+ *
+ * @param maxResults
+ * Range: 1 - 5
+ *
+ * @param maxResults
+ * Length: - 1024
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Length: - 1024
+ *
+ * @return
+ * Length: - 1024
+ *
+ * @param nextToken
+ * Length: - 1024
+ *
+ * @param nextToken PutProjectPolicy
is incorrect.
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String projectArn;
+
+ /**
+ *
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ */
+ private String policyName;
+
+ /**
+ *
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ */
+ private String policyRevisionId;
+
+ /**
+ *
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ */
+ private String policyDocument;
+
+ /**
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @return
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param policyName
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param policyName
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @return
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ *
+ * @return
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ *
+ * @param policyDocument
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ *
+ * @param policyDocument
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*/
private String status;
@@ -152,6 +153,21 @@ public class ProjectVersionDescription implements Serializable {
*/
private Integer maxInferenceUnits;
+ /**
+ * SourceProjectVersionArn
contains the ARN of the source model
+ * version.
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String sourceProjectVersionArn;
+
/**
*
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @return
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status SourceProjectVersionArn
contains the ARN of the source model
+ * version.
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return SourceProjectVersionArn
contains the ARN of the
+ * source model version.
+ * SourceProjectVersionArn
contains the ARN of the source model
+ * version.
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param sourceProjectVersionArn SourceProjectVersionArn
contains the ARN of the
+ * source model version.
+ * SourceProjectVersionArn
contains the ARN of the source model
+ * version.
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/version\/[a-zA-Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param sourceProjectVersionArn SourceProjectVersionArn
contains the ARN of the
+ * source model version.
+ * PutProjectPolicy
is a revision ID for the
+ * project policy. You can attach multiple project policies to a project. You
+ * can also update an existing project policy by specifying the policy revision
+ * ID of the existing policy.
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ */
+ private String projectArn;
+
+ /**
+ *
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ */
+ private String policyName;
+
+ /**
+ * PolicyRevisionId
and then deletes the previous version of
+ * the policy.
+ *
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ */
+ private String policyRevisionId;
+
+ /**
+ *
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ */
+ private String policyDocument;
+
+ /**
+ *
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @return
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: 20 - 2048
+ * Pattern:
+ * (^arn:[a-z\d-]+:rekognition:[a-z\d-]+:\d{12}:project\/[a-zA
+ * -Z0-9_.\-]{1,255}\/[0-9]+$)
+ *
+ * @param projectArn
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @return
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param policyName
+ * Length: 1 - 128
+ * Pattern: [a-zA-Z0-9_.\-]+
+ *
+ * @param policyName PolicyRevisionId
and then deletes the previous version of
+ * the policy.
+ *
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @return PolicyRevisionId
and then deletes the previous
+ * version of the policy.
+ * PolicyRevisionId
and then deletes the previous version of
+ * the policy.
+ *
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId PolicyRevisionId
and then deletes the
+ * previous version of the policy.
+ * PolicyRevisionId
and then deletes the previous version of
+ * the policy.
+ *
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId PolicyRevisionId
and then deletes the
+ * previous version of the policy.
+ *
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ *
+ * @return
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ *
+ * @param policyDocument
+ * Length: 1 - 2000
+ * Pattern: [ -\u00FF]+
+ *
+ * @param policyDocument
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ */
+ private String policyRevisionId;
+
+ /**
+ *
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @return
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId
+ * Length: - 64
+ * Pattern: [0-9A-Fa-f]+
+ *
+ * @param policyRevisionId
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*/
private String status;
@@ -36,7 +37,8 @@ public class StartProjectVersionResult implements Serializable {
*
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @return
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*/
private String status;
@@ -36,7 +37,8 @@ public class StopProjectVersionResult implements Serializable {
*
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @return
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
* Allowed Values: TRAINING_IN_PROGRESS, TRAINING_COMPLETED,
- * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING
+ * TRAINING_FAILED, STARTING, RUNNING, FAILED, STOPPING, STOPPED, DELETING,
+ * COPYING_IN_PROGRESS, COPYING_COMPLETED, COPYING_FAILED
*
* @param status
+ *
*/
package com.amazonaws.services.rekognition;
From f94bed12403c350058e78febdfe3f215cc391d17 Mon Sep 17 00:00:00 2001
From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com>
Date: Fri, 19 Aug 2022 15:41:23 -0400
Subject: [PATCH 2/3] feat(aws-android-sdk-lambda): update models to latest
(#2982)
Co-authored-by: Tyler Roach
- * Allowed Values: SignIn, SignUp, ForgotPassword
+ * Allowed Values: SignIn, SignUp, ForgotPassword, PasswordChange,
+ * ResendCode
*/
private String eventType;
@@ -53,7 +54,7 @@ public class AuthEventType implements Serializable {
*
- * Allowed Values: Success, Failure
+ * Allowed Values: Pass, Fail, InProgress
*/
private String eventResponse;
@@ -139,7 +140,8 @@ public AuthEventType withEventId(String eventId) {
*
- * Allowed Values: SignIn, SignUp, ForgotPassword
+ * Allowed Values: SignIn, SignUp, ForgotPassword, PasswordChange,
+ * ResendCode
*
* @return
- * Allowed Values: SignIn, SignUp, ForgotPassword
+ * Allowed Values: SignIn, SignUp, ForgotPassword, PasswordChange,
+ * ResendCode
*
* @param eventType
- * Allowed Values: SignIn, SignUp, ForgotPassword
+ * Allowed Values: SignIn, SignUp, ForgotPassword, PasswordChange,
+ * ResendCode
*
* @param eventType
- * Allowed Values: SignIn, SignUp, ForgotPassword
+ * Allowed Values: SignIn, SignUp, ForgotPassword, PasswordChange,
+ * ResendCode
*
* @param eventType
- * Allowed Values: SignIn, SignUp, ForgotPassword
+ * Allowed Values: SignIn, SignUp, ForgotPassword, PasswordChange,
+ * ResendCode
*
* @param eventType
- * Allowed Values: Success, Failure
+ * Allowed Values: Pass, Fail, InProgress
*
* @return
- * Allowed Values: Success, Failure
+ * Allowed Values: Pass, Fail, InProgress
*
* @param eventResponse
- * Allowed Values: Success, Failure
+ * Allowed Values: Pass, Fail, InProgress
*
* @param eventResponse
- * Allowed Values: Success, Failure
+ * Allowed Values: Pass, Fail, InProgress
*
* @param eventResponse
- * Allowed Values: Success, Failure
+ * Allowed Values: Pass, Fail, InProgress
*
* @param eventResponse