github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/simple-range-pp/dotnet/simple-range.cs (about) 1 using System.Collections.Generic; 2 using Pulumi; 3 using Aws = Pulumi.Aws; 4 5 return await Deployment.RunAsync(() => 6 { 7 var bucket = new List<Aws.S3.Bucket>(); 8 for (var rangeIndex = 0; rangeIndex < 10; rangeIndex++) 9 { 10 var range = new { Value = rangeIndex }; 11 bucket.Add(new Aws.S3.Bucket($"bucket-{range.Value}", new() 12 { 13 Website = new Aws.S3.Inputs.BucketWebsiteArgs 14 { 15 IndexDocument = $"index-{range.Value}.html", 16 }, 17 })); 18 } 19 }); 20