Class: Aws::EC2::Instance::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::EC2::Instance::Collection
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb,
gems/aws-sdk-ec2/lib/aws-sdk-ec2/customizations/instance.rb
Batch Actions collapse
-
#batch_create_tags(options = {}) ⇒ void
-
#batch_delete_tags!(options = {}) ⇒ void
-
#batch_monitor(options = {}) ⇒ void
-
#batch_reboot(options = {}) ⇒ void
-
#batch_start(options = {}) ⇒ void
-
#batch_stop(options = {}) ⇒ void
-
#batch_terminate!(options = {}) ⇒ void
-
#batch_unmonitor(options = {}) ⇒ void
Methods inherited from Resources::Collection
Instance Method Details
#batch_create_tags(options = {}) ⇒ void
This method returns an undefined value.
2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2046 def ( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:resources] ||= [] batch.each do |item| params[:resources] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.(params) end end nil end |
#batch_delete_tags!(options = {}) ⇒ void
This method returns an undefined value.
2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2090 def ( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:resources] ||= [] batch.each do |item| params[:resources] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.(params) end end nil end |
#batch_monitor(options = {}) ⇒ void
This method returns an undefined value.
2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2121 def batch_monitor( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.monitor_instances(params) end end nil end |
#batch_reboot(options = {}) ⇒ void
This method returns an undefined value.
2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2147 def batch_reboot( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.reboot_instances(params) end end nil end |
#batch_start(options = {}) ⇒ void
This method returns an undefined value.
2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2176 def batch_start( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.start_instances(params) end end nil end |
#batch_stop(options = {}) ⇒ void
This method returns an undefined value.
2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2242 def batch_stop( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.stop_instances(params) end end nil end |
#batch_terminate!(options = {}) ⇒ void
This method returns an undefined value.
2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2281 def batch_terminate!( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.terminate_instances(params) end end nil end |
#batch_unmonitor(options = {}) ⇒ void
This method returns an undefined value.
2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2314 def batch_unmonitor( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.unmonitor_instances(params) end end nil end |