VirtusLab / besom

Besom - a Pulumi SDK for Scala. Also, incidentally, a broom made of twigs tied round a stick. Brooms and besoms are used for protection, to ward off evil spirits, and cleansing of ritual spaces.
https://virtuslab.github.io/besom/
Apache License 2.0
122 stars 7 forks source link

Use more generic collection interfaces in inputs of user API #431

Closed pawelprazak closed 2 months ago

pawelprazak commented 6 months ago

Currently we require List in most user-facing APIs and as a consequence we force the user to add things like .map(_.toList) when the API itself does not return a List, e.g.:

ecs.FargateServiceArgs(
          networkConfiguration = ServiceNetworkConfigurationArgs(
            ...
            securityGroups =
              loadBalancer.defaultSecurityGroup.map(_.map(_.id)).map(_.toList) // <-- unnecessary
          ),
...)