全部产品
Search
文档中心

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

更新时间:Nov 27, 2024

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

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

TrafficMirrorFilterId

String

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

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

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

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

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

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

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

示例

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