Skip to content

Commit

Permalink
Updated ListAliases API with KeyArn filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-dotnet-automation committed Nov 12, 2024
1 parent 11f973b commit 65a5cc6
Show file tree
Hide file tree
Showing 15 changed files with 80 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@
"ListAliasesInput":{
"type":"structure",
"members":{
"KeyArn":{"shape":"KeyArn"},
"NextToken":{"shape":"NextToken"},
"MaxResults":{"shape":"MaxResults"}
}
Expand Down Expand Up @@ -1152,7 +1153,10 @@
"String":{"type":"string"},
"Tag":{
"type":"structure",
"required":["Key"],
"required":[
"Key",
"Value"
],
"members":{
"Key":{"shape":"TagKey"},
"Value":{"shape":"TagValue"}
Expand Down Expand Up @@ -1188,7 +1192,7 @@
"TagValue":{
"type":"string",
"max":256,
"min":0
"min":1
},
"Tags":{
"type":"list",
Expand Down Expand Up @@ -1219,7 +1223,8 @@
"type":"string",
"max":4096,
"min":2,
"pattern":"[0-9A-F]+"
"pattern":"[0-9A-F]+",
"sensitive":true
},
"TrustedCertificatePublicKey":{
"type":"structure",
Expand Down Expand Up @@ -1291,7 +1296,8 @@
"type":"string",
"max":4096,
"min":16,
"pattern":"[0-9A-F]+"
"pattern":"[0-9A-F]+",
"sensitive":true
},
"WrappedKeyMaterialFormat":{
"type":"string",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
{"shape":"ThrottlingException"},
{"shape":"InternalServerException"}
],
"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>"
"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>"
},
"ListKeys":{
"name":"ListKeys",
Expand Down Expand Up @@ -1375,6 +1375,10 @@
"ListAliasesInput":{
"type":"structure",
"members":{
"KeyArn":{
"shape":"KeyArn",
"documentation":"<p>The <code>keyARN</code> for which you want to list all aliases.</p>"
},
"NextToken":{
"shape":"NextToken",
"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>"
Expand Down Expand Up @@ -1608,7 +1612,10 @@
"String":{"type":"string"},
"Tag":{
"type":"structure",
"required":["Key"],
"required":[
"Key",
"Value"
],
"members":{
"Key":{
"shape":"TagKey",
Expand Down Expand Up @@ -1657,7 +1664,7 @@
"TagValue":{
"type":"string",
"max":256,
"min":0
"min":1
},
"Tags":{
"type":"list",
Expand Down Expand Up @@ -1689,7 +1696,8 @@
"type":"string",
"max":4096,
"min":2,
"pattern":"[0-9A-F]+"
"pattern":"[0-9A-F]+",
"sensitive":true
},
"TrustedCertificatePublicKey":{
"type":"structure",
Expand Down Expand Up @@ -1803,7 +1811,8 @@
"type":"string",
"max":4096,
"min":16,
"pattern":"[0-9A-F]+"
"pattern":"[0-9A-F]+",
"sensitive":true
},
"WrappedKeyMaterialFormat":{
"type":"string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
<max>32768</max>
<pattern>[^\[;\]&lt;&gt;]+</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.PaymentCryptography.Model.ListAliasesRequest.KeyArn</property>
<min>70</min>
<max>150</max>
<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>
</property-value-rule>
<property-value-rule>
<property>Amazon.PaymentCryptography.Model.ListAliasesRequest.MaxResults</property>
<min>1</min>
Expand Down Expand Up @@ -340,7 +346,7 @@
</property-value-rule>
<property-value-rule>
<property>Amazon.PaymentCryptography.Model.Tag.Value</property>
<min>0</min>
<min>1</min>
<max>256</max>
</property-value-rule>
<property-value-rule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ internal bool IsSetKeyAttributes()
/// The RSA wrapped key cryptogram under import.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=16, Max=4096)]
[AWSProperty(Required=true, Sensitive=true, Min=16, Max=4096)]
public string WrappedKeyCryptogram
{
get { return this._wrappedKeyCryptogram; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ internal bool IsSetSigningKeyCertificate()
/// The TR-34 wrapped key block to import.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=2, Max=4096)]
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=4096)]
public string WrappedKeyBlock
{
get { return this._wrappedKeyBlock; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ public IRequest Marshall(ListAliasesRequest publicRequest)
writer.Validate = false;
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetKeyArn())
{
context.Writer.WritePropertyName("KeyArn");
context.Writer.Write(publicRequest.KeyArn);
}

if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ namespace Amazon.PaymentCryptography.Model
/// <summary>
/// Container for the parameters to the ListAliases operation.
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down Expand Up @@ -77,9 +77,29 @@ namespace Amazon.PaymentCryptography.Model
/// </summary>
public partial class ListAliasesRequest : AmazonPaymentCryptographyRequest
{
private string _keyArn;
private int? _maxResults;
private string _nextToken;

/// <summary>
/// Gets and sets the property KeyArn.
/// <para>
/// The <c>keyARN</c> for which you want to list all aliases.
/// </para>
/// </summary>
[AWSProperty(Min=70, Max=150)]
public string KeyArn
{
get { return this._keyArn; }
set { this._keyArn = value; }
}

// Check to see if KeyArn property is set
internal bool IsSetKeyArn()
{
return this._keyArn != null;
}

/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ internal bool IsSetKey()
/// The value of the tag.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=256)]
[AWSProperty(Required=true, Min=1, Max=256)]
public string Value
{
get { return this._value; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1911,8 +1911,8 @@ public virtual ImportKeyResponse EndImportKey(IAsyncResult asyncResult)

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1539,8 +1539,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2788,8 +2788,8 @@ public virtual ImportKeyResponse ImportKey(ImportKeyRequest request)

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down Expand Up @@ -2865,8 +2865,8 @@ public virtual ListAliasesResponse ListAliases(ListAliasesRequest request)

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2424,8 +2424,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down Expand Up @@ -2495,8 +2495,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1706,8 +1706,8 @@ internal virtual ListAliasesResponse ListAliases(ListAliasesRequest request)

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,8 @@ public partial interface IAmazonPaymentCryptography : IAmazonService, IDisposabl

/// <summary>
/// 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
/// Web Services Region. You can filter the aliases by <c>keyARN</c>. 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>.
///
///
Expand Down

0 comments on commit 65a5cc6

Please sign in to comment.