ec2_modify_traffic_mirror_filter_rule: Modifies the specified Traffic Mirror rule

Description Usage Arguments Value Request syntax

View source: R/ec2_operations.R

Description

Modifies the specified Traffic Mirror rule.

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

Usage

1
2
3
4
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 (ingress | egress) 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:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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"
  )
)

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
)

paws.compute documentation built on March 7, 2021, 5:10 p.m.