AWScala icon indicating copy to clipboard operation
AWScala copied to clipboard

Cluster object has missing fields

Open prongs opened this issue 4 years ago • 1 comments

The design of the type awscala.emr.Cluster is such that

  • it extends com.amazonaws.services.elasticmapreduce.model.Cluster.
  • it takes an instance of com.amazonaws.services.elasticmapreduce.model.Cluster for initialization. In the constructor, it copies some fields.

Now the problem here is that some fields are missing. For me, I encountered this problem for the field master dns name and I had to write the following

    val clstr   = emr.describeCluster(new DescribeClusterRequest().withClusterId(cid)).getCluster
    val cluster = Cluster(clstr)
    cluster.setMasterPublicDnsName(clstr.getMasterPublicDnsName)

Constructor https://github.com/seratch/AWScala/blob/master/emr/src/main/scala/awscala/emr/Cluster.scala#L18

prongs avatar Mar 18 '21 07:03 prongs

Thanks for taking the time to report this issue! If you don't mind, can you send a pull request for fixing this?

seratch avatar Mar 23 '21 22:03 seratch