Class: AWS::EC2::ReservedInstances
- Inherits:
-
Resource
- Object
- Core::Resource
- Resource
- AWS::EC2::ReservedInstances
- 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, ]
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
The id of this reserved instance.
Attributes included from Core::Model
Instance Method Summary collapse
-
#initialize(id, options = {}) ⇒ ReservedInstances
constructor
A new instance of ReservedInstances.
Methods included from TaggedItem
#add_tag, #cached_tags, #clear_tags, #tagging_resource_type, #tags
Methods inherited from Core::Resource
attribute_providers, attribute_providers_for, attributes, #attributes_from_response, define_attribute_type, #eql?, #inspect, new_from
Methods included from Core::Cacheable
Methods included from Core::Model
#client, #config_prefix, #inspect
Constructor Details
#initialize(id, options = {}) ⇒ ReservedInstances
Returns a new instance of ReservedInstances.
33 34 35 36 |
# File 'lib/aws/ec2/reserved_instances.rb', line 33 def initialize id, = {} @id = id super end |
Instance Attribute Details
#id ⇒ String (readonly)
Returns The id of this reserved instance.
39 40 41 |
# File 'lib/aws/ec2/reserved_instances.rb', line 39 def id @id end |