airflow.providers.amazon.aws.hooks.rds
¶
Interact with AWS RDS.
Module Contents¶
Classes¶
Interact with AWS RDS using proper client from the boto3 library. |
- class airflow.providers.amazon.aws.hooks.rds.RdsHook(*args, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.hooks.base_aws.AwsGenericHook
[mypy_boto3_rds.RDSClient
]Interact with AWS RDS using proper client from the boto3 library.
Hook attribute conn has all methods that listed in documentation
See also
Additional arguments (such as
aws_conn_id
orregion_name
) may be specified and are passed down to the underlying AwsBaseHook.See also
- Parameters
aws_conn_id – The Airflow connection used for AWS credentials.
- wait_for_db_snapshot_state(snapshot_id, target_state, check_interval=30, max_attempts=40)[source]¶
Polls
RDS.Client.describe_db_snapshots()
until the target state is reached. An error is raised after a max number of attempts.
- wait_for_db_cluster_snapshot_state(snapshot_id, target_state, check_interval=30, max_attempts=40)[source]¶
Polls
RDS.Client.describe_db_cluster_snapshots()
until the target state is reached. An error is raised after a max number of attempts.- Parameters
See also
A list of possible values for target_state: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds.html#RDS.Client.describe_db_cluster_snapshots
- get_export_task_state(export_task_id)[source]¶
Gets the current state of an RDS snapshot export to Amazon S3.
- wait_for_export_task_state(export_task_id, target_state, check_interval=30, max_attempts=40)[source]¶
Polls
RDS.Client.describe_export_tasks()
until the target state is reached. An error is raised after a max number of attempts.- Parameters
See also
A list of possible values for target_state: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds.html#RDS.Client.describe_export_tasks
- get_event_subscription_state(subscription_name)[source]¶
Gets the current state of an RDS snapshot export to Amazon S3.
- wait_for_event_subscription_state(subscription_name, target_state, check_interval=30, max_attempts=40)[source]¶
Polls
RDS.Client.describe_event_subscriptions()
until the target state is reached. An error is raised after a max number of attempts.- Parameters
See also
A list of possible values for target_state: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds.html#RDS.Client.describe_event_subscriptions
- wait_for_db_instance_state(db_instance_id, target_state, check_interval=30, max_attempts=40)[source]¶
Polls
RDS.Client.describe_db_instances()
until the target state is reached. An error is raised after a max number of attempts.- Parameters
See also
For information about DB instance statuses, see Viewing DB instance status in the Amazon RDS User Guide. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/accessing-monitoring.html#Overview.DBInstance.Status
- wait_for_db_cluster_state(db_cluster_id, target_state, check_interval=30, max_attempts=40)[source]¶
Polls
RDS.Client.describe_db_clusters()
until the target state is reached. An error is raised after a max number of attempts.- Parameters
See also
For information about DB instance statuses, see Viewing DB instance status in the Amazon RDS User Guide. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/accessing-monitoring.html#Overview.DBInstance.Status