@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,32 @@
1
+ import {
2
+ EndpointParameters as __EndpointParameters,
3
+ EndpointV2,
4
+ } from "@aws-sdk/types";
5
+ import { Endpoint, Provider } from "@smithy/types";
6
+ export interface ClientInputEndpointParameters {
7
+ region?: string | Provider<string>;
8
+ useDualstackEndpoint?: boolean | Provider<boolean>;
9
+ useFipsEndpoint?: boolean | Provider<boolean>;
10
+ endpoint?:
11
+ | string
12
+ | Provider<string>
13
+ | Endpoint
14
+ | Provider<Endpoint>
15
+ | EndpointV2
16
+ | Provider<EndpointV2>;
17
+ }
18
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
19
+ defaultSigningName: string;
20
+ };
21
+ export declare const resolveClientEndpointParameters: <T>(
22
+ options: T & ClientInputEndpointParameters
23
+ ) => T &
24
+ ClientInputEndpointParameters & {
25
+ defaultSigningName: string;
26
+ };
27
+ export interface EndpointParameters extends __EndpointParameters {
28
+ Region?: string;
29
+ UseDualStack?: boolean;
30
+ UseFIPS?: boolean;
31
+ Endpoint?: string;
32
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,6 @@
1
+ export * from "./PaymentCryptographyClient";
2
+ export * from "./PaymentCryptography";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ export { PaymentCryptographyServiceException } from "./models/PaymentCryptographyServiceException";
@@ -0,0 +1,8 @@
1
+ import {
2
+ ServiceException as __ServiceException,
3
+ ServiceExceptionOptions as __ServiceExceptionOptions,
4
+ } from "@aws-sdk/smithy-client";
5
+ export { __ServiceException, __ServiceExceptionOptions };
6
+ export declare class PaymentCryptographyServiceException extends __ServiceException {
7
+ constructor(options: __ServiceExceptionOptions);
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,490 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { PaymentCryptographyServiceException as __BaseException } from "./PaymentCryptographyServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message?: string;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
11
+ export interface Alias {
12
+ AliasName: string | undefined;
13
+ KeyArn?: string;
14
+ }
15
+ export declare class ConflictException extends __BaseException {
16
+ readonly name: "ConflictException";
17
+ readonly $fault: "client";
18
+ Message?: string;
19
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
20
+ }
21
+ export interface CreateAliasInput {
22
+ AliasName: string | undefined;
23
+ KeyArn?: string;
24
+ }
25
+ export interface CreateAliasOutput {
26
+ Alias: Alias | undefined;
27
+ }
28
+ export declare class InternalServerException extends __BaseException {
29
+ readonly name: "InternalServerException";
30
+ readonly $fault: "server";
31
+ Message?: string;
32
+ constructor(
33
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
34
+ );
35
+ }
36
+ export declare class ResourceNotFoundException extends __BaseException {
37
+ readonly name: "ResourceNotFoundException";
38
+ readonly $fault: "client";
39
+ ResourceId?: string;
40
+ constructor(
41
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
42
+ );
43
+ }
44
+ export declare class ServiceQuotaExceededException extends __BaseException {
45
+ readonly name: "ServiceQuotaExceededException";
46
+ readonly $fault: "client";
47
+ Message?: string;
48
+ constructor(
49
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
50
+ );
51
+ }
52
+ export declare class ServiceUnavailableException extends __BaseException {
53
+ readonly name: "ServiceUnavailableException";
54
+ readonly $fault: "server";
55
+ Message?: string;
56
+ constructor(
57
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
58
+ );
59
+ }
60
+ export declare class ThrottlingException extends __BaseException {
61
+ readonly name: "ThrottlingException";
62
+ readonly $fault: "client";
63
+ Message?: string;
64
+ constructor(
65
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
66
+ );
67
+ }
68
+ export declare class ValidationException extends __BaseException {
69
+ readonly name: "ValidationException";
70
+ readonly $fault: "client";
71
+ Message?: string;
72
+ constructor(
73
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
74
+ );
75
+ }
76
+ export declare const KeyAlgorithm: {
77
+ readonly AES_128: "AES_128";
78
+ readonly AES_192: "AES_192";
79
+ readonly AES_256: "AES_256";
80
+ readonly RSA_2048: "RSA_2048";
81
+ readonly RSA_3072: "RSA_3072";
82
+ readonly RSA_4096: "RSA_4096";
83
+ readonly TDES_2KEY: "TDES_2KEY";
84
+ readonly TDES_3KEY: "TDES_3KEY";
85
+ };
86
+ export type KeyAlgorithm = (typeof KeyAlgorithm)[keyof typeof KeyAlgorithm];
87
+ export declare const KeyClass: {
88
+ readonly ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR";
89
+ readonly PRIVATE_KEY: "PRIVATE_KEY";
90
+ readonly PUBLIC_KEY: "PUBLIC_KEY";
91
+ readonly SYMMETRIC_KEY: "SYMMETRIC_KEY";
92
+ };
93
+ export type KeyClass = (typeof KeyClass)[keyof typeof KeyClass];
94
+ export interface KeyModesOfUse {
95
+ Encrypt?: boolean;
96
+ Decrypt?: boolean;
97
+ Wrap?: boolean;
98
+ Unwrap?: boolean;
99
+ Generate?: boolean;
100
+ Sign?: boolean;
101
+ Verify?: boolean;
102
+ DeriveKey?: boolean;
103
+ NoRestrictions?: boolean;
104
+ }
105
+ export declare const KeyUsage: {
106
+ readonly TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY";
107
+ readonly TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY";
108
+ readonly TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY";
109
+ readonly TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION";
110
+ readonly TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS";
111
+ readonly TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY";
112
+ readonly TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY";
113
+ readonly TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS";
114
+ readonly TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION";
115
+ readonly TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER";
116
+ readonly TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY";
117
+ readonly TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY";
118
+ readonly TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY";
119
+ readonly TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT";
120
+ readonly TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY";
121
+ readonly TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY";
122
+ readonly TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY";
123
+ readonly TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY";
124
+ readonly TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY";
125
+ readonly TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE";
126
+ readonly TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY";
127
+ readonly TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY";
128
+ };
129
+ export type KeyUsage = (typeof KeyUsage)[keyof typeof KeyUsage];
130
+ export interface KeyAttributes {
131
+ KeyUsage: KeyUsage | string | undefined;
132
+ KeyClass: KeyClass | string | undefined;
133
+ KeyAlgorithm: KeyAlgorithm | string | undefined;
134
+ KeyModesOfUse: KeyModesOfUse | undefined;
135
+ }
136
+ export declare const KeyCheckValueAlgorithm: {
137
+ readonly ANSI_X9_24: "ANSI_X9_24";
138
+ readonly CMAC: "CMAC";
139
+ };
140
+ export type KeyCheckValueAlgorithm =
141
+ (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm];
142
+ export interface Tag {
143
+ Key: string | undefined;
144
+ Value?: string;
145
+ }
146
+ export interface CreateKeyInput {
147
+ KeyAttributes: KeyAttributes | undefined;
148
+ KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | string;
149
+ Exportable: boolean | undefined;
150
+ Enabled?: boolean;
151
+ Tags?: Tag[];
152
+ }
153
+ export declare const KeyOrigin: {
154
+ readonly AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY";
155
+ readonly EXTERNAL: "EXTERNAL";
156
+ };
157
+ export type KeyOrigin = (typeof KeyOrigin)[keyof typeof KeyOrigin];
158
+ export declare const KeyState: {
159
+ readonly CREATE_COMPLETE: "CREATE_COMPLETE";
160
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
161
+ readonly DELETE_COMPLETE: "DELETE_COMPLETE";
162
+ readonly DELETE_PENDING: "DELETE_PENDING";
163
+ };
164
+ export type KeyState = (typeof KeyState)[keyof typeof KeyState];
165
+ export interface Key {
166
+ KeyArn: string | undefined;
167
+ KeyAttributes: KeyAttributes | undefined;
168
+ KeyCheckValue: string | undefined;
169
+ KeyCheckValueAlgorithm: KeyCheckValueAlgorithm | string | undefined;
170
+ Enabled: boolean | undefined;
171
+ Exportable: boolean | undefined;
172
+ KeyState: KeyState | string | undefined;
173
+ KeyOrigin: KeyOrigin | string | undefined;
174
+ CreateTimestamp: Date | undefined;
175
+ UsageStartTimestamp?: Date;
176
+ UsageStopTimestamp?: Date;
177
+ DeletePendingTimestamp?: Date;
178
+ DeleteTimestamp?: Date;
179
+ }
180
+ export interface CreateKeyOutput {
181
+ Key: Key | undefined;
182
+ }
183
+ export interface DeleteAliasInput {
184
+ AliasName: string | undefined;
185
+ }
186
+ export interface DeleteAliasOutput {}
187
+ export interface DeleteKeyInput {
188
+ KeyIdentifier: string | undefined;
189
+ DeleteKeyInDays?: number;
190
+ }
191
+ export interface DeleteKeyOutput {
192
+ Key: Key | undefined;
193
+ }
194
+ export interface ExportTr31KeyBlock {
195
+ WrappingKeyIdentifier: string | undefined;
196
+ }
197
+ export declare const Tr34KeyBlockFormat: {
198
+ readonly X9_TR34_2012: "X9_TR34_2012";
199
+ };
200
+ export type Tr34KeyBlockFormat =
201
+ (typeof Tr34KeyBlockFormat)[keyof typeof Tr34KeyBlockFormat];
202
+ export interface ExportTr34KeyBlock {
203
+ CertificateAuthorityPublicKeyIdentifier: string | undefined;
204
+ WrappingKeyCertificate: string | undefined;
205
+ ExportToken: string | undefined;
206
+ KeyBlockFormat: Tr34KeyBlockFormat | string | undefined;
207
+ RandomNonce?: string;
208
+ }
209
+ export type ExportKeyMaterial =
210
+ | ExportKeyMaterial.Tr31KeyBlockMember
211
+ | ExportKeyMaterial.Tr34KeyBlockMember
212
+ | ExportKeyMaterial.$UnknownMember;
213
+ export declare namespace ExportKeyMaterial {
214
+ interface Tr31KeyBlockMember {
215
+ Tr31KeyBlock: ExportTr31KeyBlock;
216
+ Tr34KeyBlock?: never;
217
+ $unknown?: never;
218
+ }
219
+ interface Tr34KeyBlockMember {
220
+ Tr31KeyBlock?: never;
221
+ Tr34KeyBlock: ExportTr34KeyBlock;
222
+ $unknown?: never;
223
+ }
224
+ interface $UnknownMember {
225
+ Tr31KeyBlock?: never;
226
+ Tr34KeyBlock?: never;
227
+ $unknown: [string, any];
228
+ }
229
+ interface Visitor<T> {
230
+ Tr31KeyBlock: (value: ExportTr31KeyBlock) => T;
231
+ Tr34KeyBlock: (value: ExportTr34KeyBlock) => T;
232
+ _: (name: string, value: any) => T;
233
+ }
234
+ const visit: <T>(value: ExportKeyMaterial, visitor: Visitor<T>) => T;
235
+ }
236
+ export interface ExportKeyInput {
237
+ KeyMaterial: ExportKeyMaterial | undefined;
238
+ ExportKeyIdentifier: string | undefined;
239
+ }
240
+ export declare const WrappedKeyMaterialFormat: {
241
+ readonly KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM";
242
+ readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
243
+ readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
244
+ };
245
+ export type WrappedKeyMaterialFormat =
246
+ (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat];
247
+ export interface WrappedKey {
248
+ WrappingKeyArn: string | undefined;
249
+ WrappedKeyMaterialFormat: WrappedKeyMaterialFormat | string | undefined;
250
+ KeyMaterial: string | undefined;
251
+ }
252
+ export interface ExportKeyOutput {
253
+ WrappedKey?: WrappedKey;
254
+ }
255
+ export interface GetAliasInput {
256
+ AliasName: string | undefined;
257
+ }
258
+ export interface GetAliasOutput {
259
+ Alias: Alias | undefined;
260
+ }
261
+ export interface GetKeyInput {
262
+ KeyIdentifier: string | undefined;
263
+ }
264
+ export interface GetKeyOutput {
265
+ Key: Key | undefined;
266
+ }
267
+ export declare const KeyMaterialType: {
268
+ readonly ROOT_PUBLIC_KEY_CERTIFICATE: "ROOT_PUBLIC_KEY_CERTIFICATE";
269
+ readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
270
+ readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
271
+ readonly TRUSTED_PUBLIC_KEY_CERTIFICATE: "TRUSTED_PUBLIC_KEY_CERTIFICATE";
272
+ };
273
+ export type KeyMaterialType =
274
+ (typeof KeyMaterialType)[keyof typeof KeyMaterialType];
275
+ export interface GetParametersForExportInput {
276
+ KeyMaterialType: KeyMaterialType | string | undefined;
277
+ SigningKeyAlgorithm: KeyAlgorithm | string | undefined;
278
+ }
279
+ export interface GetParametersForExportOutput {
280
+ SigningKeyCertificate: string | undefined;
281
+ SigningKeyCertificateChain: string | undefined;
282
+ SigningKeyAlgorithm: KeyAlgorithm | string | undefined;
283
+ ExportToken: string | undefined;
284
+ ParametersValidUntilTimestamp: Date | undefined;
285
+ }
286
+ export interface GetParametersForImportInput {
287
+ KeyMaterialType: KeyMaterialType | string | undefined;
288
+ WrappingKeyAlgorithm: KeyAlgorithm | string | undefined;
289
+ }
290
+ export interface GetParametersForImportOutput {
291
+ WrappingKeyCertificate: string | undefined;
292
+ WrappingKeyCertificateChain: string | undefined;
293
+ WrappingKeyAlgorithm: KeyAlgorithm | string | undefined;
294
+ ImportToken: string | undefined;
295
+ ParametersValidUntilTimestamp: Date | undefined;
296
+ }
297
+ export interface GetPublicKeyCertificateInput {
298
+ KeyIdentifier: string | undefined;
299
+ }
300
+ export interface GetPublicKeyCertificateOutput {
301
+ KeyCertificate: string | undefined;
302
+ KeyCertificateChain: string | undefined;
303
+ }
304
+ export interface RootCertificatePublicKey {
305
+ KeyAttributes: KeyAttributes | undefined;
306
+ PublicKeyCertificate: string | undefined;
307
+ }
308
+ export interface ImportTr31KeyBlock {
309
+ WrappingKeyIdentifier: string | undefined;
310
+ WrappedKeyBlock: string | undefined;
311
+ }
312
+ export interface ImportTr34KeyBlock {
313
+ CertificateAuthorityPublicKeyIdentifier: string | undefined;
314
+ SigningKeyCertificate: string | undefined;
315
+ ImportToken: string | undefined;
316
+ WrappedKeyBlock: string | undefined;
317
+ KeyBlockFormat: Tr34KeyBlockFormat | string | undefined;
318
+ RandomNonce?: string;
319
+ }
320
+ export interface TrustedCertificatePublicKey {
321
+ KeyAttributes: KeyAttributes | undefined;
322
+ PublicKeyCertificate: string | undefined;
323
+ CertificateAuthorityPublicKeyIdentifier: string | undefined;
324
+ }
325
+ export type ImportKeyMaterial =
326
+ | ImportKeyMaterial.RootCertificatePublicKeyMember
327
+ | ImportKeyMaterial.Tr31KeyBlockMember
328
+ | ImportKeyMaterial.Tr34KeyBlockMember
329
+ | ImportKeyMaterial.TrustedCertificatePublicKeyMember
330
+ | ImportKeyMaterial.$UnknownMember;
331
+ export declare namespace ImportKeyMaterial {
332
+ interface RootCertificatePublicKeyMember {
333
+ RootCertificatePublicKey: RootCertificatePublicKey;
334
+ TrustedCertificatePublicKey?: never;
335
+ Tr31KeyBlock?: never;
336
+ Tr34KeyBlock?: never;
337
+ $unknown?: never;
338
+ }
339
+ interface TrustedCertificatePublicKeyMember {
340
+ RootCertificatePublicKey?: never;
341
+ TrustedCertificatePublicKey: TrustedCertificatePublicKey;
342
+ Tr31KeyBlock?: never;
343
+ Tr34KeyBlock?: never;
344
+ $unknown?: never;
345
+ }
346
+ interface Tr31KeyBlockMember {
347
+ RootCertificatePublicKey?: never;
348
+ TrustedCertificatePublicKey?: never;
349
+ Tr31KeyBlock: ImportTr31KeyBlock;
350
+ Tr34KeyBlock?: never;
351
+ $unknown?: never;
352
+ }
353
+ interface Tr34KeyBlockMember {
354
+ RootCertificatePublicKey?: never;
355
+ TrustedCertificatePublicKey?: never;
356
+ Tr31KeyBlock?: never;
357
+ Tr34KeyBlock: ImportTr34KeyBlock;
358
+ $unknown?: never;
359
+ }
360
+ interface $UnknownMember {
361
+ RootCertificatePublicKey?: never;
362
+ TrustedCertificatePublicKey?: never;
363
+ Tr31KeyBlock?: never;
364
+ Tr34KeyBlock?: never;
365
+ $unknown: [string, any];
366
+ }
367
+ interface Visitor<T> {
368
+ RootCertificatePublicKey: (value: RootCertificatePublicKey) => T;
369
+ TrustedCertificatePublicKey: (value: TrustedCertificatePublicKey) => T;
370
+ Tr31KeyBlock: (value: ImportTr31KeyBlock) => T;
371
+ Tr34KeyBlock: (value: ImportTr34KeyBlock) => T;
372
+ _: (name: string, value: any) => T;
373
+ }
374
+ const visit: <T>(value: ImportKeyMaterial, visitor: Visitor<T>) => T;
375
+ }
376
+ export interface ImportKeyInput {
377
+ KeyMaterial: ImportKeyMaterial | undefined;
378
+ KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | string;
379
+ Enabled?: boolean;
380
+ Tags?: Tag[];
381
+ }
382
+ export interface ImportKeyOutput {
383
+ Key: Key | undefined;
384
+ }
385
+ export interface KeySummary {
386
+ KeyArn: string | undefined;
387
+ KeyState: KeyState | string | undefined;
388
+ KeyAttributes: KeyAttributes | undefined;
389
+ KeyCheckValue: string | undefined;
390
+ Exportable: boolean | undefined;
391
+ Enabled: boolean | undefined;
392
+ }
393
+ export interface ListAliasesInput {
394
+ NextToken?: string;
395
+ MaxResults?: number;
396
+ }
397
+ export interface ListAliasesOutput {
398
+ Aliases: Alias[] | undefined;
399
+ NextToken?: string;
400
+ }
401
+ export interface ListKeysInput {
402
+ KeyState?: KeyState | string;
403
+ NextToken?: string;
404
+ MaxResults?: number;
405
+ }
406
+ export interface ListKeysOutput {
407
+ Keys: KeySummary[] | undefined;
408
+ NextToken?: string;
409
+ }
410
+ export interface ListTagsForResourceInput {
411
+ ResourceArn: string | undefined;
412
+ NextToken?: string;
413
+ MaxResults?: number;
414
+ }
415
+ export interface ListTagsForResourceOutput {
416
+ Tags: Tag[] | undefined;
417
+ NextToken?: string;
418
+ }
419
+ export interface RestoreKeyInput {
420
+ KeyIdentifier: string | undefined;
421
+ }
422
+ export interface RestoreKeyOutput {
423
+ Key: Key | undefined;
424
+ }
425
+ export interface StartKeyUsageInput {
426
+ KeyIdentifier: string | undefined;
427
+ }
428
+ export interface StartKeyUsageOutput {
429
+ Key: Key | undefined;
430
+ }
431
+ export interface StopKeyUsageInput {
432
+ KeyIdentifier: string | undefined;
433
+ }
434
+ export interface StopKeyUsageOutput {
435
+ Key: Key | undefined;
436
+ }
437
+ export interface TagResourceInput {
438
+ ResourceArn: string | undefined;
439
+ Tags: Tag[] | undefined;
440
+ }
441
+ export interface TagResourceOutput {}
442
+ export interface UntagResourceInput {
443
+ ResourceArn: string | undefined;
444
+ TagKeys: string[] | undefined;
445
+ }
446
+ export interface UntagResourceOutput {}
447
+ export interface UpdateAliasInput {
448
+ AliasName: string | undefined;
449
+ KeyArn?: string;
450
+ }
451
+ export interface UpdateAliasOutput {
452
+ Alias: Alias | undefined;
453
+ }
454
+ export declare const ExportTr34KeyBlockFilterSensitiveLog: (
455
+ obj: ExportTr34KeyBlock
456
+ ) => any;
457
+ export declare const ExportKeyMaterialFilterSensitiveLog: (
458
+ obj: ExportKeyMaterial
459
+ ) => any;
460
+ export declare const ExportKeyInputFilterSensitiveLog: (
461
+ obj: ExportKeyInput
462
+ ) => any;
463
+ export declare const WrappedKeyFilterSensitiveLog: (obj: WrappedKey) => any;
464
+ export declare const ExportKeyOutputFilterSensitiveLog: (
465
+ obj: ExportKeyOutput
466
+ ) => any;
467
+ export declare const GetParametersForExportOutputFilterSensitiveLog: (
468
+ obj: GetParametersForExportOutput
469
+ ) => any;
470
+ export declare const GetParametersForImportOutputFilterSensitiveLog: (
471
+ obj: GetParametersForImportOutput
472
+ ) => any;
473
+ export declare const GetPublicKeyCertificateOutputFilterSensitiveLog: (
474
+ obj: GetPublicKeyCertificateOutput
475
+ ) => any;
476
+ export declare const RootCertificatePublicKeyFilterSensitiveLog: (
477
+ obj: RootCertificatePublicKey
478
+ ) => any;
479
+ export declare const ImportTr34KeyBlockFilterSensitiveLog: (
480
+ obj: ImportTr34KeyBlock
481
+ ) => any;
482
+ export declare const TrustedCertificatePublicKeyFilterSensitiveLog: (
483
+ obj: TrustedCertificatePublicKey
484
+ ) => any;
485
+ export declare const ImportKeyMaterialFilterSensitiveLog: (
486
+ obj: ImportKeyMaterial
487
+ ) => any;
488
+ export declare const ImportKeyInputFilterSensitiveLog: (
489
+ obj: ImportKeyInput
490
+ ) => any;
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+ import { PaymentCryptographyClient } from "../PaymentCryptographyClient";
3
+ export interface PaymentCryptographyPaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: PaymentCryptographyClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListAliasesCommandInput,
4
+ ListAliasesCommandOutput,
5
+ } from "../commands/ListAliasesCommand";
6
+ import { PaymentCryptographyPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListAliases(
8
+ config: PaymentCryptographyPaginationConfiguration,
9
+ input: ListAliasesCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListAliasesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListKeysCommandInput,
4
+ ListKeysCommandOutput,
5
+ } from "../commands/ListKeysCommand";
6
+ import { PaymentCryptographyPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListKeys(
8
+ config: PaymentCryptographyPaginationConfiguration,
9
+ input: ListKeysCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListKeysCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListTagsForResourceCommandInput,
4
+ ListTagsForResourceCommandOutput,
5
+ } from "../commands/ListTagsForResourceCommand";
6
+ import { PaymentCryptographyPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListTagsForResource(
8
+ config: PaymentCryptographyPaginationConfiguration,
9
+ input: ListTagsForResourceCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListTagsForResourceCommandOutput>;
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAliasesPaginator";
3
+ export * from "./ListKeysPaginator";
4
+ export * from "./ListTagsForResourcePaginator";