Class DatabaseConnectionConfig
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.connection.DatabaseConnectionConfig
-
public class DatabaseConnectionConfig extends Object
Encapsulates database JDBC connection configuration.
-
-
Constructor Summary
Constructors Constructor Description DatabaseConnectionConfig(String catalog, String engine, String jdbcConnectionString)
Creates configuration for credentials passed through JDBC connection string.DatabaseConnectionConfig(String catalog, String engine, String jdbcConnectionString, String secret)
Creates configuration for credentials managed by AWS Secrets Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCatalog()
String
getEngine()
String
getJdbcConnectionString()
String
getSecret()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
DatabaseConnectionConfig
public DatabaseConnectionConfig(String catalog, String engine, String jdbcConnectionString, String secret)
Creates configuration for credentials managed by AWS Secrets Manager.- Parameters:
catalog
- catalog name passed by Athena.engine
- database type.jdbcConnectionString
- jdbc native database connection string of database type.secret
- AWS Secrets Manager secret name.
-
DatabaseConnectionConfig
public DatabaseConnectionConfig(String catalog, String engine, String jdbcConnectionString)
Creates configuration for credentials passed through JDBC connection string.- Parameters:
catalog
- catalog name passed by Athena.engine
- database type.jdbcConnectionString
- jdbc native database connection string of database type.
-
-