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

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
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)


8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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)


8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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:



8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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)


8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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.



8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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)


8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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)


8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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)


8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
# File 'lib/aws-sdk-securityhub/types.rb', line 8258

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