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.
1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1970 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.
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2014 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.
2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2040 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.
2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2066 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.
2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2095 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.
2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2161 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.
2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2200 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.
2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 2226 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 |