airflow.providers.amazon.aws.operators.dms_start_task

Module Contents

class airflow.providers.amazon.aws.operators.dms_start_task.DmsStartTaskOperator(*, replication_task_arn: str, start_replication_task_type: Optional[str] = 'start-replication', start_task_kwargs: Optional[dict] = None, aws_conn_id: str = 'aws_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

Starts AWS DMS replication task.

See also

For more information on how to use this operator, take a look at the guide: Create replication task, wait for it completion and delete it.

Parameters
  • replication_task_arn (str) -- Replication task ARN

  • start_replication_task_type (Optional[str]) -- Replication task start type ('start-replication'|'resume-processing'|'reload-target')

  • start_task_kwargs (Optional[dict]) -- Extra start replication task arguments

  • aws_conn_id (Optional[str]) -- The Airflow connection used for AWS credentials. If this is None or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then default boto3 configuration would be used (and must be maintained on each worker node).

template_fields = ['replication_task_arn', 'start_replication_task_type', 'start_task_kwargs'][source]
template_ext = [][source]
template_fields_renderers[source]
execute(self, context)[source]

Starts AWS DMS replication task from Airflow

Returns

replication task arn

Was this entry helpful?