Class: Aws::EC2::Instance::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::EC2::Instance::Collection
- Extended by:
- Deprecations
- Defined in:
- lib/aws-sdk-ec2/customizations/instance.rb,
lib/aws-sdk-ec2/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
Instance Method Details
#batch_create_tags(options = {}) ⇒ void
This method returns an undefined value.
1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 |
# File 'lib/aws-sdk-ec2/instance.rb', line 1982 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.
2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2026 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.
2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2052 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.
2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2078 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.
2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2107 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.
2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2173 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.
2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2212 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.
2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2238 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 |