mirror of https://github.com/pulumi/pulumi.git
05d789752b
### Description Addressing https://github.com/pulumi/pulumi/issues/17787 This PR implements the _deferred output_ construct for both the NodeJS and python SDKs so that they can be used for generating programs from terraform code that have circular references in component resources (i.e. https://github.com/pulumi/pulumi/issues/13581) I thought using a function that returns a tuple instead of a class makes for a simpler implementation for both SDKs API for nodejs: ```ts const [bucketArn, resolveBucketArn] = pulumi.deferredOutput<string>(); const bucket = new aws.s3.Bucket("example", { }); resolveBucketArn(bucket.arn); ``` API for python: ```python bucket_arn, resolve = pulumi.deferred_output() bucket = aws.s3.Bucket("example") resolve(bucket.arn) ``` |
||
---|---|---|
.. | ||
automation | ||
cmd/dynamic | ||
runtime | ||
sxs_ts_test | ||
config.spec.ts | ||
constants.ts | ||
init.spec.ts | ||
iterable.spec.ts | ||
options.spec.ts | ||
output.spec.ts | ||
provider.spec.ts | ||
resource.spec.ts | ||
stackReference.spec.ts | ||
unwrap.spec.ts | ||
util.ts |