Method: AWS::EC2::Instance#initialize
- Defined in:
- lib/aws/ec2/instance.rb
#initialize(instance_id, opts = {}) ⇒ Instance
Creates an object that represents the instance with the given ID. It’s usually easier to get an instance of this class by calling AWS::EC2::InstanceCollection#[] or AWS::EC2::InstanceCollection#each.
150 151 152 153 154 |
# File 'lib/aws/ec2/instance.rb', line 150 def initialize(instance_id, opts = {}) super @id = instance_id @reservation_attributes = {} end |