From f1f986af236f8ac2c789395e14fbbadaa7a74a29 Mon Sep 17 00:00:00 2001 From: AWS <> Date: Mon, 7 Jun 2021 18:10:15 +0000 Subject: [PATCH] Amazon Personalize Update: Update regex validation in kmsKeyArn and s3 path API parameters for AWS Personalize APIs --- .../next-release/feature-AmazonPersonalize-549c9e5.json | 6 ++++++ .../src/main/resources/codegen-resources/service-2.json | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .changes/next-release/feature-AmazonPersonalize-549c9e5.json diff --git a/.changes/next-release/feature-AmazonPersonalize-549c9e5.json b/.changes/next-release/feature-AmazonPersonalize-549c9e5.json new file mode 100644 index 000000000000..3dc8ec616eac --- /dev/null +++ b/.changes/next-release/feature-AmazonPersonalize-549c9e5.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "Amazon Personalize", + "contributor": "", + "description": "Update regex validation in kmsKeyArn and s3 path API parameters for AWS Personalize APIs" +} diff --git a/services/personalize/src/main/resources/codegen-resources/service-2.json b/services/personalize/src/main/resources/codegen-resources/service-2.json index 8092ac34cee0..69802bd99937 100644 --- a/services/personalize/src/main/resources/codegen-resources/service-2.json +++ b/services/personalize/src/main/resources/codegen-resources/service-2.json @@ -2713,7 +2713,10 @@ "max":150, "min":1 }, - "KmsKeyArn":{"type":"string"}, + "KmsKeyArn":{ + "type":"string", + "pattern":"arn:aws.*:kms:.*:[0-9]{12}:key/.*" + }, "LimitExceededException":{ "type":"structure", "members":{ @@ -3271,7 +3274,8 @@ }, "S3Location":{ "type":"string", - "max":256 + "max":256, + "pattern":"(s3|http|https)://.+" }, "Schemas":{ "type":"list",