airflow.providers.amazon.aws.hooks.redshift_cluster¶
類¶
與 Amazon Redshift 互動。 |
模組內容¶
- class airflow.providers.amazon.aws.hooks.redshift_cluster.RedshiftHook(*args, **kwargs)[source]¶
基類:
airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook與 Amazon Redshift 互動。
這是對
boto3.client("redshift")的精簡包裝。可以指定附加引數(例如
aws_conn_id),這些引數將傳遞給底層的 AwsBaseHook。- template_fields: collections.abc.Sequence[str] = ('cluster_identifier',)[source]¶
- create_cluster(cluster_identifier, node_type, master_username, master_user_password, params)[source]¶
使用指定引數建立新的叢集。
- delete_cluster(cluster_identifier, skip_final_cluster_snapshot=True, final_cluster_snapshot_identifier=None)[source]¶
刪除叢集並可選擇建立快照。
- describe_cluster_snapshots(cluster_identifier)[source]¶
列出叢集的快照。
- 引數:
cluster_identifier (str) – 叢集的唯一識別符號