Class DatabaseConnectionConfig


  • public class DatabaseConnectionConfig
    extends Object
    Encapsulates database JDBC connection configuration.
    • 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.
    • Method Detail

      • getEngine

        public String getEngine()
      • getJdbcConnectionString

        public String getJdbcConnectionString()
      • getCatalog

        public String getCatalog()
      • getSecret

        public String getSecret()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object