Class: Fog::AWS::AutoScaling::Configuration
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::AutoScaling::Configuration
show all
- Defined in:
- lib/fog/aws/models/auto_scaling/configuration.rb
Instance Attribute Summary
Attributes inherited from Model
#collection, #connection
Instance Method Summary
collapse
Methods inherited from Model
#inspect, #to_json, #wait_for
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
#initialize(attributes = {}) ⇒ Configuration
Returns a new instance of Configuration.
22
23
24
25
26
27
28
29
30
|
# File 'lib/fog/aws/models/auto_scaling/configuration.rb', line 22
def initialize(attributes={})
super
end
|
Instance Method Details
#destroy ⇒ Object
55
56
57
58
|
# File 'lib/fog/aws/models/auto_scaling/configuration.rb', line 55
def destroy
requires :id
connection.delete_launch_configuration(id)
end
|
#ready? ⇒ Boolean
32
33
34
35
|
# File 'lib/fog/aws/models/auto_scaling/configuration.rb', line 32
def ready?
true
end
|
#reload ⇒ Object
50
51
52
53
|
# File 'lib/fog/aws/models/auto_scaling/configuration.rb', line 50
def reload
super
self
end
|
#save ⇒ Object
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/fog/aws/models/auto_scaling/configuration.rb', line 37
def save
requires :id
requires :image_id
requires :instance_type
connection.create_launch_configuration(image_id, instance_type, id)
reload
end
|