Skip to content

Commit 157a78a

Browse files
Adds sensitive trait to various shapes in Jetstream Connections API model.
1 parent 4b32b32 commit 157a78a

12 files changed

+101
-34
lines changed

generator/ServiceModels/eventbridge/eventbridge-2015-10-07.api.json

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,13 @@
941941
"min":1,
942942
"pattern":"^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$"
943943
},
944+
"AuthHeaderParametersSensitive":{
945+
"type":"string",
946+
"max":512,
947+
"min":1,
948+
"pattern":"^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$",
949+
"sensitive":true
950+
},
944951
"AwsVpcConfiguration":{
945952
"type":"structure",
946953
"required":["Subnets"],
@@ -1091,7 +1098,7 @@
10911098
"type":"structure",
10921099
"members":{
10931100
"Key":{"shape":"String"},
1094-
"Value":{"shape":"String"},
1101+
"Value":{"shape":"SensitiveString"},
10951102
"IsValueSecret":{"shape":"Boolean"}
10961103
}
10971104
},
@@ -1110,7 +1117,7 @@
11101117
"type":"structure",
11111118
"members":{
11121119
"Key":{"shape":"HeaderKey"},
1113-
"Value":{"shape":"HeaderValue"},
1120+
"Value":{"shape":"HeaderValueSensitive"},
11141121
"IsValueSecret":{"shape":"Boolean"}
11151122
}
11161123
},
@@ -1161,7 +1168,7 @@
11611168
"type":"structure",
11621169
"members":{
11631170
"Key":{"shape":"QueryStringKey"},
1164-
"Value":{"shape":"QueryStringValue"},
1171+
"Value":{"shape":"QueryStringValueSensitive"},
11651172
"IsValueSecret":{"shape":"Boolean"}
11661173
}
11671174
},
@@ -1249,7 +1256,7 @@
12491256
],
12501257
"members":{
12511258
"ApiKeyName":{"shape":"AuthHeaderParameters"},
1252-
"ApiKeyValue":{"shape":"AuthHeaderParameters"}
1259+
"ApiKeyValue":{"shape":"AuthHeaderParametersSensitive"}
12531260
}
12541261
},
12551262
"CreateConnectionAuthRequestParameters":{
@@ -1269,7 +1276,7 @@
12691276
],
12701277
"members":{
12711278
"Username":{"shape":"AuthHeaderParameters"},
1272-
"Password":{"shape":"AuthHeaderParameters"}
1279+
"Password":{"shape":"AuthHeaderParametersSensitive"}
12731280
}
12741281
},
12751282
"CreateConnectionOAuthClientRequestParameters":{
@@ -1280,7 +1287,7 @@
12801287
],
12811288
"members":{
12821289
"ClientID":{"shape":"AuthHeaderParameters"},
1283-
"ClientSecret":{"shape":"AuthHeaderParameters"}
1290+
"ClientSecret":{"shape":"AuthHeaderParametersSensitive"}
12841291
}
12851292
},
12861293
"CreateConnectionOAuthRequestParameters":{
@@ -1914,6 +1921,12 @@
19141921
"max":512,
19151922
"pattern":"^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$"
19161923
},
1924+
"HeaderValueSensitive":{
1925+
"type":"string",
1926+
"max":512,
1927+
"pattern":"^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$",
1928+
"sensitive":true
1929+
},
19171930
"HealthCheck":{
19181931
"type":"string",
19191932
"max":1600,
@@ -2559,6 +2572,12 @@
25592572
"max":512,
25602573
"pattern":"[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+"
25612574
},
2575+
"QueryStringValueSensitive":{
2576+
"type":"string",
2577+
"max":512,
2578+
"pattern":"[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+",
2579+
"sensitive":true
2580+
},
25622581
"RedshiftDataParameters":{
25632582
"type":"structure",
25642583
"required":["Database"],
@@ -2879,6 +2898,10 @@
28792898
"min":20,
28802899
"pattern":"^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]|\\d|\\-)*:([0-9]{12})?:secret:[\\/_+=\\.@\\-A-Za-z0-9]+$"
28812900
},
2901+
"SensitiveString":{
2902+
"type":"string",
2903+
"sensitive":true
2904+
},
28822905
"Sql":{
28832906
"type":"string",
28842907
"max":100000,
@@ -3140,7 +3163,7 @@
31403163
"type":"structure",
31413164
"members":{
31423165
"ApiKeyName":{"shape":"AuthHeaderParameters"},
3143-
"ApiKeyValue":{"shape":"AuthHeaderParameters"}
3166+
"ApiKeyValue":{"shape":"AuthHeaderParametersSensitive"}
31443167
}
31453168
},
31463169
"UpdateConnectionAuthRequestParameters":{
@@ -3156,14 +3179,14 @@
31563179
"type":"structure",
31573180
"members":{
31583181
"Username":{"shape":"AuthHeaderParameters"},
3159-
"Password":{"shape":"AuthHeaderParameters"}
3182+
"Password":{"shape":"AuthHeaderParametersSensitive"}
31603183
}
31613184
},
31623185
"UpdateConnectionOAuthClientRequestParameters":{
31633186
"type":"structure",
31643187
"members":{
31653188
"ClientID":{"shape":"AuthHeaderParameters"},
3166-
"ClientSecret":{"shape":"AuthHeaderParameters"}
3189+
"ClientSecret":{"shape":"AuthHeaderParametersSensitive"}
31673190
}
31683191
},
31693192
"UpdateConnectionOAuthRequestParameters":{

generator/ServiceModels/eventbridge/eventbridge-2015-10-07.docs.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,21 @@
238238
"ConnectionBasicAuthResponseParameters$Username": "<p>The user name to use for Basic authorization.</p>",
239239
"ConnectionOAuthClientResponseParameters$ClientID": "<p>The client ID associated with the response to the connection request.</p>",
240240
"CreateConnectionApiKeyAuthRequestParameters$ApiKeyName": "<p>The name of the API key to use for authorization.</p>",
241-
"CreateConnectionApiKeyAuthRequestParameters$ApiKeyValue": "<p>The value for the API key to use for authorization.</p>",
242241
"CreateConnectionBasicAuthRequestParameters$Username": "<p>The user name to use for Basic authorization.</p>",
243-
"CreateConnectionBasicAuthRequestParameters$Password": "<p>The password associated with the user name to use for Basic authorization.</p>",
244242
"CreateConnectionOAuthClientRequestParameters$ClientID": "<p>The client ID to use for OAuth authorization for the connection.</p>",
245-
"CreateConnectionOAuthClientRequestParameters$ClientSecret": "<p>The client secret associated with the client ID to use for OAuth authorization for the connection.</p>",
246243
"UpdateConnectionApiKeyAuthRequestParameters$ApiKeyName": "<p>The name of the API key to use for authorization.</p>",
247-
"UpdateConnectionApiKeyAuthRequestParameters$ApiKeyValue": "<p>The value associated with teh API key to use for authorization.</p>",
248244
"UpdateConnectionBasicAuthRequestParameters$Username": "<p>The user name to use for Basic authorization.</p>",
245+
"UpdateConnectionOAuthClientRequestParameters$ClientID": "<p>The client ID to use for OAuth authorization.</p>"
246+
}
247+
},
248+
"AuthHeaderParametersSensitive": {
249+
"base": null,
250+
"refs": {
251+
"CreateConnectionApiKeyAuthRequestParameters$ApiKeyValue": "<p>The value for the API key to use for authorization.</p>",
252+
"CreateConnectionBasicAuthRequestParameters$Password": "<p>The password associated with the user name to use for Basic authorization.</p>",
253+
"CreateConnectionOAuthClientRequestParameters$ClientSecret": "<p>The client secret associated with the client ID to use for OAuth authorization for the connection.</p>",
254+
"UpdateConnectionApiKeyAuthRequestParameters$ApiKeyValue": "<p>The value associated with teh API key to use for authorization.</p>",
249255
"UpdateConnectionBasicAuthRequestParameters$Password": "<p>The password associated with the user name to use for Basic authorization.</p>",
250-
"UpdateConnectionOAuthClientRequestParameters$ClientID": "<p>The client ID to use for OAuth authorization.</p>",
251256
"UpdateConnectionOAuthClientRequestParameters$ClientSecret": "<p>The client secret assciated with the client ID to use for OAuth authorization.</p>"
252257
}
253258
},
@@ -1044,10 +1049,15 @@
10441049
"HeaderValue": {
10451050
"base": null,
10461051
"refs": {
1047-
"ConnectionHeaderParameter$Value": "<p>The value associated with the key.</p>",
10481052
"HeaderParametersMap$value": null
10491053
}
10501054
},
1055+
"HeaderValueSensitive": {
1056+
"base": null,
1057+
"refs": {
1058+
"ConnectionHeaderParameter$Value": "<p>The value associated with the key.</p>"
1059+
}
1060+
},
10511061
"HealthCheck": {
10521062
"base": null,
10531063
"refs": {
@@ -1635,10 +1645,15 @@
16351645
"QueryStringValue": {
16361646
"base": null,
16371647
"refs": {
1638-
"ConnectionQueryStringParameter$Value": "<p>The value associated with the key for the query string parameter.</p>",
16391648
"QueryStringParametersMap$value": null
16401649
}
16411650
},
1651+
"QueryStringValueSensitive": {
1652+
"base": null,
1653+
"refs": {
1654+
"ConnectionQueryStringParameter$Value": "<p>The value associated with the key for the query string parameter.</p>"
1655+
}
1656+
},
16421657
"RedshiftDataParameters": {
16431658
"base": "<p>These are custom parameters to be used when the target is a Amazon Redshift cluster or Redshift Serverless workgroup to invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.</p>",
16441659
"refs": {
@@ -1973,6 +1988,12 @@
19731988
"DescribeConnectionResponse$SecretArn": "<p>The ARN of the secret created from the authorization parameters specified for the connection.</p>"
19741989
}
19751990
},
1991+
"SensitiveString": {
1992+
"base": null,
1993+
"refs": {
1994+
"ConnectionBodyParameter$Value": "<p>The value associated with the key.</p>"
1995+
}
1996+
},
19761997
"Sql": {
19771998
"base": "A single Redshift SQL",
19781999
"refs": {
@@ -2024,7 +2045,6 @@
20242045
"Condition$Key": "<p>Specifies the key for the condition. Currently the only supported key is <code>aws:PrincipalOrgID</code>.</p>",
20252046
"Condition$Value": "<p>Specifies the value for the key. Currently, this must be the ID of the organization.</p>",
20262047
"ConnectionBodyParameter$Key": "<p>The key for the parameter.</p>",
2027-
"ConnectionBodyParameter$Value": "<p>The value associated with the key.</p>",
20282048
"CreateEventBusResponse$EventBusArn": "<p>The ARN of the new event bus.</p>",
20292049
"CreatePartnerEventSourceResponse$EventSourceArn": "<p>The ARN of the partner event source.</p>",
20302050
"DescribeEventBusResponse$Name": "<p>The name of the event bus. Currently, this is always <code>default</code>.</p>",

generator/ServiceModels/eventbridge/eventbridge-2015-10-07.normal.json

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,13 @@
10531053
"min":1,
10541054
"pattern":"^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$"
10551055
},
1056+
"AuthHeaderParametersSensitive":{
1057+
"type":"string",
1058+
"max":512,
1059+
"min":1,
1060+
"pattern":"^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$",
1061+
"sensitive":true
1062+
},
10561063
"AwsVpcConfiguration":{
10571064
"type":"structure",
10581065
"required":["Subnets"],
@@ -1317,7 +1324,7 @@
13171324
"documentation":"<p>The key for the parameter.</p>"
13181325
},
13191326
"Value":{
1320-
"shape":"String",
1327+
"shape":"SensitiveString",
13211328
"documentation":"<p>The value associated with the key.</p>"
13221329
},
13231330
"IsValueSecret":{
@@ -1346,7 +1353,7 @@
13461353
"documentation":"<p>The key for the parameter.</p>"
13471354
},
13481355
"Value":{
1349-
"shape":"HeaderValue",
1356+
"shape":"HeaderValueSensitive",
13501357
"documentation":"<p>The value associated with the key.</p>"
13511358
},
13521359
"IsValueSecret":{
@@ -1434,7 +1441,7 @@
14341441
"documentation":"<p>The key for a query string parameter.</p>"
14351442
},
14361443
"Value":{
1437-
"shape":"QueryStringValue",
1444+
"shape":"QueryStringValueSensitive",
14381445
"documentation":"<p>The value associated with the key for the query string parameter.</p>"
14391446
},
14401447
"IsValueSecret":{
@@ -1589,7 +1596,7 @@
15891596
"documentation":"<p>The name of the API key to use for authorization.</p>"
15901597
},
15911598
"ApiKeyValue":{
1592-
"shape":"AuthHeaderParameters",
1599+
"shape":"AuthHeaderParametersSensitive",
15931600
"documentation":"<p>The value for the API key to use for authorization.</p>"
15941601
}
15951602
},
@@ -1629,7 +1636,7 @@
16291636
"documentation":"<p>The user name to use for Basic authorization.</p>"
16301637
},
16311638
"Password":{
1632-
"shape":"AuthHeaderParameters",
1639+
"shape":"AuthHeaderParametersSensitive",
16331640
"documentation":"<p>The password associated with the user name to use for Basic authorization.</p>"
16341641
}
16351642
},
@@ -1647,7 +1654,7 @@
16471654
"documentation":"<p>The client ID to use for OAuth authorization for the connection.</p>"
16481655
},
16491656
"ClientSecret":{
1650-
"shape":"AuthHeaderParameters",
1657+
"shape":"AuthHeaderParametersSensitive",
16511658
"documentation":"<p>The client secret associated with the client ID to use for OAuth authorization for the connection.</p>"
16521659
}
16531660
},
@@ -2855,6 +2862,12 @@
28552862
"max":512,
28562863
"pattern":"^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$"
28572864
},
2865+
"HeaderValueSensitive":{
2866+
"type":"string",
2867+
"max":512,
2868+
"pattern":"^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$",
2869+
"sensitive":true
2870+
},
28582871
"HealthCheck":{
28592872
"type":"string",
28602873
"max":1600,
@@ -3934,6 +3947,12 @@
39343947
"max":512,
39353948
"pattern":"[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+"
39363949
},
3950+
"QueryStringValueSensitive":{
3951+
"type":"string",
3952+
"max":512,
3953+
"pattern":"[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+",
3954+
"sensitive":true
3955+
},
39373956
"RedshiftDataParameters":{
39383957
"type":"structure",
39393958
"required":["Database"],
@@ -4417,6 +4436,10 @@
44174436
"min":20,
44184437
"pattern":"^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]|\\d|\\-)*:([0-9]{12})?:secret:[\\/_+=\\.@\\-A-Za-z0-9]+$"
44194438
},
4439+
"SensitiveString":{
4440+
"type":"string",
4441+
"sensitive":true
4442+
},
44204443
"Sql":{
44214444
"type":"string",
44224445
"documentation":"A single Redshift SQL",
@@ -4850,7 +4873,7 @@
48504873
"documentation":"<p>The name of the API key to use for authorization.</p>"
48514874
},
48524875
"ApiKeyValue":{
4853-
"shape":"AuthHeaderParameters",
4876+
"shape":"AuthHeaderParametersSensitive",
48544877
"documentation":"<p>The value associated with teh API key to use for authorization.</p>"
48554878
}
48564879
},
@@ -4886,7 +4909,7 @@
48864909
"documentation":"<p>The user name to use for Basic authorization.</p>"
48874910
},
48884911
"Password":{
4889-
"shape":"AuthHeaderParameters",
4912+
"shape":"AuthHeaderParametersSensitive",
48904913
"documentation":"<p>The password associated with the user name to use for Basic authorization.</p>"
48914914
}
48924915
},
@@ -4900,7 +4923,7 @@
49004923
"documentation":"<p>The client ID to use for OAuth authorization.</p>"
49014924
},
49024925
"ClientSecret":{
4903-
"shape":"AuthHeaderParameters",
4926+
"shape":"AuthHeaderParametersSensitive",
49044927
"documentation":"<p>The client secret assciated with the client ID to use for OAuth authorization.</p>"
49054928
}
49064929
},

sdk/src/Services/EventBridge/Generated/Model/ConnectionBodyParameter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ internal bool IsSetKey()
8080
/// The value associated with the key.
8181
/// </para>
8282
/// </summary>
83+
[AWSProperty(Sensitive=true)]
8384
public string Value
8485
{
8586
get { return this._value; }

sdk/src/Services/EventBridge/Generated/Model/ConnectionHeaderParameter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal bool IsSetKey()
8181
/// The value associated with the key.
8282
/// </para>
8383
/// </summary>
84-
[AWSProperty(Max=512)]
84+
[AWSProperty(Sensitive=true, Max=512)]
8585
public string Value
8686
{
8787
get { return this._value; }

sdk/src/Services/EventBridge/Generated/Model/ConnectionQueryStringParameter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal bool IsSetKey()
8282
/// The value associated with the key for the query string parameter.
8383
/// </para>
8484
/// </summary>
85-
[AWSProperty(Max=512)]
85+
[AWSProperty(Sensitive=true, Max=512)]
8686
public string Value
8787
{
8888
get { return this._value; }

sdk/src/Services/EventBridge/Generated/Model/CreateConnectionApiKeyAuthRequestParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ internal bool IsSetApiKeyName()
6161
/// The value for the API key to use for authorization.
6262
/// </para>
6363
/// </summary>
64-
[AWSProperty(Required=true, Min=1, Max=512)]
64+
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=512)]
6565
public string ApiKeyValue
6666
{
6767
get { return this._apiKeyValue; }

sdk/src/Services/EventBridge/Generated/Model/CreateConnectionBasicAuthRequestParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public partial class CreateConnectionBasicAuthRequestParameters
4242
/// The password associated with the user name to use for Basic authorization.
4343
/// </para>
4444
/// </summary>
45-
[AWSProperty(Required=true, Min=1, Max=512)]
45+
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=512)]
4646
public string Password
4747
{
4848
get { return this._password; }

sdk/src/Services/EventBridge/Generated/Model/CreateConnectionOAuthClientRequestParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal bool IsSetClientID()
6262
/// the connection.
6363
/// </para>
6464
/// </summary>
65-
[AWSProperty(Required=true, Min=1, Max=512)]
65+
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=512)]
6666
public string ClientSecret
6767
{
6868
get { return this._clientSecret; }

0 commit comments

Comments
 (0)