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

Class: Aws::EC2::Types::ModifyTrafficMirrorFilterRuleRequest

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

Overview

Note:

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

{
  traffic_mirror_filter_rule_id: "TrafficMirrorFilterRuleId", # required
  traffic_direction: "ingress", # accepts ingress, egress
  rule_number: 1,
  rule_action: "accept", # 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",
  source_cidr_block: "String",
  description: "String",
  remove_fields: ["destination-port-range"], # accepts destination-port-range, source-port-range, protocol, description
  dry_run: false,
}

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

The description to assign to the Traffic Mirror rule.

Returns:

  • (String)

    The description to assign to 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 ports that are associated with the Traffic Mirror rule.

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 TCP, to assign to the Traffic Mirror rule.

Returns:

  • (Integer)

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

#remove_fieldsArray<String>

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.

Returns:

  • (Array<String>)

    The properties that you want to remove from the Traffic Mirror filter rule.

#rule_actionString

The action to assign to the rule.

Possible values:

  • accept
  • reject

Returns:

  • (String)

    The action to assign to the rule.

#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 port range to assign to the Traffic Mirror rule.

Returns:

#traffic_directionString

The type of traffic (ingress | egress) to assign to the rule.

Possible values:

  • ingress
  • egress

Returns:

  • (String)

    The type of traffic (ingress | egress) to assign to the rule.

#traffic_mirror_filter_rule_idString

The ID of the Traffic Mirror rule.

Returns:

  • (String)

    The ID of the Traffic Mirror rule.