astronomer.providers.amazon.aws.hooks.redshift_data

Module Contents

Classes

RedshiftDataHook

RedshiftDataHook inherits from AwsBaseHook to connect with AWS redshift

class astronomer.providers.amazon.aws.hooks.redshift_data.RedshiftDataHook(*args, **kwargs)[source]

Bases: airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook

RedshiftDataHook inherits from AwsBaseHook to connect with AWS redshift by using boto3 client_type as redshift-data we can interact with redshift cluster database and execute the query

Parameters
get_conn_params(self)[source]

Helper method to retrieve connection args

execute_query(self, sql, params)[source]

Runs an SQL statement, which can be data manipulation language (DML) or data definition language (DDL)

Parameters

sql (Union[Dict[Any, Any], Iterable[Any]]) – list of query ids