Skip to content

TrafficMirrorSessionProps

Properties for defining a TrafficMirrorSession.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-trafficmirrorsession

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc"
&alicloudroscdkvpc.TrafficMirrorSessionProps {
    Priority: interface{},
    TrafficMirrorFilterId: interface{},
    TrafficMirrorSourceIds: interface{},
    TrafficMirrorTargetId: interface{},
    TrafficMirrorTargetType: interface{},
    Enabled: interface{},
    PacketLength: interface{},
    ResourceGroupId: interface{},
    Tag: interface{},
    TrafficMirrorSessionDescription: interface{},
    TrafficMirrorSessionName: interface{},
    VirtualNetworkId: interface{},
}

Properties

Name Type Description
Priority interface{} Property priority: The priority of the traffic mirror session.
TrafficMirrorFilterId interface{} Property trafficMirrorFilterId: The ID of the filter.
TrafficMirrorSourceIds interface{} Property trafficMirrorSourceIds: undefined.
TrafficMirrorTargetId interface{} Property trafficMirrorTargetId: The ID of the traffic mirror destination.
TrafficMirrorTargetType interface{} Property trafficMirrorTargetType: The type of the traffic mirror destination.
Enabled interface{} Property enabled: Specifies whether to enable the traffic mirror session.
PacketLength interface{} Property packetLength: The maximum transmission unit (MTU).
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group to which the mirrored traffic belongs.
Tag interface{} Property tag:.
TrafficMirrorSessionDescription interface{} Property trafficMirrorSessionDescription: The description of the traffic mirror session.
TrafficMirrorSessionName interface{} Property trafficMirrorSessionName: The name of the traffic mirror session.
VirtualNetworkId interface{} Property virtualNetworkId: The VXLAN network identifier (VNI).

PriorityRequired

Priority interface{}
  • Type: interface{}

Property priority: The priority of the traffic mirror session.

Valid values: 1 to 32766. A smaller value indicates a higher priority. You cannot specify identical priorities for traffic mirror sessions that are created in the same region by using the same account.


TrafficMirrorFilterIdRequired

TrafficMirrorFilterId interface{}
  • Type: interface{}

Property trafficMirrorFilterId: The ID of the filter.


TrafficMirrorSourceIdsRequired

TrafficMirrorSourceIds interface{}
  • Type: interface{}

Property trafficMirrorSourceIds: undefined.


TrafficMirrorTargetIdRequired

TrafficMirrorTargetId interface{}
  • Type: interface{}

Property trafficMirrorTargetId: The ID of the traffic mirror destination.

You can specify only an elastic network interface (ENI) or a Server Load Balancer (SLB) instance as a traffic mirror destination.


TrafficMirrorTargetTypeRequired

TrafficMirrorTargetType interface{}
  • Type: interface{}

Property trafficMirrorTargetType: The type of the traffic mirror destination.

Valid values:

  • NetworkInterface: an ENI
  • SLB: an SLB instance

EnabledOptional

Enabled interface{}
  • Type: interface{}

Property enabled: Specifies whether to enable the traffic mirror session.

Valid values:

  • false (default): does not enable the traffic mirror session.
  • true: enables the traffic mirror session.

PacketLengthOptional

PacketLength interface{}
  • Type: interface{}

Property packetLength: The maximum transmission unit (MTU).

Default value: 1500.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group to which the mirrored traffic belongs.


TagOptional

Tag interface{}
  • Type: interface{}

Property tag:.


TrafficMirrorSessionDescriptionOptional

TrafficMirrorSessionDescription interface{}
  • Type: interface{}

Property trafficMirrorSessionDescription: The description of the traffic mirror session.

The description must be 1 to 256 characters in length and cannot start with http:// or https://.


TrafficMirrorSessionNameOptional

TrafficMirrorSessionName interface{}
  • Type: interface{}

Property trafficMirrorSessionName: The name of the traffic mirror session.

The name must be 1 to 128 characters in length and cannot start with http:// or https://.


VirtualNetworkIdOptional

VirtualNetworkId interface{}
  • Type: interface{}

Property virtualNetworkId: The VXLAN network identifier (VNI).

Valid values: 0 to 16777215. You can use VNIs to identify mirrored traffic from different sessions at the traffic mirror destination. You can specify a custom VNI or use a random VNI allocated by the system. If you want the system to randomly allocate a VNI, do not enter a value.