class AwsCli::CLI::EC2::MonitoringInstances
Public Instance Methods
monitor()
click to toggle source
# File lib/awscli/cli/ec2/monitoring.rb, line 9 def monitor create_ec2_object @ec2.monitor options end
unmonitor()
click to toggle source
# File lib/awscli/cli/ec2/monitoring.rb, line 16 def unmonitor create_ec2_object @ec2.unmonitor options end
Private Instance Methods
create_ec2_object()
click to toggle source
# File lib/awscli/cli/ec2/monitoring.rb, line 23 def create_ec2_object puts "ec2 Establishing Connetion..." $ec2_conn = if parent_options[:region] Awscli::Connection.new.request_ec2(parent_options[:region]) else Awscli::Connection.new.request_ec2 end puts "ec2 Establishing Connetion... OK" @ec2 = Awscli::EC2::Monitoring.new($ec2_conn) end