全部产品
Search
文档中心

资源编排:ALIYUN::GA::Domain

更新时间:Dec 03, 2024

ALIYUN::GA::Domain类型用于创建域名。

语法

{
  "Type": "ALIYUN::GA::Domain",
  "Properties": {
    "AcceleratorIds": List,
    "Domain": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AcceleratorIds

List

全球加速实例 ID列表。

最多支持输入 50 个全球加速 ID。

Domain

String

待添加的加速域名。

返回值

Fn::GetAtt

  • AcceleratorIds:全球加速实例 ID列表。

  • Domain:加速域名。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AcceleratorIds:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Description:
          en: The ID of the GA instance to be disassociated.
        Required: true
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: The IDs of the GA instance to be disassociated. You can specify up to 50 IDs.
    Required: true
    MinLength: 1
    MaxLength: 50
  Domain:
    Type: String
    Description:
      en: The accelerated domain name to be disassociated.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::GA::Domain
    Properties:
      AcceleratorIds:
        Ref: AcceleratorIds
      Domain:
        Ref: Domain
Outputs:
  AcceleratorIds:
    Description: The IDs of GA instances.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AcceleratorIds
  Domain:
    Description: The accelerated domain name.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Domain
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AcceleratorIds": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Description": {
            "en": "The ID of the GA instance to be disassociated."
          },
          "Required": true
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The IDs of the GA instance to be disassociated. You can specify up to 50 IDs."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 50
    },
    "Domain": {
      "Type": "String",
      "Description": {
        "en": "The accelerated domain name to be disassociated."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::GA::Domain",
      "Properties": {
        "AcceleratorIds": {
          "Ref": "AcceleratorIds"
        },
        "Domain": {
          "Ref": "Domain"
        }
      }
    }
  },
  "Outputs": {
    "AcceleratorIds": {
      "Description": "The IDs of GA instances.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AcceleratorIds"
        ]
      }
    },
    "Domain": {
      "Description": "The accelerated domain name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Domain"
        ]
      }
    }
  }
}