https://pulumi.com logo
Title
a

aloof-tiger-61862

11/13/2022, 1:37 PM
hey! I am pretty new to Pulumi and im trying to create a SecurityGroup using golang, I can across a problem im sure you could help me figure out, one of the
NetworkSecurityGroupArgs
is
SecurityRules
which accepts
SecurityRuleTypeArrayInput
and Im not sure how to use it correctly (or at all). lets say I have
[]network.SecurityRule{}
how do I make it of type
SecurityRuleTypeArrayInput
a

aloof-easter-15696

11/13/2022, 5:56 PM
I think you can use pulumi.tostringarray there
b

billowy-army-68599

11/13/2022, 7:35 PM
it would be
SecurityGroupRuleArray{
   SecurityGroupRule{}
}