Skip to content

Commit 990f025

Browse files
author
awstools
committed
feat(client-redshift): Add validation pattern to S3KeyPrefix on the EnableLogging API
1 parent d7a31d8 commit 990f025

File tree

2 files changed

+16
-30
lines changed

2 files changed

+16
-30
lines changed

clients/client-redshift/src/models/models_1.ts

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,33 +2814,9 @@ export interface EnableLoggingMessage {
28142814

28152815
/**
28162816
* <p>The prefix applied to the log file names.</p>
2817-
* <p>Constraints:</p>
2818-
* <ul>
2819-
* <li>
2820-
* <p>Cannot exceed 512 characters</p>
2821-
* </li>
2822-
* <li>
2823-
* <p>Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash
2824-
* (\), or control characters. The hexadecimal codes for invalid characters are: </p>
2825-
* <ul>
2826-
* <li>
2827-
* <p>x00 to x20</p>
2828-
* </li>
2829-
* <li>
2830-
* <p>x22</p>
2831-
* </li>
2832-
* <li>
2833-
* <p>x27</p>
2834-
* </li>
2835-
* <li>
2836-
* <p>x5c</p>
2837-
* </li>
2838-
* <li>
2839-
* <p>x7f or larger</p>
2840-
* </li>
2841-
* </ul>
2842-
* </li>
2843-
* </ul>
2817+
* <p>Valid characters are any letter from any language, any whitespace character, any numeric character, and the following characters:
2818+
* underscore (<code>_</code>), period (<code>.</code>), colon (<code>:</code>), slash (<code>/</code>), equal (<code>=</code>), plus (<code>+</code>), backslash (<code>\</code>),
2819+
* hyphen (<code>-</code>), at symbol (<code>@</code>).</p>
28442820
* @public
28452821
*/
28462822
S3KeyPrefix?: string;

codegen/sdk-codegen/aws-models/redshift.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8504,9 +8504,9 @@
85048504
}
85058505
},
85068506
"S3KeyPrefix": {
8507-
"target": "com.amazonaws.redshift#String",
8507+
"target": "com.amazonaws.redshift#S3KeyPrefixValue",
85088508
"traits": {
8509-
"smithy.api#documentation": "<p>The prefix applied to the log file names.</p>\n <p>Constraints:</p>\n <ul>\n <li>\n <p>Cannot exceed 512 characters</p>\n </li>\n <li>\n <p>Cannot contain spaces( ), double quotes (\"), single quotes ('), a backslash\n (\\), or control characters. The hexadecimal codes for invalid characters are: </p>\n <ul>\n <li>\n <p>x00 to x20</p>\n </li>\n <li>\n <p>x22</p>\n </li>\n <li>\n <p>x27</p>\n </li>\n <li>\n <p>x5c</p>\n </li>\n <li>\n <p>x7f or larger</p>\n </li>\n </ul>\n </li>\n </ul>"
8509+
"smithy.api#documentation": "<p>The prefix applied to the log file names.</p>\n <p>Valid characters are any letter from any language, any whitespace character, any numeric character, and the following characters: \n underscore (<code>_</code>), period (<code>.</code>), colon (<code>:</code>), slash (<code>/</code>), equal (<code>=</code>), plus (<code>+</code>), backslash (<code>\\</code>),\n hyphen (<code>-</code>), at symbol (<code>@</code>).</p>"
85108510
}
85118511
},
85128512
"LogDestinationType": {
@@ -10932,7 +10932,7 @@
1093210932
}
1093310933
},
1093410934
"S3KeyPrefix": {
10935-
"target": "com.amazonaws.redshift#String",
10935+
"target": "com.amazonaws.redshift#S3KeyPrefixValue",
1093610936
"traits": {
1093710937
"smithy.api#documentation": "<p>The prefix applied to the log file names.</p>"
1093810938
}
@@ -16910,6 +16910,16 @@
1691016910
"smithy.api#output": {}
1691116911
}
1691216912
},
16913+
"com.amazonaws.redshift#S3KeyPrefixValue": {
16914+
"type": "string",
16915+
"traits": {
16916+
"smithy.api#length": {
16917+
"min": 0,
16918+
"max": 256
16919+
},
16920+
"smithy.api#pattern": "^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*$"
16921+
}
16922+
},
1691316923
"com.amazonaws.redshift#SNSInvalidTopicFault": {
1691416924
"type": "structure",
1691516925
"members": {

0 commit comments

Comments
 (0)