Skip to content

Commit f525386

Browse files
authored
Merge pull request #323 from gammarers/feature/add-price-class-props
feat: add price class props
2 parents 7174792 + b51c8d2 commit f525386

File tree

6 files changed

+36
-24
lines changed

6 files changed

+36
-24
lines changed

.projen/deps.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const project = new awscdk.AwsCdkConstructLibrary({
44
author: 'yicr',
55
authorAddress: '[email protected]',
66
cdkVersion: '2.189.1',
7-
typescriptVersion: '5.7.x',
8-
jsiiVersion: '5.7.x',
7+
typescriptVersion: '5.8.x',
8+
jsiiVersion: '5.8.x',
99
defaultReleaseBranch: 'main',
1010
projenrcTs: true,
1111
name: '@gammarers/aws-secure-frontend-web-app-cloudfront-distribution',

API.md

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface SecureFrontendWebAppCloudFrontDistributionProps {
1111
readonly certificate: acm.ICertificate;
1212
readonly originBucket: s3.IBucket;
1313
readonly accessLogBucket?: s3.IBucket;
14+
readonly priceClass?: cloudfront.PriceClass;
1415
}
1516

1617
export class SecureFrontendWebAppCloudFrontDistribution extends cloudfront.Distribution {
@@ -92,7 +93,7 @@ export class SecureFrontendWebAppCloudFrontDistribution extends cloudfront.Distr
9293
responsePagePath: '/index.html',
9394
},
9495
],
95-
priceClass: cloudfront.PriceClass.PRICE_CLASS_ALL,
96+
priceClass: props.priceClass ?? cloudfront.PriceClass.PRICE_CLASS_ALL,
9697
});
9798
}
9899
}

yarn.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)