pulumi/tests/testdata/codegen/aws-resource-options-4.26-pp/dotnet/aws-resource-options-4.26.cs

32 lines
561 B
C#

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var provider = new Aws.Provider("provider", new()
{
Region = "us-west-2",
});
var bucket1 = new Aws.S3.Bucket("bucket1", new()
{
}, new CustomResourceOptions
{
Provider = provider,
DependsOn =
{
provider,
},
Protect = true,
IgnoreChanges =
{
"bucket",
"lifecycleRules[0]",
},
});
});