You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2::Types::CreateTrafficMirrorFilterRuleRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateTrafficMirrorFilterRuleRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  traffic_mirror_filter_id: "TrafficMirrorFilterId", # required
  traffic_direction: "ingress", # required, accepts ingress, egress
  rule_number: 1, # required
  rule_action: "accept", # required, accepts accept, reject
  destination_port_range: {
    from_port: 1,
    to_port: 1,
  },
  source_port_range: {
    from_port: 1,
    to_port: 1,
  },
  protocol: 1,
  destination_cidr_block: "String", # required
  source_cidr_block: "String", # required
  description: "String",
  dry_run: false,
  client_token: "String",
}

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Returns:

  • (String)

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

#descriptionString

The description of the Traffic Mirror rule.

Returns:

  • (String)

    The description of the Traffic Mirror rule.

#destination_cidr_blockString

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

Returns:

  • (String)

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

#destination_port_rangeTypes::TrafficMirrorPortRangeRequest

The destination port range.

Returns:

#dry_runBoolean

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.

Returns:

  • (Boolean)

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

#protocolInteger

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

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

Returns:

  • (Integer)

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

#rule_actionString

The action to take (accept | reject) on the filtered traffic.

Possible values:

  • accept
  • reject

Returns:

  • (String)

    The action to take (accept | reject) on the filtered traffic.

#rule_numberInteger

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.

Returns:

  • (Integer)

    The number of the Traffic Mirror rule.

#source_cidr_blockString

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

Returns:

  • (String)

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

#source_port_rangeTypes::TrafficMirrorPortRangeRequest

The source port range.

Returns:

#traffic_directionString

The type of traffic (ingress | egress).

Possible values:

  • ingress
  • egress

Returns:

  • (String)

    The type of traffic (ingress | egress).

#traffic_mirror_filter_idString

The ID of the filter that this rule is associated with.

Returns:

  • (String)

    The ID of the filter that this rule is associated with.