Skip to content

Commit 78704cd

Browse files
author
AWS
committed
Amazon Redshift Update: Add validation pattern to S3KeyPrefix on the EnableLogging API
1 parent 1773eda commit 78704cd

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Redshift",
4+
"contributor": "",
5+
"description": "Add validation pattern to S3KeyPrefix on the EnableLogging API"
6+
}

services/redshift/src/main/resources/codegen-resources/service-2.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6420,8 +6420,8 @@
64206420
"documentation":"<p>The name of an existing S3 bucket where the log files are to be stored.</p> <p>Constraints:</p> <ul> <li> <p>Must be in the same region as the cluster</p> </li> <li> <p>The cluster must have read bucket and put object permissions</p> </li> </ul>"
64216421
},
64226422
"S3KeyPrefix":{
6423-
"shape":"String",
6424-
"documentation":"<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>"
6423+
"shape":"S3KeyPrefixValue",
6424+
"documentation":"<p>The prefix applied to the log file names.</p> <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>"
64256425
},
64266426
"LogDestinationType":{
64276427
"shape":"LogDestinationType",
@@ -7916,7 +7916,7 @@
79167916
"documentation":"<p>The name of the S3 bucket where the log files are stored.</p>"
79177917
},
79187918
"S3KeyPrefix":{
7919-
"shape":"String",
7919+
"shape":"S3KeyPrefixValue",
79207920
"documentation":"<p>The prefix applied to the log file names.</p>"
79217921
},
79227922
"LastSuccessfulDeliveryTime":{
@@ -10201,6 +10201,11 @@
1020110201
"Cluster":{"shape":"Cluster"}
1020210202
}
1020310203
},
10204+
"S3KeyPrefixValue":{
10205+
"type":"string",
10206+
"max":256,
10207+
"pattern":"[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*"
10208+
},
1020410209
"SNSInvalidTopicFault":{
1020510210
"type":"structure",
1020610211
"members":{

0 commit comments

Comments
 (0)