airflow.contrib.hooks.redshift_hook¶
Module Contents¶
- 
class airflow.contrib.hooks.redshift_hook.RedshiftHook[source]¶
- Bases: - airflow.contrib.hooks.aws_hook.AwsHook- Interact with AWS Redshift, using the boto3 library - 
cluster_status(self, cluster_identifier)[source]¶
- Return status of a cluster - Parameters
- cluster_identifier (str) – unique identifier of a cluster 
 
 - 
delete_cluster(self, cluster_identifier, skip_final_cluster_snapshot=True, final_cluster_snapshot_identifier='')[source]¶
- Delete a cluster and optionally create a snapshot 
 - 
describe_cluster_snapshots(self, cluster_identifier)[source]¶
- Gets a list of snapshots for a cluster - Parameters
- cluster_identifier (str) – unique identifier of a cluster 
 
 
-