Skip to content

/AWS1/CL_EC2=>CREATETRAFFICMIRRORTARGET()

About CreateTrafficMirrorTarget

Creates a target for your Traffic Mirror session.

A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.

A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.

To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession.

Method Signature

IMPORTING

Optional arguments:

IV_NETWORKINTERFACEID TYPE /AWS1/EC2NETWORKINTERFACEID /AWS1/EC2NETWORKINTERFACEID

The network interface ID that is associated with the target.

IV_NETWORKLOADBALANCERARN TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.

IV_DESCRIPTION TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The description of the Traffic Mirror target.

IT_TAGSPECIFICATIONS TYPE /AWS1/CL_EC2TAGSPECIFICATION=>TT_TAGSPECIFICATIONLIST TT_TAGSPECIFICATIONLIST

The tags to assign to the Traffic Mirror target.

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

IV_CLIENTTOKEN TYPE /AWS1/EC2STRING /AWS1/EC2STRING

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

IV_GWLOADBALANCERENDPTID TYPE /AWS1/EC2VPCENDPOINTID /AWS1/EC2VPCENDPOINTID

The ID of the Gateway Load Balancer endpoint.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2CRETRAFMIRRTGTRSLT /AWS1/CL_EC2CRETRAFMIRRTGTRSLT