In some cases, using this library's operations might impact performance and skew your test results.Performance considerations and recommended practices
To ensure accurate results, consider executing these operations in the setup and teardown lifecycle functions. These functions run before and after the test run and have no impact on the test results.
KMSClient interacts with the AWS Key Management Service.
With it, the user can list all the Key Management Service keys in the caller's AWS account and region. They can also generate symmetric data keys to use outside of AWS Key Management Service.
Both the dedicated kms.js jslib bundle and the all-encompassing aws.js bundle include the KMSClient.
Methods
Function | Description |
---|---|
listKeys | List the all the Key Management Service keys in the caller's AWS account and region. |
generateDataKey | Generate a symmetric data key for use outside of the AWS Key Management Service. |
Throws
KMSClient methods throw errors in case of failure.
Error | Condition |
---|---|
InvalidSignatureError | when using invalid credentials |
KMSServiceError | when AWS replied to the requested operation with an error |