すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:データソース::VPC::フローログ

最終更新日:Mar 17, 2025

DATASOURCE::VPC::FlowLog は、ログ ID でフローログをクエリするために使用されます。

構文

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

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

FlowLogId

String

はい

はい

フローログの ID。

なし。

RefreshOptions

String

いいえ

はい

スタックの更新時のデータソースリソースのリフレッシュポリシー。

有効な値:

  • Never (デフォルト): スタックの更新時にデータソースリソースをリフレッシュしません。

  • Always: スタックの更新時にデータソースリソースをリフレッシュします。

戻り値

Fn::GetAtt

  • FlowLogName: フローログの名前。

  • Description: フローログの説明。

  • LogStoreName: キャプチャされたトラフィックを格納するために使用される Logstore の名前。

  • ResourceId: トラフィックがキャプチャされるリソースの ID。

  • ProjectName: キャプチャされたトラフィックを管理するために使用されるプロジェクトの名前。

  • 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: データ集計間隔
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AggregationInterval
  BusinessStatus:
    Description: ビジネスステータス
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BusinessStatus
  CreateTime:
    Description: 作成時刻
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  Description:
    Description: フローログの説明
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Description
  FlowLogId:
    Description: フローログ ID
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - FlowLogId
  FlowLogName:
    Description: フローログ名
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - FlowLogName
  LogStoreName:
    Description: Logstore 名
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - LogStoreName
  ProjectName:
    Description: プロジェクト名
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ProjectName
  ResourceId:
    Description: リソース ID
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ResourceId
  ResourceType:
    Description: リソースタイプ
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ResourceType
  TrafficType:
    Description: トラフィックタイプ
    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": "フローログ名",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FlowLogName"
        ]
      }
    },
    "Description": {
      "Description": "フローログの説明",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "LogStoreName": {
      "Description": "Logstore 名",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LogStoreName"
        ]
      }
    },
    "ResourceId": {
      "Description": "リソース ID",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceId"
        ]
      }
    },
    "ProjectName": {
      "Description": "プロジェクト名",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ProjectName"
        ]
      }
    },
    "CreateTime": {
      "Description": "作成時刻",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "ResourceType": {
      "Description": "リソースタイプ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceType"
        ]
      }
    },
    "BusinessStatus": {
      "Description": "ビジネスステータス",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BusinessStatus"
        ]
      }
    },
    "FlowLogId": {
      "Description": "フローログ ID",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FlowLogId"
        ]
      }
    },
    "AggregationInterval": {
      "Description": "データ集計間隔",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AggregationInterval"
        ]
      }
    },
    "TrafficType": {
      "Description": "トラフィックタイプ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TrafficType"
        ]
      }
    }
  }
}