Skip to content

Commit

Permalink
Fixes #107 - Added some scala doc
Browse files Browse the repository at this point in the history
  • Loading branch information
TebaleloS committed Nov 30, 2023
1 parent dd857f1 commit f98b794
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.secretsmanager.SecretsManagerClient
import software.amazon.awssdk.services.secretsmanager.model.{GetSecretValueRequest, SecretsManagerException}

/**
* Class implement the functionality of retrieving secret keys from aws secret manger service
*/
class RetrieveAwsSecret {
private val secretsManagerClient: SecretsManagerClient = SecretsManagerClient.builder()
.region(Region.AF_SOUTH_1)
.build()

/**
* Function retrieves secret keys from aws
* @param secretName
* @return
*/
def retrieveAwsSecret(secretName: String = "atum_user"): Seq[String] = {
try {
val request = GetSecretValueRequest.builder()
Expand Down

0 comments on commit f98b794

Please sign in to comment.