diff --git a/docs/openapi/openapi-iam.yaml b/docs/openapi/openapi-iam.yaml index b8d5abb61..e9fa55eb6 100644 --- a/docs/openapi/openapi-iam.yaml +++ b/docs/openapi/openapi-iam.yaml @@ -4188,9 +4188,15 @@ contentLength: type: integer description: Document size - versionId: + version: type: string description: Document version + versionKey: + type: string + description: Document Version Identifier + s3version: + type: string + description: Document storage version belongsToDocumentId: type: string description: Parent Document Identifier diff --git a/docs/openapi/openapi-jwt.yaml b/docs/openapi/openapi-jwt.yaml index bb6576c95..4141fd095 100644 --- a/docs/openapi/openapi-jwt.yaml +++ b/docs/openapi/openapi-jwt.yaml @@ -4188,9 +4188,15 @@ contentLength: type: integer description: Document size - versionId: + version: type: string description: Document version + versionKey: + type: string + description: Document Version Identifier + s3version: + type: string + description: Document storage version belongsToDocumentId: type: string description: Parent Document Identifier diff --git a/docs/openapi/openapi-key.yaml b/docs/openapi/openapi-key.yaml index 3296a8fb0..5ca3718fc 100644 --- a/docs/openapi/openapi-key.yaml +++ b/docs/openapi/openapi-key.yaml @@ -4188,9 +4188,15 @@ contentLength: type: integer description: Document size - versionId: + version: type: string description: Document version + versionKey: + type: string + description: Document Version Identifier + s3version: + type: string + description: Document storage version belongsToDocumentId: type: string description: Parent Document Identifier @@ -5215,7 +5221,7 @@ x-amazon-apigateway-authorizer: identitySource: $request.header.Authorization authorizerUri: - Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${ApiKeyAuthorizer.Arn}/invocations + Fn::Sub: arn:${Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${ApiKeyAuthorizer.Arn}/invocations authorizerResultTtlInSeconds: 300 authorizerPayloadFormatVersion: "2.0" enableSimpleResponses: true diff --git a/fkq-test-utils/src/main/java/com/formkiq/testutils/aws/FkqDocumentService.java b/fkq-test-utils/src/main/java/com/formkiq/testutils/aws/FkqDocumentService.java index d880a5f78..1bab0d675 100644 --- a/fkq-test-utils/src/main/java/com/formkiq/testutils/aws/FkqDocumentService.java +++ b/fkq-test-utils/src/main/java/com/formkiq/testutils/aws/FkqDocumentService.java @@ -239,12 +239,14 @@ public static Map toMap(final HttpResponse response) thr * @param client {@link ApiClient} * @param siteId {@link String} * @param documentId {@link String} + * @param actionStatus {@link String} * @return {@link GetDocumentActionsResponse} * @throws ApiException ApiException * @throws InterruptedException InterruptedException */ - public static GetDocumentActionsResponse waitForActionsComplete(final ApiClient client, - final String siteId, final String documentId) throws ApiException, InterruptedException { + public static GetDocumentActionsResponse waitForActions(final ApiClient client, + final String siteId, final String documentId, final String actionStatus) + throws ApiException, InterruptedException { GetDocumentActionsResponse response = null; DocumentActionsApi api = new DocumentActionsApi(client); @@ -256,7 +258,7 @@ public static GetDocumentActionsResponse waitForActionsComplete(final ApiClient try { response = api.getDocumentActions(documentId, siteId, null); - o = response.getActions().stream().filter(a -> a.getStatus().equalsIgnoreCase("COMPLETE")) + o = response.getActions().stream().filter(a -> a.getStatus().equalsIgnoreCase(actionStatus)) .findAny(); } catch (ApiException e) { // ignore @@ -270,6 +272,21 @@ public static GetDocumentActionsResponse waitForActionsComplete(final ApiClient return response; } + /** + * Wait for Actions to Complete. + * + * @param client {@link ApiClient} + * @param siteId {@link String} + * @param documentId {@link String} + * @return {@link GetDocumentActionsResponse} + * @throws ApiException ApiException + * @throws InterruptedException InterruptedException + */ + public static GetDocumentActionsResponse waitForActionsComplete(final ApiClient client, + final String siteId, final String documentId) throws ApiException, InterruptedException { + return waitForActions(client, siteId, documentId, "COMPLETE"); + } + /** * Wait for Actions to Complete. * diff --git a/lambda-api-graalvm/src/main/resources/cloudformation/api-apikey.yaml b/lambda-api-graalvm/src/main/resources/cloudformation/api-apikey.yaml index e31640777..c8880043f 100644 --- a/lambda-api-graalvm/src/main/resources/cloudformation/api-apikey.yaml +++ b/lambda-api-graalvm/src/main/resources/cloudformation/api-apikey.yaml @@ -4190,9 +4190,15 @@ Resources: contentLength: type: "integer" description: "Document size" - versionId: + version: type: "string" description: "Document version" + versionKey: + type: "string" + description: "Document Version Identifier" + s3version: + type: "string" + description: "Document storage version" belongsToDocumentId: type: "string" description: "Parent Document Identifier" diff --git a/lambda-api-graalvm/src/main/resources/cloudformation/api-iam.yaml b/lambda-api-graalvm/src/main/resources/cloudformation/api-iam.yaml index a870343be..98e7dbd65 100644 --- a/lambda-api-graalvm/src/main/resources/cloudformation/api-iam.yaml +++ b/lambda-api-graalvm/src/main/resources/cloudformation/api-iam.yaml @@ -4190,9 +4190,15 @@ Resources: contentLength: type: "integer" description: "Document size" - versionId: + version: type: "string" description: "Document version" + versionKey: + type: "string" + description: "Document Version Identifier" + s3version: + type: "string" + description: "Document storage version" belongsToDocumentId: type: "string" description: "Parent Document Identifier" diff --git a/lambda-api-graalvm/src/main/resources/cloudformation/api.yaml b/lambda-api-graalvm/src/main/resources/cloudformation/api.yaml index c8164cb2d..ccd005261 100644 --- a/lambda-api-graalvm/src/main/resources/cloudformation/api.yaml +++ b/lambda-api-graalvm/src/main/resources/cloudformation/api.yaml @@ -4190,9 +4190,15 @@ Resources: contentLength: type: "integer" description: "Document size" - versionId: + version: type: "string" description: "Document version" + versionKey: + type: "string" + description: "Document Version Identifier" + s3version: + type: "string" + description: "Document storage version" belongsToDocumentId: type: "string" description: "Parent Document Identifier"