airflow.providers.amazon.aws.operators.dms¶
類¶
建立 AWS DMS 複製任務。 |
|
刪除 AWS DMS 複製任務。 |
|
描述 AWS DMS 複製任務。 |
|
啟動 AWS DMS 複製任務。 |
|
停止 AWS DMS 複製任務。 |
|
描述 AWS DMS Serverless 複製配置。 |
|
建立 AWS DMS Serverless 複製配置。 |
|
刪除 AWS DMS Serverless 複製配置。 |
|
描述 AWS DMS Serverless 複製。 |
|
啟動 AWS DMS Serverless 複製。 |
|
停止 AWS DMS Serverless 複製。 |
模組內容¶
- class airflow.providers.amazon.aws.operators.dms.DmsCreateTaskOperator(*, replication_task_id, source_endpoint_arn, target_endpoint_arn, replication_instance_arn, table_mappings, migration_type='full-load', create_task_kwargs=None, aws_conn_id='aws_default', **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]建立 AWS DMS 複製任務。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:建立複製任務
- 引數:
replication_task_id (str) – 複製任務 ID
source_endpoint_arn (str) – 源端點 ARN
target_endpoint_arn (str) – 目標端點 ARN
replication_instance_arn (str) – 複製例項 ARN
table_mappings (dict) – 表對映
migration_type (str) – 遷移型別 ('full-load'|'cdc'|'full-load-and-cdc'),預設為 full-load。
create_task_kwargs (dict | None) – 用於建立 DMS 複製任務的額外引數。
aws_conn_id (str | None) – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則會使用預設的 boto3 配置(並且必須在每個 worker 節點上維護)。region_name – AWS region_name。如果未指定,則使用預設的 boto3 行為。
verify – 是否驗證 SSL 證書。參見:https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – botocore 客戶端的配置字典(鍵值對)。參見:https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html
- template_fields: collections.abc.Sequence[str][source]¶
- class airflow.providers.amazon.aws.operators.dms.DmsDeleteTaskOperator(*, replication_task_arn=None, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]刪除 AWS DMS 複製任務。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:刪除複製任務
- 引數:
replication_task_arn (str | None) – 複製任務 ARN
aws_conn_id – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則會使用預設的 boto3 配置(並且必須在每個 worker 節點上維護)。region_name – AWS region_name。如果未指定,則使用預設的 boto3 行為。
verify – 是否驗證 SSL 證書。參見:https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – botocore 客戶端的配置字典(鍵值對)。參見:https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html
- template_fields: collections.abc.Sequence[str][source]¶
- class airflow.providers.amazon.aws.operators.dms.DmsDescribeTasksOperator(*, describe_tasks_kwargs=None, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]描述 AWS DMS 複製任務。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:獲取複製任務詳細資訊
- 引數:
describe_tasks_kwargs (dict | None) – describe tasks 命令引數
aws_conn_id – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則會使用預設的 boto3 配置(並且必須在每個 worker 節點上維護)。region_name – AWS region_name。如果未指定,則使用預設的 boto3 行為。
verify – 是否驗證 SSL 證書。參見:https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – botocore 客戶端的配置字典(鍵值對)。參見:https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html
- template_fields: collections.abc.Sequence[str][source]¶
- class airflow.providers.amazon.aws.operators.dms.DmsStartTaskOperator(*, replication_task_arn, start_replication_task_type='start-replication', start_task_kwargs=None, aws_conn_id='aws_default', **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]啟動 AWS DMS 複製任務。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:啟動複製任務
- 引數:
replication_task_arn (str) – 複製任務 ARN
start_replication_task_type (str) – 複製任務啟動型別 (預設='start-replication') ('start-replication'|'resume-processing'|'reload-target')
start_task_kwargs (dict | None) – 額外的啟動複製任務引數
aws_conn_id (str | None) – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則會使用預設的 boto3 配置(並且必須在每個 worker 節點上維護)。region_name – AWS region_name。如果未指定,則使用預設的 boto3 行為。
verify – 是否驗證 SSL 證書。參見:https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – botocore 客戶端的配置字典(鍵值對)。參見:https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html
- template_fields: collections.abc.Sequence[str][source]¶
- class airflow.providers.amazon.aws.operators.dms.DmsStopTaskOperator(*, replication_task_arn=None, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]停止 AWS DMS 複製任務。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:停止複製任務
- 引數:
replication_task_arn (str | None) – 複製任務 ARN
aws_conn_id – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則會使用預設的 boto3 配置(並且必須在每個 worker 節點上維護)。region_name – AWS region_name。如果未指定,則使用預設的 boto3 行為。
verify – 是否驗證 SSL 證書。參見:https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – botocore 客戶端的配置字典(鍵值對)。參見:https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html
- template_fields: collections.abc.Sequence[str][source]¶
- class airflow.providers.amazon.aws.operators.dms.DmsDescribeReplicationConfigsOperator(*, filter=None, aws_conn_id='aws_default', **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]描述 AWS DMS Serverless 複製配置。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:描述無伺服器複製配置
- 引數:
describe_config_filter – 用於過濾結果的過濾器塊。
aws_conn_id (str | None) – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則將使用預設的 boto3 配置(且必須在每個 worker 節點上維護)。
- template_fields: collections.abc.Sequence[str][source]¶
- class airflow.providers.amazon.aws.operators.dms.DmsCreateReplicationConfigOperator(*, replication_config_id, source_endpoint_arn, target_endpoint_arn, compute_config, replication_type, table_mappings, additional_config_kwargs=None, aws_conn_id='aws_default', **kwargs)[原始碼]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]建立 AWS DMS Serverless 複製配置。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:建立無伺服器複製配置
- 引數:
replication_config_id (str) – 用於建立 ReplicationConfigArn 的唯一識別符號。
source_endpoint_arn (str) – 源端點的 ARN
target_endpoint_arn (str) – 目標端點的 ARN
replication_type (str) – DMS 無伺服器複製的型別
table_mappings (str) – JSON 表對映
tags – 鍵值標籤對
additional_config_kwargs (dict | None) – DMS 無伺服器複製的附加配置引數。直接傳遞給 API
aws_conn_id (str | None) – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則將使用預設的 boto3 配置(且必須在每個 worker 節點上維護)。
- template_fields: collections.abc.Sequence[str][原始碼]¶
- class airflow.providers.amazon.aws.operators.dms.DmsDeleteReplicationConfigOperator(*, replication_config_arn, wait_for_completion=True, deferrable=conf.getboolean('operators', 'default_deferrable', fallback=False), waiter_delay=60, waiter_max_attempts=60, aws_conn_id='aws_default', **kwargs)[原始碼]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]刪除 AWS DMS Serverless 複製配置。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:刪除無伺服器複製配置
- 引數:
replication_config_arn (str) – 複製配置的 ARN
wait_for_completion (bool) – 如果為 True,則等待複製配置被刪除後才返回。如果為 False,則 operator 在發出請求後立即返回。
deferrable (bool) – 在可推遲模式下執行 operator。
waiter_delay (int) – 兩次重試之間的等待秒數(預設值:60)。
waiter_max_attempts (int) – 最大嘗試次數(預設值:60)。
aws_conn_id (str | None) – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則將使用預設的 boto3 配置(且必須在每個 worker 節點上維護)。
- template_fields: collections.abc.Sequence[str][原始碼]¶
- class airflow.providers.amazon.aws.operators.dms.DmsDescribeReplicationsOperator(*, filter=None, aws_conn_id='aws_default', **kwargs)[原始碼]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]描述 AWS DMS Serverless 複製。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:獲取無伺服器複製的狀態
- 引數:
- template_fields: collections.abc.Sequence[str][原始碼]¶
- class airflow.providers.amazon.aws.operators.dms.DmsStartReplicationOperator(*, replication_config_arn, replication_start_type, cdc_start_time=None, cdc_start_pos=None, cdc_stop_pos=None, wait_for_completion=True, waiter_delay=30, waiter_max_attempts=60, deferrable=conf.getboolean('operators', 'default_deferrable', fallback=False), aws_conn_id='aws_default', **kwargs)[原始碼]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]啟動 AWS DMS Serverless 複製。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南:啟動無伺服器複製
- 引數:
replication_config_arn (str) – 複製配置的 ARN
replication_start_type (str) – 複製型別。
cdc_start_time (datetime.datetime | str | None) – CDC 的開始時間
cdc_start_pos (str | None) – 指示 CDC 何時開始。
cdc_stop_pos (str | None) – 指示 CDC 何時停止。
aws_conn_id (str | None) – 用於 AWS 憑據的 Airflow 連線。如果為
None或空,則使用預設的 boto3 行為。如果在分散式環境中執行 Airflow 且 aws_conn_id 為 None 或空,則將使用預設的 boto3 配置(且必須在每個 worker 節點上維護)。
- template_fields: collections.abc.Sequence[str][原始碼]¶
- class airflow.providers.amazon.aws.operators.dms.DmsStopReplicationOperator(*, replication_config_arn, wait_for_completion=True, waiter_delay=30, waiter_max_attempts=60, deferrable=conf.getboolean('operators', 'default_deferrable', fallback=False), aws_conn_id='aws_default', **kwargs)[原始碼]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.dms.DmsHook]停止 AWS DMS Serverless 複製。
另請參閱
有關如何使用此 operator 的更多資訊,請參閱指南: 停止無伺服器複製
- 引數:
- template_fields: collections.abc.Sequence[str][source]¶