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, #resource_type

Instance Method Summary collapse

Methods inherited from ModelElement

#==, #to_s

Constructor Details

#initializeSecurityGroup

Returns a new instance of SecurityGroup.



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

def initialize
  @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.



8
9
10
# File 'lib/cfn-model/model/security_group.rb', line 8

def egresses
  @egresses
end

#groupDescriptionObject

Returns the value of attribute groupDescription.



4
5
6
# File 'lib/cfn-model/model/security_group.rb', line 4

def groupDescription
  @groupDescription
end

#ingressesObject

Returns the value of attribute ingresses.



8
9
10
# File 'lib/cfn-model/model/security_group.rb', line 8

def ingresses
  @ingresses
end

#securityGroupEgressObject

Returns the value of attribute securityGroupEgress.



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

def securityGroupEgress
  @securityGroupEgress
end

#securityGroupIngressObject

Returns the value of attribute securityGroupIngress.



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

def securityGroupIngress
  @securityGroupIngress
end

#tagsObject

Returns the value of attribute tags.



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

def tags
  @tags
end

#vpcIdObject

Returns the value of attribute vpcId.



4
5
6
# File 'lib/cfn-model/model/security_group.rb', line 4

def vpcId
  @vpcId
end