Azure Static Website v0.0.5 published on Wednesday, Sep 14, 2022 by Pulumi
azure-static-website.Website
Explore with Pulumi AI
Azure Static Website v0.0.5 published on Wednesday, Sep 14, 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?: ComponentResourceOptions);
@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,
dns_zone_name: Optional[str] = None,
domain_resource_group: 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, ComponentResourceOptions? opts = null)
public Website(String name, WebsiteArgs args)
public Website(String name, WebsiteArgs args, ComponentResourceOptions options)
type: azure-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 ComponentResourceOptions
- 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 ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebsiteArgs
- The arguments to resource properties.
- options ComponentResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var websiteResource = new AzureStaticWebsite.Website("websiteResource", new()
{
SitePath = "string",
DnsZoneName = "string",
DomainResourceGroup = "string",
ErrorDocument = "string",
IndexDocument = "string",
Subdomain = "string",
WithCDN = false,
});
example, err := azurestaticwebsite.NewWebsite(ctx, "websiteResource", &azurestaticwebsite.WebsiteArgs{
SitePath: pulumi.String("string"),
DnsZoneName: pulumi.String("string"),
DomainResourceGroup: 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")
.dnsZoneName("string")
.domainResourceGroup("string")
.errorDocument("string")
.indexDocument("string")
.subdomain("string")
.withCDN(false)
.build());
website_resource = azure_static_website.Website("websiteResource",
site_path="string",
dns_zone_name="string",
domain_resource_group="string",
error_document="string",
index_document="string",
subdomain="string",
with_cdn=False)
const websiteResource = new azure_static_website.Website("websiteResource", {
sitePath: "string",
dnsZoneName: "string",
domainResourceGroup: "string",
errorDocument: "string",
indexDocument: "string",
subdomain: "string",
withCDN: false,
});
type: azure-static-website:Website
properties:
dnsZoneName: string
domainResourceGroup: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Website resource accepts the following input properties:
- Site
Path string - The root directory containing the website's contents.
- Dns
Zone stringName - The name of the DNS zone that will be used to serve the static website. This must be set in order for this component to make the site accessible from a custom domain
- Domain
Resource stringGroup - The name of the resource group your DNS zone is attached to
- Error
Document string - The default 404 error page
- Index
Document string - The default document for the site. Defaults to index.html
- Subdomain string
- The subdomain used to access the static website. If not specified will configure with apex/root domain of the DNS zone specified.
- With
CDN bool - Provision CDN to serve content.
- Site
Path string - The root directory containing the website's contents.
- Dns
Zone stringName - The name of the DNS zone that will be used to serve the static website. This must be set in order for this component to make the site accessible from a custom domain
- Domain
Resource stringGroup - The name of the resource group your DNS zone is attached to
- Error
Document string - The default 404 error page
- Index
Document string - The default document for the site. Defaults to index.html
- Subdomain string
- The subdomain used to access the static website. If not specified will configure with apex/root domain of the DNS zone specified.
- With
CDN bool - Provision CDN to serve content.
- site
Path String - The root directory containing the website's contents.
- dns
Zone StringName - The name of the DNS zone that will be used to serve the static website. This must be set in order for this component to make the site accessible from a custom domain
- domain
Resource StringGroup - The name of the resource group your DNS zone is attached to
- error
Document String - The default 404 error page
- index
Document String - The default document for the site. Defaults to index.html
- subdomain String
- The subdomain used to access the static website. If not specified will configure with apex/root domain of the DNS zone specified.
- with
CDN Boolean - Provision CDN to serve content.
- site
Path string - The root directory containing the website's contents.
- dns
Zone stringName - The name of the DNS zone that will be used to serve the static website. This must be set in order for this component to make the site accessible from a custom domain
- domain
Resource stringGroup - The name of the resource group your DNS zone is attached to
- error
Document string - The default 404 error page
- index
Document string - The default document for the site. Defaults to index.html
- subdomain string
- The subdomain used to access the static website. If not specified will configure with apex/root domain of the DNS zone specified.
- with
CDN boolean - Provision CDN to serve content.
- site_
path str - The root directory containing the website's contents.
- dns_
zone_ strname - The name of the DNS zone that will be used to serve the static website. This must be set in order for this component to make the site accessible from a custom domain
- domain_
resource_ strgroup - The name of the resource group your DNS zone is attached to
- error_
document str - The default 404 error page
- index_
document str - The default document for the site. Defaults to index.html
- subdomain str
- The subdomain used to access the static website. If not specified will configure with apex/root domain of the DNS zone specified.
- with_
cdn bool - Provision CDN to serve content.
- site
Path String - The root directory containing the website's contents.
- dns
Zone StringName - The name of the DNS zone that will be used to serve the static website. This must be set in order for this component to make the site accessible from a custom domain
- domain
Resource StringGroup - The name of the resource group your DNS zone is attached to
- error
Document String - The default 404 error page
- index
Document String - The default document for the site. Defaults to index.html
- subdomain String
- The subdomain used to access the static website. If not specified will configure with apex/root domain of the DNS zone specified.
- with
CDN Boolean - Provision CDN to serve content.
Outputs
All input properties are implicitly available as output properties. Additionally, the Website resource produces the following output properties:
- Origin
URL string - The Storage URL for the site
- Resource
Group stringName - The name of the resource group that was provisioned to contain the needed static website resources
- Cdn
URL string - The CDN URL for the site
- Custom
Domain stringURL - The custom domain URL where the static website can be accessed
- Origin
URL string - The Storage URL for the site
- Resource
Group stringName - The name of the resource group that was provisioned to contain the needed static website resources
- Cdn
URL string - The CDN URL for the site
- Custom
Domain stringURL - The custom domain URL where the static website can be accessed
- origin
URL String - The Storage URL for the site
- resource
Group StringName - The name of the resource group that was provisioned to contain the needed static website resources
- cdn
URL String - The CDN URL for the site
- custom
Domain StringURL - The custom domain URL where the static website can be accessed
- origin
URL string - The Storage URL for the site
- resource
Group stringName - The name of the resource group that was provisioned to contain the needed static website resources
- cdn
URL string - The CDN URL for the site
- custom
Domain stringURL - The custom domain URL where the static website can be accessed
- origin_
url str - The Storage URL for the site
- resource_
group_ strname - The name of the resource group that was provisioned to contain the needed static website resources
- cdn_
url str - The CDN URL for the site
- custom_
domain_ strurl - The custom domain URL where the static website can be accessed
- origin
URL String - The Storage URL for the site
- resource
Group StringName - The name of the resource group that was provisioned to contain the needed static website resources
- cdn
URL String - The CDN URL for the site
- custom
Domain StringURL - The custom domain URL where the static website can be accessed
Package Details
- Repository
- azure-static-website pulumi/pulumi-azure-static-website
- License
Azure Static Website v0.0.5 published on Wednesday, Sep 14, 2022 by Pulumi