Class: AWS::AutoScaling::ScalingPolicyCollection
Instance Attribute Summary collapse
Instance Method Summary
collapse
#each_batch
#each, #each_batch, #enum, #first, #in_groups_of, #page
Constructor Details
#initialize(auto_scaling_group, options = {}) ⇒ ScalingPolicyCollection
Returns a new instance of ScalingPolicyCollection.
21
22
23
24
|
# File 'lib/aws/auto_scaling/scaling_policy_collection.rb', line 21
def initialize auto_scaling_group, options = {}
@group = auto_scaling_group
super
end
|
Instance Attribute Details
#group ⇒ Group
Also known as:
auto_scaling_group
27
28
29
|
# File 'lib/aws/auto_scaling/scaling_policy_collection.rb', line 27
def group
@group
end
|
Instance Method Details
45
46
47
|
# File 'lib/aws/auto_scaling/scaling_policy_collection.rb', line 45
def [] policy_name
ScalingPolicy.new(group, policy_name)
end
|
#create(name, options = {}) ⇒ ScalingPolicy
Also known as:
put
36
37
38
39
40
|
# File 'lib/aws/auto_scaling/scaling_policy_collection.rb', line 36
def create name, options = {}
scaling_policy = self[name]
scaling_policy.put(options)
scaling_policy
end
|