1. Packages
  2. Google Cloud Static Website
  3. API Docs
  4. Website
Google Cloud Static Website v0.0.3 published on Monday, Sep 19, 2022 by Pulumi

google-cloud-static-website.Website

Explore with Pulumi AI

google-cloud-static-website logo
Google Cloud Static Website v0.0.3 published on Monday, Sep 19, 2022 by Pulumi

    Create Website Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Website(name: string, args: WebsiteArgs, opts?: CustomResourceOptions);
    @overload
    def Website(resource_name: str,
                args: WebsiteArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Website(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                site_path: Optional[str] = None,
                domain: Optional[str] = None,
                error_document: Optional[str] = None,
                index_document: Optional[str] = None,
                subdomain: Optional[str] = None,
                with_cdn: Optional[bool] = None)
    func NewWebsite(ctx *Context, name string, args WebsiteArgs, opts ...ResourceOption) (*Website, error)
    public Website(string name, WebsiteArgs args, CustomResourceOptions? opts = null)
    public Website(String name, WebsiteArgs args)
    public Website(String name, WebsiteArgs args, CustomResourceOptions options)
    
    type: google-cloud-static-website:Website
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args WebsiteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WebsiteArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WebsiteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WebsiteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WebsiteArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var websiteResource = new GoogleCloudStaticWebsite.Website("websiteResource", new()
    {
        SitePath = "string",
        Domain = "string",
        ErrorDocument = "string",
        IndexDocument = "string",
        Subdomain = "string",
        WithCDN = false,
    });
    
    example, err := googlecloudstaticwebsite.NewWebsite(ctx, "websiteResource", &googlecloudstaticwebsite.WebsiteArgs{
    	SitePath:      pulumi.String("string"),
    	Domain:        pulumi.String("string"),
    	ErrorDocument: pulumi.String("string"),
    	IndexDocument: pulumi.String("string"),
    	Subdomain:     pulumi.String("string"),
    	WithCDN:       pulumi.Bool(false),
    })
    
    var websiteResource = new Website("websiteResource", WebsiteArgs.builder()
        .sitePath("string")
        .domain("string")
        .errorDocument("string")
        .indexDocument("string")
        .subdomain("string")
        .withCDN(false)
        .build());
    
    website_resource = google_cloud_static_website.Website("websiteResource",
        site_path="string",
        domain="string",
        error_document="string",
        index_document="string",
        subdomain="string",
        with_cdn=False)
    
    const websiteResource = new google_cloud_static_website.Website("websiteResource", {
        sitePath: "string",
        domain: "string",
        errorDocument: "string",
        indexDocument: "string",
        subdomain: "string",
        withCDN: false,
    });
    
    type: google-cloud-static-website:Website
    properties:
        domain: string
        errorDocument: string
        indexDocument: string
        sitePath: string
        subdomain: string
        withCDN: false
    

    Website Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Website resource accepts the following input properties:

    SitePath string
    The root directory containing contents of the built website contents.
    Domain string
    The domain of the website.
    ErrorDocument string
    The default error page for the website. Defaults to error.html.
    IndexDocument string
    The default document for the site. Defaults to index.html.
    Subdomain string
    The subdomain of the website.
    WithCDN bool
    Whether to provision a Google Cloud CDN to serve website content.
    SitePath string
    The root directory containing contents of the built website contents.
    Domain string
    The domain of the website.
    ErrorDocument string
    The default error page for the website. Defaults to error.html.
    IndexDocument string
    The default document for the site. Defaults to index.html.
    Subdomain string
    The subdomain of the website.
    WithCDN bool
    Whether to provision a Google Cloud CDN to serve website content.
    sitePath String
    The root directory containing contents of the built website contents.
    domain String
    The domain of the website.
    errorDocument String
    The default error page for the website. Defaults to error.html.
    indexDocument String
    The default document for the site. Defaults to index.html.
    subdomain String
    The subdomain of the website.
    withCDN Boolean
    Whether to provision a Google Cloud CDN to serve website content.
    sitePath string
    The root directory containing contents of the built website contents.
    domain string
    The domain of the website.
    errorDocument string
    The default error page for the website. Defaults to error.html.
    indexDocument string
    The default document for the site. Defaults to index.html.
    subdomain string
    The subdomain of the website.
    withCDN boolean
    Whether to provision a Google Cloud CDN to serve website content.
    site_path str
    The root directory containing contents of the built website contents.
    domain str
    The domain of the website.
    error_document str
    The default error page for the website. Defaults to error.html.
    index_document str
    The default document for the site. Defaults to index.html.
    subdomain str
    The subdomain of the website.
    with_cdn bool
    Whether to provision a Google Cloud CDN to serve website content.
    sitePath String
    The root directory containing contents of the built website contents.
    domain String
    The domain of the website.
    errorDocument String
    The default error page for the website. Defaults to error.html.
    indexDocument String
    The default document for the site. Defaults to index.html.
    subdomain String
    The subdomain of the website.
    withCDN Boolean
    Whether to provision a Google Cloud CDN to serve website content.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Website resource produces the following output properties:

    OriginURL string
    The direct URL of the website.
    CdnURL string
    The CDN URL of the website.
    CustomDomainURL string
    The custom-domain URL of the website.
    OriginURL string
    The direct URL of the website.
    CdnURL string
    The CDN URL of the website.
    CustomDomainURL string
    The custom-domain URL of the website.
    originURL String
    The direct URL of the website.
    cdnURL String
    The CDN URL of the website.
    customDomainURL String
    The custom-domain URL of the website.
    originURL string
    The direct URL of the website.
    cdnURL string
    The CDN URL of the website.
    customDomainURL string
    The custom-domain URL of the website.
    origin_url str
    The direct URL of the website.
    cdn_url str
    The CDN URL of the website.
    custom_domain_url str
    The custom-domain URL of the website.
    originURL String
    The direct URL of the website.
    cdnURL String
    The CDN URL of the website.
    customDomainURL String
    The custom-domain URL of the website.

    Package Details

    Repository
    google-cloud-static-website pulumi/pulumi-google-cloud-static-website
    License
    google-cloud-static-website logo
    Google Cloud Static Website v0.0.3 published on Monday, Sep 19, 2022 by Pulumi