Skip to content

Commit 34a0ede

Browse files
author
awstools
committed
feat(client-payment-cryptography): Updated ListAliases API with KeyArn filter.
1 parent eb000c7 commit 34a0ede

File tree

7 files changed

+39
-12
lines changed

7 files changed

+39
-12
lines changed

clients/client-payment-cryptography/src/commands/CreateKeyCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export interface CreateKeyCommandOutput extends CreateKeyOutput, __MetadataBeare
8787
* Tags: [ // Tags
8888
* { // Tag
8989
* Key: "STRING_VALUE", // required
90-
* Value: "STRING_VALUE",
90+
* Value: "STRING_VALUE", // required
9191
* },
9292
* ],
9393
* };

clients/client-payment-cryptography/src/commands/ImportKeyCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export interface ImportKeyCommandOutput extends ImportKeyOutput, __MetadataBeare
251251
* Tags: [ // Tags
252252
* { // Tag
253253
* Key: "STRING_VALUE", // required
254-
* Value: "STRING_VALUE",
254+
* Value: "STRING_VALUE", // required
255255
* },
256256
* ],
257257
* };

clients/client-payment-cryptography/src/commands/ListAliasesCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface ListAliasesCommandInput extends ListAliasesInput {}
3232
export interface ListAliasesCommandOutput extends ListAliasesOutput, __MetadataBearer {}
3333

3434
/**
35-
* <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>
35+
* <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>
3636
* <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.
3737
* 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>
3838
* <p>
@@ -69,6 +69,7 @@ export interface ListAliasesCommandOutput extends ListAliasesOutput, __MetadataB
6969
* // const { PaymentCryptographyClient, ListAliasesCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
7070
* const client = new PaymentCryptographyClient(config);
7171
* const input = { // ListAliasesInput
72+
* KeyArn: "STRING_VALUE",
7273
* NextToken: "STRING_VALUE",
7374
* MaxResults: Number("int"),
7475
* };

clients/client-payment-cryptography/src/commands/ListTagsForResourceCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
7070
* // Tags: [ // Tags // required
7171
* // { // Tag
7272
* // Key: "STRING_VALUE", // required
73-
* // Value: "STRING_VALUE",
73+
* // Value: "STRING_VALUE", // required
7474
* // },
7575
* // ],
7676
* // NextToken: "STRING_VALUE",

clients/client-payment-cryptography/src/commands/TagResourceCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
6565
* Tags: [ // Tags // required
6666
* { // Tag
6767
* Key: "STRING_VALUE", // required
68-
* Value: "STRING_VALUE",
68+
* Value: "STRING_VALUE", // required
6969
* },
7070
* ],
7171
* };

clients/client-payment-cryptography/src/models/models_0.ts

+18-2
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ export interface GetAliasOutput {
277277
* @public
278278
*/
279279
export interface ListAliasesInput {
280+
/**
281+
* <p>The <code>keyARN</code> for which you want to list all aliases.</p>
282+
* @public
283+
*/
284+
KeyArn?: string;
285+
280286
/**
281287
* <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>
282288
* @public
@@ -529,7 +535,7 @@ export interface Tag {
529535
* <p>The value of the tag.</p>
530536
* @public
531537
*/
532-
Value?: string;
538+
Value: string | undefined;
533539
}
534540

535541
/**
@@ -1887,6 +1893,14 @@ export const GetPublicKeyCertificateOutputFilterSensitiveLog = (obj: GetPublicKe
18871893
...(obj.KeyCertificateChain && { KeyCertificateChain: SENSITIVE_STRING }),
18881894
});
18891895

1896+
/**
1897+
* @internal
1898+
*/
1899+
export const ImportKeyCryptogramFilterSensitiveLog = (obj: ImportKeyCryptogram): any => ({
1900+
...obj,
1901+
...(obj.WrappedKeyCryptogram && { WrappedKeyCryptogram: SENSITIVE_STRING }),
1902+
});
1903+
18901904
/**
18911905
* @internal
18921906
*/
@@ -1909,6 +1923,7 @@ export const ImportTr31KeyBlockFilterSensitiveLog = (obj: ImportTr31KeyBlock): a
19091923
export const ImportTr34KeyBlockFilterSensitiveLog = (obj: ImportTr34KeyBlock): any => ({
19101924
...obj,
19111925
...(obj.SigningKeyCertificate && { SigningKeyCertificate: SENSITIVE_STRING }),
1926+
...(obj.WrappedKeyBlock && { WrappedKeyBlock: SENSITIVE_STRING }),
19121927
});
19131928

19141929
/**
@@ -1931,7 +1946,8 @@ export const ImportKeyMaterialFilterSensitiveLog = (obj: ImportKeyMaterial): any
19311946
};
19321947
if (obj.Tr31KeyBlock !== undefined) return { Tr31KeyBlock: ImportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
19331948
if (obj.Tr34KeyBlock !== undefined) return { Tr34KeyBlock: ImportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
1934-
if (obj.KeyCryptogram !== undefined) return { KeyCryptogram: obj.KeyCryptogram };
1949+
if (obj.KeyCryptogram !== undefined)
1950+
return { KeyCryptogram: ImportKeyCryptogramFilterSensitiveLog(obj.KeyCryptogram) };
19351951
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
19361952
};
19371953

codegen/sdk-codegen/aws-models/payment-cryptography.json

+15-5
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,7 @@
20632063
],
20642064
"traits": {
20652065
"aws.api#controlPlane": {},
2066-
"smithy.api#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>\n <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.\n 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>\n <p>\n <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>\n <p>\n <b>Related operations:</b>\n </p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html\">CreateAlias</a>\n </p>\n </li>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html\">DeleteAlias</a>\n </p>\n </li>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetAlias.html\">GetAlias</a>\n </p>\n </li>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html\">UpdateAlias</a>\n </p>\n </li>\n </ul>",
2066+
"smithy.api#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>\n <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.\n 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>\n <p>\n <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>\n <p>\n <b>Related operations:</b>\n </p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html\">CreateAlias</a>\n </p>\n </li>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html\">DeleteAlias</a>\n </p>\n </li>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetAlias.html\">GetAlias</a>\n </p>\n </li>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html\">UpdateAlias</a>\n </p>\n </li>\n </ul>",
20672067
"smithy.api#paginated": {
20682068
"inputToken": "NextToken",
20692069
"outputToken": "NextToken",
@@ -2076,6 +2076,12 @@
20762076
"com.amazonaws.paymentcryptography#ListAliasesInput": {
20772077
"type": "structure",
20782078
"members": {
2079+
"KeyArn": {
2080+
"target": "com.amazonaws.paymentcryptography#KeyArn",
2081+
"traits": {
2082+
"smithy.api#documentation": "<p>The <code>keyARN</code> for which you want to list all aliases.</p>"
2083+
}
2084+
},
20792085
"NextToken": {
20802086
"target": "com.amazonaws.paymentcryptography#NextToken",
20812087
"traits": {
@@ -3359,7 +3365,9 @@
33593365
"Value": {
33603366
"target": "com.amazonaws.paymentcryptography#TagValue",
33613367
"traits": {
3362-
"smithy.api#documentation": "<p>The value of the tag.</p>"
3368+
"smithy.api#clientOptional": {},
3369+
"smithy.api#documentation": "<p>The value of the tag.</p>",
3370+
"smithy.api#required": {}
33633371
}
33643372
}
33653373
},
@@ -3460,7 +3468,7 @@
34603468
"type": "string",
34613469
"traits": {
34623470
"smithy.api#length": {
3463-
"min": 0,
3471+
"min": 1,
34643472
"max": 256
34653473
}
34663474
}
@@ -3522,7 +3530,8 @@
35223530
"min": 2,
35233531
"max": 4096
35243532
},
3525-
"smithy.api#pattern": "^[0-9A-F]+$"
3533+
"smithy.api#pattern": "^[0-9A-F]+$",
3534+
"smithy.api#sensitive": {}
35263535
}
35273536
},
35283537
"com.amazonaws.paymentcryptography#TrustedCertificatePublicKey": {
@@ -3754,7 +3763,8 @@
37543763
"min": 16,
37553764
"max": 4096
37563765
},
3757-
"smithy.api#pattern": "^[0-9A-F]+$"
3766+
"smithy.api#pattern": "^[0-9A-F]+$",
3767+
"smithy.api#sensitive": {}
37583768
}
37593769
},
37603770
"com.amazonaws.paymentcryptography#WrappedKeyMaterialFormat": {

0 commit comments

Comments
 (0)