github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/plain-schema-gh6957/dotnet/StaticPage.cs (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 using System; 5 using System.Collections.Generic; 6 using System.Collections.Immutable; 7 using System.Threading.Tasks; 8 using Pulumi.Serialization; 9 10 namespace Pulumi.Xyz 11 { 12 [XyzResourceType("xyz:index:StaticPage")] 13 public partial class StaticPage : global::Pulumi.ComponentResource 14 { 15 /// <summary> 16 /// The bucket resource. 17 /// </summary> 18 [Output("bucket")] 19 public Output<Pulumi.Aws.S3.Bucket> Bucket { get; private set; } = null!; 20 21 /// <summary> 22 /// The website URL. 23 /// </summary> 24 [Output("websiteUrl")] 25 public Output<string> WebsiteUrl { get; private set; } = null!; 26 27 28 /// <summary> 29 /// Create a StaticPage resource with the given unique name, arguments, and options. 30 /// </summary> 31 /// 32 /// <param name="name">The unique name of the resource</param> 33 /// <param name="args">The arguments used to populate this resource's properties</param> 34 /// <param name="options">A bag of options that control this resource's behavior</param> 35 public StaticPage(string name, StaticPageArgs args, ComponentResourceOptions? options = null) 36 : base("xyz:index:StaticPage", name, args ?? new StaticPageArgs(), MakeResourceOptions(options, ""), remote: true) 37 { 38 } 39 40 private static ComponentResourceOptions MakeResourceOptions(ComponentResourceOptions? options, Input<string>? id) 41 { 42 var defaultOptions = new ComponentResourceOptions 43 { 44 Version = Utilities.Version, 45 }; 46 var merged = ComponentResourceOptions.Merge(defaultOptions, options); 47 // Override the ID if one was specified for consistency with other language SDKs. 48 merged.Id = id ?? merged.Id; 49 return merged; 50 } 51 } 52 53 public sealed class StaticPageArgs : global::Pulumi.ResourceArgs 54 { 55 [Input("foo")] 56 public Inputs.FooArgs? Foo { get; set; } 57 58 /// <summary> 59 /// The HTML content for index.html. 60 /// </summary> 61 [Input("indexContent", required: true)] 62 public Input<string> IndexContent { get; set; } = null!; 63 64 public StaticPageArgs() 65 { 66 } 67 public static new StaticPageArgs Empty => new StaticPageArgs(); 68 } 69 }