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