@gradientedge/cdk-utils 6.3.1 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ export declare class StaticSite extends CommonConstruct {
33
33
  siteARecord: route53.ARecord;
34
34
  siteBucket: s3.IBucket;
35
35
  siteOrigin: origins.S3Origin;
36
- siteDistribution: cloudfront.Distribution;
36
+ siteDistribution: cloudfront.IDistribution;
37
37
  siteLogBucket: s3.IBucket;
38
38
  siteOriginAccessIdentity: cloudfront.OriginAccessIdentity;
39
39
  siteCloudfrontFunction: cloudfront.Function;
@@ -75,6 +75,11 @@ export declare class StaticSite extends CommonConstruct {
75
75
  * @protected
76
76
  */
77
77
  protected resolveSiteFunctionAssociations(): void;
78
+ /**
79
+ * @summary Method to create a site origin access identity
80
+ * @protected
81
+ */
82
+ protected createSiteOriginAccessIdentity(): void;
78
83
  /**
79
84
  * @summary Method to create a site cloudfront distribution
80
85
  * @protected
@@ -78,6 +78,7 @@ class StaticSite extends common_1.CommonConstruct {
78
78
  this.createSiteOrigin();
79
79
  this.createSiteCloudfrontFunction();
80
80
  this.resolveSiteFunctionAssociations();
81
+ this.createSiteOriginAccessIdentity();
81
82
  this.createSiteDistribution();
82
83
  this.createSiteRouteAssets();
83
84
  this.deploySite();
@@ -142,6 +143,11 @@ class StaticSite extends common_1.CommonConstruct {
142
143
  ];
143
144
  }
144
145
  }
146
+ /**
147
+ * @summary Method to create a site origin access identity
148
+ * @protected
149
+ */
150
+ createSiteOriginAccessIdentity() { }
145
151
  /**
146
152
  * @summary Method to create a site cloudfront distribution
147
153
  * @protected
@@ -38,8 +38,6 @@ import * as types from '../../types';
38
38
  export declare class CloudFrontManager {
39
39
  createOriginAccessIdentity(id: string, scope: common.CommonConstruct, accessBucket?: s3.IBucket): cdk.aws_cloudfront.OriginAccessIdentity;
40
40
  /**
41
- * @deprecated Use `createDistributionWithS3Origin` instead
42
- *
43
41
  * @summary Method to create a cloudfront distribution
44
42
  * @param {string} id scoped id of the resource
45
43
  * @param {common.CommonConstruct} scope scope in which this resource is defined
@@ -67,8 +67,6 @@ class CloudFrontManager {
67
67
  return oai;
68
68
  }
69
69
  /**
70
- * @deprecated Use `createDistributionWithS3Origin` instead
71
- *
72
70
  * @summary Method to create a cloudfront distribution
73
71
  * @param {string} id scoped id of the resource
74
72
  * @param {common.CommonConstruct} scope scope in which this resource is defined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "6.3.1",
3
+ "version": "6.4.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -37,7 +37,7 @@ export class StaticSite extends CommonConstruct {
37
37
  siteARecord: route53.ARecord
38
38
  siteBucket: s3.IBucket
39
39
  siteOrigin: origins.S3Origin
40
- siteDistribution: cloudfront.Distribution
40
+ siteDistribution: cloudfront.IDistribution
41
41
  siteLogBucket: s3.IBucket
42
42
  siteOriginAccessIdentity: cloudfront.OriginAccessIdentity
43
43
  siteCloudfrontFunction: cloudfront.Function
@@ -62,6 +62,7 @@ export class StaticSite extends CommonConstruct {
62
62
  this.createSiteOrigin()
63
63
  this.createSiteCloudfrontFunction()
64
64
  this.resolveSiteFunctionAssociations()
65
+ this.createSiteOriginAccessIdentity()
65
66
  this.createSiteDistribution()
66
67
  this.createSiteRouteAssets()
67
68
  this.deploySite()
@@ -153,6 +154,12 @@ export class StaticSite extends CommonConstruct {
153
154
  }
154
155
  }
155
156
 
157
+ /**
158
+ * @summary Method to create a site origin access identity
159
+ * @protected
160
+ */
161
+ protected createSiteOriginAccessIdentity() {}
162
+
156
163
  /**
157
164
  * @summary Method to create a site cloudfront distribution
158
165
  * @protected
@@ -50,8 +50,6 @@ export class CloudFrontManager {
50
50
  }
51
51
 
52
52
  /**
53
- * @deprecated Use `createDistributionWithS3Origin` instead
54
- *
55
53
  * @summary Method to create a cloudfront distribution
56
54
  * @param {string} id scoped id of the resource
57
55
  * @param {common.CommonConstruct} scope scope in which this resource is defined