ALIYUN::RDS::ADInfo類型用于配置AD域服務。

語法

{
  "Type": "ALIYUN::RDS::ADInfo",
  "Properties": {
    "ADServerIpAddress": String,
    "ADDNS": String,
    "DBInstanceId": String,
    "ADPassword": String,
    "ADAccountName": String
  }
}

屬性

屬性名稱 類型 必須 允許更新 描述 約束
ADServerIpAddress String AD服務器所在IP地址。 必須與RDS處于同一專有網絡。
ADDNS String 域名。
DBInstanceId String RDS實例ID。
ADPassword String 域密碼。
ADAccountName String 域賬號。

返回值

Fn::GetAtt

  • ADDNS:域名。
  • DBInstanceId:RDS實例ID。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ADServerIpAddress": {
      "Type": "String",
      "Description": "The IP address of the AD server, it must be in the same VPC as the RDS."
    },
    "ADDNS": {
      "Type": "String",
      "Description": "Active directory domain name."
    },
    "DBInstanceId": {
      "Type": "String",
      "Description": "The ID of the instance."
    },
    "ADPassword": {
      "Type": "String",
      "Description": "Domain password. "
    },
    "ADAccountName": {
      "Type": "String",
      "Description": "Domain account name. "
    }
  },
  "Resources": {
    "AdInfo": {
      "Type": "ALIYUN::RDS::ADInfo",
      "Properties": {
        "ADServerIpAddress": {
          "Ref": "ADServerIpAddress"
        },
        "ADDNS": {
          "Ref": "ADDNS"
        },
        "DBInstanceId": {
          "Ref": "DBInstanceId"
        },
        "ADPassword": {
          "Ref": "ADPassword"
        },
        "ADAccountName": {
          "Ref": "ADAccountName"
        }
      }
    }
  },
  "Outputs": {
    "ADDNS": {
      "Description": "Active directory domain name.",
      "Value": {
        "Fn::GetAtt": [
          "AdInfo",
          "ADDNS"
        ]
      }
    },
    "DBInstanceId": {
      "Description": "The ID of the instance.",
      "Value": {
        "Fn::GetAtt": [
          "AdInfo",
          "DBInstanceId"
        ]
      }
    }
  }
}

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ADServerIpAddress:
    Type: String
    Description: 'The IP address of the AD server, it must be in the same VPC as the RDS.'
  ADDNS:
    Type: String
    Description: Active directory domain name.
  DBInstanceId:
    Type: String
    Description: The ID of the instance.
  ADPassword:
    Type: String
    Description: 'Domain password. '
  ADAccountName:
    Type: String
    Description: 'Domain account name. '
Resources:
  AdInfo:
    Type: 'ALIYUN::RDS::ADInfo'
    Properties:
      ADServerIpAddress:
        Ref: ADServerIpAddress
      ADDNS:
        Ref: ADDNS
      DBInstanceId:
        Ref: DBInstanceId
      ADPassword:
        Ref: ADPassword
      ADAccountName:
        Ref: ADAccountName
Outputs:
  ADDNS:
    Description: Active directory domain name.
    Value:
      'Fn::GetAtt':
        - AdInfo
        - ADDNS
  DBInstanceId:
    Description: The ID of the instance.
    Value:
      'Fn::GetAtt':
        - AdInfo
        - DBInstanceId