语法
{
"Type": "ALIYUN::ECS::NetworkInterfacePermission",
"Properties": {
"NetworkInterfaceId": String,
"AccountId": String,
"Permission": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
NetworkInterfaceId | String | 是 | 否 | 弹性网卡ID。 | 无 |
AccountId | String | 是 | 否 | 账号ID。 | 无 |
Permission | String | 是 | 否 | 授权。 | 无 |
示例
YAML
格式
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
JSON
格式
{
"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"
}
}
}
}
}