sparse-intern-71089
06/07/2022, 11:46 AMsilly-smartphone-71988
06/07/2022, 1:10 PMsilly-smartphone-71988
06/07/2022, 1:10 PMpublic RecoveryServices.ProtectionContainer? GetProtectionContainer(Output<string> containerName)
{
int idx = -1;
int counter = 0;
while (idx == -1 && counter < this.protectionContainers.Count)
{
_ = Output.Tuple(this.protectionContainers[counter].Name, containerName).Apply(t =>
{
if (t.Item1 == t.Item2) {
idx = counter;
return true;
}
else{
return false;
}
});
}
if(idx != -1)
{
return this.protectionContainers[idx];
}
else
{
return null;
}silly-smartphone-71988
06/08/2022, 1:13 PMNo 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.
Powered by