Skip to content

Commit

Permalink
feat(client-redshift): Add validation pattern to S3KeyPrefix on the E…
Browse files Browse the repository at this point in the history
…nableLogging API
  • Loading branch information
awstools committed Oct 7, 2024
1 parent d7a31d8 commit 990f025
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
30 changes: 3 additions & 27 deletions clients/client-redshift/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2814,33 +2814,9 @@ export interface EnableLoggingMessage {

/**
* <p>The prefix applied to the log file names.</p>
* <p>Constraints:</p>
* <ul>
* <li>
* <p>Cannot exceed 512 characters</p>
* </li>
* <li>
* <p>Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash
* (\), or control characters. The hexadecimal codes for invalid characters are: </p>
* <ul>
* <li>
* <p>x00 to x20</p>
* </li>
* <li>
* <p>x22</p>
* </li>
* <li>
* <p>x27</p>
* </li>
* <li>
* <p>x5c</p>
* </li>
* <li>
* <p>x7f or larger</p>
* </li>
* </ul>
* </li>
* </ul>
* <p>Valid characters are any letter from any language, any whitespace character, any numeric character, and the following characters:
* underscore (<code>_</code>), period (<code>.</code>), colon (<code>:</code>), slash (<code>/</code>), equal (<code>=</code>), plus (<code>+</code>), backslash (<code>\</code>),
* hyphen (<code>-</code>), at symbol (<code>@</code>).</p>
* @public
*/
S3KeyPrefix?: string;
Expand Down
16 changes: 13 additions & 3 deletions codegen/sdk-codegen/aws-models/redshift.json
Original file line number Diff line number Diff line change
Expand Up @@ -8504,9 +8504,9 @@
}
},
"S3KeyPrefix": {
"target": "com.amazonaws.redshift#String",
"target": "com.amazonaws.redshift#S3KeyPrefixValue",
"traits": {
"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>"
"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>"
}
},
"LogDestinationType": {
Expand Down Expand Up @@ -10932,7 +10932,7 @@
}
},
"S3KeyPrefix": {
"target": "com.amazonaws.redshift#String",
"target": "com.amazonaws.redshift#S3KeyPrefixValue",
"traits": {
"smithy.api#documentation": "<p>The prefix applied to the log file names.</p>"
}
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 990f025

Please sign in to comment.