breezy-butcher-78604
08/14/2020, 5:01 AMInput<T>
values? I'm passing an Input<aws.ecs.Secret[]>
to a module i'm writing and I want to do some processing on the various values of valueFrom
within the aws.ecs.Secret[]
so I can collate them into a list of secret ARNs to add to an IAM policy. i can see heaps of docs on using Output<T>
via apply()
etc but there doesn't seem to be any documentation (that I can find) about working with Input<T>
little-cartoon-10569
08/14/2020, 5:12 AMpulumi.output(yourInput).apply(value => {});
breezy-butcher-78604
08/14/2020, 5:20 AMInput<T>
, if so, why does the Input<T>
type exist couldn't everything just be Output<T>
?little-cartoon-10569
08/14/2020, 5:31 AMbreezy-butcher-78604
08/14/2020, 5:34 AMlittle-cartoon-10569
08/14/2020, 5:36 AMInput<string>
. That way the string could come from another resource (Output<string>) or a constant (string).