import { CreateBasicSite } from 'cdk-simplewebsite-deploy'
new CreateBasicSite(scope: Construct, id: string, props: BasicSiteConfiguration)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
BasicSiteConfiguration |
No description. |
- Type: constructs.Construct
- Type: string
- Type: BasicSiteConfiguration
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { CreateBasicSite } from 'cdk-simplewebsite-deploy'
CreateBasicSite.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
import { CreateCloudfrontSite } from 'cdk-simplewebsite-deploy'
new CreateCloudfrontSite(scope: Construct, id: string, props: CloudfrontSiteConfiguration)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
CloudfrontSiteConfiguration |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { CreateCloudfrontSite } from 'cdk-simplewebsite-deploy'
CreateCloudfrontSite.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
import { BasicSiteConfiguration } from 'cdk-simplewebsite-deploy'
const basicSiteConfiguration: BasicSiteConfiguration = { ... }
Name | Type | Description |
---|---|---|
hostedZone |
string |
Hosted Zone used to create the DNS record for the website. |
indexDoc |
string |
The index document of the website. |
websiteFolder |
string |
Local path to the website folder you want to deploy on S3. |
errorDoc |
string |
The error document of the website. |
public readonly hostedZone: string;
- Type: string
Hosted Zone used to create the DNS record for the website.
public readonly indexDoc: string;
- Type: string
The index document of the website.
public readonly websiteFolder: string;
- Type: string
Local path to the website folder you want to deploy on S3.
public readonly errorDoc: string;
- Type: string
- Default: No error document.
The error document of the website.
import { CloudfrontSiteConfiguration } from 'cdk-simplewebsite-deploy'
const cloudfrontSiteConfiguration: CloudfrontSiteConfiguration = { ... }
Name | Type | Description |
---|---|---|
hostedZone |
string |
Hosted Zone used to create the DNS record for the website. |
indexDoc |
string |
The index document of the website. |
websiteFolder |
string |
Local path to the website folder you want to deploy on S3. |
domain |
string |
Used to deploy a Cloudfront site with a single domain. |
errorDoc |
string |
The error document of the website. |
priceClass |
PriceClass |
The price class determines how many edge locations CloudFront will use for your distribution. |
subDomain |
string |
The subdomain name you want to deploy. |
public readonly hostedZone: string;
- Type: string
Hosted Zone used to create the DNS record for the website.
public readonly indexDoc: string;
- Type: string
The index document of the website.
public readonly websiteFolder: string;
- Type: string
Local path to the website folder you want to deploy on S3.
public readonly domain: string;
- Type: string
- Default: no value
Used to deploy a Cloudfront site with a single domain.
e.g. sample.example.com If you include a value for both domain and subDomain, an error will be thrown.
public readonly errorDoc: string;
- Type: string
- Default: No error document.
The error document of the website.
public readonly priceClass: PriceClass;
- Type: PriceClass
- Default: PriceClass.PRICE_CLASS_100.
The price class determines how many edge locations CloudFront will use for your distribution.
public readonly subDomain: string;
- Type: string
- Default: no value
The subdomain name you want to deploy.
e.g. www.example.com If you include a value for both domain and subDomain, an error will be thrown.
Name | Description |
---|---|
PRICE_CLASS_100 |
USA, Canada, Europe, & Israel. |
PRICE_CLASS_200 |
PRICE_CLASS_100 + South Africa, Kenya, Middle East, Japan, Singapore, South Korea, Taiwan, Hong Kong, & Philippines. |
PRICE_CLASS_ALL |
All locations. |
USA, Canada, Europe, & Israel.
PRICE_CLASS_100 + South Africa, Kenya, Middle East, Japan, Singapore, South Korea, Taiwan, Hong Kong, & Philippines.
All locations.