全部产品
Search
文档中心

资源编排:DATASOURCE::VPC::TrafficMirrorFilters

更新时间:Mar 01, 2023

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

语法

{
  "Type": "DATASOURCE::VPC::TrafficMirrorFilters",
  "Properties": {
    "TrafficMirrorFilterName": String
  }
}

属性

属性名称类型必须允许更新描述约束
TrafficMirrorFilterNameString流量镜像筛选条件的名称。

返回值

Fn::GetAtt

  • TrafficMirrorFilters:流量镜像筛选条件的详情列表。
  • TrafficMirrorFilterIds:流量镜像筛选条件的ID列表。
属性名称类型描述约束
TrafficMirrorFilterIdsList流量镜像筛选条件的ID列表。
TrafficMirrorFiltersList流量镜像筛选条件的详情列表。
StatusString流量镜像筛选条件的状态。取值:
  • Creating:创建中。
  • Created:已创建。
  • Modifying:修改中。
  • Deleting:删除中。
TrafficMirrorFilterDescriptionString流量镜像筛选条件的描述信息。
TrafficMirrorFilterNameString流量镜像筛选条件的名称。
IngressRulesList入方向规则详情列表。示例:
[ {
      "TrafficMirrorFilterRuleStatus" : "Created",
      "Action" : "accept",
      "SourceCidrBlock" : "0.0.0.0/0",
      "TrafficDirection" : "ingress",
      "Protocol" : "ALL",
      "DestinationPortRange" : "-1/-1",
      "TrafficMirrorFilterRuleId" : "tmr-j6cezu8e68rnpepet****",
      "DestinationCidrBlock" : "0.0.0.0/0",
      "Priority" : 1,
      "TrafficMirrorFilterId" : "tmf-j6cmls82xnc86vtpe****",
      "SourcePortRange" : "-1/-1"
    } ]
EgressRulesList出方向规则详情列表。示例:
[ {
      "TrafficMirrorFilterRuleStatus" : "Created",
      "Action" : "accept",
      "SourceCidrBlock" : "10.0.0.0/24",
      "TrafficDirection" : "egress",
      "Protocol" : "TCP",
      "DestinationPortRange" : "22/40",
      "TrafficMirrorFilterRuleId" : "tmr-j6c89rzmtd3hhdugq****",
      "DestinationCidrBlock" : "10.0.0.0/24",
      "Priority" : 1,
      "TrafficMirrorFilterId" : "tmf-j6cmls82xnc86vtpe****",
      "SourcePortRange" : "22/40"
    } ]
TrafficMirrorFilterIdString流量镜像筛选条件的实例ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
    Resources:
      ExtensionDataSource:
        Properties:
          TrafficMirrorFilterName: Demo
        Type: DATASOURCE::VPC::TrafficMirrorFilters
    Outputs:
      TrafficMirrorFilterIds:
        Description: The list of traffic mirror filter IDs.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - TrafficMirrorFilterIds
      TrafficMirrorFilters:
        Description: The list of traffic mirror filters.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - TrafficMirrorFilters
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::VPC::TrafficMirrorFilters",
          "Properties": {
            "TrafficMirrorFilterName": "Demo"
          }
        }
      },
      "Outputs": {
        "TrafficMirrorFilters": {
          "Description": "The list of traffic mirror filters.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "TrafficMirrorFilters"
            ]
          }
        },
        "TrafficMirrorFilterIds": {
          "Description": "The list of traffic mirror filter IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "TrafficMirrorFilterIds"
            ]
          }
        }
      }
    }