Skip to content

Modify Traffic Mirror Filter Rule

ec2_modify_traffic_mirror_filter_rule R Documentation

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.

TrafficDirection

The type of traffic to assign to the rule.

RuleNumber

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

The action to assign to the rule.

DestinationPortRange

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

SourcePortRange

The port range to assign to the Traffic Mirror rule.

Protocol

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

DestinationCidrBlock

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

SourceCidrBlock

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

Description

The description to assign to the Traffic Mirror rule.

RemoveFields

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.

DryRun

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.

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
)