Class: Aws::SecurityHub::Types::AwsEc2NetworkAclEntry

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

Overview

A rule for the network ACL. Each rule allows or denies access based on the IP address, traffic direction, port, and protocol.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cidr_blockString

The IPV4 network range for which to deny or allow access.

Returns:

  • (String)


8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end

#egressBoolean

Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.

Returns:

  • (Boolean)


8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end

#icmp_type_codeTypes::IcmpTypeCode

The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.

Returns:



8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_6_cidr_blockString

The IPV6 network range for which to deny or allow access.

Returns:

  • (String)


8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end

#port_rangeTypes::PortRangeFromTo

For TCP or UDP protocols, the range of ports that the rule applies to.



8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end

#protocolString

The protocol that the rule applies to. To deny or allow access to all protocols, use the value -1.

Returns:

  • (String)


8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end

#rule_actionString

Whether the rule is used to allow access or deny access.

Returns:

  • (String)


8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end

#rule_numberInteger

The rule number. The rules are processed in order by their number.

Returns:

  • (Integer)


8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 8254

class AwsEc2NetworkAclEntry < Struct.new(
  :cidr_block,
  :egress,
  :icmp_type_code,
  :ipv_6_cidr_block,
  :port_range,
  :protocol,
  :rule_action,
  :rule_number)
  SENSITIVE = []
  include Aws::Structure
end