# File lib/aws/iam/policy_collection.rb, line 51
      def []= name, document
        document = document.to_json if document.respond_to?(:to_json) and
          !document.kind_of?(String)
        put_policy(:policy_name => name,
                   :policy_document => document)
      end