Interface CpWebSiteProps

CloudKitect Website Pattern Properties

interface CpWebSiteProps {
    cpAdditionalDomainNames?: string[];
    cpBucketPolicyActions?: string[];
    cpBucketProps?: CcBucketProps;
    cpCloudFrontDistributionDefaultBehavior?: BehaviorOptions;
    cpDefaultRootObject?: string;
    cpDomainName: string;
    cpEnableCloudFrontLogging?: boolean;
    cpErrorResponsePagePath?: string;
    cpHostedZone?: IHostedZone;
    cpOriginAccessIdentity?: OriginAccessIdentity;
    cpPathToContent: string;
    cpSubdomain?: string;
}

Properties

cpAdditionalDomainNames?: string[]

Additional domain names to be included in ssl and redirect traffic to main domain

cpBucketPolicyActions?: string[]

Additional bucket policy actions

Default

s3:GetObject
cpBucketProps?: CcBucketProps

Bucket properties to override defaults

cpCloudFrontDistributionDefaultBehavior?: BehaviorOptions

Override default CloudFront Distribution behavior

cpDefaultRootObject?: string

Root object of the website, e.g. index.html

Default

index.html
cpDomainName: string

Domain name

cpEnableCloudFrontLogging?: boolean

Flag to enable or disable CloudFront logging

Default

false
cpErrorResponsePagePath?: string

Root object of the website, e.g. /error-page.html

Default

/error.html
cpHostedZone?: IHostedZone

Hosted zone properties

cpOriginAccessIdentity?: OriginAccessIdentity

Origin Access Identity to override defaults

Default

A new one is created
cpPathToContent: string

Location of website content

cpSubdomain?: string

Subdomain name e.g. www

Default

www

Generated using TypeDoc