Skip to content

Describe traffic mirror filters that determine the traffic that is mirrored

Description

Describe traffic mirror filters that determine the traffic that is mirrored.

Usage

ec2_describe_traffic_mirror_filter_rules(TrafficMirrorFilterRuleIds,
  TrafficMirrorFilterId, DryRun, Filters, MaxResults, NextToken)

Arguments

  • TrafficMirrorFilterRuleIds

    Traffic filter rule IDs.

  • TrafficMirrorFilterId

    Traffic filter ID.

  • 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.

  • Filters

    Traffic mirror filters.

    • traffic-mirror-filter-rule-id: The ID of the Traffic Mirror rule.
    • traffic-mirror-filter-id: The ID of the filter that this rule is associated with.
    • rule-number: The number of the Traffic Mirror rule.
    • rule-action: The action taken on the filtered traffic. Possible actions are accept and reject.
    • traffic-direction: The traffic direction. Possible directions are ingress and egress.
    • protocol: The protocol, for example UDP, assigned to the Traffic Mirror rule.
    • source-cidr-block: The source CIDR block assigned to the Traffic Mirror rule.
    • destination-cidr-block: The destination CIDR block assigned to the Traffic Mirror rule.
    • description: The description of the Traffic Mirror rule.
  • MaxResults

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • NextToken

    The token for the next page of results.

Value

A list with the following syntax:

list(
  TrafficMirrorFilterRules = list(
    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"
        )
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$describe_traffic_mirror_filter_rules(
  TrafficMirrorFilterRuleIds = list(
    "string"
  ),
  TrafficMirrorFilterId = "string",
  DryRun = TRUE|FALSE,
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  MaxResults = 123,
  NextToken = "string"
)