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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass ModifyTrafficMirrorFilterRuleRequest data as a 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,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

The description to assign to the Traffic Mirror rule.

Returns:

  • (String)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#destination_cidr_blockString

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

Returns:

  • (String)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#destination_port_rangeTypes::TrafficMirrorPortRangeRequest

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



35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#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)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#protocolInteger

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

Returns:

  • (Integer)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#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>)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#rule_actionString

The action to assign to the rule.

Returns:

  • (String)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#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)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#source_cidr_blockString

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

Returns:

  • (String)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#source_port_rangeTypes::TrafficMirrorPortRangeRequest

The port range to assign to the Traffic Mirror rule.



35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#traffic_directionString

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

Returns:

  • (String)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#traffic_mirror_filter_rule_idString

The ID of the Traffic Mirror rule.

Returns:

  • (String)


35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35439

class ModifyTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_rule_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :remove_fields,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end