import { Construct } from "@aws-cdk/core"; import { SourceConfiguration } from "@aws-cdk/aws-cloudfront"; export interface StaticSiteProps { /** * The apex domain name * @example "247studios.ca" */ readonly domainName: string; /** * The domain name that will host the site. * @example "www.247studios.ca" */ readonly recordName: string; /** * Path to the public directory that will be served * @example "../www/public" */ readonly sourcePath: string; /** * Extra origin configurations to be added to the CloudFront distribution */ readonly originConfigs?: SourceConfiguration[]; } /** * Uploads a static site to S3 and configures a CloudFront Distribution. * * If you are hosting a site for the www subdomain, you should also use * {@link RedirectSite} to redirect the apex domain to the www subdomain. * @requires - region to be "us-east-1" */ export declare class StaticSite extends Construct { constructor(parent: Construct, name: string, props: StaticSiteProps); }