You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: redshift_connector/__init__.py
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -303,6 +303,12 @@ def connect(
303
303
The access token to be used with IdC basic credentials provider plugin. Default value is None.
304
304
token_type: Optional[str]
305
305
The token type to be used for authentication using IdP token auth plugin. Default value is None.
306
+
access_key_id : Optional[str]
307
+
The access key for the user configured for IAM database authentication. Can also be used with IdpTokenAuthPlugin for identity-enhanced credentials flow.
308
+
secret_access_key : Optional[str]
309
+
The secret access key for the IAM role or IAM user configured for IAM database authentication. Can also be used with IdpTokenAuthPlugin for identity-enhanced credentials flow.
310
+
session_token : Optional[str]
311
+
The session token for temporary AWS credentials. Required when using temporary credentials with IAM authentication or IdpTokenAuthPlugin identity-enhanced credentials flow.
306
312
Returns
307
313
-------
308
314
A Connection object associated with the specified Amazon Redshift cluster: :class:`Connection`
Creates a :class:`Connection` to an Amazon Redshift cluster. For more information on establishing a connection to an Amazon Redshift cluster using `federated API access <https://aws.amazon.com/blogs/big-data/federated-api-access-to-amazon-redshift-using-an-amazon-redshift-connector-for-python/>`_ see our examples page.
@@ -486,6 +489,12 @@ def __init__(
486
489
The token type to be used for authentication using IdP Token auth plugin
487
490
idc_client_display_name: Optional[str]
488
491
The client display name to be used for user consent in IdC browser auth plugin.
492
+
access_key_id: Optional[str]
493
+
The AWS access key ID for identity-enhanced credentials flow with IdpTokenAuthPlugin.
494
+
secret_access_key: Optional[str]
495
+
The AWS secret access key for identity-enhanced credentials flow with IdpTokenAuthPlugin.
496
+
session_token: Optional[str]
497
+
The AWS session token for identity-enhanced credentials flow with IdpTokenAuthPlugin.
0 commit comments