Skip to content

TrafficMirrorSessionProps

Properties for defining a TrafficMirrorSession.

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

Initializer

import com.aliyun.ros.cdk.vpc.TrafficMirrorSessionProps;
TrafficMirrorSessionProps.builder()
    .priority(java.lang.Number)
    .priority(IResolvable)
    .trafficMirrorFilterId(java.lang.String)
    .trafficMirrorFilterId(IResolvable)
    .trafficMirrorSourceIds(IResolvable)
    .trafficMirrorSourceIds(java.util.List<java.lang.String)
    .trafficMirrorSourceIds(IResolvable>)
    .trafficMirrorTargetId(java.lang.String)
    .trafficMirrorTargetId(IResolvable)
    .trafficMirrorTargetType(java.lang.String)
    .trafficMirrorTargetType(IResolvable)
//  .enabled(java.lang.Boolean)
//  .enabled(IResolvable)
//  .packetLength(java.lang.Number)
//  .packetLength(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .tag(IResolvable)
//  .tag(java.util.List<IResolvable)
//  .tag(RosTag>)
//  .trafficMirrorSessionDescription(java.lang.String)
//  .trafficMirrorSessionDescription(IResolvable)
//  .trafficMirrorSessionName(java.lang.String)
//  .trafficMirrorSessionName(IResolvable)
//  .virtualNetworkId(java.lang.Number)
//  .virtualNetworkId(IResolvable)
    .build();

Properties

Name Type Description
priority java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property priority: The priority of the traffic mirror session.
trafficMirrorFilterId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property trafficMirrorFilterId: The ID of the filter.
trafficMirrorSourceIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property trafficMirrorSourceIds: undefined.
trafficMirrorTargetId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property trafficMirrorTargetId: The ID of the traffic mirror destination.
trafficMirrorTargetType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property trafficMirrorTargetType: The type of the traffic mirror destination.
enabled java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property enabled: Specifies whether to enable the traffic mirror session.
packetLength java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property packetLength: The maximum transmission unit (MTU).
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group to which the mirrored traffic belongs.
tag com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property tag:.
trafficMirrorSessionDescription java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property trafficMirrorSessionDescription: The description of the traffic mirror session.
trafficMirrorSessionName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property trafficMirrorSessionName: The name of the traffic mirror session.
virtualNetworkId java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property virtualNetworkId: The VXLAN network identifier (VNI).

priorityRequired

public java.lang.Object getPriority();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getTrafficMirrorFilterId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property trafficMirrorFilterId: The ID of the filter.


trafficMirrorSourceIdsRequired

public java.lang.Object getTrafficMirrorSourceIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property trafficMirrorSourceIds: undefined.


trafficMirrorTargetIdRequired

public java.lang.Object getTrafficMirrorTargetId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getTrafficMirrorTargetType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property trafficMirrorTargetType: The type of the traffic mirror destination.

Valid values:

  • NetworkInterface: an ENI
  • SLB: an SLB instance

enabledOptional

public java.lang.Object getEnabled();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getPacketLength();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property packetLength: The maximum transmission unit (MTU).

Default value: 1500.


resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


tagOptional

public java.lang.Object getTag();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property tag:.


trafficMirrorSessionDescriptionOptional

public java.lang.Object getTrafficMirrorSessionDescription();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getTrafficMirrorSessionName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

public java.lang.Object getVirtualNetworkId();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

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.