Methods

Class/Module Index [+]

Quicksearch

Fog::AWS::AutoScaling::Policies

Public Class Methods

new(attributes={}) click to toggle source

Creates a new scaling policy.

# File lib/fog/aws/models/auto_scaling/policies.rb, line 10
def initialize(attributes={})
  super
end

Public Instance Methods

all() click to toggle source
# File lib/fog/aws/models/auto_scaling/policies.rb, line 14
def all
  data = []
  next_token = nil
  loop do
    result = service.describe_policies('NextToken' => next_token).body['DescribePoliciesResult']
    data += result['ScalingPolicies']
    next_token = result['NextToken']
    break if next_token.nil?
  end
  load(data)
end
get(identity, auto_scaling_group = nil) click to toggle source
# File lib/fog/aws/models/auto_scaling/policies.rb, line 26
def get(identity, auto_scaling_group = nil)
  data = service.describe_policies('PolicyNames' => identity, 'AutoScalingGroupName' => auto_scaling_group).body['DescribePoliciesResult']['ScalingPolicies'].first
  new(data) unless data.nil?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.