Skip to content

Commit 65a5cc6

Browse files
Updated ListAliases API with KeyArn filter.
1 parent 11f973b commit 65a5cc6

File tree

15 files changed

+80
-32
lines changed

15 files changed

+80
-32
lines changed

generator/ServiceModels/payment-cryptography/payment-cryptography-2021-09-14.api.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@
992992
"ListAliasesInput":{
993993
"type":"structure",
994994
"members":{
995+
"KeyArn":{"shape":"KeyArn"},
995996
"NextToken":{"shape":"NextToken"},
996997
"MaxResults":{"shape":"MaxResults"}
997998
}
@@ -1152,7 +1153,10 @@
11521153
"String":{"type":"string"},
11531154
"Tag":{
11541155
"type":"structure",
1155-
"required":["Key"],
1156+
"required":[
1157+
"Key",
1158+
"Value"
1159+
],
11561160
"members":{
11571161
"Key":{"shape":"TagKey"},
11581162
"Value":{"shape":"TagValue"}
@@ -1188,7 +1192,7 @@
11881192
"TagValue":{
11891193
"type":"string",
11901194
"max":256,
1191-
"min":0
1195+
"min":1
11921196
},
11931197
"Tags":{
11941198
"type":"list",
@@ -1219,7 +1223,8 @@
12191223
"type":"string",
12201224
"max":4096,
12211225
"min":2,
1222-
"pattern":"[0-9A-F]+"
1226+
"pattern":"[0-9A-F]+",
1227+
"sensitive":true
12231228
},
12241229
"TrustedCertificatePublicKey":{
12251230
"type":"structure",
@@ -1291,7 +1296,8 @@
12911296
"type":"string",
12921297
"max":4096,
12931298
"min":16,
1294-
"pattern":"[0-9A-F]+"
1299+
"pattern":"[0-9A-F]+",
1300+
"sensitive":true
12951301
},
12961302
"WrappedKeyMaterialFormat":{
12971303
"type":"string",

generator/ServiceModels/payment-cryptography/payment-cryptography-2021-09-14.docs.json

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

generator/ServiceModels/payment-cryptography/payment-cryptography-2021-09-14.normal.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
{"shape":"ThrottlingException"},
246246
{"shape":"InternalServerException"}
247247
],
248-
"documentation":"<p>Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of aliases. For more information, see <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html\">Using aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>This is a paginated operation, which means that each response might contain only a subset of all the aliases. When the response contains only a subset of aliases, it includes a <code>NextToken</code> value. Use this value in a subsequent <code>ListAliases</code> request to get more aliases. When you receive a response with no NextToken (or an empty or null value), that means there are no more aliases to get.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html\">CreateAlias</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html\">DeleteAlias</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetAlias.html\">GetAlias</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html\">UpdateAlias</a> </p> </li> </ul>"
248+
"documentation":"<p>Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the aliases by <code>keyARN</code>. For more information, see <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html\">Using aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>This is a paginated operation, which means that each response might contain only a subset of all the aliases. When the response contains only a subset of aliases, it includes a <code>NextToken</code> value. Use this value in a subsequent <code>ListAliases</code> request to get more aliases. When you receive a response with no NextToken (or an empty or null value), that means there are no more aliases to get.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html\">CreateAlias</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html\">DeleteAlias</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetAlias.html\">GetAlias</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html\">UpdateAlias</a> </p> </li> </ul>"
249249
},
250250
"ListKeys":{
251251
"name":"ListKeys",
@@ -1375,6 +1375,10 @@
13751375
"ListAliasesInput":{
13761376
"type":"structure",
13771377
"members":{
1378+
"KeyArn":{
1379+
"shape":"KeyArn",
1380+
"documentation":"<p>The <code>keyARN</code> for which you want to list all aliases.</p>"
1381+
},
13781382
"NextToken":{
13791383
"shape":"NextToken",
13801384
"documentation":"<p>Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of <code>NextToken</code> from the truncated response you just received.</p>"
@@ -1608,7 +1612,10 @@
16081612
"String":{"type":"string"},
16091613
"Tag":{
16101614
"type":"structure",
1611-
"required":["Key"],
1615+
"required":[
1616+
"Key",
1617+
"Value"
1618+
],
16121619
"members":{
16131620
"Key":{
16141621
"shape":"TagKey",
@@ -1657,7 +1664,7 @@
16571664
"TagValue":{
16581665
"type":"string",
16591666
"max":256,
1660-
"min":0
1667+
"min":1
16611668
},
16621669
"Tags":{
16631670
"type":"list",
@@ -1689,7 +1696,8 @@
16891696
"type":"string",
16901697
"max":4096,
16911698
"min":2,
1692-
"pattern":"[0-9A-F]+"
1699+
"pattern":"[0-9A-F]+",
1700+
"sensitive":true
16931701
},
16941702
"TrustedCertificatePublicKey":{
16951703
"type":"structure",
@@ -1803,7 +1811,8 @@
18031811
"type":"string",
18041812
"max":4096,
18051813
"min":16,
1806-
"pattern":"[0-9A-F]+"
1814+
"pattern":"[0-9A-F]+",
1815+
"sensitive":true
18071816
},
18081817
"WrappedKeyMaterialFormat":{
18091818
"type":"string",

sdk/code-analysis/ServiceAnalysis/PaymentCryptography/Generated/PropertyValueRules.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797
<max>32768</max>
9898
<pattern>[^\[;\]&lt;&gt;]+</pattern>
9999
</property-value-rule>
100+
<property-value-rule>
101+
<property>Amazon.PaymentCryptography.Model.ListAliasesRequest.KeyArn</property>
102+
<min>70</min>
103+
<max>150</max>
104+
<pattern>arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}</pattern>
105+
</property-value-rule>
100106
<property-value-rule>
101107
<property>Amazon.PaymentCryptography.Model.ListAliasesRequest.MaxResults</property>
102108
<min>1</min>
@@ -340,7 +346,7 @@
340346
</property-value-rule>
341347
<property-value-rule>
342348
<property>Amazon.PaymentCryptography.Model.Tag.Value</property>
343-
<min>0</min>
349+
<min>1</min>
344350
<max>256</max>
345351
</property-value-rule>
346352
<property-value-rule>

sdk/src/Services/PaymentCryptography/Generated/Model/ImportKeyCryptogram.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ internal bool IsSetKeyAttributes()
103103
/// The RSA wrapped key cryptogram under import.
104104
/// </para>
105105
/// </summary>
106-
[AWSProperty(Required=true, Min=16, Max=4096)]
106+
[AWSProperty(Required=true, Sensitive=true, Min=16, Max=4096)]
107107
public string WrappedKeyCryptogram
108108
{
109109
get { return this._wrappedKeyCryptogram; }

sdk/src/Services/PaymentCryptography/Generated/Model/ImportTr34KeyBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ internal bool IsSetSigningKeyCertificate()
149149
/// The TR-34 wrapped key block to import.
150150
/// </para>
151151
/// </summary>
152-
[AWSProperty(Required=true, Min=2, Max=4096)]
152+
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=4096)]
153153
public string WrappedKeyBlock
154154
{
155155
get { return this._wrappedKeyBlock; }

sdk/src/Services/PaymentCryptography/Generated/Model/Internal/MarshallTransformations/ListAliasesRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ public IRequest Marshall(ListAliasesRequest publicRequest)
6969
writer.Validate = false;
7070
writer.WriteObjectStart();
7171
var context = new JsonMarshallerContext(request, writer);
72+
if(publicRequest.IsSetKeyArn())
73+
{
74+
context.Writer.WritePropertyName("KeyArn");
75+
context.Writer.Write(publicRequest.KeyArn);
76+
}
77+
7278
if(publicRequest.IsSetMaxResults())
7379
{
7480
context.Writer.WritePropertyName("MaxResults");

sdk/src/Services/PaymentCryptography/Generated/Model/ListAliasesRequest.cs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ namespace Amazon.PaymentCryptography.Model
3232
/// <summary>
3333
/// Container for the parameters to the ListAliases operation.
3434
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
35-
/// Web Services Region. You can filter the list of aliases. For more information, see
36-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
35+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
36+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
3737
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
3838
///
3939
///
@@ -77,9 +77,29 @@ namespace Amazon.PaymentCryptography.Model
7777
/// </summary>
7878
public partial class ListAliasesRequest : AmazonPaymentCryptographyRequest
7979
{
80+
private string _keyArn;
8081
private int? _maxResults;
8182
private string _nextToken;
8283

84+
/// <summary>
85+
/// Gets and sets the property KeyArn.
86+
/// <para>
87+
/// The <c>keyARN</c> for which you want to list all aliases.
88+
/// </para>
89+
/// </summary>
90+
[AWSProperty(Min=70, Max=150)]
91+
public string KeyArn
92+
{
93+
get { return this._keyArn; }
94+
set { this._keyArn = value; }
95+
}
96+
97+
// Check to see if KeyArn property is set
98+
internal bool IsSetKeyArn()
99+
{
100+
return this._keyArn != null;
101+
}
102+
83103
/// <summary>
84104
/// Gets and sets the property MaxResults.
85105
/// <para>

sdk/src/Services/PaymentCryptography/Generated/Model/Tag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal bool IsSetKey()
6262
/// The value of the tag.
6363
/// </para>
6464
/// </summary>
65-
[AWSProperty(Min=0, Max=256)]
65+
[AWSProperty(Required=true, Min=1, Max=256)]
6666
public string Value
6767
{
6868
get { return this._value; }

sdk/src/Services/PaymentCryptography/Generated/_bcl35/AmazonPaymentCryptographyClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,8 +1911,8 @@ public virtual ImportKeyResponse EndImportKey(IAsyncResult asyncResult)
19111911

19121912
/// <summary>
19131913
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
1914-
/// Web Services Region. You can filter the list of aliases. For more information, see
1915-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
1914+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
1915+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
19161916
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
19171917
///
19181918
///

sdk/src/Services/PaymentCryptography/Generated/_bcl35/IAmazonPaymentCryptography.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl
15391539

15401540
/// <summary>
15411541
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
1542-
/// Web Services Region. You can filter the list of aliases. For more information, see
1543-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
1542+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
1543+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
15441544
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
15451545
///
15461546
///

sdk/src/Services/PaymentCryptography/Generated/_bcl45/AmazonPaymentCryptographyClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,8 +2788,8 @@ public virtual ImportKeyResponse ImportKey(ImportKeyRequest request)
27882788

27892789
/// <summary>
27902790
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
2791-
/// Web Services Region. You can filter the list of aliases. For more information, see
2792-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
2791+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
2792+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
27932793
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
27942794
///
27952795
///
@@ -2865,8 +2865,8 @@ public virtual ListAliasesResponse ListAliases(ListAliasesRequest request)
28652865

28662866
/// <summary>
28672867
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
2868-
/// Web Services Region. You can filter the list of aliases. For more information, see
2869-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
2868+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
2869+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
28702870
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
28712871
///
28722872
///

sdk/src/Services/PaymentCryptography/Generated/_bcl45/IAmazonPaymentCryptography.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,8 +2424,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl
24242424

24252425
/// <summary>
24262426
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
2427-
/// Web Services Region. You can filter the list of aliases. For more information, see
2428-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
2427+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
2428+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
24292429
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
24302430
///
24312431
///
@@ -2495,8 +2495,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl
24952495

24962496
/// <summary>
24972497
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
2498-
/// Web Services Region. You can filter the list of aliases. For more information, see
2499-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
2498+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
2499+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
25002500
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
25012501
///
25022502
///

sdk/src/Services/PaymentCryptography/Generated/_netstandard/AmazonPaymentCryptographyClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,8 +1706,8 @@ internal virtual ListAliasesResponse ListAliases(ListAliasesRequest request)
17061706

17071707
/// <summary>
17081708
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
1709-
/// Web Services Region. You can filter the list of aliases. For more information, see
1710-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
1709+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
1710+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
17111711
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
17121712
///
17131713
///

sdk/src/Services/PaymentCryptography/Generated/_netstandard/IAmazonPaymentCryptography.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl
12961296

12971297
/// <summary>
12981298
/// Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon
1299-
/// Web Services Region. You can filter the list of aliases. For more information, see
1300-
/// <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
1299+
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. For more information,
1300+
/// see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html">Using
13011301
/// aliases</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.
13021302
///
13031303
///

0 commit comments

Comments
 (0)