Class: AWS::EC2::Instance

Inherits:
ModelElement show all
Defined in:
lib/cfn-model/model/ec2_instance.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

#initializeInstance

Returns a new instance of Instance.



9
10
11
12
13
14
# File 'lib/cfn-model/model/ec2_instance.rb', line 9

def initialize
  @securityGroupIds = []
  @networkInterfaces = []
  @security_groups = []
  @resource_type = 'AWS::EC2::Instance'
end

Dynamic Method Handling

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

Instance Attribute Details

#networkInterfacesObject

Returns the value of attribute networkInterfaces.



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

def networkInterfaces
  @networkInterfaces
end

#security_groupsObject

SecurityGroup objects based upon securityGroupIds



7
8
9
# File 'lib/cfn-model/model/ec2_instance.rb', line 7

def security_groups
  @security_groups
end

#securityGroupIdsObject

Returns the value of attribute securityGroupIds.



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

def securityGroupIds
  @securityGroupIds
end