全部产品
Search
文档中心

资源编排:ALIYUN::VPC::TrafficMirrorSessionSourcesAddition

更新时间:Nov 23, 2023

ALIYUN::VPC::TrafficMirrorSessionSourcesAddition类型用于为镜像会话增加镜像源。

语法

{
  "Type": "ALIYUN::VPC::TrafficMirrorSessionSourcesAddition",
  "Properties": {
    "TrafficMirrorSourceIds": List,
    "TrafficMirrorSessionId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

TrafficMirrorSourceIds

List

需要增加镜像源的实例ID。

目前支持弹性网卡作为镜像源。一个镜像会话只支持添加一个镜像源。

TrafficMirrorSessionId

String

需要增加镜像源的镜像会话实例ID。

返回值

Fn::GetAtt

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TrafficMirrorSessionId:
        Description: The ID of the traffic mirror session.
        Type: String
      TrafficMirrorSourceIds:
        AssociationProperty: List[Parameter]
        AssociationPropertyMetadata:
          Parameter:
            Description: The ID of the traffic mirror source. You can specify only an ENI as
                the traffic mirror source. The default value of N is 1, which means that
                you can add only one traffic mirror source to a traffic mirror session.
            Type: String
        Type: Json
    Resources:
      SourcesToTrafficMirrorSessionAddition:
        Properties:
          TrafficMirrorSessionId:
            Ref: TrafficMirrorSessionId
          TrafficMirrorSourceIds:
            Ref: TrafficMirrorSourceIds
        Type: ALIYUN::VPC::TrafficMirrorSessionSourcesAddition
                            
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TrafficMirrorSourceIds": {
          "AssociationPropertyMetadata": {
            "Parameter": {
              "Type": "String",
              "Description":  "The ID of the traffic mirror source. You can specify only an ENI as the traffic mirror source. The default value of N is 1, which means that you can add only one traffic mirror source to a traffic mirror session."
            }
          },
          "AssociationProperty": "List[Parameter]",
          "Type": "Json"
        },
        "TrafficMirrorSessionId": {
          "Type": "String",
          "Description": "The ID of the traffic mirror session."
        }
      },
      "Resources": {
        "SourcesToTrafficMirrorSessionAddition": {
          "Type": "ALIYUN::VPC::TrafficMirrorSessionSourcesAddition",
          "Properties": {
            "TrafficMirrorSourceIds": {
              "Ref": "TrafficMirrorSourceIds"
            },
            "TrafficMirrorSessionId": {
              "Ref": "TrafficMirrorSessionId"
            }
          }
        }
      }
    }