diff --git a/clients/client-payment-cryptography/src/commands/CreateKeyCommand.ts b/clients/client-payment-cryptography/src/commands/CreateKeyCommand.ts index 4cd21377fc66a..780d2a4b11a81 100644 --- a/clients/client-payment-cryptography/src/commands/CreateKeyCommand.ts +++ b/clients/client-payment-cryptography/src/commands/CreateKeyCommand.ts @@ -87,7 +87,7 @@ export interface CreateKeyCommandOutput extends CreateKeyOutput, __MetadataBeare * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", + * Value: "STRING_VALUE", // required * }, * ], * }; diff --git a/clients/client-payment-cryptography/src/commands/ImportKeyCommand.ts b/clients/client-payment-cryptography/src/commands/ImportKeyCommand.ts index 7f9106904d344..dfe3b3d0f4bd9 100644 --- a/clients/client-payment-cryptography/src/commands/ImportKeyCommand.ts +++ b/clients/client-payment-cryptography/src/commands/ImportKeyCommand.ts @@ -251,7 +251,7 @@ export interface ImportKeyCommandOutput extends ImportKeyOutput, __MetadataBeare * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", + * Value: "STRING_VALUE", // required * }, * ], * }; diff --git a/clients/client-payment-cryptography/src/commands/ListAliasesCommand.ts b/clients/client-payment-cryptography/src/commands/ListAliasesCommand.ts index c1f6377c46c52..c69304736f563 100644 --- a/clients/client-payment-cryptography/src/commands/ListAliasesCommand.ts +++ b/clients/client-payment-cryptography/src/commands/ListAliasesCommand.ts @@ -32,7 +32,7 @@ export interface ListAliasesCommandInput extends ListAliasesInput {} export interface ListAliasesCommandOutput extends ListAliasesOutput, __MetadataBearer {} /** - *

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 Using aliases in the Amazon Web Services Payment Cryptography User Guide.

+ *

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 keyARN. For more information, see Using aliases in the Amazon Web Services Payment Cryptography User Guide.

*

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 NextToken value. * Use this value in a subsequent ListAliases 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.

*

@@ -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"), * }; diff --git a/clients/client-payment-cryptography/src/commands/ListTagsForResourceCommand.ts b/clients/client-payment-cryptography/src/commands/ListTagsForResourceCommand.ts index 5c8b1d564340d..4bc8dfe626617 100644 --- a/clients/client-payment-cryptography/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-payment-cryptography/src/commands/ListTagsForResourceCommand.ts @@ -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", diff --git a/clients/client-payment-cryptography/src/commands/TagResourceCommand.ts b/clients/client-payment-cryptography/src/commands/TagResourceCommand.ts index bb3f1609b8a7c..62390de269133 100644 --- a/clients/client-payment-cryptography/src/commands/TagResourceCommand.ts +++ b/clients/client-payment-cryptography/src/commands/TagResourceCommand.ts @@ -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 * }, * ], * }; diff --git a/clients/client-payment-cryptography/src/models/models_0.ts b/clients/client-payment-cryptography/src/models/models_0.ts index 27de6e4159a6e..5dc75947d997f 100644 --- a/clients/client-payment-cryptography/src/models/models_0.ts +++ b/clients/client-payment-cryptography/src/models/models_0.ts @@ -277,6 +277,12 @@ export interface GetAliasOutput { * @public */ export interface ListAliasesInput { + /** + *

The keyARN for which you want to list all aliases.

+ * @public + */ + KeyArn?: string; + /** *

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received.

* @public @@ -529,7 +535,7 @@ export interface Tag { *

The value of the tag.

* @public */ - Value?: string; + Value: string | undefined; } /** @@ -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 */ @@ -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 }), }); /** @@ -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" }; }; diff --git a/codegen/sdk-codegen/aws-models/payment-cryptography.json b/codegen/sdk-codegen/aws-models/payment-cryptography.json index 18399edbfb09c..fdacbd61e17cb 100644 --- a/codegen/sdk-codegen/aws-models/payment-cryptography.json +++ b/codegen/sdk-codegen/aws-models/payment-cryptography.json @@ -2063,7 +2063,7 @@ ], "traits": { "aws.api#controlPlane": {}, - "smithy.api#documentation": "

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 Using aliases in the Amazon Web Services Payment Cryptography User Guide.

\n

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 NextToken value.\n Use this value in a subsequent ListAliases 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.

\n

\n Cross-account use: This operation can't be used across different Amazon Web Services accounts.

\n

\n Related operations:\n

\n ", + "smithy.api#documentation": "

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 keyARN. For more information, see Using aliases in the Amazon Web Services Payment Cryptography User Guide.

\n

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 NextToken value.\n Use this value in a subsequent ListAliases 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.

\n

\n Cross-account use: This operation can't be used across different Amazon Web Services accounts.

\n

\n Related operations:\n

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2076,6 +2076,12 @@ "com.amazonaws.paymentcryptography#ListAliasesInput": { "type": "structure", "members": { + "KeyArn": { + "target": "com.amazonaws.paymentcryptography#KeyArn", + "traits": { + "smithy.api#documentation": "

The keyARN for which you want to list all aliases.

" + } + }, "NextToken": { "target": "com.amazonaws.paymentcryptography#NextToken", "traits": { @@ -3359,7 +3365,9 @@ "Value": { "target": "com.amazonaws.paymentcryptography#TagValue", "traits": { - "smithy.api#documentation": "

The value of the tag.

" + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The value of the tag.

", + "smithy.api#required": {} } } }, @@ -3460,7 +3468,7 @@ "type": "string", "traits": { "smithy.api#length": { - "min": 0, + "min": 1, "max": 256 } } @@ -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": { @@ -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": {