github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/transpiled_examples/getting-started-pp/dotnet/getting-started.cs (about)

     1  using System.Collections.Generic;
     2  using Pulumi;
     3  using Aws = Pulumi.Aws;
     4  
     5  return await Deployment.RunAsync(() => 
     6  {
     7      var mybucket = new Aws.S3.Bucket("mybucket", new()
     8      {
     9          Website = new Aws.S3.Inputs.BucketWebsiteArgs
    10          {
    11              IndexDocument = "index.html",
    12          },
    13      });
    14  
    15      var indexhtml = new Aws.S3.BucketObject("indexhtml", new()
    16      {
    17          Bucket = mybucket.Id,
    18          Source = new StringAsset("<h1>Hello, world!</h1>"),
    19          Acl = "public-read",
    20          ContentType = "text/html",
    21      });
    22  
    23      return new Dictionary<string, object?>
    24      {
    25          ["bucketEndpoint"] = mybucket.WebsiteEndpoint.Apply(websiteEndpoint => $"http://{websiteEndpoint}"),
    26      };
    27  });
    28