(kms)
| 65 | }; |
| 66 | |
| 67 | function getClient(kms) { |
| 68 | const impl = kmsFactory[kms]; |
| 69 | if (!impl) { |
| 70 | throw new Error(`KMS backend is not configured: ${kms}`); |
| 71 | } |
| 72 | return impl(); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Note: non current instance from previous keys won't be healthchecked |