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

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 CreateTrafficMirrorFilterRuleRequest data as a 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",
}

Constant Summary collapse

SENSITIVE =
[]

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.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#descriptionString

The description of the Traffic Mirror rule.

Returns:

  • (String)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#destination_cidr_blockString

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

Returns:

  • (String)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#destination_port_rangeTypes::TrafficMirrorPortRangeRequest

The destination port range.



8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

class CreateTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :dry_run,
  :client_token)
  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)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

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


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#rule_actionString

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

Returns:

  • (String)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

class CreateTrafficMirrorFilterRuleRequest < Struct.new(
  :traffic_mirror_filter_id,
  :traffic_direction,
  :rule_number,
  :rule_action,
  :destination_port_range,
  :source_port_range,
  :protocol,
  :destination_cidr_block,
  :source_cidr_block,
  :description,
  :dry_run,
  :client_token)
  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)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#source_cidr_blockString

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

Returns:

  • (String)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#source_port_rangeTypes::TrafficMirrorPortRangeRequest

The source port range.



8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#traffic_directionString

The type of traffic (ingress | egress).

Returns:

  • (String)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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

#traffic_mirror_filter_idString

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

Returns:

  • (String)


8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 8212

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