diff --git a/lib/static-hosting.ts b/lib/static-hosting.ts index 6845015..4549cb2 100644 --- a/lib/static-hosting.ts +++ b/lib/static-hosting.ts @@ -25,6 +25,7 @@ export interface StaticHostingProps { */ behaviors?: Array; enableErrorConfig: boolean; + defaultRootObject?: string } export class StaticHosting extends Construct { @@ -134,6 +135,7 @@ export class StaticHosting extends Construct { sslMethod: SSLMethod.SNI, }, originConfigs, + defaultRootObject: props.defaultRootObject, priceClass: PriceClass.PRICE_CLASS_ALL, viewerProtocolPolicy: ViewerProtocolPolicy.REDIRECT_TO_HTTPS, loggingConfig: loggingConfig,