Class: Aws::AutoScaling::Instance::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::AutoScaling::Instance::Collection
- Defined in:
- lib/aws-sdk-autoscaling/instance.rb
Batch Actions collapse
- #batch_attach(options = {}) ⇒ void
- #batch_detach(options = {}) ⇒ void
- #batch_enter_standby(options = {}) ⇒ void
- #batch_exit_standby(options = {}) ⇒ void
Instance Method Details
#batch_attach(options = {}) ⇒ void
This method returns an undefined value.
420 421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/aws-sdk-autoscaling/instance.rb', line 420 def batch_attach( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:auto_scaling_group_name] = batch[0].group_name params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end batch[0].client.attach_instances(params) end nil end |
#batch_detach(options = {}) ⇒ void
This method returns an undefined value.
443 444 445 446 447 448 449 450 451 452 453 454 |
# File 'lib/aws-sdk-autoscaling/instance.rb', line 443 def batch_detach( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:auto_scaling_group_name] = batch[0].group_name params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end batch[0].client.detach_instances(params) end nil end |
#batch_enter_standby(options = {}) ⇒ void
This method returns an undefined value.
466 467 468 469 470 471 472 473 474 475 476 477 |
# File 'lib/aws-sdk-autoscaling/instance.rb', line 466 def batch_enter_standby( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:auto_scaling_group_name] = batch[0].group_name params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end batch[0].client.enter_standby(params) end nil end |
#batch_exit_standby(options = {}) ⇒ void
This method returns an undefined value.
481 482 483 484 485 486 487 488 489 490 491 492 |
# File 'lib/aws-sdk-autoscaling/instance.rb', line 481 def batch_exit_standby( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:auto_scaling_group_name] = batch[0].group_name params[:instance_ids] ||= [] batch.each do |item| params[:instance_ids] << item.id end batch[0].client.exit_standby(params) end nil end |