Class: AWS::EC2::SecurityGroup

Inherits:
ModelElement show all
Defined in:
lib/cfn-model/model/security_group.rb

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#logical_resource_id, #metadata, #resource_type

Instance Method Summary collapse

Methods inherited from ModelElement

#==, #to_s

Constructor Details

#initialize(cfn_model) ⇒ SecurityGroup

Returns a new instance of SecurityGroup.



8
9
10
11
12
13
14
15
16
# File 'lib/cfn-model/model/security_group.rb', line 8

def initialize(cfn_model)
  super
  @securityGroupIngress = []
  @securityGroupEgress = []
  @ingresses = []
  @egresses = []
  @tags = []
  @resource_type = 'AWS::EC2::SecurityGroup'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ModelElement

Instance Attribute Details

#egressesObject

Returns the value of attribute egresses.



6
7
8
# File 'lib/cfn-model/model/security_group.rb', line 6

def egresses
  @egresses
end

#ingressesObject

Returns the value of attribute ingresses.



6
7
8
# File 'lib/cfn-model/model/security_group.rb', line 6

def ingresses
  @ingresses
end