DATASOURCE::DTS::SynchronizationJobs

更新时间:2025-02-28 02:44

DATASOURCE::DTS::SynchronizationJobs类型用于查询DTS同步任务列表。

语法

{
  "Type": "DATASOURCE::DTS::SynchronizationJobs",
  "Properties": {
    "DtsInstanceId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

DtsInstanceId

String

同步实例ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

取值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • SynchronizationInstances:同步实例详情列表

  • DtsInstanceIds:同步实例ID列表。

属性名称

类型

描述

约束

属性名称

类型

描述

约束

DtsInstanceIds

List

同步实例ID列表。

SynchronizationInstances

List

同步实例详情列表

DestinationEndpointEngineName

String

目标实例的数据库类型。

DestinationEndpointRegion

String

目标实例区域。

DtsInstanceId

String

同步实例ID。

SourceEndpointEngineName

String

实例的数据库类型。

PaymentType

String

实例的付费类型。

InstanceClass

String

实例规格。

SourceEndpointRegion

String

源实例区域。

CreateTime

String

任务创建时间。

示例

YAML
JSON
                              ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DtsInstanceId:
    Description:
      en: Synchronization instance ID.
    Required: false
    Type: String
  RefreshOptions:
    AllowedValues:
    - Always
    - Never
    Default: Never
    Description:
      en: 'The refresh strategy for the datasource resource when the stack is updated.
        Valid values:

        - Never: Never refresh the datasource resource when the stack is updated.

        - Always: Always refresh the datasource resource when the stack is updated.

        Default is Never.'
    Required: false
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      DtsInstanceId:
        Ref: DtsInstanceId
      RefreshOptions:
        Ref: RefreshOptions
    Type: DATASOURCE::DTS::SynchronizationJobs
Outputs:
  DtsInstanceIds:
    Description: The list of dts instance IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DtsInstanceIds
  SynchronizationInstances:
    Description: The list of synchronization instances.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SynchronizationInstances
                        
                        {
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DtsInstanceId": {
      "Type": "String",
      "Description": {
        "en": "Synchronization instance ID."
      },
      "Required": false
    },
    "RefreshOptions": {
      "Type": "String",
      "Description": {
        "en": "The refresh strategy for the datasource resource when the stack is updated. Valid values:\n- Never: Never refresh the datasource resource when the stack is updated.\n- Always: Always refresh the datasource resource when the stack is updated.\nDefault is Never."
      },
      "AllowedValues": [
        "Always",
        "Never"
      ],
      "Required": false,
      "Default": "Never"
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::DTS::SynchronizationJobs",
      "Properties": {
        "DtsInstanceId": {
          "Ref": "DtsInstanceId"
        },
        "RefreshOptions": {
          "Ref": "RefreshOptions"
        }
      }
    }
  },
  "Outputs": {
    "SynchronizationInstances": {
      "Description": "The list of synchronization instances.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SynchronizationInstances"
        ]
      }
    },
    "DtsInstanceIds": {
      "Description": "The list of dts instance IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DtsInstanceIds"
        ]
      }
    }
  }
}
                        
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回值
  • 示例
文档反馈
phone 联系我们

立即和Alibaba Cloud在线服务人员进行交谈,获取您想了解的产品信息以及最新折扣。

alicare alicarealicarealicare