ALIYUN::CEN::CenInstance类型用于创建云企业网实例。
语法
{
  "Type": "ALIYUN::CEN::CenInstance",
  "Properties": {
    "Description": String,
    "Name": String,
    "ProtectionLevel": String,
    "ResourceGroupId": String,
    "Tags": List
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| Description | String | 否 | 是 | 云企业网实例的描述信息。 | 长度为2~256个字符,必须以英文字母或汉字开头,但不能以 | 
| Name | String | 否 | 是 | 云企业网实例的名称。 | 长度为2~128个字符,必须以英文字母或汉字开头,但不能以 | 
| ProtectionLevel | String | 否 | 否 | 网段重叠冲突的级别。 | 取值:REDUCED。表示可以有网段重叠,但是不能完全相等。 | 
| ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 | 
| Tags | List | 否 | 是 | 云企业网实例的标签。 | 最多支持添加20个标签。 更多信息,请参见Tags属性。 | 
Tags语法
"Tags": [
  {
    "Key": String,
    "Value": String
  }
]  Tags属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以 | 
| Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以 | 
返回值
Fn::GetAtt
- CenId:云企业网实例ID。 
- Arn:阿里云资源名称。 
示例
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  CenInstance:
    Type: ALIYUN::CEN::CenInstance
    Properties:
      Name: TestCen
Outputs:
  CenId:
    Description: The ID of the request.
    Value:
      Fn::GetAtt:
        - CenInstance
        - CenIdJSON格式
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "CenInstance": {
      "Type": "ALIYUN::CEN::CenInstance",
      "Properties": {
        "Name": "TestCen"
      }
    }
  },
  "Outputs": {
    "CenId": {
      "Description": "The ID of the request.",
      "Value": {
        "Fn::GetAtt": [
          "CenInstance",
          "CenId"
        ]
      }
    }
  }
}该文章对您有帮助吗?