@aws-sdk/client-payment-cryptography 3.1039.0 → 3.1040.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 (56) hide show
  1. package/README.md +42 -0
  2. package/dist-cjs/index.js +101 -0
  3. package/dist-cjs/models/errors.js +16 -1
  4. package/dist-cjs/schemas/schemas_0.js +131 -7
  5. package/dist-es/PaymentCryptography.js +12 -0
  6. package/dist-es/commands/AssociateMpaTeamCommand.js +16 -0
  7. package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
  8. package/dist-es/commands/DisassociateMpaTeamCommand.js +16 -0
  9. package/dist-es/commands/GetMpaTeamAssociationCommand.js +16 -0
  10. package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
  11. package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
  12. package/dist-es/commands/index.js +6 -0
  13. package/dist-es/models/enums.js +14 -0
  14. package/dist-es/models/errors.js +14 -0
  15. package/dist-es/schemas/schemas_0.js +129 -5
  16. package/dist-types/PaymentCryptography.d.ts +42 -0
  17. package/dist-types/PaymentCryptographyClient.d.ts +8 -2
  18. package/dist-types/commands/AddKeyReplicationRegionsCommand.d.ts +7 -1
  19. package/dist-types/commands/AssociateMpaTeamCommand.d.ts +110 -0
  20. package/dist-types/commands/CreateKeyCommand.d.ts +6 -0
  21. package/dist-types/commands/DeleteKeyCommand.d.ts +7 -1
  22. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +93 -0
  23. package/dist-types/commands/DisassociateMpaTeamCommand.d.ts +109 -0
  24. package/dist-types/commands/ExportKeyCommand.d.ts +1 -1
  25. package/dist-types/commands/GetKeyCommand.d.ts +7 -1
  26. package/dist-types/commands/GetMpaTeamAssociationCommand.d.ts +108 -0
  27. package/dist-types/commands/GetPublicKeyCertificateCommand.d.ts +1 -1
  28. package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
  29. package/dist-types/commands/ImportKeyCommand.d.ts +8 -1
  30. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  31. package/dist-types/commands/PutResourcePolicyCommand.d.ts +103 -0
  32. package/dist-types/commands/RemoveKeyReplicationRegionsCommand.d.ts +7 -1
  33. package/dist-types/commands/RestoreKeyCommand.d.ts +7 -1
  34. package/dist-types/commands/StartKeyUsageCommand.d.ts +7 -1
  35. package/dist-types/commands/StopKeyUsageCommand.d.ts +7 -1
  36. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  37. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  38. package/dist-types/commands/index.d.ts +6 -0
  39. package/dist-types/models/enums.d.ts +38 -0
  40. package/dist-types/models/errors.d.ts +13 -0
  41. package/dist-types/models/models_0.d.ts +208 -1
  42. package/dist-types/schemas/schemas_0.d.ts +21 -0
  43. package/dist-types/ts3.4/PaymentCryptography.d.ts +102 -0
  44. package/dist-types/ts3.4/PaymentCryptographyClient.d.ts +36 -0
  45. package/dist-types/ts3.4/commands/AssociateMpaTeamCommand.d.ts +50 -0
  46. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/DisassociateMpaTeamCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/GetMpaTeamAssociationCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +50 -0
  50. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +50 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  52. package/dist-types/ts3.4/models/enums.d.ts +18 -0
  53. package/dist-types/ts3.4/models/errors.d.ts +8 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +57 -0
  55. package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  56. package/package.json +1 -1
@@ -8,24 +8,30 @@ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __Smit
8
8
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import type { AddKeyReplicationRegionsCommandInput, AddKeyReplicationRegionsCommandOutput } from "./commands/AddKeyReplicationRegionsCommand";
11
+ import type { AssociateMpaTeamCommandInput, AssociateMpaTeamCommandOutput } from "./commands/AssociateMpaTeamCommand";
11
12
  import type { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
12
13
  import type { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
13
14
  import type { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
14
15
  import type { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
16
+ import type { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
15
17
  import type { DisableDefaultKeyReplicationRegionsCommandInput, DisableDefaultKeyReplicationRegionsCommandOutput } from "./commands/DisableDefaultKeyReplicationRegionsCommand";
18
+ import type { DisassociateMpaTeamCommandInput, DisassociateMpaTeamCommandOutput } from "./commands/DisassociateMpaTeamCommand";
16
19
  import type { EnableDefaultKeyReplicationRegionsCommandInput, EnableDefaultKeyReplicationRegionsCommandOutput } from "./commands/EnableDefaultKeyReplicationRegionsCommand";
17
20
  import type { ExportKeyCommandInput, ExportKeyCommandOutput } from "./commands/ExportKeyCommand";
18
21
  import type { GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
19
22
  import type { GetCertificateSigningRequestCommandInput, GetCertificateSigningRequestCommandOutput } from "./commands/GetCertificateSigningRequestCommand";
20
23
  import type { GetDefaultKeyReplicationRegionsCommandInput, GetDefaultKeyReplicationRegionsCommandOutput } from "./commands/GetDefaultKeyReplicationRegionsCommand";
21
24
  import type { GetKeyCommandInput, GetKeyCommandOutput } from "./commands/GetKeyCommand";
25
+ import type { GetMpaTeamAssociationCommandInput, GetMpaTeamAssociationCommandOutput } from "./commands/GetMpaTeamAssociationCommand";
22
26
  import type { GetParametersForExportCommandInput, GetParametersForExportCommandOutput } from "./commands/GetParametersForExportCommand";
23
27
  import type { GetParametersForImportCommandInput, GetParametersForImportCommandOutput } from "./commands/GetParametersForImportCommand";
24
28
  import type { GetPublicKeyCertificateCommandInput, GetPublicKeyCertificateCommandOutput } from "./commands/GetPublicKeyCertificateCommand";
29
+ import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
25
30
  import type { ImportKeyCommandInput, ImportKeyCommandOutput } from "./commands/ImportKeyCommand";
26
31
  import type { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
27
32
  import type { ListKeysCommandInput, ListKeysCommandOutput } from "./commands/ListKeysCommand";
28
33
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
34
+ import type { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
29
35
  import type { RemoveKeyReplicationRegionsCommandInput, RemoveKeyReplicationRegionsCommandOutput } from "./commands/RemoveKeyReplicationRegionsCommand";
30
36
  import type { RestoreKeyCommandInput, RestoreKeyCommandOutput } from "./commands/RestoreKeyCommand";
31
37
  import type { StartKeyUsageCommandInput, StartKeyUsageCommandOutput } from "./commands/StartKeyUsageCommand";
@@ -39,11 +45,11 @@ export { __Client };
39
45
  /**
40
46
  * @public
41
47
  */
42
- export type ServiceInputTypes = AddKeyReplicationRegionsCommandInput | CreateAliasCommandInput | CreateKeyCommandInput | DeleteAliasCommandInput | DeleteKeyCommandInput | DisableDefaultKeyReplicationRegionsCommandInput | EnableDefaultKeyReplicationRegionsCommandInput | ExportKeyCommandInput | GetAliasCommandInput | GetCertificateSigningRequestCommandInput | GetDefaultKeyReplicationRegionsCommandInput | GetKeyCommandInput | GetParametersForExportCommandInput | GetParametersForImportCommandInput | GetPublicKeyCertificateCommandInput | ImportKeyCommandInput | ListAliasesCommandInput | ListKeysCommandInput | ListTagsForResourceCommandInput | RemoveKeyReplicationRegionsCommandInput | RestoreKeyCommandInput | StartKeyUsageCommandInput | StopKeyUsageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput;
48
+ export type ServiceInputTypes = AddKeyReplicationRegionsCommandInput | AssociateMpaTeamCommandInput | CreateAliasCommandInput | CreateKeyCommandInput | DeleteAliasCommandInput | DeleteKeyCommandInput | DeleteResourcePolicyCommandInput | DisableDefaultKeyReplicationRegionsCommandInput | DisassociateMpaTeamCommandInput | EnableDefaultKeyReplicationRegionsCommandInput | ExportKeyCommandInput | GetAliasCommandInput | GetCertificateSigningRequestCommandInput | GetDefaultKeyReplicationRegionsCommandInput | GetKeyCommandInput | GetMpaTeamAssociationCommandInput | GetParametersForExportCommandInput | GetParametersForImportCommandInput | GetPublicKeyCertificateCommandInput | GetResourcePolicyCommandInput | ImportKeyCommandInput | ListAliasesCommandInput | ListKeysCommandInput | ListTagsForResourceCommandInput | PutResourcePolicyCommandInput | RemoveKeyReplicationRegionsCommandInput | RestoreKeyCommandInput | StartKeyUsageCommandInput | StopKeyUsageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput;
43
49
  /**
44
50
  * @public
45
51
  */
46
- export type ServiceOutputTypes = AddKeyReplicationRegionsCommandOutput | CreateAliasCommandOutput | CreateKeyCommandOutput | DeleteAliasCommandOutput | DeleteKeyCommandOutput | DisableDefaultKeyReplicationRegionsCommandOutput | EnableDefaultKeyReplicationRegionsCommandOutput | ExportKeyCommandOutput | GetAliasCommandOutput | GetCertificateSigningRequestCommandOutput | GetDefaultKeyReplicationRegionsCommandOutput | GetKeyCommandOutput | GetParametersForExportCommandOutput | GetParametersForImportCommandOutput | GetPublicKeyCertificateCommandOutput | ImportKeyCommandOutput | ListAliasesCommandOutput | ListKeysCommandOutput | ListTagsForResourceCommandOutput | RemoveKeyReplicationRegionsCommandOutput | RestoreKeyCommandOutput | StartKeyUsageCommandOutput | StopKeyUsageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput;
52
+ export type ServiceOutputTypes = AddKeyReplicationRegionsCommandOutput | AssociateMpaTeamCommandOutput | CreateAliasCommandOutput | CreateKeyCommandOutput | DeleteAliasCommandOutput | DeleteKeyCommandOutput | DeleteResourcePolicyCommandOutput | DisableDefaultKeyReplicationRegionsCommandOutput | DisassociateMpaTeamCommandOutput | EnableDefaultKeyReplicationRegionsCommandOutput | ExportKeyCommandOutput | GetAliasCommandOutput | GetCertificateSigningRequestCommandOutput | GetDefaultKeyReplicationRegionsCommandOutput | GetKeyCommandOutput | GetMpaTeamAssociationCommandOutput | GetParametersForExportCommandOutput | GetParametersForImportCommandOutput | GetPublicKeyCertificateCommandOutput | GetResourcePolicyCommandOutput | ImportKeyCommandOutput | ListAliasesCommandOutput | ListKeysCommandOutput | ListTagsForResourceCommandOutput | PutResourcePolicyCommandOutput | RemoveKeyReplicationRegionsCommandOutput | RestoreKeyCommandOutput | StartKeyUsageCommandOutput | StopKeyUsageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput;
47
53
  /**
48
54
  * @public
49
55
  */
@@ -27,7 +27,7 @@ declare const AddKeyReplicationRegionsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Adds replication Amazon Web Services Regions to an existing Amazon Web Services Payment Cryptography key, enabling the key to be used for cryptographic operations in additional Amazon Web Services Regions.</p> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-multi-region-replication.html">Multi-Region key replication</a> allow you to use the same key material across multiple Amazon Web Services Regions, providing lower latency for applications distributed across regions. When you add Replication Regions, Amazon Web Services Payment Cryptography securely replicates the key material to the specified Amazon Web Services Regions.</p> <p>The key must be in an active state to add Replication Regions. You can add multiple regions in a single operation, and the key will be available for use in those regions once replication is complete.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_RemoveKeyReplicationRegions.html">RemoveKeyReplicationRegions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_EnableDefaultKeyReplicationRegions.html">EnableDefaultKeyReplicationRegions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetDefaultKeyReplicationRegions.html">GetDefaultKeyReplicationRegions</a> </p> </li> </ul>
30
+ * <p>Adds replication Amazon Web Services Regions to an existing Amazon Web Services Payment Cryptography key, enabling the key to be used for cryptographic operations in additional Amazon Web Services Regions.</p> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-multi-region-replication.html">Multi-Region key replication</a> allow you to use the same key material across multiple Amazon Web Services Regions, providing lower latency for applications distributed across regions. When you add Replication Regions, Amazon Web Services Payment Cryptography securely replicates the key material to the specified Amazon Web Services Regions.</p> <p>The key must be in an active state to add Replication Regions. You can add multiple regions in a single operation, and the key will be available for use in those regions once replication is complete.</p> <p> <b>Cross-account use:</b> This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_RemoveKeyReplicationRegions.html">RemoveKeyReplicationRegions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_EnableDefaultKeyReplicationRegions.html">EnableDefaultKeyReplicationRegions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetDefaultKeyReplicationRegions.html">GetDefaultKeyReplicationRegions</a> </p> </li> </ul>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -84,6 +84,12 @@ declare const AddKeyReplicationRegionsCommand_base: {
84
84
  * // },
85
85
  * // },
86
86
  * // UsingDefaultReplicationRegions: true || false,
87
+ * // MpaStatus: { // MpaStatus
88
+ * // MpaSessionArn: "STRING_VALUE", // required
89
+ * // Status: "STRING_VALUE", // required
90
+ * // InitiationDate: new Date("TIMESTAMP"), // required
91
+ * // StatusMessage: "STRING_VALUE",
92
+ * // },
87
93
  * // },
88
94
  * // };
89
95
  *
@@ -0,0 +1,110 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { AssociateMpaTeamInput, AssociateMpaTeamOutput } from "../models/models_0";
4
+ import type { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AssociateMpaTeamCommand}.
14
+ */
15
+ export interface AssociateMpaTeamCommandInput extends AssociateMpaTeamInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AssociateMpaTeamCommand}.
21
+ */
22
+ export interface AssociateMpaTeamCommandOutput extends AssociateMpaTeamOutput, __MetadataBearer {
23
+ }
24
+ declare const AssociateMpaTeamCommand_base: {
25
+ new (input: AssociateMpaTeamCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateMpaTeamCommandInput, AssociateMpaTeamCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: AssociateMpaTeamCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateMpaTeamCommandInput, AssociateMpaTeamCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Associates a Multi-Party Approval (MPA) team with a protected operation. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/mpa.html">Multi-Party Approval</a> in the <i>Amazon Web Services Payment Cryptography User Guide.</i> </p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DisassociateMpaTeam.html">DisassociateMpaTeam</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetMpaTeamAssociation.html">GetMpaTeamAssociation</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PaymentCryptographyClient, AssociateMpaTeamCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
35
+ * // const { PaymentCryptographyClient, AssociateMpaTeamCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
36
+ * // import type { PaymentCryptographyClientConfig } from "@aws-sdk/client-payment-cryptography";
37
+ * const config = {}; // type is PaymentCryptographyClientConfig
38
+ * const client = new PaymentCryptographyClient(config);
39
+ * const input = { // AssociateMpaTeamInput
40
+ * Action: "STRING_VALUE", // required
41
+ * MpaTeamArn: "STRING_VALUE", // required
42
+ * RequesterComment: "STRING_VALUE",
43
+ * };
44
+ * const command = new AssociateMpaTeamCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // AssociateMpaTeamOutput
47
+ * // MpaTeamAssociation: { // MpaTeamAssociation
48
+ * // Action: "STRING_VALUE", // required
49
+ * // MpaTeamArn: "STRING_VALUE", // required
50
+ * // AssociationState: "STRING_VALUE", // required
51
+ * // MpaStatus: { // MpaStatus
52
+ * // MpaSessionArn: "STRING_VALUE", // required
53
+ * // Status: "STRING_VALUE", // required
54
+ * // InitiationDate: new Date("TIMESTAMP"), // required
55
+ * // StatusMessage: "STRING_VALUE",
56
+ * // },
57
+ * // },
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param AssociateMpaTeamCommandInput - {@link AssociateMpaTeamCommandInput}
63
+ * @returns {@link AssociateMpaTeamCommandOutput}
64
+ * @see {@link AssociateMpaTeamCommandInput} for command's `input` shape.
65
+ * @see {@link AssociateMpaTeamCommandOutput} for command's `response` shape.
66
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p> <p>This exception is thrown when the caller lacks the necessary IAM permissions to perform the requested operation. Verify that your IAM policy includes the required permissions for the specific Amazon Web Services Payment Cryptography action you're attempting.</p>
70
+ *
71
+ * @throws {@link ConflictException} (client fault)
72
+ * <p>This request can cause an inconsistent state for the resource.</p> <p>The requested operation conflicts with the current state of the resource. For example, attempting to delete a key that is currently being used, or trying to create a resource that already exists.</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p> <p>This indicates a server-side error within the Amazon Web Services Payment Cryptography service. If this error persists, contact support for assistance.</p>
76
+ *
77
+ * @throws {@link ResourceNotFoundException} (client fault)
78
+ * <p>The request was denied due to resource not found.</p> <p>The specified key, alias, or other resource does not exist in your account or region. Verify that the resource identifier is correct and that the resource exists in the expected region.</p>
79
+ *
80
+ * @throws {@link ServiceQuotaExceededException} (client fault)
81
+ * <p>This request would cause a service quota to be exceeded.</p> <p>You have reached the maximum number of keys, aliases, or other resources allowed in your account. Review your current usage and consider deleting unused resources or requesting a quota increase.</p>
82
+ *
83
+ * @throws {@link ServiceUnavailableException} (server fault)
84
+ * <p>The service cannot complete the request.</p> <p>The Amazon Web Services Payment Cryptography service is temporarily unavailable. This is typically a temporary condition - retry your request after a brief delay.</p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>The request was denied due to request throttling.</p> <p>You have exceeded the rate limits for Amazon Web Services Payment Cryptography API calls. Implement exponential backoff and retry logic in your application to handle throttling gracefully.</p>
88
+ *
89
+ * @throws {@link ValidationException} (client fault)
90
+ * <p>The request was denied due to an invalid request error.</p> <p>One or more parameters in your request are invalid. Check the parameter values, formats, and constraints specified in the API documentation.</p>
91
+ *
92
+ * @throws {@link PaymentCryptographyServiceException}
93
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
94
+ *
95
+ *
96
+ * @public
97
+ */
98
+ export declare class AssociateMpaTeamCommand extends AssociateMpaTeamCommand_base {
99
+ /** @internal type navigation helper, not in runtime. */
100
+ protected static __types: {
101
+ api: {
102
+ input: AssociateMpaTeamInput;
103
+ output: AssociateMpaTeamOutput;
104
+ };
105
+ sdk: {
106
+ input: AssociateMpaTeamCommandInput;
107
+ output: AssociateMpaTeamCommandOutput;
108
+ };
109
+ };
110
+ }
@@ -109,6 +109,12 @@ declare const CreateKeyCommand_base: {
109
109
  * // },
110
110
  * // },
111
111
  * // UsingDefaultReplicationRegions: true || false,
112
+ * // MpaStatus: { // MpaStatus
113
+ * // MpaSessionArn: "STRING_VALUE", // required
114
+ * // Status: "STRING_VALUE", // required
115
+ * // InitiationDate: new Date("TIMESTAMP"), // required
116
+ * // StatusMessage: "STRING_VALUE",
117
+ * // },
112
118
  * // },
113
119
  * // };
114
120
  *
@@ -27,7 +27,7 @@ declare const DeleteKeyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes the key material and metadata associated with Amazon Web Services Payment Cryptography key.</p> <p>Key deletion is irreversible. After a key is deleted, you can't perform cryptographic operations using the key. For example, you can't decrypt data that was encrypted by a deleted Amazon Web Services Payment Cryptography key, and the data may become unrecoverable. Because key deletion is destructive, Amazon Web Services Payment Cryptography has a safety mechanism to prevent accidental deletion of a key. When you call this operation, Amazon Web Services Payment Cryptography disables the specified key but doesn't delete it until after a waiting period set using <code>DeleteKeyInDays</code>. The default waiting period is 7 days. During the waiting period, the <code>KeyState</code> is <code>DELETE_PENDING</code>. After the key is deleted, the <code>KeyState</code> is <code>DELETE_COMPLETE</code>.</p> <p>You should delete a key only when you are sure that you don't need to use it anymore and no other parties are utilizing this key. If you aren't sure, consider deactivating it instead by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html">StopKeyUsage</a>.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_RestoreKey.html">RestoreKey</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StartKeyUsage.html">StartKeyUsage</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html">StopKeyUsage</a> </p> </li> </ul>
30
+ * <p>Deletes the key material and metadata associated with Amazon Web Services Payment Cryptography key.</p> <p>Key deletion is irreversible. After a key is deleted, you can't perform cryptographic operations using the key. For example, you can't decrypt data that was encrypted by a deleted Amazon Web Services Payment Cryptography key, and the data may become unrecoverable. Because key deletion is destructive, Amazon Web Services Payment Cryptography has a safety mechanism to prevent accidental deletion of a key. When you call this operation, Amazon Web Services Payment Cryptography disables the specified key but doesn't delete it until after a waiting period set using <code>DeleteKeyInDays</code>. The default waiting period is 7 days. During the waiting period, the <code>KeyState</code> is <code>DELETE_PENDING</code>. After the key is deleted, the <code>KeyState</code> is <code>DELETE_COMPLETE</code>.</p> <p>You should delete a key only when you are sure that you don't need to use it anymore and no other parties are utilizing this key. If you aren't sure, consider deactivating it instead by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html">StopKeyUsage</a>.</p> <p> <b>Cross-account use:</b> This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_RestoreKey.html">RestoreKey</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StartKeyUsage.html">StartKeyUsage</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html">StopKeyUsage</a> </p> </li> </ul>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -82,6 +82,12 @@ declare const DeleteKeyCommand_base: {
82
82
  * // },
83
83
  * // },
84
84
  * // UsingDefaultReplicationRegions: true || false,
85
+ * // MpaStatus: { // MpaStatus
86
+ * // MpaSessionArn: "STRING_VALUE", // required
87
+ * // Status: "STRING_VALUE", // required
88
+ * // InitiationDate: new Date("TIMESTAMP"), // required
89
+ * // StatusMessage: "STRING_VALUE",
90
+ * // },
85
91
  * // },
86
92
  * // };
87
93
  *
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteResourcePolicyInput, DeleteResourcePolicyOutput } from "../models/models_0";
4
+ import type { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteResourcePolicyCommand}.
14
+ */
15
+ export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteResourcePolicyCommand}.
21
+ */
22
+ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteResourcePolicyCommand_base: {
25
+ new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Removes the resource-based policy attached to an Amazon Web Services Payment Cryptography key.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_PutResourcePolicy.html">PutResourcePolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetResourcePolicy.html">GetResourcePolicy</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PaymentCryptographyClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
35
+ * // const { PaymentCryptographyClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
36
+ * // import type { PaymentCryptographyClientConfig } from "@aws-sdk/client-payment-cryptography";
37
+ * const config = {}; // type is PaymentCryptographyClientConfig
38
+ * const client = new PaymentCryptographyClient(config);
39
+ * const input = { // DeleteResourcePolicyInput
40
+ * ResourceArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteResourcePolicyCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
49
+ * @returns {@link DeleteResourcePolicyCommandOutput}
50
+ * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteResourcePolicyCommandOutput} 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> <p>This exception is thrown when the caller lacks the necessary IAM permissions to perform the requested operation. Verify that your IAM policy includes the required permissions for the specific Amazon Web Services Payment Cryptography action you're attempting.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>This request can cause an inconsistent state for the resource.</p> <p>The requested operation conflicts with the current state of the resource. For example, attempting to delete a key that is currently being used, or trying to create a resource that already exists.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p> <p>This indicates a server-side error within the Amazon Web Services Payment Cryptography service. If this error persists, contact support for assistance.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The request was denied due to resource not found.</p> <p>The specified key, alias, or other resource does not exist in your account or region. Verify that the resource identifier is correct and that the resource exists in the expected region.</p>
65
+ *
66
+ * @throws {@link ServiceUnavailableException} (server fault)
67
+ * <p>The service cannot complete the request.</p> <p>The Amazon Web Services Payment Cryptography service is temporarily unavailable. This is typically a temporary condition - retry your request after a brief delay.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was denied due to request throttling.</p> <p>You have exceeded the rate limits for Amazon Web Services Payment Cryptography API calls. Implement exponential backoff and retry logic in your application to handle throttling gracefully.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The request was denied due to an invalid request error.</p> <p>One or more parameters in your request are invalid. Check the parameter values, formats, and constraints specified in the API documentation.</p>
74
+ *
75
+ * @throws {@link PaymentCryptographyServiceException}
76
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: DeleteResourcePolicyInput;
86
+ output: {};
87
+ };
88
+ sdk: {
89
+ input: DeleteResourcePolicyCommandInput;
90
+ output: DeleteResourcePolicyCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,109 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DisassociateMpaTeamInput, DisassociateMpaTeamOutput } from "../models/models_0";
4
+ import type { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DisassociateMpaTeamCommand}.
14
+ */
15
+ export interface DisassociateMpaTeamCommandInput extends DisassociateMpaTeamInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DisassociateMpaTeamCommand}.
21
+ */
22
+ export interface DisassociateMpaTeamCommandOutput extends DisassociateMpaTeamOutput, __MetadataBearer {
23
+ }
24
+ declare const DisassociateMpaTeamCommand_base: {
25
+ new (input: DisassociateMpaTeamCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateMpaTeamCommandInput, DisassociateMpaTeamCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DisassociateMpaTeamCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateMpaTeamCommandInput, DisassociateMpaTeamCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Removes the association between a Multi-Party Approval (MPA) team and a protected operation.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_AssociateMpaTeam.html">AssociateMpaTeam</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetMpaTeamAssociation.html">GetMpaTeamAssociation</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PaymentCryptographyClient, DisassociateMpaTeamCommand } from "@aws-sdk/client-payment-cryptography"; // ES Modules import
35
+ * // const { PaymentCryptographyClient, DisassociateMpaTeamCommand } = require("@aws-sdk/client-payment-cryptography"); // CommonJS import
36
+ * // import type { PaymentCryptographyClientConfig } from "@aws-sdk/client-payment-cryptography";
37
+ * const config = {}; // type is PaymentCryptographyClientConfig
38
+ * const client = new PaymentCryptographyClient(config);
39
+ * const input = { // DisassociateMpaTeamInput
40
+ * Action: "STRING_VALUE", // required
41
+ * RequesterComment: "STRING_VALUE",
42
+ * };
43
+ * const command = new DisassociateMpaTeamCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // DisassociateMpaTeamOutput
46
+ * // MpaTeamAssociation: { // MpaTeamAssociation
47
+ * // Action: "STRING_VALUE", // required
48
+ * // MpaTeamArn: "STRING_VALUE", // required
49
+ * // AssociationState: "STRING_VALUE", // required
50
+ * // MpaStatus: { // MpaStatus
51
+ * // MpaSessionArn: "STRING_VALUE", // required
52
+ * // Status: "STRING_VALUE", // required
53
+ * // InitiationDate: new Date("TIMESTAMP"), // required
54
+ * // StatusMessage: "STRING_VALUE",
55
+ * // },
56
+ * // },
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param DisassociateMpaTeamCommandInput - {@link DisassociateMpaTeamCommandInput}
62
+ * @returns {@link DisassociateMpaTeamCommandOutput}
63
+ * @see {@link DisassociateMpaTeamCommandInput} for command's `input` shape.
64
+ * @see {@link DisassociateMpaTeamCommandOutput} for command's `response` shape.
65
+ * @see {@link PaymentCryptographyClientResolvedConfig | config} for PaymentCryptographyClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>You do not have sufficient access to perform this action.</p> <p>This exception is thrown when the caller lacks the necessary IAM permissions to perform the requested operation. Verify that your IAM policy includes the required permissions for the specific Amazon Web Services Payment Cryptography action you're attempting.</p>
69
+ *
70
+ * @throws {@link ConflictException} (client fault)
71
+ * <p>This request can cause an inconsistent state for the resource.</p> <p>The requested operation conflicts with the current state of the resource. For example, attempting to delete a key that is currently being used, or trying to create a resource that already exists.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>The request processing has failed because of an unknown error, exception, or failure.</p> <p>This indicates a server-side error within the Amazon Web Services Payment Cryptography service. If this error persists, contact support for assistance.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The request was denied due to resource not found.</p> <p>The specified key, alias, or other resource does not exist in your account or region. Verify that the resource identifier is correct and that the resource exists in the expected region.</p>
78
+ *
79
+ * @throws {@link ServiceQuotaExceededException} (client fault)
80
+ * <p>This request would cause a service quota to be exceeded.</p> <p>You have reached the maximum number of keys, aliases, or other resources allowed in your account. Review your current usage and consider deleting unused resources or requesting a quota increase.</p>
81
+ *
82
+ * @throws {@link ServiceUnavailableException} (server fault)
83
+ * <p>The service cannot complete the request.</p> <p>The Amazon Web Services Payment Cryptography service is temporarily unavailable. This is typically a temporary condition - retry your request after a brief delay.</p>
84
+ *
85
+ * @throws {@link ThrottlingException} (client fault)
86
+ * <p>The request was denied due to request throttling.</p> <p>You have exceeded the rate limits for Amazon Web Services Payment Cryptography API calls. Implement exponential backoff and retry logic in your application to handle throttling gracefully.</p>
87
+ *
88
+ * @throws {@link ValidationException} (client fault)
89
+ * <p>The request was denied due to an invalid request error.</p> <p>One or more parameters in your request are invalid. Check the parameter values, formats, and constraints specified in the API documentation.</p>
90
+ *
91
+ * @throws {@link PaymentCryptographyServiceException}
92
+ * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
93
+ *
94
+ *
95
+ * @public
96
+ */
97
+ export declare class DisassociateMpaTeamCommand extends DisassociateMpaTeamCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: DisassociateMpaTeamInput;
102
+ output: DisassociateMpaTeamOutput;
103
+ };
104
+ sdk: {
105
+ input: DisassociateMpaTeamCommandInput;
106
+ output: DisassociateMpaTeamCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -27,7 +27,7 @@ declare const ExportKeyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Exports a key from Amazon Web Services Payment Cryptography.</p> <p>Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With <code>ExportKey</code> you can export symmetric keys using either symmetric and asymmetric key exchange mechanisms. Using this operation, you can share your Amazon Web Services Payment Cryptography generated keys with other service partners to perform cryptographic operations outside of Amazon Web Services Payment Cryptography </p> <p>For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm, RSA unwrap, and ECDH (Elliptic Curve Diffie-Hellman) key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK). After which you can export working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.</p> <p>PCI requires specific minimum key strength of wrapping keys used to protect the keys being exchanged electronically. These requirements can change when PCI standards are revised. The rules specify that wrapping keys used for transport must be at least as strong as the key being protected. For more information on recommended key strength of wrapping keys and key exchange mechanism, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-importexport.html">Importing and exporting keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>You can also use <code>ExportKey</code> functionality to generate and export an IPEK (Initial Pin Encryption Key) from Amazon Web Services Payment Cryptography using either TR-31 or TR-34 export key exchange. IPEK is generated from BDK (Base Derivation Key) and <code>ExportDukptInitialKey</code> attribute KSN (<code>KeySerialNumber</code>). The generated IPEK does not persist within Amazon Web Services Payment Cryptography and has to be re-generated each time during export.</p> <p>For key exchange using TR-31 or TR-34 key blocks, you can also export optional blocks within the key block header which contain additional attribute information about the key. The <code>KeyVersion</code> within <code>KeyBlockHeaders</code> indicates the version of the key within the key block. Furthermore, <code>KeyExportability</code> within <code>KeyBlockHeaders</code> can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography.</p> <p>The <code>OptionalBlocks</code> contain the additional data related to the key. For information on data type that can be included within optional blocks, refer to <a href="https://webstore.ansi.org/standards/ascx9/ansix91432022">ASC X9.143-2022</a>.</p> <note> <p>Data included in key block headers is signed but transmitted in clear text. Sensitive or confidential information should not be included in optional blocks. Refer to ASC X9.143-2022 standard for information on allowed data type.</p> </note> <p> <b>To export initial keys (KEK) or IPEK using TR-34</b> </p> <p>Using this operation, you can export initial key using TR-34 asymmetric key exchange. You can only export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During key export process, KDH is Amazon Web Services Payment Cryptography which initiates key export and KRD is the user receiving the key.</p> <p>To initiate TR-34 key export, the KRD must obtain an export token by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html">GetParametersForExport</a>. This operation also generates a key pair for the purpose of key export, signs the key and returns back the signing public key certificate (also known as KDH signing certificate) and root certificate chain. The KDH uses the private key to sign the the export payload and the signing public key certificate is provided to KRD to verify the signature. The KRD can import the root certificate into its Hardware Security Module (HSM), as required. The export token and the associated KDH signing certificate expires after 30 days. </p> <p>Next the KRD generates a key pair for the the purpose of encrypting the KDH key and provides the public key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD will also import the root cerificate chain into Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> for <code>RootCertificatePublicKey</code>. The KDH, Amazon Web Services Payment Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key under export and signs it with signing private key to generate a TR-34 WrappedKeyBlock. For more information on TR-34 key export, see section <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-export.html">Exporting symmetric keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>. </p> <p>Set the following parameters:</p> <ul> <li> <p> <code>ExportAttributes</code>: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.</p> </li> <li> <p> <code>ExportKeyIdentifier</code>: The <code>KeyARN</code> of the KEK or BDK (in case of IPEK) under export.</p> </li> <li> <p> <code>KeyMaterial</code>: Use <code>Tr34KeyBlock</code> parameters.</p> </li> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: The <code>KeyARN</code> of the certificate chain that signed the KRD wrapping key certificate.</p> </li> <li> <p> <code>ExportToken</code>: Obtained from KDH by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html">GetParametersForImport</a>.</p> </li> <li> <p> <code>WrappingKeyCertificate</code>: The public key certificate in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services Payment Cryptography uses for encryption of the TR-34 export payload. This certificate must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography.</p> </li> </ul> <p>When this operation is successful, Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 WrappedKeyBlock. </p> <p> <b>To export initial keys (KEK) or IPEK using RSA Wrap and Unwrap</b> </p> <p>Using this operation, you can export initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate an asymmetric key pair on the receiving HSM and obtain the public key certificate in PEM format (base64 encoded) for the purpose of wrapping and the root certifiate chain. Import the root certificate into Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> for <code>RootCertificatePublicKey</code>.</p> <p>Next call <code>ExportKey</code> and set the following parameters:</p> <ul> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: The <code>KeyARN</code> of the certificate chain that signed wrapping key certificate.</p> </li> <li> <p> <code>KeyMaterial</code>: Set to <code>KeyCryptogram</code>.</p> </li> <li> <p> <code>WrappingKeyCertificate</code>: The public key certificate in PEM format (base64 encoded) obtained by the receiving HSM and signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. The receiving HSM uses its private key component to unwrap the WrappedKeyCryptogram.</p> </li> </ul> <p>When this operation is successful, Amazon Web Services Payment Cryptography returns the WrappedKeyCryptogram. </p> <p> <b>To export working keys or IPEK using TR-31</b> </p> <p>Using this operation, you can export working keys or IPEK using TR-31 symmetric key exchange. In TR-31, you must use an initial key such as KEK to encrypt or wrap the key under export. To establish a KEK, you can use <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> or <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>. </p> <p>Set the following parameters:</p> <ul> <li> <p> <code>ExportAttributes</code>: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.</p> </li> <li> <p> <code>ExportKeyIdentifier</code>: The <code>KeyARN</code> of the KEK or BDK (in case of IPEK) under export.</p> </li> <li> <p> <code>KeyMaterial</code>: Use <code>Tr31KeyBlock</code> parameters.</p> </li> </ul> <p> <b>To export working keys using ECDH</b> </p> <p>You can also use ECDH key agreement to export working keys in a TR-31 keyblock, where the wrapping key is an ECDH derived key.</p> <p>To initiate a TR-31 key export using ECDH, both sides must create an ECC key pair with key usage K3 and exchange public key certificates. In Amazon Web Services Payment Cryptography, you can do this by calling <code>CreateKey</code>. If you have not already done so, you must import the CA chain that issued the receiving public key certificate by calling <code>ImportKey</code> with input <code>RootCertificatePublicKey</code> for root CA or <code>TrustedPublicKey</code> for intermediate CA. You can then complete a TR-31 key export by deriving a shared wrapping key using the service ECC key pair, public certificate of your ECC key pair outside of Amazon Web Services Payment Cryptography, and the key derivation parameters including key derivation function, hash algorithm, derivation data, key algorithm.</p> <ul> <li> <p> <code>KeyMaterial</code>: Use <code>DiffieHellmanTr31KeyBlock</code> parameters.</p> </li> <li> <p> <code>PrivateKeyIdentifier</code>: The <code>KeyArn</code> of the ECC key pair created within Amazon Web Services Payment Cryptography to derive a shared KEK.</p> </li> <li> <p> <code>PublicKeyCertificate</code>: The public key certificate of the receiving ECC key pair in PEM format (base64 encoded) to derive a shared KEK.</p> </li> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: The <code>keyARN</code> of the CA that signed the public key certificate of the receiving ECC key pair.</p> </li> </ul> <p>When this operation is successful, Amazon Web Services Payment Cryptography returns the working key as a TR-31 WrappedKeyBlock, where the wrapping key is the ECDH derived key.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html">GetParametersForExport</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> </p> </li> </ul>
30
+ * <p>Exports a key from Amazon Web Services Payment Cryptography.</p> <p>Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With <code>ExportKey</code> you can export symmetric keys using either symmetric and asymmetric key exchange mechanisms. Using this operation, you can share your Amazon Web Services Payment Cryptography generated keys with other service partners to perform cryptographic operations outside of Amazon Web Services Payment Cryptography </p> <p>For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm, RSA unwrap, and ECDH (Elliptic Curve Diffie-Hellman) key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK). After which you can export working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.</p> <p>PCI requires specific minimum key strength of wrapping keys used to protect the keys being exchanged electronically. These requirements can change when PCI standards are revised. The rules specify that wrapping keys used for transport must be at least as strong as the key being protected. For more information on recommended key strength of wrapping keys and key exchange mechanism, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-importexport.html">Importing and exporting keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>.</p> <p>You can also use <code>ExportKey</code> functionality to generate and export an IPEK (Initial Pin Encryption Key) from Amazon Web Services Payment Cryptography using either TR-31 or TR-34 export key exchange. IPEK is generated from BDK (Base Derivation Key) and <code>ExportDukptInitialKey</code> attribute KSN (<code>KeySerialNumber</code>). The generated IPEK does not persist within Amazon Web Services Payment Cryptography and has to be re-generated each time during export.</p> <p>For key exchange using TR-31 or TR-34 key blocks, you can also export optional blocks within the key block header which contain additional attribute information about the key. The <code>KeyVersion</code> within <code>KeyBlockHeaders</code> indicates the version of the key within the key block. Furthermore, <code>KeyExportability</code> within <code>KeyBlockHeaders</code> can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography.</p> <p>The <code>OptionalBlocks</code> contain the additional data related to the key. For information on data type that can be included within optional blocks, refer to <a href="https://webstore.ansi.org/standards/ascx9/ansix91432022">ASC X9.143-2022</a>.</p> <note> <p>Data included in key block headers is signed but transmitted in clear text. Sensitive or confidential information should not be included in optional blocks. Refer to ASC X9.143-2022 standard for information on allowed data type.</p> </note> <p> <b>To export initial keys (KEK) or IPEK using TR-34</b> </p> <p>Using this operation, you can export initial key using TR-34 asymmetric key exchange. You can only export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During key export process, KDH is Amazon Web Services Payment Cryptography which initiates key export and KRD is the user receiving the key.</p> <p>To initiate TR-34 key export, the KRD must obtain an export token by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html">GetParametersForExport</a>. This operation also generates a key pair for the purpose of key export, signs the key and returns back the signing public key certificate (also known as KDH signing certificate) and root certificate chain. The KDH uses the private key to sign the the export payload and the signing public key certificate is provided to KRD to verify the signature. The KRD can import the root certificate into its Hardware Security Module (HSM), as required. The export token and the associated KDH signing certificate expires after 30 days. </p> <p>Next the KRD generates a key pair for the the purpose of encrypting the KDH key and provides the public key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD will also import the root cerificate chain into Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> for <code>RootCertificatePublicKey</code>. The KDH, Amazon Web Services Payment Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key under export and signs it with signing private key to generate a TR-34 WrappedKeyBlock. For more information on TR-34 key export, see section <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-export.html">Exporting symmetric keys</a> in the <i>Amazon Web Services Payment Cryptography User Guide</i>. </p> <p>Set the following parameters:</p> <ul> <li> <p> <code>ExportAttributes</code>: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.</p> </li> <li> <p> <code>ExportKeyIdentifier</code>: The <code>KeyARN</code> of the KEK or BDK (in case of IPEK) under export.</p> </li> <li> <p> <code>KeyMaterial</code>: Use <code>Tr34KeyBlock</code> parameters.</p> </li> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: The <code>KeyARN</code> of the certificate chain that signed the KRD wrapping key certificate.</p> </li> <li> <p> <code>ExportToken</code>: Obtained from KDH by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html">GetParametersForImport</a>.</p> </li> <li> <p> <code>WrappingKeyCertificate</code>: The public key certificate in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services Payment Cryptography uses for encryption of the TR-34 export payload. This certificate must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography.</p> </li> </ul> <p>When this operation is successful, Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 WrappedKeyBlock. </p> <p> <b>To export initial keys (KEK) or IPEK using RSA Wrap and Unwrap</b> </p> <p>Using this operation, you can export initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate an asymmetric key pair on the receiving HSM and obtain the public key certificate in PEM format (base64 encoded) for the purpose of wrapping and the root certifiate chain. Import the root certificate into Amazon Web Services Payment Cryptography by calling <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> for <code>RootCertificatePublicKey</code>.</p> <p>Next call <code>ExportKey</code> and set the following parameters:</p> <ul> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: The <code>KeyARN</code> of the certificate chain that signed wrapping key certificate.</p> </li> <li> <p> <code>KeyMaterial</code>: Set to <code>KeyCryptogram</code>.</p> </li> <li> <p> <code>WrappingKeyCertificate</code>: The public key certificate in PEM format (base64 encoded) obtained by the receiving HSM and signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. The receiving HSM uses its private key component to unwrap the WrappedKeyCryptogram.</p> </li> </ul> <p>When this operation is successful, Amazon Web Services Payment Cryptography returns the WrappedKeyCryptogram. </p> <p> <b>To export working keys or IPEK using TR-31</b> </p> <p>Using this operation, you can export working keys or IPEK using TR-31 symmetric key exchange. In TR-31, you must use an initial key such as KEK to encrypt or wrap the key under export. To establish a KEK, you can use <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> or <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a>. </p> <p>Set the following parameters:</p> <ul> <li> <p> <code>ExportAttributes</code>: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.</p> </li> <li> <p> <code>ExportKeyIdentifier</code>: The <code>KeyARN</code> of the KEK or BDK (in case of IPEK) under export.</p> </li> <li> <p> <code>KeyMaterial</code>: Use <code>Tr31KeyBlock</code> parameters.</p> </li> </ul> <p> <b>To export working keys using ECDH</b> </p> <p>You can also use ECDH key agreement to export working keys in a TR-31 keyblock, where the wrapping key is an ECDH derived key.</p> <p>To initiate a TR-31 key export using ECDH, both sides must create an ECC key pair with key usage K3 and exchange public key certificates. In Amazon Web Services Payment Cryptography, you can do this by calling <code>CreateKey</code>. If you have not already done so, you must import the CA chain that issued the receiving public key certificate by calling <code>ImportKey</code> with input <code>RootCertificatePublicKey</code> for root CA or <code>TrustedPublicKey</code> for intermediate CA. You can then complete a TR-31 key export by deriving a shared wrapping key using the service ECC key pair, public certificate of your ECC key pair outside of Amazon Web Services Payment Cryptography, and the key derivation parameters including key derivation function, hash algorithm, derivation data, key algorithm.</p> <ul> <li> <p> <code>KeyMaterial</code>: Use <code>DiffieHellmanTr31KeyBlock</code> parameters.</p> </li> <li> <p> <code>PrivateKeyIdentifier</code>: The <code>KeyArn</code> of the ECC key pair created within Amazon Web Services Payment Cryptography to derive a shared KEK.</p> </li> <li> <p> <code>PublicKeyCertificate</code>: The public key certificate of the receiving ECC key pair in PEM format (base64 encoded) to derive a shared KEK.</p> </li> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: The <code>keyARN</code> of the CA that signed the public key certificate of the receiving ECC key pair.</p> </li> </ul> <p>When this operation is successful, Amazon Web Services Payment Cryptography returns the working key as a TR-31 WrappedKeyBlock, where the wrapping key is the ECDH derived key.</p> <p> <b>Cross-account use:</b> This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html">GetParametersForExport</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html">ImportKey</a> </p> </li> </ul>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const GetKeyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Gets the key metadata for an Amazon Web Services Payment Cryptography key, including the immutable and mutable attributes specified when the key was created. Returns key metadata including attributes, state, and timestamps, but does not return the actual cryptographic key material.</p> <p> <b>Cross-account use:</b> This operation can't be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html">DeleteKey</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListKeys.html">ListKeys</a> </p> </li> </ul>
30
+ * <p>Gets the key metadata for an Amazon Web Services Payment Cryptography key, including the immutable and mutable attributes specified when the key was created. Returns key metadata including attributes, state, and timestamps, but does not return the actual cryptographic key material.</p> <p> <b>Cross-account use:</b> This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security_iam_resource-based-policies.html">Resource-based policies</a>.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html">CreateKey</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html">DeleteKey</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListKeys.html">ListKeys</a> </p> </li> </ul>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -81,6 +81,12 @@ declare const GetKeyCommand_base: {
81
81
  * // },
82
82
  * // },
83
83
  * // UsingDefaultReplicationRegions: true || false,
84
+ * // MpaStatus: { // MpaStatus
85
+ * // MpaSessionArn: "STRING_VALUE", // required
86
+ * // Status: "STRING_VALUE", // required
87
+ * // InitiationDate: new Date("TIMESTAMP"), // required
88
+ * // StatusMessage: "STRING_VALUE",
89
+ * // },
84
90
  * // },
85
91
  * // };
86
92
  *