All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::VPC::TrafficMirrorSessionSourcesAddition

Last Updated:Nov 23, 2023

ALIYUN::VPC::TrafficMirrorSessionSourcesAddition is used to add traffic mirror sources to traffic mirror sessions.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

TrafficMirrorSourceIds

List

Yes

No

The IDs of the traffic mirror sources.

You can specify only an elastic network instance (ENI) as the traffic mirror source. You can add only one traffic mirror source to a traffic mirror session.

TrafficMirrorSessionId

String

Yes

No

The ID of the traffic mirror session.

None.

Return values

Fn::GetAtt

None.

Examples

  • YAML format

    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 format

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