全部产品
Search
文档中心

资源编排:DATASOURCE::VPC::TrafficMirrorFilter

更新时间:Jan 31, 2024

DATASOURCE::VPC::TrafficMirrorFilter类型用于查询流量镜像的筛选条件。

语法

{
  "Type": "DATASOURCE::VPC::TrafficMirrorFilter",
  "Properties": {
    "TrafficMirrorFilterId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

TrafficMirrorFilterId

String

流量镜像筛选条件的实例ID。

返回值

Fn::GetAtt

  • TrafficMirrorFilterDescription:流量镜像筛选条件的描述信息。

  • EgressRules:出方向规则详情列表。

  • TrafficMirrorFilterId:出方向规则关联的流量镜像筛选条件实例ID。

  • TrafficMirrorFilterName:流量镜像筛选条件的名称。

  • IngressRules:入方向规则详情列表。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TrafficMirrorFilterId:
        Description:
          en: The first ID of the resource.
        Required: true
        Type: String
    Resources:
      ExtensionDataSource:
        Properties:
          TrafficMirrorFilterId:
            Ref: TrafficMirrorFilterId
        Type: DATASOURCE::VPC::TrafficMirrorFilter
    Outputs:
      EgressRules:
        Description: EgressRules.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - EgressRules
      IngressRules:
        Description: IngressRules.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - IngressRules
      TrafficMirrorFilterDescription:
        Description: The description of the TrafficMirrorFilter.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - TrafficMirrorFilterDescription
      TrafficMirrorFilterId:
        Description: The first ID of the resource.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - TrafficMirrorFilterId
      TrafficMirrorFilterName:
        Description: The name of the TrafficMirrorFilter.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - TrafficMirrorFilterName
                            
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TrafficMirrorFilterId": {
          "Type": "String",
          "Description": {
            "en": "The first ID of the resource."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::VPC::TrafficMirrorFilter",
          "Properties": {
            "TrafficMirrorFilterId": {
              "Ref": "TrafficMirrorFilterId"
            }
          }
        }
      },
      "Outputs": {
        "TrafficMirrorFilterDescription": {
          "Description": "The description of the TrafficMirrorFilter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "TrafficMirrorFilterDescription"
            ]
          }
        },
        "EgressRules": {
          "Description": "EgressRules.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "EgressRules"
            ]
          }
        },
        "TrafficMirrorFilterId": {
          "Description": "The first ID of the resource.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "TrafficMirrorFilterId"
            ]
          }
        },
        "TrafficMirrorFilterName": {
          "Description": "The name of the TrafficMirrorFilter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "TrafficMirrorFilterName"
            ]
          }
        },
        "IngressRules": {
          "Description": "IngressRules.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "IngressRules"
            ]
          }
        }
      }
    }