@aws-sdk/client-payment-cryptography 3.349.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +369 -0
  3. package/dist-cjs/PaymentCryptography.js +51 -0
  4. package/dist-cjs/PaymentCryptographyClient.js +41 -0
  5. package/dist-cjs/commands/CreateAliasCommand.js +46 -0
  6. package/dist-cjs/commands/CreateKeyCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteAliasCommand.js +46 -0
  8. package/dist-cjs/commands/DeleteKeyCommand.js +46 -0
  9. package/dist-cjs/commands/ExportKeyCommand.js +47 -0
  10. package/dist-cjs/commands/GetAliasCommand.js +46 -0
  11. package/dist-cjs/commands/GetKeyCommand.js +46 -0
  12. package/dist-cjs/commands/GetParametersForExportCommand.js +47 -0
  13. package/dist-cjs/commands/GetParametersForImportCommand.js +47 -0
  14. package/dist-cjs/commands/GetPublicKeyCertificateCommand.js +47 -0
  15. package/dist-cjs/commands/ImportKeyCommand.js +47 -0
  16. package/dist-cjs/commands/ListAliasesCommand.js +46 -0
  17. package/dist-cjs/commands/ListKeysCommand.js +46 -0
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  19. package/dist-cjs/commands/RestoreKeyCommand.js +46 -0
  20. package/dist-cjs/commands/StartKeyUsageCommand.js +46 -0
  21. package/dist-cjs/commands/StopKeyUsageCommand.js +46 -0
  22. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  23. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  24. package/dist-cjs/commands/UpdateAliasCommand.js +46 -0
  25. package/dist-cjs/commands/index.js +23 -0
  26. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  27. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  28. package/dist-cjs/endpoint/ruleset.js +7 -0
  29. package/dist-cjs/index.js +11 -0
  30. package/dist-cjs/models/PaymentCryptographyServiceException.js +12 -0
  31. package/dist-cjs/models/index.js +4 -0
  32. package/dist-cjs/models/models_0.js +291 -0
  33. package/dist-cjs/pagination/Interfaces.js +2 -0
  34. package/dist-cjs/pagination/ListAliasesPaginator.js +29 -0
  35. package/dist-cjs/pagination/ListKeysPaginator.js +29 -0
  36. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +29 -0
  37. package/dist-cjs/pagination/index.js +7 -0
  38. package/dist-cjs/protocols/Aws_json1_0.js +1396 -0
  39. package/dist-cjs/runtimeConfig.browser.js +39 -0
  40. package/dist-cjs/runtimeConfig.js +48 -0
  41. package/dist-cjs/runtimeConfig.native.js +15 -0
  42. package/dist-cjs/runtimeConfig.shared.js +21 -0
  43. package/dist-es/PaymentCryptography.js +47 -0
  44. package/dist-es/PaymentCryptographyClient.js +37 -0
  45. package/dist-es/commands/CreateAliasCommand.js +42 -0
  46. package/dist-es/commands/CreateKeyCommand.js +42 -0
  47. package/dist-es/commands/DeleteAliasCommand.js +42 -0
  48. package/dist-es/commands/DeleteKeyCommand.js +42 -0
  49. package/dist-es/commands/ExportKeyCommand.js +43 -0
  50. package/dist-es/commands/GetAliasCommand.js +42 -0
  51. package/dist-es/commands/GetKeyCommand.js +42 -0
  52. package/dist-es/commands/GetParametersForExportCommand.js +43 -0
  53. package/dist-es/commands/GetParametersForImportCommand.js +43 -0
  54. package/dist-es/commands/GetPublicKeyCertificateCommand.js +43 -0
  55. package/dist-es/commands/ImportKeyCommand.js +43 -0
  56. package/dist-es/commands/ListAliasesCommand.js +42 -0
  57. package/dist-es/commands/ListKeysCommand.js +42 -0
  58. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  59. package/dist-es/commands/RestoreKeyCommand.js +42 -0
  60. package/dist-es/commands/StartKeyUsageCommand.js +42 -0
  61. package/dist-es/commands/StopKeyUsageCommand.js +42 -0
  62. package/dist-es/commands/TagResourceCommand.js +42 -0
  63. package/dist-es/commands/UntagResourceCommand.js +42 -0
  64. package/dist-es/commands/UpdateAliasCommand.js +42 -0
  65. package/dist-es/commands/index.js +20 -0
  66. package/dist-es/endpoint/EndpointParameters.js +8 -0
  67. package/dist-es/endpoint/endpointResolver.js +8 -0
  68. package/dist-es/endpoint/ruleset.js +4 -0
  69. package/dist-es/index.js +6 -0
  70. package/dist-es/models/PaymentCryptographyServiceException.js +8 -0
  71. package/dist-es/models/index.js +1 -0
  72. package/dist-es/models/models_0.js +267 -0
  73. package/dist-es/pagination/Interfaces.js +1 -0
  74. package/dist-es/pagination/ListAliasesPaginator.js +25 -0
  75. package/dist-es/pagination/ListKeysPaginator.js +25 -0
  76. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -0
  77. package/dist-es/pagination/index.js +4 -0
  78. package/dist-es/protocols/Aws_json1_0.js +1353 -0
  79. package/dist-es/runtimeConfig.browser.js +34 -0
  80. package/dist-es/runtimeConfig.js +43 -0
  81. package/dist-es/runtimeConfig.native.js +11 -0
  82. package/dist-es/runtimeConfig.shared.js +17 -0
  83. package/dist-types/PaymentCryptography.d.ts +154 -0
  84. package/dist-types/PaymentCryptographyClient.d.ts +186 -0
  85. package/dist-types/commands/CreateAliasCommand.d.ts +130 -0
  86. package/dist-types/commands/CreateKeyCommand.d.ts +175 -0
  87. package/dist-types/commands/DeleteAliasCommand.d.ts +120 -0
  88. package/dist-types/commands/DeleteKeyCommand.d.ts +149 -0
  89. package/dist-types/commands/ExportKeyCommand.d.ts +153 -0
  90. package/dist-types/commands/GetAliasCommand.d.ts +121 -0
  91. package/dist-types/commands/GetKeyCommand.d.ts +142 -0
  92. package/dist-types/commands/GetParametersForExportCommand.d.ts +120 -0
  93. package/dist-types/commands/GetParametersForImportCommand.d.ts +120 -0
  94. package/dist-types/commands/GetPublicKeyCertificateCommand.d.ts +95 -0
  95. package/dist-types/commands/ImportKeyCommand.d.ts +301 -0
  96. package/dist-types/commands/ListAliasesCommand.d.ts +127 -0
  97. package/dist-types/commands/ListKeysCommand.d.ts +143 -0
  98. package/dist-types/commands/ListTagsForResourceCommand.d.ts +119 -0
  99. package/dist-types/commands/RestoreKeyCommand.d.ts +150 -0
  100. package/dist-types/commands/StartKeyUsageCommand.d.ts +138 -0
  101. package/dist-types/commands/StopKeyUsageCommand.d.ts +144 -0
  102. package/dist-types/commands/TagResourceCommand.d.ts +122 -0
  103. package/dist-types/commands/UntagResourceCommand.d.ts +115 -0
  104. package/dist-types/commands/UpdateAliasCommand.d.ts +125 -0
  105. package/dist-types/commands/index.d.ts +20 -0
  106. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  107. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  108. package/dist-types/endpoint/ruleset.d.ts +2 -0
  109. package/dist-types/index.d.ts +15 -0
  110. package/dist-types/models/PaymentCryptographyServiceException.d.ts +13 -0
  111. package/dist-types/models/index.d.ts +1 -0
  112. package/dist-types/models/models_0.d.ts +1222 -0
  113. package/dist-types/pagination/Interfaces.d.ts +8 -0
  114. package/dist-types/pagination/ListAliasesPaginator.d.ts +7 -0
  115. package/dist-types/pagination/ListKeysPaginator.d.ts +7 -0
  116. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +7 -0
  117. package/dist-types/pagination/index.d.ts +4 -0
  118. package/dist-types/protocols/Aws_json1_0.d.ts +182 -0
  119. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  120. package/dist-types/runtimeConfig.d.ts +42 -0
  121. package/dist-types/runtimeConfig.native.d.ts +41 -0
  122. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  123. package/dist-types/ts3.4/PaymentCryptography.d.ts +347 -0
  124. package/dist-types/ts3.4/PaymentCryptographyClient.d.ts +235 -0
  125. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +35 -0
  126. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +35 -0
  127. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +35 -0
  128. package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +35 -0
  129. package/dist-types/ts3.4/commands/ExportKeyCommand.d.ts +35 -0
  130. package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +35 -0
  131. package/dist-types/ts3.4/commands/GetKeyCommand.d.ts +33 -0
  132. package/dist-types/ts3.4/commands/GetParametersForExportCommand.d.ts +42 -0
  133. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +42 -0
  134. package/dist-types/ts3.4/commands/GetPublicKeyCertificateCommand.d.ts +42 -0
  135. package/dist-types/ts3.4/commands/ImportKeyCommand.d.ts +35 -0
  136. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +35 -0
  137. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +35 -0
  138. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  139. package/dist-types/ts3.4/commands/RestoreKeyCommand.d.ts +35 -0
  140. package/dist-types/ts3.4/commands/StartKeyUsageCommand.d.ts +35 -0
  141. package/dist-types/ts3.4/commands/StopKeyUsageCommand.d.ts +35 -0
  142. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  143. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  144. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +35 -0
  145. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  146. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  147. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  148. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  149. package/dist-types/ts3.4/index.d.ts +6 -0
  150. package/dist-types/ts3.4/models/PaymentCryptographyServiceException.d.ts +8 -0
  151. package/dist-types/ts3.4/models/index.d.ts +1 -0
  152. package/dist-types/ts3.4/models/models_0.d.ts +490 -0
  153. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  154. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -0
  156. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
  157. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  158. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +245 -0
  159. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  160. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  161. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  162. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  163. package/package.json +99 -0
@@ -0,0 +1,1222 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { PaymentCryptographyServiceException as __BaseException } from "./PaymentCryptographyServiceException";
3
+ /**
4
+ * @public
5
+ * <p>You do not have sufficient access to perform this action.</p>
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ Message?: string;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * @public
18
+ * <p>Contains information about an alias.</p>
19
+ */
20
+ export interface Alias {
21
+ /**
22
+ * <p>A friendly name that you can use to refer to a key. The value must begin with <code>alias/</code>.</p>
23
+ * <important>
24
+ * <p>Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
25
+ * </important>
26
+ */
27
+ AliasName: string | undefined;
28
+ /**
29
+ * <p>The <code>KeyARN</code> of the key associated with the alias.</p>
30
+ */
31
+ KeyArn?: string;
32
+ }
33
+ /**
34
+ * @public
35
+ * <p>This request can cause an inconsistent state for the resource.</p>
36
+ */
37
+ export declare class ConflictException extends __BaseException {
38
+ readonly name: "ConflictException";
39
+ readonly $fault: "client";
40
+ Message?: string;
41
+ /**
42
+ * @internal
43
+ */
44
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
45
+ }
46
+ /**
47
+ * @public
48
+ */
49
+ export interface CreateAliasInput {
50
+ /**
51
+ * <p>A friendly name that you can use to refer a key. An alias must begin with <code>alias/</code> followed by a name, for example <code>alias/ExampleAlias</code>. It can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-).</p>
52
+ * <important>
53
+ * <p>Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
54
+ * </important>
55
+ */
56
+ AliasName: string | undefined;
57
+ /**
58
+ * <p>The <code>KeyARN</code> of the key to associate with the alias.</p>
59
+ */
60
+ KeyArn?: string;
61
+ }
62
+ /**
63
+ * @public
64
+ */
65
+ export interface CreateAliasOutput {
66
+ /**
67
+ * <p>The alias for the key.</p>
68
+ */
69
+ Alias: Alias | undefined;
70
+ }
71
+ /**
72
+ * @public
73
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
74
+ */
75
+ export declare class InternalServerException extends __BaseException {
76
+ readonly name: "InternalServerException";
77
+ readonly $fault: "server";
78
+ Message?: string;
79
+ /**
80
+ * @internal
81
+ */
82
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
83
+ }
84
+ /**
85
+ * @public
86
+ * <p>The request was denied due to an invalid resource error.</p>
87
+ */
88
+ export declare class ResourceNotFoundException extends __BaseException {
89
+ readonly name: "ResourceNotFoundException";
90
+ readonly $fault: "client";
91
+ /**
92
+ * <p>The string for the exception.</p>
93
+ */
94
+ ResourceId?: string;
95
+ /**
96
+ * @internal
97
+ */
98
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
99
+ }
100
+ /**
101
+ * @public
102
+ * <p>This request would cause a service quota to be exceeded.</p>
103
+ */
104
+ export declare class ServiceQuotaExceededException extends __BaseException {
105
+ readonly name: "ServiceQuotaExceededException";
106
+ readonly $fault: "client";
107
+ Message?: string;
108
+ /**
109
+ * @internal
110
+ */
111
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
112
+ }
113
+ /**
114
+ * @public
115
+ * <p>The service cannot complete the request.</p>
116
+ */
117
+ export declare class ServiceUnavailableException extends __BaseException {
118
+ readonly name: "ServiceUnavailableException";
119
+ readonly $fault: "server";
120
+ Message?: string;
121
+ /**
122
+ * @internal
123
+ */
124
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
125
+ }
126
+ /**
127
+ * @public
128
+ * <p>The request was denied due to request throttling.</p>
129
+ */
130
+ export declare class ThrottlingException extends __BaseException {
131
+ readonly name: "ThrottlingException";
132
+ readonly $fault: "client";
133
+ Message?: string;
134
+ /**
135
+ * @internal
136
+ */
137
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
138
+ }
139
+ /**
140
+ * @public
141
+ * <p>The request was denied due to an invalid request error.</p>
142
+ */
143
+ export declare class ValidationException extends __BaseException {
144
+ readonly name: "ValidationException";
145
+ readonly $fault: "client";
146
+ Message?: string;
147
+ /**
148
+ * @internal
149
+ */
150
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
151
+ }
152
+ /**
153
+ * @public
154
+ * @enum
155
+ */
156
+ export declare const KeyAlgorithm: {
157
+ readonly AES_128: "AES_128";
158
+ readonly AES_192: "AES_192";
159
+ readonly AES_256: "AES_256";
160
+ readonly RSA_2048: "RSA_2048";
161
+ readonly RSA_3072: "RSA_3072";
162
+ readonly RSA_4096: "RSA_4096";
163
+ readonly TDES_2KEY: "TDES_2KEY";
164
+ readonly TDES_3KEY: "TDES_3KEY";
165
+ };
166
+ /**
167
+ * @public
168
+ */
169
+ export type KeyAlgorithm = (typeof KeyAlgorithm)[keyof typeof KeyAlgorithm];
170
+ /**
171
+ * @public
172
+ * @enum
173
+ */
174
+ export declare const KeyClass: {
175
+ readonly ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR";
176
+ readonly PRIVATE_KEY: "PRIVATE_KEY";
177
+ readonly PUBLIC_KEY: "PUBLIC_KEY";
178
+ readonly SYMMETRIC_KEY: "SYMMETRIC_KEY";
179
+ };
180
+ /**
181
+ * @public
182
+ */
183
+ export type KeyClass = (typeof KeyClass)[keyof typeof KeyClass];
184
+ /**
185
+ * @public
186
+ * <p>The list of cryptographic operations that you can perform using the key. The modes of use are defined in section A.5.3 of the TR-31 spec.</p>
187
+ */
188
+ export interface KeyModesOfUse {
189
+ /**
190
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.</p>
191
+ */
192
+ Encrypt?: boolean;
193
+ /**
194
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.</p>
195
+ */
196
+ Decrypt?: boolean;
197
+ /**
198
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.</p>
199
+ */
200
+ Wrap?: boolean;
201
+ /**
202
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.</p>
203
+ */
204
+ Unwrap?: boolean;
205
+ /**
206
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.</p>
207
+ */
208
+ Generate?: boolean;
209
+ /**
210
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.</p>
211
+ */
212
+ Sign?: boolean;
213
+ /**
214
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.</p>
215
+ */
216
+ Verify?: boolean;
217
+ /**
218
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.</p>
219
+ */
220
+ DeriveKey?: boolean;
221
+ /**
222
+ * <p>Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by <code>KeyUsage</code>.</p>
223
+ */
224
+ NoRestrictions?: boolean;
225
+ }
226
+ /**
227
+ * @public
228
+ * @enum
229
+ */
230
+ export declare const KeyUsage: {
231
+ readonly TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY";
232
+ readonly TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY";
233
+ readonly TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY";
234
+ readonly TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION";
235
+ readonly TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS";
236
+ readonly TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY";
237
+ readonly TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY";
238
+ readonly TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS";
239
+ readonly TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION";
240
+ readonly TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER";
241
+ readonly TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY";
242
+ readonly TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY";
243
+ readonly TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY";
244
+ readonly TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT";
245
+ readonly TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY";
246
+ readonly TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY";
247
+ readonly TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY";
248
+ readonly TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY";
249
+ readonly TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY";
250
+ readonly TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE";
251
+ readonly TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY";
252
+ readonly TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY";
253
+ };
254
+ /**
255
+ * @public
256
+ */
257
+ export type KeyUsage = (typeof KeyUsage)[keyof typeof KeyUsage];
258
+ /**
259
+ * @public
260
+ * <p>The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.</p>
261
+ */
262
+ export interface KeyAttributes {
263
+ /**
264
+ * <p>The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.</p>
265
+ */
266
+ KeyUsage: KeyUsage | string | undefined;
267
+ /**
268
+ * <p>The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.</p>
269
+ */
270
+ KeyClass: KeyClass | string | undefined;
271
+ /**
272
+ * <p>The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.</p>
273
+ * <p>For symmetric keys, Amazon Web Services Payment Cryptography supports <code>AES</code> and <code>TDES</code> algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports <code>RSA</code> and <code>ECC_NIST</code> algorithms.</p>
274
+ */
275
+ KeyAlgorithm: KeyAlgorithm | string | undefined;
276
+ /**
277
+ * <p>The list of cryptographic operations that you can perform using the key.</p>
278
+ */
279
+ KeyModesOfUse: KeyModesOfUse | undefined;
280
+ }
281
+ /**
282
+ * @public
283
+ * @enum
284
+ */
285
+ export declare const KeyCheckValueAlgorithm: {
286
+ readonly ANSI_X9_24: "ANSI_X9_24";
287
+ readonly CMAC: "CMAC";
288
+ };
289
+ /**
290
+ * @public
291
+ */
292
+ export type KeyCheckValueAlgorithm = (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm];
293
+ /**
294
+ * @public
295
+ * <p>A structure that contains information about a tag.</p>
296
+ */
297
+ export interface Tag {
298
+ /**
299
+ * <p>The key of the tag.</p>
300
+ */
301
+ Key: string | undefined;
302
+ /**
303
+ * <p>The value of the tag.</p>
304
+ */
305
+ Value?: string;
306
+ }
307
+ /**
308
+ * @public
309
+ */
310
+ export interface CreateKeyInput {
311
+ /**
312
+ * <p>The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.</p>
313
+ */
314
+ KeyAttributes: KeyAttributes | undefined;
315
+ /**
316
+ * <p>The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.</p>
317
+ * <p>For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.</p>
318
+ */
319
+ KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | string;
320
+ /**
321
+ * <p>Specifies whether the key is exportable from the service.</p>
322
+ */
323
+ Exportable: boolean | undefined;
324
+ /**
325
+ * <p>Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key not enabled, then it is created but not activated. The default value is enabled.</p>
326
+ */
327
+ Enabled?: boolean;
328
+ /**
329
+ * <p>The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. </p>
330
+ * <p>To use this parameter, you must have <code>TagResource</code> permission.</p>
331
+ * <important>
332
+ * <p>Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
333
+ * </important>
334
+ * <note>
335
+ * <p>Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.</p>
336
+ * </note>
337
+ */
338
+ Tags?: Tag[];
339
+ }
340
+ /**
341
+ * @public
342
+ * @enum
343
+ */
344
+ export declare const KeyOrigin: {
345
+ readonly AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY";
346
+ readonly EXTERNAL: "EXTERNAL";
347
+ };
348
+ /**
349
+ * @public
350
+ */
351
+ export type KeyOrigin = (typeof KeyOrigin)[keyof typeof KeyOrigin];
352
+ /**
353
+ * @public
354
+ * @enum
355
+ */
356
+ export declare const KeyState: {
357
+ readonly CREATE_COMPLETE: "CREATE_COMPLETE";
358
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
359
+ readonly DELETE_COMPLETE: "DELETE_COMPLETE";
360
+ readonly DELETE_PENDING: "DELETE_PENDING";
361
+ };
362
+ /**
363
+ * @public
364
+ */
365
+ export type KeyState = (typeof KeyState)[keyof typeof KeyState];
366
+ /**
367
+ * @public
368
+ * <p>Metadata about an Amazon Web Services Payment Cryptography key.</p>
369
+ */
370
+ export interface Key {
371
+ /**
372
+ * <p>The Amazon Resource Name (ARN) of the key.</p>
373
+ */
374
+ KeyArn: string | undefined;
375
+ /**
376
+ * <p>The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.</p>
377
+ */
378
+ KeyAttributes: KeyAttributes | undefined;
379
+ /**
380
+ * <p>The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.</p>
381
+ */
382
+ KeyCheckValue: string | undefined;
383
+ /**
384
+ * <p>The algorithm used for calculating key check value (KCV) for DES and AES keys. For a DES key, Amazon Web Services Payment Cryptography computes the KCV by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For an AES key, Amazon Web Services Payment Cryptography computes the KCV by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.</p>
385
+ */
386
+ KeyCheckValueAlgorithm: KeyCheckValueAlgorithm | string | undefined;
387
+ /**
388
+ * <p>Specifies whether the key is enabled. </p>
389
+ */
390
+ Enabled: boolean | undefined;
391
+ /**
392
+ * <p>Specifies whether the key is exportable. This data is immutable after the key is created.</p>
393
+ */
394
+ Exportable: boolean | undefined;
395
+ /**
396
+ * <p>The state of key that is being created or deleted.</p>
397
+ */
398
+ KeyState: KeyState | string | undefined;
399
+ /**
400
+ * <p>The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is <code>AWS_PAYMENT_CRYPTOGRAPHY</code>. For keys imported into Amazon Web Services Payment Cryptography, the value is <code>EXTERNAL</code>.</p>
401
+ */
402
+ KeyOrigin: KeyOrigin | string | undefined;
403
+ /**
404
+ * <p>The date and time when the key was created.</p>
405
+ */
406
+ CreateTimestamp: Date | undefined;
407
+ /**
408
+ * <p>The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.</p>
409
+ */
410
+ UsageStartTimestamp?: Date;
411
+ /**
412
+ * <p>The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.</p>
413
+ */
414
+ UsageStopTimestamp?: Date;
415
+ /**
416
+ * <p>The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when <code>KeyState</code> is <code>DELETE_PENDING</code> and the key is scheduled for deletion.</p>
417
+ */
418
+ DeletePendingTimestamp?: Date;
419
+ /**
420
+ * <p>The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when when the <code>KeyState</code> is <code>DELETE_COMPLETE</code> and the Amazon Web Services Payment Cryptography key is deleted.</p>
421
+ */
422
+ DeleteTimestamp?: Date;
423
+ }
424
+ /**
425
+ * @public
426
+ */
427
+ export interface CreateKeyOutput {
428
+ /**
429
+ * <p>The key material that contains all the key attributes.</p>
430
+ */
431
+ Key: Key | undefined;
432
+ }
433
+ /**
434
+ * @public
435
+ */
436
+ export interface DeleteAliasInput {
437
+ /**
438
+ * <p>A friendly name that you can use to refer Amazon Web Services Payment Cryptography key. This value must begin with <code>alias/</code> followed by a name, such as <code>alias/ExampleAlias</code>.</p>
439
+ */
440
+ AliasName: string | undefined;
441
+ }
442
+ /**
443
+ * @public
444
+ */
445
+ export interface DeleteAliasOutput {
446
+ }
447
+ /**
448
+ * @public
449
+ */
450
+ export interface DeleteKeyInput {
451
+ /**
452
+ * <p>The <code>KeyARN</code> of the key that is scheduled for deletion.</p>
453
+ */
454
+ KeyIdentifier: string | undefined;
455
+ /**
456
+ * <p>The waiting period for key deletion. The default value is seven days.</p>
457
+ */
458
+ DeleteKeyInDays?: number;
459
+ }
460
+ /**
461
+ * @public
462
+ */
463
+ export interface DeleteKeyOutput {
464
+ /**
465
+ * <p>The <code>KeyARN</code> of the key that is scheduled for deletion.</p>
466
+ */
467
+ Key: Key | undefined;
468
+ }
469
+ /**
470
+ * @public
471
+ * <p>Parameter information for key material export using TR-31 standard.</p>
472
+ */
473
+ export interface ExportTr31KeyBlock {
474
+ /**
475
+ * <p>The <code>KeyARN</code> of the the wrapping key. This key encrypts or wraps the key under export for TR-31 key block generation.</p>
476
+ */
477
+ WrappingKeyIdentifier: string | undefined;
478
+ }
479
+ /**
480
+ * @public
481
+ * @enum
482
+ */
483
+ export declare const Tr34KeyBlockFormat: {
484
+ readonly X9_TR34_2012: "X9_TR34_2012";
485
+ };
486
+ /**
487
+ * @public
488
+ */
489
+ export type Tr34KeyBlockFormat = (typeof Tr34KeyBlockFormat)[keyof typeof Tr34KeyBlockFormat];
490
+ /**
491
+ * @public
492
+ * <p>Parameter information for key material export using TR-34 standard.</p>
493
+ */
494
+ export interface ExportTr34KeyBlock {
495
+ /**
496
+ * <p>The <code>KeyARN</code> of the certificate chain that signs the wrapping key certificate during TR-34 key export.</p>
497
+ */
498
+ CertificateAuthorityPublicKeyIdentifier: string | undefined;
499
+ /**
500
+ * <p>The <code>KeyARN</code> of the wrapping key certificate. Amazon Web Services Payment Cryptography uses this certificate to wrap the key under export.</p>
501
+ */
502
+ WrappingKeyCertificate: string | undefined;
503
+ /**
504
+ * <p>The export token to initiate key export from Amazon Web Services Payment Cryptography. It also contains the signing key certificate that will sign the wrapped key during TR-34 key block generation. Call <a>GetParametersForExport</a> to receive an export token. It expires after 7 days. You can use the same export token to export multiple keys from the same service account.</p>
505
+ */
506
+ ExportToken: string | undefined;
507
+ /**
508
+ * <p>The format of key block that Amazon Web Services Payment Cryptography will use during key export.</p>
509
+ */
510
+ KeyBlockFormat: Tr34KeyBlockFormat | string | undefined;
511
+ /**
512
+ * <p>A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.</p>
513
+ */
514
+ RandomNonce?: string;
515
+ }
516
+ /**
517
+ * @public
518
+ * <p>Parameter information for key material export from Amazon Web Services Payment Cryptography.</p>
519
+ */
520
+ export type ExportKeyMaterial = ExportKeyMaterial.Tr31KeyBlockMember | ExportKeyMaterial.Tr34KeyBlockMember | ExportKeyMaterial.$UnknownMember;
521
+ /**
522
+ * @public
523
+ */
524
+ export declare namespace ExportKeyMaterial {
525
+ /**
526
+ * <p>Parameter information for key material export using TR-31 standard.</p>
527
+ */
528
+ interface Tr31KeyBlockMember {
529
+ Tr31KeyBlock: ExportTr31KeyBlock;
530
+ Tr34KeyBlock?: never;
531
+ $unknown?: never;
532
+ }
533
+ /**
534
+ * <p>Parameter information for key material export using TR-34 standard.</p>
535
+ */
536
+ interface Tr34KeyBlockMember {
537
+ Tr31KeyBlock?: never;
538
+ Tr34KeyBlock: ExportTr34KeyBlock;
539
+ $unknown?: never;
540
+ }
541
+ interface $UnknownMember {
542
+ Tr31KeyBlock?: never;
543
+ Tr34KeyBlock?: never;
544
+ $unknown: [string, any];
545
+ }
546
+ interface Visitor<T> {
547
+ Tr31KeyBlock: (value: ExportTr31KeyBlock) => T;
548
+ Tr34KeyBlock: (value: ExportTr34KeyBlock) => T;
549
+ _: (name: string, value: any) => T;
550
+ }
551
+ const visit: <T>(value: ExportKeyMaterial, visitor: Visitor<T>) => T;
552
+ }
553
+ /**
554
+ * @public
555
+ */
556
+ export interface ExportKeyInput {
557
+ /**
558
+ * <p>The key block format type, for example, TR-34 or TR-31, to use during key material export.</p>
559
+ */
560
+ KeyMaterial: ExportKeyMaterial | undefined;
561
+ /**
562
+ * <p>The <code>KeyARN</code> of the key under export from Amazon Web Services Payment Cryptography.</p>
563
+ */
564
+ ExportKeyIdentifier: string | undefined;
565
+ }
566
+ /**
567
+ * @public
568
+ * @enum
569
+ */
570
+ export declare const WrappedKeyMaterialFormat: {
571
+ readonly KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM";
572
+ readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
573
+ readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
574
+ };
575
+ /**
576
+ * @public
577
+ */
578
+ export type WrappedKeyMaterialFormat = (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat];
579
+ /**
580
+ * @public
581
+ * <p>Parameter information for generating a wrapped key using TR-31 or TR-34 standard.</p>
582
+ */
583
+ export interface WrappedKey {
584
+ /**
585
+ * <p>The <code>KeyARN</code> of the wrapped key.</p>
586
+ */
587
+ WrappingKeyArn: string | undefined;
588
+ /**
589
+ * <p>The key block format of a wrapped key.</p>
590
+ */
591
+ WrappedKeyMaterialFormat: WrappedKeyMaterialFormat | string | undefined;
592
+ /**
593
+ * <p>Parameter information for generating a wrapped key using TR-31 or TR-34 standard.</p>
594
+ */
595
+ KeyMaterial: string | undefined;
596
+ }
597
+ /**
598
+ * @public
599
+ */
600
+ export interface ExportKeyOutput {
601
+ /**
602
+ * <p>The key material under export as a TR-34 or TR-31 wrapped key block.</p>
603
+ */
604
+ WrappedKey?: WrappedKey;
605
+ }
606
+ /**
607
+ * @public
608
+ */
609
+ export interface GetAliasInput {
610
+ /**
611
+ * <p>The alias of the Amazon Web Services Payment Cryptography key.</p>
612
+ */
613
+ AliasName: string | undefined;
614
+ }
615
+ /**
616
+ * @public
617
+ */
618
+ export interface GetAliasOutput {
619
+ /**
620
+ * <p>The alias of the Amazon Web Services Payment Cryptography key.</p>
621
+ */
622
+ Alias: Alias | undefined;
623
+ }
624
+ /**
625
+ * @public
626
+ */
627
+ export interface GetKeyInput {
628
+ /**
629
+ * <p>The <code>KeyARN</code> of the Amazon Web Services Payment Cryptography key.</p>
630
+ */
631
+ KeyIdentifier: string | undefined;
632
+ }
633
+ /**
634
+ * @public
635
+ */
636
+ export interface GetKeyOutput {
637
+ /**
638
+ * <p>The key material, including the immutable and mutable data for the key.</p>
639
+ */
640
+ Key: Key | undefined;
641
+ }
642
+ /**
643
+ * @public
644
+ * @enum
645
+ */
646
+ export declare const KeyMaterialType: {
647
+ readonly ROOT_PUBLIC_KEY_CERTIFICATE: "ROOT_PUBLIC_KEY_CERTIFICATE";
648
+ readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
649
+ readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
650
+ readonly TRUSTED_PUBLIC_KEY_CERTIFICATE: "TRUSTED_PUBLIC_KEY_CERTIFICATE";
651
+ };
652
+ /**
653
+ * @public
654
+ */
655
+ export type KeyMaterialType = (typeof KeyMaterialType)[keyof typeof KeyMaterialType];
656
+ /**
657
+ * @public
658
+ */
659
+ export interface GetParametersForExportInput {
660
+ /**
661
+ * <p>The key block format type (for example, TR-34 or TR-31) to use during key material export. Export token is only required for a TR-34 key export, <code>TR34_KEY_BLOCK</code>. Export token is not required for TR-31 key export.</p>
662
+ */
663
+ KeyMaterialType: KeyMaterialType | string | undefined;
664
+ /**
665
+ * <p>The signing key algorithm to generate a signing key certificate. This certificate signs the wrapped key under export within the TR-34 key block cryptogram. <code>RSA_2048</code> is the only signing key algorithm allowed.</p>
666
+ */
667
+ SigningKeyAlgorithm: KeyAlgorithm | string | undefined;
668
+ }
669
+ /**
670
+ * @public
671
+ */
672
+ export interface GetParametersForExportOutput {
673
+ /**
674
+ * <p>The signing key certificate of the public key for signature within the TR-34 key block cryptogram. The certificate expires after 7 days.</p>
675
+ */
676
+ SigningKeyCertificate: string | undefined;
677
+ /**
678
+ * <p>The certificate chain that signed the signing key certificate. This is the root certificate authority (CA) within your service account.</p>
679
+ */
680
+ SigningKeyCertificateChain: string | undefined;
681
+ /**
682
+ * <p>The algorithm of the signing key certificate for use in TR-34 key block generation. <code>RSA_2048</code> is the only signing key algorithm allowed.</p>
683
+ */
684
+ SigningKeyAlgorithm: KeyAlgorithm | string | undefined;
685
+ /**
686
+ * <p>The export token to initiate key export from Amazon Web Services Payment Cryptography. The export token expires after 7 days. You can use the same export token to export multiple keys from the same service account.</p>
687
+ */
688
+ ExportToken: string | undefined;
689
+ /**
690
+ * <p>The validity period of the export token.</p>
691
+ */
692
+ ParametersValidUntilTimestamp: Date | undefined;
693
+ }
694
+ /**
695
+ * @public
696
+ */
697
+ export interface GetParametersForImportInput {
698
+ /**
699
+ * <p>The key block format type such as TR-34 or TR-31 to use during key material import. Import token is only required for TR-34 key import <code>TR34_KEY_BLOCK</code>. Import token is not required for TR-31 key import.</p>
700
+ */
701
+ KeyMaterialType: KeyMaterialType | string | undefined;
702
+ /**
703
+ * <p>The wrapping key algorithm to generate a wrapping key certificate. This certificate wraps the key under import within the TR-34 key block cryptogram. <code>RSA_2048</code> is the only wrapping key algorithm allowed.</p>
704
+ */
705
+ WrappingKeyAlgorithm: KeyAlgorithm | string | undefined;
706
+ }
707
+ /**
708
+ * @public
709
+ */
710
+ export interface GetParametersForImportOutput {
711
+ /**
712
+ * <p>The wrapping key certificate of the wrapping key for use within the TR-34 key block. The certificate expires in 7 days.</p>
713
+ */
714
+ WrappingKeyCertificate: string | undefined;
715
+ /**
716
+ * <p>The Amazon Web Services Payment Cryptography certificate chain that signed the wrapping key certificate. This is the root certificate authority (CA) within your service account.</p>
717
+ */
718
+ WrappingKeyCertificateChain: string | undefined;
719
+ /**
720
+ * <p>The algorithm of the wrapping key for use within TR-34 key block. <code>RSA_2048</code> is the only wrapping key algorithm allowed.</p>
721
+ */
722
+ WrappingKeyAlgorithm: KeyAlgorithm | string | undefined;
723
+ /**
724
+ * <p>The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires after 7 days. You can use the same import token to import multiple keys to the same service account.</p>
725
+ */
726
+ ImportToken: string | undefined;
727
+ /**
728
+ * <p>The validity period of the import token.</p>
729
+ */
730
+ ParametersValidUntilTimestamp: Date | undefined;
731
+ }
732
+ /**
733
+ * @public
734
+ */
735
+ export interface GetPublicKeyCertificateInput {
736
+ /**
737
+ * <p>The <code>KeyARN</code> of the asymmetric key pair.</p>
738
+ */
739
+ KeyIdentifier: string | undefined;
740
+ }
741
+ /**
742
+ * @public
743
+ */
744
+ export interface GetPublicKeyCertificateOutput {
745
+ /**
746
+ * <p>The public key component of the asymmetric key pair in a certificate (PEM) format. It is signed by the root certificate authority (CA) within your service account. The certificate expires in 90 days.</p>
747
+ */
748
+ KeyCertificate: string | undefined;
749
+ /**
750
+ * <p>The certificate chain that signed the public key certificate of the asymmetric key pair. This is the root certificate authority (CA) within your service account.</p>
751
+ */
752
+ KeyCertificateChain: string | undefined;
753
+ }
754
+ /**
755
+ * @public
756
+ * <p>Parameter information for root public key certificate import.</p>
757
+ */
758
+ export interface RootCertificatePublicKey {
759
+ /**
760
+ * <p>The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the root public key is imported.</p>
761
+ */
762
+ KeyAttributes: KeyAttributes | undefined;
763
+ /**
764
+ * <p>Parameter information for root public key certificate import.</p>
765
+ */
766
+ PublicKeyCertificate: string | undefined;
767
+ }
768
+ /**
769
+ * @public
770
+ * <p>Parameter information for key material import using TR-31 standard.</p>
771
+ */
772
+ export interface ImportTr31KeyBlock {
773
+ /**
774
+ * <p>The <code>KeyARN</code> of the key that will decrypt or unwrap a TR-31 key block during import.</p>
775
+ */
776
+ WrappingKeyIdentifier: string | undefined;
777
+ /**
778
+ * <p>The TR-34 wrapped key block to import.</p>
779
+ */
780
+ WrappedKeyBlock: string | undefined;
781
+ }
782
+ /**
783
+ * @public
784
+ * <p>Parameter information for key material import using TR-34 standard.</p>
785
+ */
786
+ export interface ImportTr34KeyBlock {
787
+ /**
788
+ * <p>The <code>KeyARN</code> of the certificate chain that signs the signing key certificate during TR-34 key import.</p>
789
+ */
790
+ CertificateAuthorityPublicKeyIdentifier: string | undefined;
791
+ /**
792
+ * <p>The public key component in PEM certificate format of the private key that signs the KDH TR-34 wrapped key block.</p>
793
+ */
794
+ SigningKeyCertificate: string | undefined;
795
+ /**
796
+ * <p>The import token that initiates key import into Amazon Web Services Payment Cryptography. It expires after 7 days. You can use the same import token to import multiple keys to the same service account.</p>
797
+ */
798
+ ImportToken: string | undefined;
799
+ /**
800
+ * <p>The TR-34 wrapped key block to import.</p>
801
+ */
802
+ WrappedKeyBlock: string | undefined;
803
+ /**
804
+ * <p>The key block format to use during key import. The only value allowed is <code>X9_TR34_2012</code>.</p>
805
+ */
806
+ KeyBlockFormat: Tr34KeyBlockFormat | string | undefined;
807
+ /**
808
+ * <p>A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.</p>
809
+ */
810
+ RandomNonce?: string;
811
+ }
812
+ /**
813
+ * @public
814
+ * <p>Parameter information for trusted public key certificate import.</p>
815
+ */
816
+ export interface TrustedCertificatePublicKey {
817
+ /**
818
+ * <p>The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after a trusted public key is imported.</p>
819
+ */
820
+ KeyAttributes: KeyAttributes | undefined;
821
+ /**
822
+ * <p>Parameter information for trusted public key certificate import.</p>
823
+ */
824
+ PublicKeyCertificate: string | undefined;
825
+ /**
826
+ * <p>The <code>KeyARN</code> of the root public key certificate or certificate chain that signs the trusted public key certificate import.</p>
827
+ */
828
+ CertificateAuthorityPublicKeyIdentifier: string | undefined;
829
+ }
830
+ /**
831
+ * @public
832
+ * <p>Parameter information for key material import.</p>
833
+ */
834
+ export type ImportKeyMaterial = ImportKeyMaterial.RootCertificatePublicKeyMember | ImportKeyMaterial.Tr31KeyBlockMember | ImportKeyMaterial.Tr34KeyBlockMember | ImportKeyMaterial.TrustedCertificatePublicKeyMember | ImportKeyMaterial.$UnknownMember;
835
+ /**
836
+ * @public
837
+ */
838
+ export declare namespace ImportKeyMaterial {
839
+ /**
840
+ * <p>Parameter information for root public key certificate import.</p>
841
+ */
842
+ interface RootCertificatePublicKeyMember {
843
+ RootCertificatePublicKey: RootCertificatePublicKey;
844
+ TrustedCertificatePublicKey?: never;
845
+ Tr31KeyBlock?: never;
846
+ Tr34KeyBlock?: never;
847
+ $unknown?: never;
848
+ }
849
+ /**
850
+ * <p>Parameter information for trusted public key certificate import.</p>
851
+ */
852
+ interface TrustedCertificatePublicKeyMember {
853
+ RootCertificatePublicKey?: never;
854
+ TrustedCertificatePublicKey: TrustedCertificatePublicKey;
855
+ Tr31KeyBlock?: never;
856
+ Tr34KeyBlock?: never;
857
+ $unknown?: never;
858
+ }
859
+ /**
860
+ * <p>Parameter information for key material import using TR-31 standard.</p>
861
+ */
862
+ interface Tr31KeyBlockMember {
863
+ RootCertificatePublicKey?: never;
864
+ TrustedCertificatePublicKey?: never;
865
+ Tr31KeyBlock: ImportTr31KeyBlock;
866
+ Tr34KeyBlock?: never;
867
+ $unknown?: never;
868
+ }
869
+ /**
870
+ * <p>Parameter information for key material import using TR-34 standard.</p>
871
+ */
872
+ interface Tr34KeyBlockMember {
873
+ RootCertificatePublicKey?: never;
874
+ TrustedCertificatePublicKey?: never;
875
+ Tr31KeyBlock?: never;
876
+ Tr34KeyBlock: ImportTr34KeyBlock;
877
+ $unknown?: never;
878
+ }
879
+ interface $UnknownMember {
880
+ RootCertificatePublicKey?: never;
881
+ TrustedCertificatePublicKey?: never;
882
+ Tr31KeyBlock?: never;
883
+ Tr34KeyBlock?: never;
884
+ $unknown: [string, any];
885
+ }
886
+ interface Visitor<T> {
887
+ RootCertificatePublicKey: (value: RootCertificatePublicKey) => T;
888
+ TrustedCertificatePublicKey: (value: TrustedCertificatePublicKey) => T;
889
+ Tr31KeyBlock: (value: ImportTr31KeyBlock) => T;
890
+ Tr34KeyBlock: (value: ImportTr34KeyBlock) => T;
891
+ _: (name: string, value: any) => T;
892
+ }
893
+ const visit: <T>(value: ImportKeyMaterial, visitor: Visitor<T>) => T;
894
+ }
895
+ /**
896
+ * @public
897
+ */
898
+ export interface ImportKeyInput {
899
+ /**
900
+ * <p>The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.</p>
901
+ */
902
+ KeyMaterial: ImportKeyMaterial | undefined;
903
+ /**
904
+ * <p>The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.</p>
905
+ * <p>For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.</p>
906
+ */
907
+ KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | string;
908
+ /**
909
+ * <p>Specifies whether import key is enabled.</p>
910
+ */
911
+ Enabled?: boolean;
912
+ /**
913
+ * <p>The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. </p>
914
+ * <p>You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.</p>
915
+ * <p>To use this parameter, you must have <code>TagResource</code> permission.</p>
916
+ * <important>
917
+ * <p>Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
918
+ * </important>
919
+ * <note>
920
+ * <p>Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.</p>
921
+ * </note>
922
+ */
923
+ Tags?: Tag[];
924
+ }
925
+ /**
926
+ * @public
927
+ */
928
+ export interface ImportKeyOutput {
929
+ /**
930
+ * <p>The <code>KeyARN</code> of the key material imported within Amazon Web Services Payment Cryptography.</p>
931
+ */
932
+ Key: Key | undefined;
933
+ }
934
+ /**
935
+ * @public
936
+ * <p>Metadata about an Amazon Web Services Payment Cryptography key.</p>
937
+ */
938
+ export interface KeySummary {
939
+ /**
940
+ * <p>The Amazon Resource Name (ARN) of the key.</p>
941
+ */
942
+ KeyArn: string | undefined;
943
+ /**
944
+ * <p>The state of an Amazon Web Services Payment Cryptography that is being created or deleted.</p>
945
+ */
946
+ KeyState: KeyState | string | undefined;
947
+ /**
948
+ * <p>The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.</p>
949
+ */
950
+ KeyAttributes: KeyAttributes | undefined;
951
+ /**
952
+ * <p>The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.</p>
953
+ */
954
+ KeyCheckValue: string | undefined;
955
+ /**
956
+ * <p>Specifies whether the key is exportable. This data is immutable after the key is created.</p>
957
+ */
958
+ Exportable: boolean | undefined;
959
+ /**
960
+ * <p>Specifies whether the key is enabled. </p>
961
+ */
962
+ Enabled: boolean | undefined;
963
+ }
964
+ /**
965
+ * @public
966
+ */
967
+ export interface ListAliasesInput {
968
+ /**
969
+ * <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>
970
+ */
971
+ NextToken?: string;
972
+ /**
973
+ * <p>Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.</p>
974
+ * <p>This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.</p>
975
+ */
976
+ MaxResults?: number;
977
+ }
978
+ /**
979
+ * @public
980
+ */
981
+ export interface ListAliasesOutput {
982
+ /**
983
+ * <p>The list of aliases. Each alias describes the <code>KeyArn</code> contained within.</p>
984
+ */
985
+ Aliases: Alias[] | undefined;
986
+ /**
987
+ * <p>The token for the next set of results, or an empty or null value if there are no more results.</p>
988
+ */
989
+ NextToken?: string;
990
+ }
991
+ /**
992
+ * @public
993
+ */
994
+ export interface ListKeysInput {
995
+ /**
996
+ * <p>The key state of the keys you want to list.</p>
997
+ */
998
+ KeyState?: KeyState | string;
999
+ /**
1000
+ * <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>
1001
+ */
1002
+ NextToken?: string;
1003
+ /**
1004
+ * <p>Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.</p>
1005
+ */
1006
+ MaxResults?: number;
1007
+ }
1008
+ /**
1009
+ * @public
1010
+ */
1011
+ export interface ListKeysOutput {
1012
+ /**
1013
+ * <p>The list of keys created within the caller's Amazon Web Services account and Amazon Web Services Region.</p>
1014
+ */
1015
+ Keys: KeySummary[] | undefined;
1016
+ /**
1017
+ * <p>The token for the next set of results, or an empty or null value if there are no more results.</p>
1018
+ */
1019
+ NextToken?: string;
1020
+ }
1021
+ /**
1022
+ * @public
1023
+ */
1024
+ export interface ListTagsForResourceInput {
1025
+ /**
1026
+ * <p>The <code>KeyARN</code> of the key whose tags you are getting.</p>
1027
+ */
1028
+ ResourceArn: string | undefined;
1029
+ /**
1030
+ * <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>
1031
+ */
1032
+ NextToken?: string;
1033
+ /**
1034
+ * <p>Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.</p>
1035
+ */
1036
+ MaxResults?: number;
1037
+ }
1038
+ /**
1039
+ * @public
1040
+ */
1041
+ export interface ListTagsForResourceOutput {
1042
+ /**
1043
+ * <p>The list of tags associated with a <code>ResourceArn</code>. Each tag will list the key-value pair contained within that tag.</p>
1044
+ */
1045
+ Tags: Tag[] | undefined;
1046
+ /**
1047
+ * <p>The token for the next set of results, or an empty or null value if there are no more results.</p>
1048
+ */
1049
+ NextToken?: string;
1050
+ }
1051
+ /**
1052
+ * @public
1053
+ */
1054
+ export interface RestoreKeyInput {
1055
+ /**
1056
+ * <p>The <code>KeyARN</code> of the key to be restored within Amazon Web Services Payment Cryptography.</p>
1057
+ */
1058
+ KeyIdentifier: string | undefined;
1059
+ }
1060
+ /**
1061
+ * @public
1062
+ */
1063
+ export interface RestoreKeyOutput {
1064
+ /**
1065
+ * <p>The key material of the restored key. The <code>KeyState</code> will change to <code>CREATE_COMPLETE</code> and value for <code>DeletePendingTimestamp</code> gets removed. </p>
1066
+ */
1067
+ Key: Key | undefined;
1068
+ }
1069
+ /**
1070
+ * @public
1071
+ */
1072
+ export interface StartKeyUsageInput {
1073
+ /**
1074
+ * <p>The <code>KeyArn</code> of the key.</p>
1075
+ */
1076
+ KeyIdentifier: string | undefined;
1077
+ }
1078
+ /**
1079
+ * @public
1080
+ */
1081
+ export interface StartKeyUsageOutput {
1082
+ /**
1083
+ * <p>The <code>KeyARN</code> of the Amazon Web Services Payment Cryptography key activated for use.</p>
1084
+ */
1085
+ Key: Key | undefined;
1086
+ }
1087
+ /**
1088
+ * @public
1089
+ */
1090
+ export interface StopKeyUsageInput {
1091
+ /**
1092
+ * <p>The <code>KeyArn</code> of the key.</p>
1093
+ */
1094
+ KeyIdentifier: string | undefined;
1095
+ }
1096
+ /**
1097
+ * @public
1098
+ */
1099
+ export interface StopKeyUsageOutput {
1100
+ /**
1101
+ * <p>The <code>KeyARN</code> of the key.</p>
1102
+ */
1103
+ Key: Key | undefined;
1104
+ }
1105
+ /**
1106
+ * @public
1107
+ */
1108
+ export interface TagResourceInput {
1109
+ /**
1110
+ * <p>The <code>KeyARN</code> of the key whose tags are being updated.</p>
1111
+ */
1112
+ ResourceArn: string | undefined;
1113
+ /**
1114
+ * <p>One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the new one.</p>
1115
+ * <important>
1116
+ * <p>Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
1117
+ * </important>
1118
+ * <p>To use this parameter, you must have <a>TagResource</a> permission in an IAM policy.</p>
1119
+ * <important>
1120
+ * <p>Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
1121
+ * </important>
1122
+ */
1123
+ Tags: Tag[] | undefined;
1124
+ }
1125
+ /**
1126
+ * @public
1127
+ */
1128
+ export interface TagResourceOutput {
1129
+ }
1130
+ /**
1131
+ * @public
1132
+ */
1133
+ export interface UntagResourceInput {
1134
+ /**
1135
+ * <p>The <code>KeyARN</code> of the key whose tags are being removed.</p>
1136
+ */
1137
+ ResourceArn: string | undefined;
1138
+ /**
1139
+ * <p>One or more tag keys. Don't include the tag values.</p>
1140
+ * <p>If the Amazon Web Services Payment Cryptography key doesn't have the specified tag key, Amazon Web Services Payment Cryptography doesn't throw an exception or return a response. To confirm that the operation succeeded, use the <a>ListTagsForResource</a> operation.</p>
1141
+ */
1142
+ TagKeys: string[] | undefined;
1143
+ }
1144
+ /**
1145
+ * @public
1146
+ */
1147
+ export interface UntagResourceOutput {
1148
+ }
1149
+ /**
1150
+ * @public
1151
+ */
1152
+ export interface UpdateAliasInput {
1153
+ /**
1154
+ * <p>The alias whose associated key is changing.</p>
1155
+ */
1156
+ AliasName: string | undefined;
1157
+ /**
1158
+ * <p>The <code>KeyARN</code> for the key that you are updating or removing from the alias.</p>
1159
+ */
1160
+ KeyArn?: string;
1161
+ }
1162
+ /**
1163
+ * @public
1164
+ */
1165
+ export interface UpdateAliasOutput {
1166
+ /**
1167
+ * <p>The alias name.</p>
1168
+ */
1169
+ Alias: Alias | undefined;
1170
+ }
1171
+ /**
1172
+ * @internal
1173
+ */
1174
+ export declare const ExportTr34KeyBlockFilterSensitiveLog: (obj: ExportTr34KeyBlock) => any;
1175
+ /**
1176
+ * @internal
1177
+ */
1178
+ export declare const ExportKeyMaterialFilterSensitiveLog: (obj: ExportKeyMaterial) => any;
1179
+ /**
1180
+ * @internal
1181
+ */
1182
+ export declare const ExportKeyInputFilterSensitiveLog: (obj: ExportKeyInput) => any;
1183
+ /**
1184
+ * @internal
1185
+ */
1186
+ export declare const WrappedKeyFilterSensitiveLog: (obj: WrappedKey) => any;
1187
+ /**
1188
+ * @internal
1189
+ */
1190
+ export declare const ExportKeyOutputFilterSensitiveLog: (obj: ExportKeyOutput) => any;
1191
+ /**
1192
+ * @internal
1193
+ */
1194
+ export declare const GetParametersForExportOutputFilterSensitiveLog: (obj: GetParametersForExportOutput) => any;
1195
+ /**
1196
+ * @internal
1197
+ */
1198
+ export declare const GetParametersForImportOutputFilterSensitiveLog: (obj: GetParametersForImportOutput) => any;
1199
+ /**
1200
+ * @internal
1201
+ */
1202
+ export declare const GetPublicKeyCertificateOutputFilterSensitiveLog: (obj: GetPublicKeyCertificateOutput) => any;
1203
+ /**
1204
+ * @internal
1205
+ */
1206
+ export declare const RootCertificatePublicKeyFilterSensitiveLog: (obj: RootCertificatePublicKey) => any;
1207
+ /**
1208
+ * @internal
1209
+ */
1210
+ export declare const ImportTr34KeyBlockFilterSensitiveLog: (obj: ImportTr34KeyBlock) => any;
1211
+ /**
1212
+ * @internal
1213
+ */
1214
+ export declare const TrustedCertificatePublicKeyFilterSensitiveLog: (obj: TrustedCertificatePublicKey) => any;
1215
+ /**
1216
+ * @internal
1217
+ */
1218
+ export declare const ImportKeyMaterialFilterSensitiveLog: (obj: ImportKeyMaterial) => any;
1219
+ /**
1220
+ * @internal
1221
+ */
1222
+ export declare const ImportKeyInputFilterSensitiveLog: (obj: ImportKeyInput) => any;