refactor: rename kms feature flag to aws_kms (#3249)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2024-02-02 15:48:29 +05:30
committed by GitHub
parent d283053e5e
commit 91519d8462
40 changed files with 507 additions and 486 deletions

View File

@ -19,8 +19,8 @@ use common_utils::{
};
use data_models::payments::PaymentIntent;
use error_stack::{IntoReport, ResultExt};
#[cfg(feature = "kms")]
pub use external_services::kms;
#[cfg(feature = "aws_kms")]
pub use external_services::aws_kms;
use helpers::PaymentAuthConnectorDataExt;
use masking::{ExposeInterface, PeekInterface};
use pm_auth::{
@ -368,8 +368,8 @@ async fn store_bank_details_in_payment_methods(
}
.await?;
#[cfg(feature = "kms")]
let pm_auth_key = kms::get_kms_client(&state.conf.kms)
#[cfg(feature = "aws_kms")]
let pm_auth_key = aws_kms::get_aws_kms_client(&state.conf.kms)
.await
.decrypt(pm_auth_key)
.await