public string GetSecretValue(string secretId, string secretName, string secretManagerSuffix) { if (string.IsNullOrEmpty(Region) || string.IsNullOrEmpty(AccountId)) { throw new ArgumentException("The accountId or region can not be null"); } ISecret secret; if (string.IsNullOrEmpty(secretManagerSuffix)) { secret = Secret.FromSecretAttributes(Scope, secretId, new SecretAttributes { SecretPartialArn = $"arn:aws:secretsmanager:{Region}:{AccountId}:secret:{secretName}", }); } else { secret = Secret.FromSecretAttributes(Scope, secretId, new SecretAttributes { SecretCompleteArn = $"arn:aws:secretsmanager:{Region}:{AccountId}:secret:{secretName}-{secretManagerSuffix}", }); } return(GetSecretValue(secret)); }