Sha256: e648fb55f64c8fdc914b10eee6f088090c9aec77ed1dd713da46f2416ccb3936

Contents?: true

Size: 1.54 KB

Versions: 33

Compression:

Stored size: 1.54 KB

Contents

module Fog
  module AWS
    module ELB
      class Real

        require 'fog/aws/parsers/elb/disable_availability_zones_for_load_balancer'

        # Disable an availability zone for an existing ELB
        #
        # ==== Parameters
        # * availability_zones<~Array> - List of availability zones to disable on ELB
        # * lb_name<~String> - Load balancer to disable availability zones on
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'RequestId'<~String> - Id of request
        #     * 'DisableAvailabilityZonesForLoadBalancerResult'<~Hash>:
        #       * 'AvailabilityZones'<~Array> - array of strings describing instances currently enabled
        def disable_availability_zones_for_load_balancer(availability_zones, lb_name)
          params = AWS.indexed_param('AvailabilityZones.member', [*availability_zones], 1)
          request({
            'Action'           => 'DisableAvailabilityZonesForLoadBalancer',
            'LoadBalancerName' => lb_name,
            :parser            => Fog::Parsers::AWS::ELB::DisableAvailabilityZonesForLoadBalancer.new
          }.merge!(params))
        end

        alias :disable_zones :disable_availability_zones_for_load_balancer

      end

      class Mock

        def disable_availability_zones_for_load_balancer(availability_zones, lb_name)
          Fog::Mock.not_implemented
        end

        alias :disable_zones :disable_availability_zones_for_load_balancer

      end

    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.28 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.27 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.26 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.25 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.24 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
tecnh-fog-0.2.23.vpc lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.23 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.22 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.21 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.20 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.19 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.18 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.17 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.16 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.15 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.14 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.13 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.12 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
fog-0.2.11 lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb