Source code for airflow.providers.amazon.aws.operators.dms_create_task
## Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements. See the NOTICE file# distributed with this work for additional information# regarding copyright ownership. The ASF licenses this file# to you under the Apache License, Version 2.0 (the# "License"); you may not use this file except in compliance# with the License. You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing,# software distributed under the License is distributed on an# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY# KIND, either express or implied. See the License for the# specific language governing permissions and limitations# under the License.fromtypingimportOptionalfromairflow.modelsimportBaseOperatorfromairflow.providers.amazon.aws.hooks.dmsimportDmsHook
[docs]classDmsCreateTaskOperator(BaseOperator):""" Creates AWS DMS replication task. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:DmsCreateTaskOperator` :param replication_task_id: Replication task id :type replication_task_id: str :param source_endpoint_arn: Source endpoint ARN :type source_endpoint_arn: str :param target_endpoint_arn: Target endpoint ARN :type target_endpoint_arn: str :param replication_instance_arn: Replication instance ARN :type replication_instance_arn: str :param table_mappings: Table mappings :type table_mappings: dict :param migration_type: Migration type ('full-load'|'cdc'|'full-load-and-cdc'), full-load by default. :type migration_type: str :param create_task_kwargs: Extra arguments for DMS replication task creation. :type create_task_kwargs: Optional[dict] :param aws_conn_id: 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). :type aws_conn_id: Optional[str] """