snowflake.snowpark.secrets.get_username_password¶
- snowflake.snowpark.secrets.get_username_password(secret_name: str) UsernamePassword [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.40.0/src/snowflake/snowpark/secrets.py#L83-L101)¶
Get a username and password secret from Snowflake. .. note:: Require a Snowflake environment with username/password secrets configured
- Returns:
An object with attributes
username
andpassword
.- Return type:
- Raises:
NotImplementedError – If the _snowflake module cannot be imported.