https://pulumi.com logo
#typescript
Title
# typescript
g

great-sunset-355

01/10/2024, 1:38 PM
I wanted to inject a value into an array
statements: pulumi.Input<pulumi.Input<aws.iam.PolicyStatement>[]>;
during the creation of a Component resource and it looks like the only way to do so is to change the type to
statements: pulumi.Input<aws.iam.PolicyStatement>[];
or
statements: aws.iam.PolicyStatement[]
Is there anything I can do to keep the original type?