ALIYUN::SAG::GrantCcnToCen类型用于将云企业网实例授权给云连接网。
语法
{
  "Type": "ALIYUN::SAG::GrantCcnToCen",
  "Properties": {
    "CenInstanceId": String,
    "CenUid": String,
    "CcnInstanceId": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
|---|---|---|---|---|---|
| CenInstanceId | String | 是 | 否 | 云企业网实例的ID。 | 无。 | 
| CenUid | String | 是 | 否 | 云企业网的UID。 | 无。 | 
| CcnInstanceId | String | 是 | 否 | 云连接网的实例ID。 | 无。 | 
返回值
Fn::GetAtt
- CenInstanceId:云企业网实例的ID。
- CcnInstanceId:云连接网实例的ID
示例
JSON格式
                  
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "GrantCcnToCen": {
      "Type": "ALIYUN::SAG::GrantCcnToCen",
      "Properties": {
        "CenInstanceId": {
          "Ref": "CenInstanceId"
        },
        "CenUid": {
          "Ref": "CenUid"
        },
        "CcnInstanceId": {
          "Ref": "CcnInstanceId"
        }
      }
    }
  },
  "Parameters": {
    "CenInstanceId": {
      "Type": "String",
      "Description": "The ID of the CEN instance."
    },
    "CenUid": {
      "Type": "String",
      "Description": "The ID of the account to which the CEN instance belongs."
    },
    "CcnInstanceId": {
      "Type": "String",
      "Description": "The ID of the CCN instance."
    }
  },
  "Outputs": {
    "CenInstanceId": {
      "Description": "The ID of the CEN instance.",
      "Value": {
        "Fn::GetAtt": [
          "GrantCcnToCen",
          "CenInstanceId"
        ]
      }
    },
    "CcnInstanceId": {
      "Description": "The ID of the CCN instance.",
      "Value": {
        "Fn::GetAtt": [
          "GrantCcnToCen",
          "CcnInstanceId"
        ]
      }
    }
  }
}YAML格式
                  
ROSTemplateFormatVersion: '2015-09-01'
Resources:
  GrantCcnToCen:
    Type: ALIYUN::SAG::GrantCcnToCen
    Properties:
      CenInstanceId:
        Ref: CenInstanceId
      CenUid:
        Ref: CenUid
      CcnInstanceId:
        Ref: CcnInstanceId
Parameters:
  CenInstanceId:
    Type: String
    Description: The ID of the CEN instance.
  CenUid:
    Type: String
    Description: The ID of the account to which the CEN instance belongs.
  CcnInstanceId:
    Type: String
    Description: The ID of the CCN instance.
Outputs:
  CenInstanceId:
    Description: The ID of the CEN instance.
    Value:
      Fn::GetAtt:
      - GrantCcnToCen
      - CenInstanceId
  CcnInstanceId:
    Description: The ID of the CCN instance.
    Value:
      Fn::GetAtt:
      - GrantCcnToCen
      - CcnInstanceId