For the policy document case, there is a Pulumi-native alternative in the aws.iam.PolicyDocuemnt class. Most resources that have a policy property have type
pulumi.Input<string> | aws.iam.PolicyDocument
.
b
bored-oyster-3147
06/01/2021, 11:17 PM
I don’t think that is present in all SDKs, unless it’s new. I may be mistaken though. C# particularly obviously can’t do the built in type union but they might be using their Union generic.
But if you have an Output<PolicyDocument> because you needed output to build the document than you’d still use the Input<string> I believe
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.