DATASOURCE::EAIS::ClientInstanceAttachment类型用于查询一个弹性加速计算实例EAIS的详细信息。
语法
{
"Type": "DATASOURCE::EAIS::ClientInstanceAttachment",
"Properties": {
"ClientInstanceAttachmentId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ClientInstanceAttachmentId | String | 是 | 是 | 绑定的 ECS 或 ECI 实例 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值:
|
返回值
Fn::GetAtt
InstanceId:EAIS 实例 ID。
VSwitchId:虚拟交换机 ID。
SecurityGroupId:安全组 ID。
ClientInstanceId:与 EAIS 实例绑定的 ECS 或 ECI 实例 ID。
示例
YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ClientInstanceAttachmentId:
Type: String
Description:
en: The ID of the ECS or ECI instance bound to the EAIS instance.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::EAIS::ClientInstanceAttachment
Properties:
ClientInstanceAttachmentId:
Ref: ClientInstanceAttachmentId
Outputs:
InstanceId:
Description: The EAIS instance ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceId
VSwitchId:
Description: The vSwitch ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VSwitchId
SecurityGroupId:
Description: The ID of the security group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupId
ClientInstanceId:
Description: The ID of the ECS or ECI instance bound to the EAIS instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ClientInstanceId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ClientInstanceAttachmentId": {
"Type": "String",
"Description": {
"en": "The ID of the ECS or ECI instance bound to the EAIS instance."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::EAIS::ClientInstanceAttachment",
"Properties": {
"ClientInstanceAttachmentId": {
"Ref": "ClientInstanceAttachmentId"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "The EAIS instance ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceId"
]
}
},
"VSwitchId": {
"Description": "The vSwitch ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VSwitchId"
]
}
},
"SecurityGroupId": {
"Description": "The ID of the security group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupId"
]
}
},
"ClientInstanceId": {
"Description": "The ID of the ECS or ECI instance bound to the EAIS instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ClientInstanceId"
]
}
}
}
}
该文章对您有帮助吗?
- 本页导读 (1)
- 语法
- 属性
- 返回值
- 示例