adamant-author-732
02/08/2023, 10:53 AMOutput[str | None]
and another one (B) that expects an input of Input[str] | None
. The only way I can think to pass this data from A
to B
is via A.attribute.apply(B(… some arguments here…))
. However, I know that Pulumi discourages creating resources inside an apply()
. Is there another way to convert Output[str | None]
to Input[str] | None
?echoing-dinner-19531
02/08/2023, 11:05 AMInput[str | None]
adamant-author-732
02/08/2023, 11:12 AMazure-native > network.ARecordArgs
here: https://github.com/pulumi/pulumi-azure-native/blob/master/sdk/python/pulumi_azure_native/network/_inputs.py#L298.
The type hint is ipv4_address: Optional[pulumi.Input[str]]
which gets interpreted as Input[str] | None
.echoing-dinner-19531
02/08/2023, 12:49 PM