besom
Members list
Type members
Classlikes
A module that provides a runtime for the scala.concurrent.Future monad.
A module that provides a runtime for the scala.concurrent.Future monad.
Attributes
- Supertypes
-
trait BesomModuletrait EffectBesomModuletrait BesomSyntaxclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object Pulumi.type
Besom API entry point for the scala.concurrent.Future monad.
Besom API entry point for the scala.concurrent.Future monad.
All Pulumi programs are executed in Besom context besom.Context
Most notable methods exposed by besom.Pulumi are:
- besom.internal.BesomModule.run - the Pulumi program function
- besom.internal.BesomSyntax.config - configuration and secrets
- besom.internal.BesomSyntax.log - all your logging needs
Inside Pulumi.run
block you can use all methods without Pulumi.
prefix. All functions that belong to Besom program but are defined outside the Pulumi.run
block should have the following using clause: (using Context)
or (using besom.Context)
using a fully qualified name of the type.
The hello world example:
import besom.*
@main def main = Pulumi.run {
val message = log.warn("Nothing's here yet, it's waiting for you to write some code!")
Stack(dependsOn = message)
}
Attributes
- Supertypes
-
trait FutureMonadModuletrait BesomModuletrait EffectBesomModuletrait BesomSyntaxclass Objecttrait Matchableclass AnyShow all
- Self type
-
Pulumi.type
Value members
Concrete methods
Creates a new component resource.
Creates a new component resource.
Type parameters
- A
-
The type of the component resource.
Value parameters
- f
-
The function that will create the component resource.
- name
-
The unique name of the resource.
- opts
-
A bag of options that control this resource's behavior.
- typ
-
The type of the resource.
Attributes
- Returns
-
The component resource.