Class: AWS::EC2::ReservedInstances

Inherits:
Resource
  • Object
show all
Includes:
TaggedItem
Defined in:
lib/aws/ec2/reserved_instances.rb

Constant Summary collapse

ATTRIBUTES =
[
  :start,
  :instance_count,
  :instance_type,
  :availability_zone,
  :duration,
  :fixed_price,
  :usage_price,
  :product_description,
  :instance_tenancy,
  :currency_code,
  :recurring_charges,
  :offering_type,
  :state,
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TaggedItem

#add_tag, #clear_tags, #tags

Constructor Details

#initialize(id, options = {}) ⇒ ReservedInstances

Returns a new instance of ReservedInstances.



36
37
38
39
# File 'lib/aws/ec2/reserved_instances.rb', line 36

def initialize id, options = {}
  @id = id
  super
end

Instance Attribute Details

#idString (readonly)

Returns The id of this reserved instance.

Returns:

  • (String)

    The id of this reserved instance.



42
43
44
# File 'lib/aws/ec2/reserved_instances.rb', line 42

def id
  @id
end