awswrangler.data_api.rds.RdsDataApi

class awswrangler.data_api.rds.RdsDataApi(resource_arn: str, database: str, secret_arn: str = '', sleep: float = 0.5, backoff: float = 1.0, retries: int = 30, boto3_session: Optional[Session] = None)

Provides access to the RDS Data API.

Parameters
  • resource_arn (str) – ARN for the RDS resource.

  • database (str) – Target database name.

  • secret_arn (str) – The ARN for the secret to be used for authentication.

  • sleep (float) – Number of seconds to sleep between connection attempts to paused clusters - defaults to 0.5.

  • backoff (float) – Factor by which to increase the sleep between connection attempts to paused clusters - defaults to 1.0.

  • retries (int) – Maximum number of connection attempts to paused clusters - defaults to 10.

  • boto3_session (boto3.Session(), optional) – The boto3 session. If None, the default boto3 session is used.

__init__(resource_arn: str, database: str, secret_arn: str = '', sleep: float = 0.5, backoff: float = 1.0, retries: int = 30, boto3_session: Optional[Session] = None) None

Methods

__init__(resource_arn, database[, ...])

execute(sql[, database])

Execute SQL statement against a Data API Service.