Class: Aws::AutoScaling::Instance::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::AutoScaling::Instance::Collection
- Defined in:
- gems/aws-sdk-autoscaling/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
Methods inherited from Resources::Collection
Instance Method Details
#batch_attach(options = {}) ⇒ void
This method returns an undefined value.
472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/instance.rb', line 472 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 Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.attach_instances(params) end end nil end |
#batch_detach(options = {}) ⇒ void
This method returns an undefined value.
497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/instance.rb', line 497 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 Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.detach_instances(params) end end nil end |
#batch_enter_standby(options = {}) ⇒ void
This method returns an undefined value.
522 523 524 525 526 527 528 529 530 531 532 533 534 535 |
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/instance.rb', line 522 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 Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.enter_standby(params) end end nil end |
#batch_exit_standby(options = {}) ⇒ void
This method returns an undefined value.
539 540 541 542 543 544 545 546 547 548 549 550 551 552 |
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/instance.rb', line 539 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 Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.exit_standby(params) end end nil end |