From 990f02583e171021aced5ae31731513e2389f51f Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 7 Oct 2024 18:58:07 +0000 Subject: [PATCH] feat(client-redshift): Add validation pattern to S3KeyPrefix on the EnableLogging API --- .../client-redshift/src/models/models_1.ts | 30 ++----------------- codegen/sdk-codegen/aws-models/redshift.json | 16 ++++++++-- 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/clients/client-redshift/src/models/models_1.ts b/clients/client-redshift/src/models/models_1.ts index 373ba9781f04c..d3a07bc738748 100644 --- a/clients/client-redshift/src/models/models_1.ts +++ b/clients/client-redshift/src/models/models_1.ts @@ -2814,33 +2814,9 @@ export interface EnableLoggingMessage { /** *

The prefix applied to the log file names.

- *

Constraints:

- * + *

Valid characters are any letter from any language, any whitespace character, any numeric character, and the following characters: + * underscore (_), period (.), colon (:), slash (/), equal (=), plus (+), backslash (\), + * hyphen (-), at symbol (@).

* @public */ S3KeyPrefix?: string; diff --git a/codegen/sdk-codegen/aws-models/redshift.json b/codegen/sdk-codegen/aws-models/redshift.json index 16bce5a6766db..6f8c107035995 100644 --- a/codegen/sdk-codegen/aws-models/redshift.json +++ b/codegen/sdk-codegen/aws-models/redshift.json @@ -8504,9 +8504,9 @@ } }, "S3KeyPrefix": { - "target": "com.amazonaws.redshift#String", + "target": "com.amazonaws.redshift#S3KeyPrefixValue", "traits": { - "smithy.api#documentation": "

The prefix applied to the log file names.

\n

Constraints:

\n " + "smithy.api#documentation": "

The prefix applied to the log file names.

\n

Valid characters are any letter from any language, any whitespace character, any numeric character, and the following characters: \n underscore (_), period (.), colon (:), slash (/), equal (=), plus (+), backslash (\\),\n hyphen (-), at symbol (@).

" } }, "LogDestinationType": { @@ -10932,7 +10932,7 @@ } }, "S3KeyPrefix": { - "target": "com.amazonaws.redshift#String", + "target": "com.amazonaws.redshift#S3KeyPrefixValue", "traits": { "smithy.api#documentation": "

The prefix applied to the log file names.

" } @@ -16910,6 +16910,16 @@ "smithy.api#output": {} } }, + "com.amazonaws.redshift#S3KeyPrefixValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*$" + } + }, "com.amazonaws.redshift#SNSInvalidTopicFault": { "type": "structure", "members": {