Closed pawelprazak closed 2 months ago
Allow for easy combination of Output[Boolean] and Output[Resource] to mamy Output[Option[Resource]].
Output[Boolean]
Output[Resource]
Output[Option[Resource]]
e.g. instead of
val databaseInstance: Output[Option[Output[Server]]] = bootzookaConfig.dbEnabled.map(Option.when(_)(postgresDatabase(appName, resourceGroup, bootzookaConfig.sql)))
allow for:
val databaseInstance: Output[Option[Server]] = Output.when(bootzookaConfig.dbEnabled)(postgresDatabase(appName, resourceGroup, bootzookaConfig.sql)
Allow for easy combination of
Output[Boolean]
andOutput[Resource]
to mamyOutput[Option[Resource]]
.e.g. instead of
allow for: