airflow.providers.amazon.aws.hooks.redshift_cluster
¶
Module Contents¶
Classes¶
Interact with AWS Redshift, using the boto3 library |
- class airflow.providers.amazon.aws.hooks.redshift_cluster.RedshiftHook(*args, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook
Interact with AWS Redshift, using the boto3 library
Additional arguments (such as
aws_conn_id
) may be specified and are passed down to the underlying AwsBaseHook.See also
- Parameters
aws_conn_id -- The Airflow connection used for AWS credentials.
- cluster_status(self, cluster_identifier)[source]¶
Return status of a cluster
- Parameters
cluster_identifier (str) -- unique identifier of a cluster
skip_final_cluster_snapshot -- determines cluster snapshot creation
final_cluster_snapshot_identifier -- Optional[str]
- delete_cluster(self, cluster_identifier, skip_final_cluster_snapshot=True, final_cluster_snapshot_identifier=None)[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