Skip to content

Commit

Permalink
feat(client-payment-cryptography): Updated ListAliases API with KeyAr…
Browse files Browse the repository at this point in the history
…n filter.
  • Loading branch information
awstools committed Nov 12, 2024
1 parent eb000c7 commit 34a0ede
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface CreateKeyCommandOutput extends CreateKeyOutput, __MetadataBeare
* Tags: [ // Tags
* { // Tag
* Key: "STRING_VALUE", // required
* Value: "STRING_VALUE",
* Value: "STRING_VALUE", // required
* },
* ],
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export interface ImportKeyCommandOutput extends ImportKeyOutput, __MetadataBeare
* Tags: [ // Tags
* { // Tag
* Key: "STRING_VALUE", // required
* Value: "STRING_VALUE",
* Value: "STRING_VALUE", // required
* },
* ],
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface ListAliasesCommandInput extends ListAliasesInput {}
export interface ListAliasesCommandOutput extends ListAliasesOutput, __MetadataBearer {}

/**
* <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>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>
Expand Down Expand Up @@ -69,6 +69,7 @@ export interface ListAliasesCommandOutput extends ListAliasesOutput, __MetadataB
* // const { PaymentCryptographyClient, ListAliasesCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
* const client = new PaymentCryptographyClient(config);
* const input = { // ListAliasesInput
* KeyArn: "STRING_VALUE",
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
* // Tags: [ // Tags // required
* // { // Tag
* // Key: "STRING_VALUE", // required
* // Value: "STRING_VALUE",
* // Value: "STRING_VALUE", // required
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
* Tags: [ // Tags // required
* { // Tag
* Key: "STRING_VALUE", // required
* Value: "STRING_VALUE",
* Value: "STRING_VALUE", // required
* },
* ],
* };
Expand Down
20 changes: 18 additions & 2 deletions clients/client-payment-cryptography/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ export interface GetAliasOutput {
* @public
*/
export interface ListAliasesInput {
/**
* <p>The <code>keyARN</code> for which you want to list all aliases.</p>
* @public
*/
KeyArn?: string;

/**
* <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>
* @public
Expand Down Expand Up @@ -529,7 +535,7 @@ export interface Tag {
* <p>The value of the tag.</p>
* @public
*/
Value?: string;
Value: string | undefined;
}

/**
Expand Down Expand Up @@ -1887,6 +1893,14 @@ export const GetPublicKeyCertificateOutputFilterSensitiveLog = (obj: GetPublicKe
...(obj.KeyCertificateChain && { KeyCertificateChain: SENSITIVE_STRING }),
});

/**
* @internal
*/
export const ImportKeyCryptogramFilterSensitiveLog = (obj: ImportKeyCryptogram): any => ({
...obj,
...(obj.WrappedKeyCryptogram && { WrappedKeyCryptogram: SENSITIVE_STRING }),
});

/**
* @internal
*/
Expand All @@ -1909,6 +1923,7 @@ export const ImportTr31KeyBlockFilterSensitiveLog = (obj: ImportTr31KeyBlock): a
export const ImportTr34KeyBlockFilterSensitiveLog = (obj: ImportTr34KeyBlock): any => ({
...obj,
...(obj.SigningKeyCertificate && { SigningKeyCertificate: SENSITIVE_STRING }),
...(obj.WrappedKeyBlock && { WrappedKeyBlock: SENSITIVE_STRING }),
});

/**
Expand All @@ -1931,7 +1946,8 @@ export const ImportKeyMaterialFilterSensitiveLog = (obj: ImportKeyMaterial): any
};
if (obj.Tr31KeyBlock !== undefined) return { Tr31KeyBlock: ImportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
if (obj.Tr34KeyBlock !== undefined) return { Tr34KeyBlock: ImportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
if (obj.KeyCryptogram !== undefined) return { KeyCryptogram: obj.KeyCryptogram };
if (obj.KeyCryptogram !== undefined)
return { KeyCryptogram: ImportKeyCryptogramFilterSensitiveLog(obj.KeyCryptogram) };
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
};

Expand Down
20 changes: 15 additions & 5 deletions codegen/sdk-codegen/aws-models/payment-cryptography.json
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@
],
"traits": {
"aws.api#controlPlane": {},
"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>",
"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>",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
Expand All @@ -2076,6 +2076,12 @@
"com.amazonaws.paymentcryptography#ListAliasesInput": {
"type": "structure",
"members": {
"KeyArn": {
"target": "com.amazonaws.paymentcryptography#KeyArn",
"traits": {
"smithy.api#documentation": "<p>The <code>keyARN</code> for which you want to list all aliases.</p>"
}
},
"NextToken": {
"target": "com.amazonaws.paymentcryptography#NextToken",
"traits": {
Expand Down Expand Up @@ -3359,7 +3365,9 @@
"Value": {
"target": "com.amazonaws.paymentcryptography#TagValue",
"traits": {
"smithy.api#documentation": "<p>The value of the tag.</p>"
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The value of the tag.</p>",
"smithy.api#required": {}
}
}
},
Expand Down Expand Up @@ -3460,7 +3468,7 @@
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"min": 1,
"max": 256
}
}
Expand Down Expand Up @@ -3522,7 +3530,8 @@
"min": 2,
"max": 4096
},
"smithy.api#pattern": "^[0-9A-F]+$"
"smithy.api#pattern": "^[0-9A-F]+$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.paymentcryptography#TrustedCertificatePublicKey": {
Expand Down Expand Up @@ -3754,7 +3763,8 @@
"min": 16,
"max": 4096
},
"smithy.api#pattern": "^[0-9A-F]+$"
"smithy.api#pattern": "^[0-9A-F]+$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.paymentcryptography#WrappedKeyMaterialFormat": {
Expand Down

0 comments on commit 34a0ede

Please sign in to comment.