v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-171,1822,9897.4 MB

Modifies the specified Traffic Mirror rule.

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

get/#Action=ModifyTrafficMirrorFilterRule

Query parameters

TrafficMirrorFilterRuleIdstring required

The ID of the Traffic Mirror rule.

TrafficDirection'ingress' | 'egress'

The type of traffic to assign to the rule.

RuleNumberinteger

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.

RuleAction'accept' | 'reject'

The action to assign to the rule.

FromPortinteger

The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

ToPortinteger

The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

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

FromPortinteger

The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

ToPortinteger

The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

The port range to assign to the Traffic Mirror rule.

Protocolinteger

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

DestinationCidrBlockstring

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

SourceCidrBlockstring

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

Descriptionstring

The description to assign to the Traffic Mirror rule.

RemoveFieldTrafficMirrorFilterRuleField[]
<p>The properties that you want to remove from the Traffic Mirror filter rule.</p> <p>When you remove a property from a Traffic Mirror filter rule, the property is set to the default.</p>
DryRunboolean

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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.

Action'ModifyTrafficMirrorFilterRule' required
Version'2016-11-15' required

Response

Success