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) – 集群的唯一标识符