Module: AwsExtensions::EC2::NetworkAcl

Defined in:
lib/aws_extensions/ec2/NetworkAcl.rb

Instance Method Summary collapse

Instance Method Details

#diffable_entriesObject

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

#nameObject

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.tags.select { |tag| tag.key == "Name" }.first.value
rescue
	nil
end

#subnet_idsObject

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