Skip to content

/AWS1/CL_EC2=>MODIFYTRAFMIRRORFILTERRULE()

About ModifyTrafficMirrorFilterRule

Modifies the specified Traffic Mirror rule.

DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.

Method Signature

IMPORTING

Required arguments:

IV_TRAFFICMIRRORFILTERRULEID TYPE /AWS1/EC2TRFMIRRFILTRLIDWRES00 /AWS1/EC2TRFMIRRFILTRLIDWRES00

The ID of the Traffic Mirror rule.

Optional arguments:

IV_TRAFFICDIRECTION TYPE /AWS1/EC2TRAFFICDIRECTION /AWS1/EC2TRAFFICDIRECTION

The type of traffic to assign to the rule.

IV_RULENUMBER TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.

IV_RULEACTION TYPE /AWS1/EC2TRAFMIRRORRULEACTION /AWS1/EC2TRAFMIRRORRULEACTION

The action to assign to the rule.

IO_DESTINATIONPORTRANGE TYPE REF TO /AWS1/CL_EC2TRFMIRRPORTRANGE00 /AWS1/CL_EC2TRFMIRRPORTRANGE00

The destination ports that are associated with the Traffic Mirror rule.

IO_SOURCEPORTRANGE TYPE REF TO /AWS1/CL_EC2TRFMIRRPORTRANGE00 /AWS1/CL_EC2TRFMIRRPORTRANGE00

The port range to assign to the Traffic Mirror rule.

IV_PROTOCOL TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The protocol, for example TCP, to assign to the Traffic Mirror rule.

IV_DESTINATIONCIDRBLOCK TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The destination CIDR block to assign to the Traffic Mirror rule.

IV_SOURCECIDRBLOCK TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The source CIDR block to assign to the Traffic Mirror rule.

IV_DESCRIPTION TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The description to assign to the Traffic Mirror rule.

IT_REMOVEFIELDS TYPE /AWS1/CL_EC2TRFMIRRFILTRLFIE00=>TT_TRAFMIRRFILTERRULEFIELDLIST TT_TRAFMIRRFILTERRULEFIELDLIST

The properties that you want to remove from the Traffic Mirror filter rule.

When you remove a property from a Traffic Mirror filter rule, the property is set to the default.

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2MODTRFMIRRFILTRLRS /AWS1/CL_EC2MODTRFMIRRFILTRLRS