Readonly
namename is the configuration bag's logical name and uniquely identifies it. The default is the name of the current project.
get loads an optional configuration value by its key, or undefined if it doesn't exist.
The key to lookup.
Optional
opts: StringConfigOptions<K>An options bag to constrain legal values.
getNumber loads an optional configuration value, as a number, by its key, or undefined if it doesn't exist. If the configuration value isn't a legal number, this function will throw an error.
The key to lookup.
Optional
opts: NumberConfigOptionsAn options bag to constrain legal values.
getSecret loads an optional configuration value by its key, marking it as a secret, or undefined if it doesn't exist.
The key to lookup.
Optional
opts: StringConfigOptions<K>An options bag to constrain legal values.
getSecretBoolean loads an optional configuration value, as a boolean, by its key, making it as a secret or undefined if it doesn't exist. If the configuration value isn't a legal boolean, this function will throw an error.
The key to lookup.
getSecretNumber loads an optional configuration value, as a number, by its key, marking it as a secret or undefined if it doesn't exist. If the configuration value isn't a legal number, this function will throw an error.
The key to lookup.
Optional
opts: NumberConfigOptionsAn options bag to constrain legal values.
getSecretObject loads an optional configuration value, as an object, by its key, marking it as a secret or undefined if it doesn't exist. This routine simply JSON parses and doesn't validate the shape of the contents.
The key to lookup.
require loads a configuration value by its given key. If it doesn't exist, an error is thrown.
The key to lookup.
Optional
opts: StringConfigOptions<K>An options bag to constrain legal values.
requireNumber loads a configuration value, as a number, by its given key. If it doesn't exist, or the configuration value is not a legal number, an error is thrown.
The key to lookup.
Optional
opts: NumberConfigOptionsAn options bag to constrain legal values.
require loads a configuration value by its given key, marking it as a secret. If it doesn't exist, an error is thrown.
The key to lookup.
Optional
opts: StringConfigOptions<K>An options bag to constrain legal values.
requireSecretBoolean loads a configuration value, as a boolean, by its given key, marking it as a secret. If it doesn't exist, or the configuration value is not a legal boolean, an error is thrown.
The key to lookup.
requireSecretNumber loads a configuration value, as a number, by its given key, marking it as a secret. If it doesn't exist, or the configuration value is not a legal number, an error is thrown.
The key to lookup.
Optional
opts: NumberConfigOptionsAn options bag to constrain legal values.
requireSecretObject loads a configuration value as a JSON string and deserializes the JSON into a JavaScript object, marking it as a secret. If it doesn't exist, or the configuration value is not a legal JSON string, an error is thrown.
The key to lookup.
Generated using TypeDoc
Config is a bag of related configuration state. Each bag contains any number of configuration variables, indexed by simple keys, and each has a name that uniquely identifies it; two bags with different names do not share values for variables that otherwise share the same key. For example, a bag whose name is
pulumi:foo
, with keysa
,b
, andc
, is entirely separate from a bag whose name ispulumi:bar
with the same simple key names. Each key has a fully qualified names, such aspulumi:foo:a
, ..., andpulumi:bar:a
, respectively.