Class: Ec2NetworkInterfaceParser
- Inherits:
-
Object
- Object
- Ec2NetworkInterfaceParser
- 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 10 11 12 13 14 |
# File 'lib/cfn-model/parser/ec2_network_interface_parser.rb', line 2 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 |