# File lib/fog/aws/requests/data_pipeline/put_pipeline_definition.rb, line 73
        def put_pipeline_definition(id, pipeline_objects, _options={})
          response = Excon::Response.new
          options  = _options.dup

          pipeline = find_pipeline(id)

          stringified_objects = if pipeline_objects.any?
                                  transform_objects(stringify_keys(pipeline_objects))
                                else
                                  options.each { |k,v| options[k] = transform_objects(stringify_keys(v)) }
                                end

          if stringified_objects.is_a?(Array)
            stringified_objects = {"pipelineObjects" => stringified_objects}
          end

          self.data[:pipeline_definitions][id] = stringified_objects

          response.body = {"errored" => false, "validationErrors" => [], "validationWarnings" => []}
          response
        end