Module: AwsExtensions::EC2::NetworkAcl
- Defined in:
- lib/aws_extensions/ec2/NetworkAcl.rb
Instance Method Summary collapse
-
#diffable_entries ⇒ Object
Public: Returns the enteries that are diffable by leaving out the last rule that denies all.
-
#name ⇒ Object
Public: Returns the value of the “Name” tag for the ACL.
-
#subnet_ids ⇒ Object
Public: Returns the subnet ids associated with an ACL.
Instance Method Details
#diffable_entries ⇒ Object
Public: Returns the enteries that are diffable by leaving out the last rule that denies all
19 20 21 |
# File 'lib/aws_extensions/ec2/NetworkAcl.rb', line 19 def diffable_entries self.entries.select { |entry| entry.rule_number < 32767 } end |
#name ⇒ Object
Public: Returns the value of the “Name” tag for the ACL
6 7 8 9 10 |
# File 'lib/aws_extensions/ec2/NetworkAcl.rb', line 6 def name self..select { |tag| tag.key == "Name" }.first.value rescue nil end |
#subnet_ids ⇒ Object
Public: Returns the subnet ids associated with an ACL
13 14 15 |
# File 'lib/aws_extensions/ec2/NetworkAcl.rb', line 13 def subnet_ids self.associations.map { |assoc| assoc.subnet_id } end |