ALIYUN::ECS::NetworkInterfacePermission類型用于授權彈性網卡。
語法
{
"Type": "ALIYUN::ECS::NetworkInterfacePermission",
"Properties": {
"NetworkInterfaceId": String,
"AccountId": String,
"Permission": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
NetworkInterfaceId | String | 是 | 否 | 彈性網卡ID。 | 無 |
AccountId | String | 是 | 否 | 賬號ID。 | 無 |
Permission | String | 是 | 否 | 授權。 | 無 |
返回值
Fn::GetAtt
NetworkInterfacePermissionId: 授權彈性網卡ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
NetworkInterfaceId:
Type: String
Description: Network interface id
Permission:
Type: String
Description: the permission
Default: InstanceAttach
Resources:
NetworkInterfacePermission:
Type: ALIYUN::ECS::NetworkInterfacePermission
Properties:
NetworkInterfaceId:
Ref: NetworkInterfaceId
AccountId:
Ref: ALIYUN::AccountId
Permission:
Ref: Permission
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"NetworkInterfaceId": {
"Type": "String",
"Description": "Network interface id"
},
"Permission": {
"Type": "String",
"Description": "the permission",
"Default": "InstanceAttach"
}
},
"Resources": {
"NetworkInterfacePermission": {
"Type": "ALIYUN::ECS::NetworkInterfacePermission",
"Properties": {
"NetworkInterfaceId": {
"Ref": "NetworkInterfaceId"
},
"AccountId": {
"Ref": "ALIYUN::AccountId"
},
"Permission": {
"Ref": "Permission"
}
}
}
}
}
文檔內容是否對您有幫助?