From 1699f3ad1456f785ae0380648acbf9b416a237a7 Mon Sep 17 00:00:00 2001 From: Gowri Date: Wed, 24 Jan 2024 10:50:00 +1030 Subject: [PATCH 1/2] chore: add distribution comment prop --- packages/static-hosting/lib/static-hosting.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/static-hosting/lib/static-hosting.ts b/packages/static-hosting/lib/static-hosting.ts index 64e66767..6b68a14f 100644 --- a/packages/static-hosting/lib/static-hosting.ts +++ b/packages/static-hosting/lib/static-hosting.ts @@ -63,7 +63,8 @@ export interface StaticHostingProps { remapBackendPaths?: remapPath[]; defaultRootObject?: string; enforceSSL?: boolean; - + comment?: string; + /** * Disable the use of the CSP header. Default value is false. */ @@ -376,6 +377,7 @@ export class StaticHosting extends Construct { const distributionProps: DistributionProps = { domainNames: domainNames, webAclId: props.webAclArn, + comment: props.comment, defaultRootObject: defaultRootObject, httpVersion: HttpVersion.HTTP3, sslSupportMethod: SSLMethod.SNI, From f9b4b59bb6e543dbbe30c8027848c865543cc953 Mon Sep 17 00:00:00 2001 From: Gowri Date: Wed, 24 Jan 2024 10:55:00 +1030 Subject: [PATCH 2/2] chore: fix linter error --- packages/static-hosting/lib/static-hosting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/static-hosting/lib/static-hosting.ts b/packages/static-hosting/lib/static-hosting.ts index 6b68a14f..f94db8aa 100644 --- a/packages/static-hosting/lib/static-hosting.ts +++ b/packages/static-hosting/lib/static-hosting.ts @@ -64,7 +64,7 @@ export interface StaticHostingProps { defaultRootObject?: string; enforceSSL?: boolean; comment?: string; - + /** * Disable the use of the CSP header. Default value is false. */