Sha256: 98441d4b3bfca8d41753a4ef33491ee63b35a0acecdbeafa1bad6698e5145852
Contents?: true
Size: 1.45 KB
Versions: 20
Compression:
Stored size: 1.45 KB
Contents
module Fog module AWS module ELB class Real # Register an instance with an existing ELB # # ==== Parameters # * instance_ids<~Array> - List of instance IDs to associate with ELB # * lb_name<~String> - Load balancer to assign instances to # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'ResponseMetadata'<~Hash>: # * 'RequestId'<~String> - Id of request # * 'RegisterInstancesWithLoadBalancerResult'<~Hash>: # * 'Instances'<~Array> - array of hashes describing instances currently enabled # * 'InstanceId'<~String> def register_instances_with_load_balancer(instance_ids, lb_name) params = ELB.indexed_param('Instances.member.%.InstanceId', [*instance_ids], 1) request({ 'Action' => 'RegisterInstancesWithLoadBalancer', 'LoadBalancerName' => lb_name, :parser => Fog::Parsers::AWS::ELB::RegisterInstancesWithLoadBalancer.new }.merge!(params)) end alias :register_instances :register_instances_with_load_balancer end class Mock def register_instances_with_load_balancer(instance_ids, lb_name) raise MockNotImplemented.new("Contributions welcome!") end alias :register_instances :register_instances_with_load_balancer end end end end
Version data entries
20 entries across 20 versions & 1 rubygems