https://pulumi.com logo
#dotnet
Title
b

boundless-tailor-35598

08/05/2021, 4:52 PM
Copy code
Output<object> publicSubnetIds = network.GetOutput("PublicSubnetIds");
Output<ImmutableArray<object>> subnets = publicSubnetIds.Apply(x => (ImmutableArray<object>) x);
var secondPublicSubnetId = subnets.Apply(x => x[1].ToString());