@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,121 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetAliasInput, GetAliasOutput } from "../models/models_0";
5
+ import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAliasCommand}.
14
+ */
15
+ export interface GetAliasCommandInput extends GetAliasInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAliasCommand}.
21
+ */
22
+ export interface GetAliasCommandOutput extends GetAliasOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Gets the Amazon Web Services Payment Cryptography key associated with the alias.</p>
27
+ * <p>
28
+ * <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
29
+ * <p>
30
+ * <b>Related operations:</b>
31
+ * </p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>
35
+ * <a>CreateAlias</a>
36
+ * </p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <a>DeleteAlias</a>
41
+ * </p>
42
+ * </li>
43
+ * <li>
44
+ * <p>
45
+ * <a>ListAliases</a>
46
+ * </p>
47
+ * </li>
48
+ * <li>
49
+ * <p>
50
+ * <a>UpdateAlias</a>
51
+ * </p>
52
+ * </li>
53
+ * </ul>
54
+ * @example
55
+ * Use a bare-bones client and the command you need to make an API call.
56
+ * ```javascript
57
+ * import { PaymentCryptographyClient, GetAliasCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
58
+ * // const { PaymentCryptographyClient, GetAliasCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
59
+ * const client = new PaymentCryptographyClient(config);
60
+ * const input = { // GetAliasInput
61
+ * AliasName: "STRING_VALUE", // required
62
+ * };
63
+ * const command = new GetAliasCommand(input);
64
+ * const response = await client.send(command);
65
+ * // { // GetAliasOutput
66
+ * // Alias: { // Alias
67
+ * // AliasName: "STRING_VALUE", // required
68
+ * // KeyArn: "STRING_VALUE",
69
+ * // },
70
+ * // };
71
+ *
72
+ * ```
73
+ *
74
+ * @param GetAliasCommandInput - {@link GetAliasCommandInput}
75
+ * @returns {@link GetAliasCommandOutput}
76
+ * @see {@link GetAliasCommandInput} for command's `input` shape.
77
+ * @see {@link GetAliasCommandOutput} for command's `response` shape.
78
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
79
+ *
80
+ * @throws {@link AccessDeniedException} (client fault)
81
+ * <p>You do not have sufficient access to perform this action.</p>
82
+ *
83
+ * @throws {@link InternalServerException} (server fault)
84
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
85
+ *
86
+ * @throws {@link ResourceNotFoundException} (client fault)
87
+ * <p>The request was denied due to an invalid resource error.</p>
88
+ *
89
+ * @throws {@link ServiceUnavailableException} (server fault)
90
+ * <p>The service cannot complete the request.</p>
91
+ *
92
+ * @throws {@link ThrottlingException} (client fault)
93
+ * <p>The request was denied due to request throttling.</p>
94
+ *
95
+ * @throws {@link ValidationException} (client fault)
96
+ * <p>The request was denied due to an invalid request error.</p>
97
+ *
98
+ * @throws {@link PaymentCryptographyServiceException}
99
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
100
+ *
101
+ */
102
+ export declare class GetAliasCommand extends $Command<GetAliasCommandInput, GetAliasCommandOutput, PaymentCryptographyClientResolvedConfig> {
103
+ readonly input: GetAliasCommandInput;
104
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
105
+ /**
106
+ * @public
107
+ */
108
+ constructor(input: GetAliasCommandInput);
109
+ /**
110
+ * @internal
111
+ */
112
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAliasCommandInput, GetAliasCommandOutput>;
113
+ /**
114
+ * @internal
115
+ */
116
+ private serialize;
117
+ /**
118
+ * @internal
119
+ */
120
+ private deserialize;
121
+ }
@@ -0,0 +1,142 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetKeyInput, GetKeyOutput } from "../models/models_0";
5
+ import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetKeyCommand}.
14
+ */
15
+ export interface GetKeyCommandInput extends GetKeyInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetKeyCommand}.
21
+ */
22
+ export interface GetKeyCommandOutput extends GetKeyOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Gets the key material for an Amazon Web Services Payment Cryptography key, including the immutable and mutable data specified when the key was created.</p>
27
+ * <p>
28
+ * <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
29
+ * <p>
30
+ * <b>Related operations:</b>
31
+ * </p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>
35
+ * <a>CreateKey</a>
36
+ * </p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <a>DeleteKey</a>
41
+ * </p>
42
+ * </li>
43
+ * <li>
44
+ * <p>
45
+ * <a>ListKeys</a>
46
+ * </p>
47
+ * </li>
48
+ * </ul>
49
+ * @example
50
+ * Use a bare-bones client and the command you need to make an API call.
51
+ * ```javascript
52
+ * import { PaymentCryptographyClient, GetKeyCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
53
+ * // const { PaymentCryptographyClient, GetKeyCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
54
+ * const client = new PaymentCryptographyClient(config);
55
+ * const input = { // GetKeyInput
56
+ * KeyIdentifier: "STRING_VALUE", // required
57
+ * };
58
+ * const command = new GetKeyCommand(input);
59
+ * const response = await client.send(command);
60
+ * // { // GetKeyOutput
61
+ * // Key: { // Key
62
+ * // KeyArn: "STRING_VALUE", // required
63
+ * // KeyAttributes: { // KeyAttributes
64
+ * // KeyUsage: "STRING_VALUE", // required
65
+ * // KeyClass: "STRING_VALUE", // required
66
+ * // KeyAlgorithm: "STRING_VALUE", // required
67
+ * // KeyModesOfUse: { // KeyModesOfUse
68
+ * // Encrypt: true || false,
69
+ * // Decrypt: true || false,
70
+ * // Wrap: true || false,
71
+ * // Unwrap: true || false,
72
+ * // Generate: true || false,
73
+ * // Sign: true || false,
74
+ * // Verify: true || false,
75
+ * // DeriveKey: true || false,
76
+ * // NoRestrictions: true || false,
77
+ * // },
78
+ * // },
79
+ * // KeyCheckValue: "STRING_VALUE", // required
80
+ * // KeyCheckValueAlgorithm: "STRING_VALUE", // required
81
+ * // Enabled: true || false, // required
82
+ * // Exportable: true || false, // required
83
+ * // KeyState: "STRING_VALUE", // required
84
+ * // KeyOrigin: "STRING_VALUE", // required
85
+ * // CreateTimestamp: new Date("TIMESTAMP"), // required
86
+ * // UsageStartTimestamp: new Date("TIMESTAMP"),
87
+ * // UsageStopTimestamp: new Date("TIMESTAMP"),
88
+ * // DeletePendingTimestamp: new Date("TIMESTAMP"),
89
+ * // DeleteTimestamp: new Date("TIMESTAMP"),
90
+ * // },
91
+ * // };
92
+ *
93
+ * ```
94
+ *
95
+ * @param GetKeyCommandInput - {@link GetKeyCommandInput}
96
+ * @returns {@link GetKeyCommandOutput}
97
+ * @see {@link GetKeyCommandInput} for command's `input` shape.
98
+ * @see {@link GetKeyCommandOutput} for command's `response` shape.
99
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
100
+ *
101
+ * @throws {@link AccessDeniedException} (client fault)
102
+ * <p>You do not have sufficient access to perform this action.</p>
103
+ *
104
+ * @throws {@link InternalServerException} (server fault)
105
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
106
+ *
107
+ * @throws {@link ResourceNotFoundException} (client fault)
108
+ * <p>The request was denied due to an invalid resource error.</p>
109
+ *
110
+ * @throws {@link ServiceUnavailableException} (server fault)
111
+ * <p>The service cannot complete the request.</p>
112
+ *
113
+ * @throws {@link ThrottlingException} (client fault)
114
+ * <p>The request was denied due to request throttling.</p>
115
+ *
116
+ * @throws {@link ValidationException} (client fault)
117
+ * <p>The request was denied due to an invalid request error.</p>
118
+ *
119
+ * @throws {@link PaymentCryptographyServiceException}
120
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
121
+ *
122
+ */
123
+ export declare class GetKeyCommand extends $Command<GetKeyCommandInput, GetKeyCommandOutput, PaymentCryptographyClientResolvedConfig> {
124
+ readonly input: GetKeyCommandInput;
125
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
126
+ /**
127
+ * @public
128
+ */
129
+ constructor(input: GetKeyCommandInput);
130
+ /**
131
+ * @internal
132
+ */
133
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetKeyCommandInput, GetKeyCommandOutput>;
134
+ /**
135
+ * @internal
136
+ */
137
+ private serialize;
138
+ /**
139
+ * @internal
140
+ */
141
+ private deserialize;
142
+ }
@@ -0,0 +1,120 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetParametersForExportInput, GetParametersForExportOutput } from "../models/models_0";
5
+ import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetParametersForExportCommand}.
14
+ */
15
+ export interface GetParametersForExportCommandInput extends GetParametersForExportInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetParametersForExportCommand}.
21
+ */
22
+ export interface GetParametersForExportCommandOutput extends GetParametersForExportOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Gets the export token and the signing key certificate to initiate a TR-34 key export from Amazon Web Services Payment Cryptography.</p>
27
+ * <p>The signing key certificate signs the wrapped key under export within the TR-34 key payload. The export token and signing key certificate must be in place and operational before calling <a>ExportKey</a>. The export token expires in 7 days. You can use the same export token to export multiple keys from your service account.</p>
28
+ * <p>
29
+ * <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
30
+ * <p>
31
+ * <b>Related operations:</b>
32
+ * </p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>
36
+ * <a>ExportKey</a>
37
+ * </p>
38
+ * </li>
39
+ * <li>
40
+ * <p>
41
+ * <a>GetParametersForImport</a>
42
+ * </p>
43
+ * </li>
44
+ * </ul>
45
+ * @example
46
+ * Use a bare-bones client and the command you need to make an API call.
47
+ * ```javascript
48
+ * import { PaymentCryptographyClient, GetParametersForExportCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
49
+ * // const { PaymentCryptographyClient, GetParametersForExportCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
50
+ * const client = new PaymentCryptographyClient(config);
51
+ * const input = { // GetParametersForExportInput
52
+ * KeyMaterialType: "STRING_VALUE", // required
53
+ * SigningKeyAlgorithm: "STRING_VALUE", // required
54
+ * };
55
+ * const command = new GetParametersForExportCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // GetParametersForExportOutput
58
+ * // SigningKeyCertificate: "STRING_VALUE", // required
59
+ * // SigningKeyCertificateChain: "STRING_VALUE", // required
60
+ * // SigningKeyAlgorithm: "STRING_VALUE", // required
61
+ * // ExportToken: "STRING_VALUE", // required
62
+ * // ParametersValidUntilTimestamp: new Date("TIMESTAMP"), // required
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param GetParametersForExportCommandInput - {@link GetParametersForExportCommandInput}
68
+ * @returns {@link GetParametersForExportCommandOutput}
69
+ * @see {@link GetParametersForExportCommandInput} for command's `input` shape.
70
+ * @see {@link GetParametersForExportCommandOutput} for command's `response` shape.
71
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>You do not have sufficient access to perform this action.</p>
75
+ *
76
+ * @throws {@link ConflictException} (client fault)
77
+ * <p>This request can cause an inconsistent state for the resource.</p>
78
+ *
79
+ * @throws {@link InternalServerException} (server fault)
80
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>The request was denied due to an invalid resource error.</p>
84
+ *
85
+ * @throws {@link ServiceQuotaExceededException} (client fault)
86
+ * <p>This request would cause a service quota to be exceeded.</p>
87
+ *
88
+ * @throws {@link ServiceUnavailableException} (server fault)
89
+ * <p>The service cannot complete the request.</p>
90
+ *
91
+ * @throws {@link ThrottlingException} (client fault)
92
+ * <p>The request was denied due to request throttling.</p>
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ * <p>The request was denied due to an invalid request error.</p>
96
+ *
97
+ * @throws {@link PaymentCryptographyServiceException}
98
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
99
+ *
100
+ */
101
+ export declare class GetParametersForExportCommand extends $Command<GetParametersForExportCommandInput, GetParametersForExportCommandOutput, PaymentCryptographyClientResolvedConfig> {
102
+ readonly input: GetParametersForExportCommandInput;
103
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
104
+ /**
105
+ * @public
106
+ */
107
+ constructor(input: GetParametersForExportCommandInput);
108
+ /**
109
+ * @internal
110
+ */
111
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetParametersForExportCommandInput, GetParametersForExportCommandOutput>;
112
+ /**
113
+ * @internal
114
+ */
115
+ private serialize;
116
+ /**
117
+ * @internal
118
+ */
119
+ private deserialize;
120
+ }
@@ -0,0 +1,120 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetParametersForImportInput, GetParametersForImportOutput } from "../models/models_0";
5
+ import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetParametersForImportCommand}.
14
+ */
15
+ export interface GetParametersForImportCommandInput extends GetParametersForImportInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetParametersForImportCommand}.
21
+ */
22
+ export interface GetParametersForImportCommandOutput extends GetParametersForImportOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Gets the import token and the wrapping key certificate to initiate a TR-34 key import into Amazon Web Services Payment Cryptography.</p>
27
+ * <p>The wrapping key certificate wraps the key under import within the TR-34 key payload. The import token and wrapping key certificate must be in place and operational before calling <a>ImportKey</a>. The import token expires in 7 days. The same import token can be used to import multiple keys into your service account.</p>
28
+ * <p>
29
+ * <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
30
+ * <p>
31
+ * <b>Related operations:</b>
32
+ * </p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>
36
+ * <a>GetParametersForExport</a>
37
+ * </p>
38
+ * </li>
39
+ * <li>
40
+ * <p>
41
+ * <a>ImportKey</a>
42
+ * </p>
43
+ * </li>
44
+ * </ul>
45
+ * @example
46
+ * Use a bare-bones client and the command you need to make an API call.
47
+ * ```javascript
48
+ * import { PaymentCryptographyClient, GetParametersForImportCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
49
+ * // const { PaymentCryptographyClient, GetParametersForImportCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
50
+ * const client = new PaymentCryptographyClient(config);
51
+ * const input = { // GetParametersForImportInput
52
+ * KeyMaterialType: "STRING_VALUE", // required
53
+ * WrappingKeyAlgorithm: "STRING_VALUE", // required
54
+ * };
55
+ * const command = new GetParametersForImportCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // GetParametersForImportOutput
58
+ * // WrappingKeyCertificate: "STRING_VALUE", // required
59
+ * // WrappingKeyCertificateChain: "STRING_VALUE", // required
60
+ * // WrappingKeyAlgorithm: "STRING_VALUE", // required
61
+ * // ImportToken: "STRING_VALUE", // required
62
+ * // ParametersValidUntilTimestamp: new Date("TIMESTAMP"), // required
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param GetParametersForImportCommandInput - {@link GetParametersForImportCommandInput}
68
+ * @returns {@link GetParametersForImportCommandOutput}
69
+ * @see {@link GetParametersForImportCommandInput} for command's `input` shape.
70
+ * @see {@link GetParametersForImportCommandOutput} for command's `response` shape.
71
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>You do not have sufficient access to perform this action.</p>
75
+ *
76
+ * @throws {@link ConflictException} (client fault)
77
+ * <p>This request can cause an inconsistent state for the resource.</p>
78
+ *
79
+ * @throws {@link InternalServerException} (server fault)
80
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>The request was denied due to an invalid resource error.</p>
84
+ *
85
+ * @throws {@link ServiceQuotaExceededException} (client fault)
86
+ * <p>This request would cause a service quota to be exceeded.</p>
87
+ *
88
+ * @throws {@link ServiceUnavailableException} (server fault)
89
+ * <p>The service cannot complete the request.</p>
90
+ *
91
+ * @throws {@link ThrottlingException} (client fault)
92
+ * <p>The request was denied due to request throttling.</p>
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ * <p>The request was denied due to an invalid request error.</p>
96
+ *
97
+ * @throws {@link PaymentCryptographyServiceException}
98
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
99
+ *
100
+ */
101
+ export declare class GetParametersForImportCommand extends $Command<GetParametersForImportCommandInput, GetParametersForImportCommandOutput, PaymentCryptographyClientResolvedConfig> {
102
+ readonly input: GetParametersForImportCommandInput;
103
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
104
+ /**
105
+ * @public
106
+ */
107
+ constructor(input: GetParametersForImportCommandInput);
108
+ /**
109
+ * @internal
110
+ */
111
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetParametersForImportCommandInput, GetParametersForImportCommandOutput>;
112
+ /**
113
+ * @internal
114
+ */
115
+ private serialize;
116
+ /**
117
+ * @internal
118
+ */
119
+ private deserialize;
120
+ }
@@ -0,0 +1,95 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetPublicKeyCertificateInput, GetPublicKeyCertificateOutput } from "../models/models_0";
5
+ import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetPublicKeyCertificateCommand}.
14
+ */
15
+ export interface GetPublicKeyCertificateCommandInput extends GetPublicKeyCertificateInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPublicKeyCertificateCommand}.
21
+ */
22
+ export interface GetPublicKeyCertificateCommandOutput extends GetPublicKeyCertificateOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Gets the public key certificate of the asymmetric key pair that exists within Amazon Web Services Payment Cryptography.</p>
27
+ * <p>Unlike the private key of an asymmetric key, which never leaves Amazon Web Services Payment Cryptography unencrypted, callers with <code>GetPublicKeyCertificate</code> permission can download the public key certificate of the asymmetric key. You can share the public key certificate to allow others to encrypt messages and verify signatures outside of Amazon Web Services Payment Cryptography</p>
28
+ * <p>
29
+ * <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { PaymentCryptographyClient, GetPublicKeyCertificateCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
34
+ * // const { PaymentCryptographyClient, GetPublicKeyCertificateCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
35
+ * const client = new PaymentCryptographyClient(config);
36
+ * const input = { // GetPublicKeyCertificateInput
37
+ * KeyIdentifier: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new GetPublicKeyCertificateCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetPublicKeyCertificateOutput
42
+ * // KeyCertificate: "STRING_VALUE", // required
43
+ * // KeyCertificateChain: "STRING_VALUE", // required
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param GetPublicKeyCertificateCommandInput - {@link GetPublicKeyCertificateCommandInput}
49
+ * @returns {@link GetPublicKeyCertificateCommandOutput}
50
+ * @see {@link GetPublicKeyCertificateCommandInput} for command's `input` shape.
51
+ * @see {@link GetPublicKeyCertificateCommandOutput} for command's `response` shape.
52
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient access to perform this action.</p>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The request was denied due to an invalid resource error.</p>
62
+ *
63
+ * @throws {@link ServiceUnavailableException} (server fault)
64
+ * <p>The service cannot complete the request.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The request was denied due to request throttling.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The request was denied due to an invalid request error.</p>
71
+ *
72
+ * @throws {@link PaymentCryptographyServiceException}
73
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
74
+ *
75
+ */
76
+ export declare class GetPublicKeyCertificateCommand extends $Command<GetPublicKeyCertificateCommandInput, GetPublicKeyCertificateCommandOutput, PaymentCryptographyClientResolvedConfig> {
77
+ readonly input: GetPublicKeyCertificateCommandInput;
78
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
+ /**
80
+ * @public
81
+ */
82
+ constructor(input: GetPublicKeyCertificateCommandInput);
83
+ /**
84
+ * @internal
85
+ */
86
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPublicKeyCertificateCommandInput, GetPublicKeyCertificateCommandOutput>;
87
+ /**
88
+ * @internal
89
+ */
90
+ private serialize;
91
+ /**
92
+ * @internal
93
+ */
94
+ private deserialize;
95
+ }