driver/driver_config_builder.py
def from_rds(self, db_instance_identifier) -> BaseDriverConfigBuilder:
        """build config options from rds description of database"""
        config_from_rds = {
            "db_host": get_db_hostname(db_instance_identifier, self.rds_client),
            "db_port": get_db_port(db_instance_identifier, self.rds_client),
            "db_version": get_db_version(db_instance_identifier, self.rds_client),
            "db_type": get_db_type(db_instance_identifier, self.rds_client)
        }

        try:
            partial_config_from_rds: PartialConfigFromRDS = (
                PartialConfigFromRDS(**config_from_rds)
            )
        except ValidationError as ex:
            msg = (
                "Invalid driver configuration for On-Prem deployment: "
                "the driver option from rds is missing or invalid"
            )
            raise DriverConfigException(msg, ex) from ex

        self.has_determined_db_type = True
        self.config.update(partial_config_from_rds)
        return self
build config options from rds description of database
build config options from rds description of database
build config options from rds description of database
def from_rds(self, db_instance_identifier) -> BaseDriverConfigBuilder:
        config_from_rds = {
            "db_host": get_db_hostname(db_instance_identifier, self.rds_client),
            "db_port": get_db_port(db_instance_identifier, self.rds_client),
            "db_version": get_db_version(db_instance_identifier, self.rds_client),
            "db_type": get_db_type(db_instance_identifier, self.rds_client)
        }
        try:
            partial_config_from_rds: PartialConfigFromRDS = (
                PartialConfigFromRDS(**config_from_rds)
            )
        except ValidationError as ex:
            msg = (
                "Invalid driver configuration for On-Prem deployment: "
                "the driver option from rds is missing or invalid"
            )
            raise DriverConfigException(msg, ex) from ex
        self.has_determined_db_type = True
        self.config.update(partial_config_from_rds)
        return self
def from_rds ( self , db_instance_identifier ) -> BaseDriverConfigBuilder : config_from_rds = { "db_host" : get_db_hostname ( db_instance_identifier , self . rds_client ) , "db_port" : get_db_port ( db_instance_identifier , self . rds_client ) , "db_version" : get_db_version ( db_instance_identifier , self . rds_client ) , "db_type" : get_db_type ( db_instance_identifier , self . rds_client ) } try : partial_config_from_rds : PartialConfigFromRDS = ( PartialConfigFromRDS ( ** config_from_rds ) ) except ValidationError as ex : msg = ( "Invalid driver configuration for On-Prem deployment: " "the driver option from rds is missing or invalid" ) raise DriverConfigException ( msg , ex ) from ex self . has_determined_db_type = True self . config . update ( partial_config_from_rds ) return self
build config options from rds description of database
build config options from rds description of database
"""build config options from rds description of database"""
self
db_instance_identifier