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
Establishes a :class:`Connection` to an Amazon Redshift cluster. This function validates user input, optionally authenticates using an identity provider plugin, then constructs a :class:`Connection` object.
@@ -266,6 +268,10 @@ def connect(
266
268
The name of an Amazon Redshift Authentication profile having connection properties as JSON. See :class:RedshiftProperty to learn how connection properties should be named.
267
269
endpoint_url: Optional[str]
268
270
The Amazon Redshift endpoint url. This option is only used by AWS internal teams.
271
+
provider_name: Optional[str]
272
+
The name of the Redshift Native Auth Provider.
273
+
scope: Optional[str]
274
+
Scope for BrowserAzureOauth2CredentialsProvider authentication.
269
275
Returns
270
276
-------
271
277
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.
@@ -455,6 +457,10 @@ def __init__(
455
457
Is `datashare <https://docs.aws.amazon.com/redshift/latest/dg/datashare-overview.html>`_ disabled. Default value is True, implying datasharing will not be used.
456
458
credentials_provider : Optional[str]
457
459
The class-path of the IdP plugin used for authentication with Amazon Redshift.
460
+
provider_name : Optional[str]
461
+
The name of the Redshift Native Auth Provider.
462
+
web_identity_token: Optional[str]
463
+
A web identity token used for authentication via Redshift Native IDP Integration
458
464
"""
459
465
self.merge_socket_read=True
460
466
@@ -483,11 +489,15 @@ def __init__(
483
489
# for receiving some datatypes
484
490
self._enable_protocol_based_conversion_funcs()
485
491
492
+
self.web_identity_token=web_identity_token
493
+
486
494
ifuserisNone:
487
495
raiseInterfaceError("The 'user' connection parameter cannot be None")
0 commit comments