github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/aws-resource-options-5.16.2-pp/dotnet/aws-resource-options-5.16.2.cs (about) 1 using System.Collections.Generic; 2 using Pulumi; 3 using Aws = Pulumi.Aws; 4 5 return await Deployment.RunAsync(() => 6 { 7 var provider = new Aws.Provider("provider", new() 8 { 9 Region = "us-west-2", 10 }); 11 12 var bucket1 = new Aws.S3.Bucket("bucket1", new() 13 { 14 }, new CustomResourceOptions 15 { 16 Provider = provider, 17 DependsOn = new[] 18 { 19 provider, 20 }, 21 Protect = true, 22 IgnoreChanges = 23 { 24 "bucket", 25 "lifecycleRules[0]", 26 } 27 }); 28 29 }); 30