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.
1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 |
# File 'lib/aws-sdk-ec2/instance.rb', line 1862 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.
1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 |
# File 'lib/aws-sdk-ec2/instance.rb', line 1906 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.
1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 |
# File 'lib/aws-sdk-ec2/instance.rb', line 1932 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.
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 |
# File 'lib/aws-sdk-ec2/instance.rb', line 1958 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.
1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 |
# File 'lib/aws-sdk-ec2/instance.rb', line 1987 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.
2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2033 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.
2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2059 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.
2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 |
# File 'lib/aws-sdk-ec2/instance.rb', line 2085 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 |