Modifies the specified Traffic Mirror rule¶
Description¶
Modifies the specified Traffic Mirror rule.
DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.
Usage¶
ec2_modify_traffic_mirror_filter_rule(TrafficMirrorFilterRuleId,
TrafficDirection, RuleNumber, RuleAction, DestinationPortRange,
SourcePortRange, Protocol, DestinationCidrBlock, SourceCidrBlock,
Description, RemoveFields, DryRun)
Arguments¶
-
TrafficMirrorFilterRuleId[required] The ID of the Traffic Mirror rule.
-
TrafficDirectionThe type of traffic to assign to the rule.
-
RuleNumberThe 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.
-
RuleActionThe action to assign to the rule.
-
DestinationPortRangeThe destination ports that are associated with the Traffic Mirror rule.
-
SourcePortRangeThe port range to assign to the Traffic Mirror rule.
-
ProtocolThe protocol, for example TCP, to assign to the Traffic Mirror rule.
-
DestinationCidrBlockThe destination CIDR block to assign to the Traffic Mirror rule.
-
SourceCidrBlockThe source CIDR block to assign to the Traffic Mirror rule.
-
DescriptionThe description to assign to the Traffic Mirror rule.
-
RemoveFieldsThe 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.
-
DryRunChecks 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 isUnauthorizedOperation.
Value¶
A list with the following syntax:
list(
TrafficMirrorFilterRule = list(
TrafficMirrorFilterRuleId = "string",
TrafficMirrorFilterId = "string",
TrafficDirection = "ingress"|"egress",
RuleNumber = 123,
RuleAction = "accept"|"reject",
Protocol = 123,
DestinationPortRange = list(
FromPort = 123,
ToPort = 123
),
SourcePortRange = list(
FromPort = 123,
ToPort = 123
),
DestinationCidrBlock = "string",
SourceCidrBlock = "string",
Description = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
)
Request syntax¶
svc$modify_traffic_mirror_filter_rule(
TrafficMirrorFilterRuleId = "string",
TrafficDirection = "ingress"|"egress",
RuleNumber = 123,
RuleAction = "accept"|"reject",
DestinationPortRange = list(
FromPort = 123,
ToPort = 123
),
SourcePortRange = list(
FromPort = 123,
ToPort = 123
),
Protocol = 123,
DestinationCidrBlock = "string",
SourceCidrBlock = "string",
Description = "string",
RemoveFields = list(
"destination-port-range"|"source-port-range"|"protocol"|"description"
),
DryRun = TRUE|FALSE
)