Class: Ec2NetworkInterfaceParser

Inherits:
Object
  • Object
show all
Defined in:
lib/cfn-model/parser/ec2_network_interface_parser.rb

Instance Method Summary collapse

Instance Method Details

#parse(cfn_model:, resource:) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/cfn-model/parser/ec2_network_interface_parser.rb', line 2

def parse(cfn_model:, resource:)
  network_interface = resource

  network_interface.security_groups = network_interface.groupSet.map do |security_group_reference|
    cfn_model.find_security_group_by_group_id(security_group_reference)
  end
  network_interface
end