- java.lang.Object
-
- org.github.gestalt.config.aws.config.AWSModuleConfig
-
- All Implemented Interfaces:
org.github.gestalt.config.entity.GestaltModuleConfig
public final class AWSModuleConfig extends java.lang.Object implements org.github.gestalt.config.entity.GestaltModuleConfigAWS specific configuration. You can either specify the region and Gestalt will use defaults to build the SecretsManagerClient or you can provide a SecretsManagerClient yourself.
-
-
Constructor Summary
Constructors Constructor Description AWSModuleConfig(java.lang.String region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRegion()Region to use for aws.software.amazon.awssdk.services.s3.S3ClientgetS3Client()Get the S3 Client.software.amazon.awssdk.services.secretsmanager.SecretsManagerClientgetSecretsClient()SecretsManagerClient to use to communicate with AWS.booleanhasS3Client()If the AWS Module Config has an S3 client registered.booleanhasSecretsClient()java.lang.Stringname()voidsetRegion(java.lang.String region)Set region to use for aws.voidsetS3Client(software.amazon.awssdk.services.s3.S3Client s3Client)Set the S3 Client.voidsetSecretsClient(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient)Set the SecretsManagerClient to use to communicate with AWS.
-
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
namein interfaceorg.github.gestalt.config.entity.GestaltModuleConfig
-
getRegion
public java.lang.String getRegion()
Region to use for aws.- Returns:
- Region to use for aws
-
setRegion
public void setRegion(java.lang.String region)
Set region to use for aws.- Parameters:
region- region to use for aws
-
hasSecretsClient
public boolean hasSecretsClient()
-
getSecretsClient
public software.amazon.awssdk.services.secretsmanager.SecretsManagerClient getSecretsClient()
SecretsManagerClient to use to communicate with AWS.- Returns:
- SecretsManagerClient to use to communicate with AWS.
-
setSecretsClient
public void setSecretsClient(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient)
Set the SecretsManagerClient to use to communicate with AWS. If this is not set, then you must provide the region and it will be constructed using defaults.- Parameters:
secretsClient- Set the SecretsManagerClient to use to communicate with AWS.
-
hasS3Client
public boolean hasS3Client()
If the AWS Module Config has an S3 client registered.- Returns:
- If the AWS Module Config has an S3 client registered.
-
getS3Client
public software.amazon.awssdk.services.s3.S3Client getS3Client()
Get the S3 Client.- Returns:
- the S3 Client.
-
setS3Client
public void setS3Client(software.amazon.awssdk.services.s3.S3Client s3Client)
Set the S3 Client.- Parameters:
s3Client- the S4 Client used to interact with S3
-
-