pulumi/tests/integration/about/dotnet/MyStack.cs

18 lines
331 B
C#

using Pulumi;
using Pulumi.Aws.S3;
class MyStack : Stack
{
public MyStack()
{
// Create an AWS resource (S3 Bucket)
var bucket = new Bucket("my-bucket");
// Export the name of the bucket
this.BucketName = bucket.Id;
}
[Output]
public Output<string> BucketName { get; set; }
}