Sha256: 59634d3757a67d373cc45e1b34fbbcc91d666481324d32dba5ac48540aa6fca5

Contents?: true

Size: 762 Bytes

Versions: 2

Compression:

Stored size: 762 Bytes

Contents

# XXX: see https://github.com/aws/aws-sdk-core-ruby/pull/171
module Seahorse
  module Util
    IAM_paginators_json = /\bIAM.paginators.json\z/

    class << self
      alias orig_load_json load_json

      def load_json(path)
        json = orig_load_json(path)

        if IAM_paginators_json =~ path
          add_GetAccountAuthorizationDetails_paginator(json)
        else
          json
        end
      end

      private

      def add_GetAccountAuthorizationDetails_paginator(json)
        json["pagination"]["GetAccountAuthorizationDetails"] = {
          "input_token" => "Marker",
          "output_token" => "Marker",
          "more_results" => "IsTruncated",
          "limit_key" => "MaxItems",
        }

        json
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
miam-0.2.0 lib/miam/ext/aws_ext.rb
miam-0.2.0.beta3 lib/miam/ext/aws_ext.rb