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 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:
- Site
Path string - The root directory containing contents of the built website contents.
- Domain string
- The domain of the website.
- Error
Document string - The default error page for the website. Defaults to error.html.
- Index
Document string - The default document for the site. Defaults to index.html.
- Subdomain string
- The subdomain of the website.
- With
CDN bool - Whether to provision a Google Cloud CDN to serve website content.
- Site
Path string - The root directory containing contents of the built website contents.
- Domain string
- The domain of the website.
- Error
Document string - The default error page for the website. Defaults to error.html.
- Index
Document string - The default document for the site. Defaults to index.html.
- Subdomain string
- The subdomain of the website.
- With
CDN bool - Whether to provision a Google Cloud CDN to serve website content.
- site
Path String - The root directory containing contents of the built website contents.
- domain String
- The domain of the website.
- error
Document String - The default error page for the website. Defaults to error.html.
- index
Document String - The default document for the site. Defaults to index.html.
- subdomain String
- The subdomain of the website.
- with
CDN Boolean - Whether to provision a Google Cloud CDN to serve website content.
- site
Path string - The root directory containing contents of the built website contents.
- domain string
- The domain of the website.
- error
Document string - The default error page for the website. Defaults to error.html.
- index
Document string - The default document for the site. Defaults to index.html.
- subdomain string
- The subdomain of the website.
- with
CDN 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.
- site
Path String - The root directory containing contents of the built website contents.
- domain String
- The domain of the website.
- error
Document String - The default error page for the website. Defaults to error.html.
- index
Document String - The default document for the site. Defaults to index.html.
- subdomain String
- The subdomain of the website.
- with
CDN 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:
- Origin
URL string - The direct URL of the website.
- Cdn
URL string - The CDN URL of the website.
- Custom
Domain stringURL - The custom-domain URL of the website.
- Origin
URL string - The direct URL of the website.
- Cdn
URL string - The CDN URL of the website.
- Custom
Domain stringURL - The custom-domain URL of the website.
- origin
URL String - The direct URL of the website.
- cdn
URL String - The CDN URL of the website.
- custom
Domain StringURL - The custom-domain URL of the website.
- origin
URL string - The direct URL of the website.
- cdn
URL string - The CDN URL of the website.
- custom
Domain stringURL - 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_ strurl - The custom-domain URL of the website.
- origin
URL String - The direct URL of the website.
- cdn
URL String - The CDN URL of the website.
- custom
Domain StringURL - The custom-domain URL of the website.
Package Details
Google Cloud Static Website v0.0.3 published on Monday, Sep 19, 2022 by Pulumi