input block declares a typed stack variable with an optional default. Equivalent to Terraform’s variable block.
Syntax
Examples
Referencing Inputs
Non-ephemeral inputs areResolved<T> — no ~ needed:
Ephemeral Inputs
Wrapped inpulumi.secret() — never stored in Pulumi state. Always Pending<T>:
Generated TypeScript
Types
| Type | Description |
|---|---|
"string" | Text value |
"int" | Integer number |
"bool" | Boolean true/false |
