informatica.infacore.datasource.connection.Connection.edit
- Connection.edit(new_connection_name: str = None, connection_parameters: dict = None) Connection
Edits the connection name and attributes of an existing connection.
- Parameters:
new_connection_name (str, optional) – The new name for the connection.
connection_parameters (dict, optional) – The updated connection attributes in “key, value” pairs.
- Returns:
The updated connection object.
- Return type:
Example
>>> import informatica.infacore as ic >>> orcl_cnx = ic.get_datasource("Oracle").get_connection("Oracle Prod") >>> orcl_params = { "username": "<New Username of Oracle database>", "password": "<New Password of Oracle database>", } >>> orcl_cnx = orcl_cnx.edit("Oracle Prod Connection", orcl_params)