Sha256: d46a18d1eb0d5fc34c66c641251bff25405c791c56b6e02f9f6c4f0af531bfa8

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

module Fog
  module AWS
    class ELB
      class Real

        require 'fog/aws/parsers/elb/empty'

        # Create an app cookie stickiness policy
        #
        # ==== Parameters
        # * lb_name<~String> - Name of the ELB
        # * policy_name<~String> - The name of the policy being created.
        #   The name must be unique within the set of policies for this Load Balancer.
        # * cookie_name<~String> - Name of the application cookie used for stickiness.
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'RequestId'<~String> - Id of request
        def create_app_cookie_stickiness_policy(lb_name, policy_name, cookie_name)
          params = {'CookieName' => cookie_name, 'PolicyName' => policy_name}

          request({
            'Action'           => 'CreateAppCookieStickinessPolicy',
            'LoadBalancerName' => lb_name,
            :parser            => Fog::Parsers::AWS::ELB::Empty.new
          }.merge!(params))
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
fog4encbs-0.9.0.1 lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb
fog4encbs-0.9.0 lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb
fog-0.9.0 lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb
fog-0.8.2 lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb
fog-0.8.1 lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb
fog-0.8.0 lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb