awswrangler.data_api.rds.connect(resource_arn: str, database: str, secret_arn: str = '', **kwargs: Any) RdsDataApi

Create a RDS Data API connection.

  • 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.

  • **kwargs – Any additional kwargs are passed to the underlying RdsDataApi class.

Return type

A RdsDataApi connection instance that can be used with wr.rds.data_api.read_sql_query.