class Awscli::As::Policies
Public Class Methods
new(connection)
click to toggle source
# File lib/awscli/as.rb, line 265 def initialize(connection) @conn = connection end
Public Instance Methods
create(options)
click to toggle source
# File lib/awscli/as.rb, line 273 def create(options) @conn.policies.create(options) puts "Created auto scaling policy: #{options[:id]}, for auto scaling group: #{options[:auto_scaling_group_name]}" end
destroy(name, group_name)
click to toggle source
# File lib/awscli/as.rb, line 278 def destroy(name, group_name) begin @conn.delete_policy(group_name, name) puts "Deleted auto scaling policy: #{name}" rescue Fog::AWS::AutoScaling::ValidationError puts "Validation Error: #{$!}" end end
list()
click to toggle source
# File lib/awscli/as.rb, line 269 def list @conn.policies.table end