mirror of https://github.com/pulumi/pulumi.git
ae9a6db36e
Related: #5653 This will take an existing output and then unwrap the secret, and return a new output ``` import * as pulumi from "@pulumi/pulumi"; const x = pulumi.secret("test") export const xVal = x; const y = pulumi.unsecret(x); export const yVal = y; ``` ``` ▶ pulumi stack output Current stack outputs (3): OUTPUT VALUE xVal [secret] yVal test ``` Also adds the ability to check if an output is as secret: ``` import * as pulumi from "@pulumi/pulumi"; const x = pulumi.secret("test") const isSecret = x.isSecret; export const isSecretDeets = isSecret; ``` |
||
---|---|---|
.. | ||
automation | ||
runtime | ||
sxs_ts_3.6 | ||
sxs_ts_latest | ||
config.spec.ts | ||
init.spec.ts | ||
iterable.spec.ts | ||
options.spec.ts | ||
output.spec.ts | ||
resource.spec.ts | ||
testmode.spec.ts | ||
unwrap.spec.ts | ||
util.ts |