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 | ||
data/lazy_import_test | ||
dynamic | ||
langhost | ||
provider | ||
runtime | ||
__init__.py | ||
conftest.py | ||
helpers.py | ||
test_broken_dynamic_provider.py | ||
test_config.py | ||
test_deprecated.py | ||
test_invoke.py | ||
test_monitor_termination.py | ||
test_next_serialize.py | ||
test_output.py | ||
test_resource.py | ||
test_runtime_to_json.py | ||
test_stack_reference.py | ||
test_stack_registers_outputs.py | ||
test_translate_output_properties.py | ||
test_types_input_type.py | ||
test_types_input_type_types.py | ||
test_types_output_type.py | ||
test_types_resource_types.py | ||
test_urn.py | ||
test_utils.py |