class Ec2NetworkInterfaceParser
Public Instance Methods
parse(cfn_model:, resource:)
click to toggle source
# File lib/cfn-model/parser/ec2_network_interface_parser.rb, line 4 def parse(cfn_model:, resource:) network_interface = resource if network_interface.groupSet.is_a? Array network_interface.security_groups = network_interface.groupSet.map do |security_group_reference| cfn_model.find_security_group_by_group_id(security_group_reference) end else network_interface.security_groups = [] end network_interface end