DATASOURCE::VPC::FlowLog类型用于查询指定流日志ID的流日志。
语法
{
"Type": "DATASOURCE::VPC::FlowLog",
"Properties": {
"FlowLogId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
FlowLogId | String | 是 | 是 | 流日志ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
FlowLogName:流日志名称。
Description:流日志描述信息。
LogStoreName:存储捕获到的流量的Logstore。
ResourceId:要捕获的流量的资源ID。
ProjectName:管理捕获到的流量的Project。
CreateTime:创造的时间。
ResourceType:要捕获的流量的资源类型。
BusinessStatus:业务状况。
FlowLogId:流日志ID。
AggregationInterval:数据聚合间隔。
TrafficType:采集的流量类型。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FlowLogId:
Description:
en: The flow log ID.
Required: true
Type: String
Resources:
ExtensionDataSource:
Properties:
FlowLogId:
Ref: FlowLogId
Type: DATASOURCE::VPC::FlowLog
Outputs:
AggregationInterval:
Description: Data aggregation interval.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AggregationInterval
BusinessStatus:
Description: Business status.
Value:
Fn::GetAtt:
- ExtensionDataSource
- BusinessStatus
CreateTime:
Description: the time of creation.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
Description:
Description: The Description of flow log.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
FlowLogId:
Description: The flow log ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FlowLogId
FlowLogName:
Description: The flow log name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FlowLogName
LogStoreName:
Description: The log store name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LogStoreName
ProjectName:
Description: The project name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ProjectName
ResourceId:
Description: The resource id.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceId
ResourceType:
Description: The resource type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceType
TrafficType:
Description: The traffic type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TrafficType
JSON格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FlowLogId": {
"Type": "String",
"Description": {
"en": "The flow log ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::FlowLog",
"Properties": {
"FlowLogId": {
"Ref": "FlowLogId"
}
}
}
},
"Outputs": {
"FlowLogName": {
"Description": "The flow log name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FlowLogName"
]
}
},
"Description": {
"Description": "The Description of flow log.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"LogStoreName": {
"Description": "The log store name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LogStoreName"
]
}
},
"ResourceId": {
"Description": "The resource id.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceId"
]
}
},
"ProjectName": {
"Description": "The project name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ProjectName"
]
}
},
"CreateTime": {
"Description": "the time of creation.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"ResourceType": {
"Description": "The resource type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceType"
]
}
},
"BusinessStatus": {
"Description": "Business status.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"BusinessStatus"
]
}
},
"FlowLogId": {
"Description": "The flow log ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FlowLogId"
]
}
},
"AggregationInterval": {
"Description": "Data aggregation interval.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AggregationInterval"
]
}
},
"TrafficType": {
"Description": "The traffic type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TrafficType"
]
}
}
}
}
文档内容是否对您有帮助?