title: How to parse a SdkPublisher[DBCluster] on Scala
body: <p>I'm having some issues while trying to process a response from an async api call. Basically I'm trying to describe some rds clusters from aws on scala with the following approach:</p>
  <pre class="lang-scala prettyprint-override"><code>def describeClusters(): Unit = {
     val clustersReq = DescribeDbClustersRequest.builder().build()
     val clustersResp = client.describeDBClustersPaginator(clustersReq)
     val clusters = clustersResp.dbClusters()
     ...
  }
  </code></pre>
  <p>So far the clusters val is of type <strong>SdkPublisher[DBCluster]</strong>, and from there I don't know exactly how to handle it. I suppose that I need to get a stream of data from that publisher, so I need to subscribe to that in order to request that stream. But I don't know how can I do it. Any ideas?</p>
  <p>I really appreciate the help on this.</p>
  <p>Thanks in advance.</p>