全部产品
Search
文档中心

资源编排:DATASOURCE::VPC::FlowLog

更新时间:Jan 31, 2024

DATASOURCE::VPC::FlowLog类型用于查询指定流日志ID的流日志。

语法

{
  "Type": "DATASOURCE::VPC::FlowLog",
  "Properties": {
    "FlowLogId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

FlowLogId

String

流日志ID。

返回值

Fn::GetAtt

  • FlowLogName:流日志名称。

  • Description:流日志描述信息。

  • LogStoreName:存储捕获到的流量的Logstore。

  • ResourceId:要捕获的流量的资源ID。

  • ProjectName:管理捕获到的流量的Project。

  • CreateTime:创造的时间。

  • ResourceType:要捕获的流量的资源类型。

  • BusinessStatus:业务状况

  • FlowLogId:流日志ID。

  • AggregationInterval:数据聚合间隔。

  • TrafficType:采集的流量类型。

示例

  • YAML格式

    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"
            ]
          }
        }
      }
    }