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
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.
1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1667 def ( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:resources] ||= [] batch.each do |item| params[:resources] << item.id end batch[0].client.(params) end nil end |
#batch_delete_tags!(options = {}) ⇒ void
This method returns an undefined value.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1707 def ( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:resources] ||= [] batch.each do |item| params[:resources] << item.id end batch[0].client.(params) end nil end |
#batch_monitor(options = {}) ⇒ void
This method returns an undefined value.
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1731 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 batch[0].client.monitor_instances(params) end nil end |
#batch_reboot(options = {}) ⇒ void
This method returns an undefined value.
1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1755 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 batch[0].client.reboot_instances(params) end nil end |
#batch_start(options = {}) ⇒ void
This method returns an undefined value.
1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1782 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 batch[0].client.start_instances(params) end nil end |
#batch_stop(options = {}) ⇒ void
This method returns an undefined value.
1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1826 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 batch[0].client.stop_instances(params) end nil end |
#batch_terminate!(options = {}) ⇒ void
This method returns an undefined value.
1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1850 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 batch[0].client.terminate_instances(params) end nil end |
#batch_unmonitor(options = {}) ⇒ void
This method returns an undefined value.
1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb', line 1874 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 batch[0].client.unmonitor_instances(params) end nil end |