@gradientedge/cdk-utils 4.11.2 → 4.12.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.
@@ -592,7 +592,7 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
592
592
  createApiDomain() {
593
593
  if (this.props.api.useExisting)
594
594
  return;
595
- this.apiDestinedRestApi.domain = this.apiManager.createApiDomain(`${this.id}-api-domain`, this, this.isProductionStage()
595
+ this.apiDestinedRestApi.domain = this.apiManager.createApiDomain(`${this.id}-api-domain`, this, this.isProductionStage() || this.props.skipStageForARecords
596
596
  ? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
597
597
  : `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`, this.apiDestinedRestApi.certificate);
598
598
  }
@@ -173,7 +173,7 @@ class GraphQLApiLambda extends common_1.CommonConstruct {
173
173
  * @protected
174
174
  */
175
175
  createApiDomain() {
176
- this.graphQLApiDomain = this.apiManager.createApiDomain(`${this.id}-api-domain`, this, this.isProductionStage()
176
+ this.graphQLApiDomain = this.apiManager.createApiDomain(`${this.id}-api-domain`, this, this.isProductionStage() || this.props.skipStageForARecords
177
177
  ? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
178
178
  : `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`, this.graphQLApiCertificate);
179
179
  }
@@ -81,6 +81,8 @@ class EventManager {
81
81
  description: props.description,
82
82
  ruleName: `${props.ruleName}-${scope.props.stage}`,
83
83
  eventPattern: props.eventPattern,
84
+ enabled: props.enabled,
85
+ schedule: props.schedule,
84
86
  });
85
87
  if (targets && targets.length > 0) {
86
88
  targets.forEach(target => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "4.11.2",
3
+ "version": "4.12.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -45,31 +45,31 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@aws-cdk/aws-lambda-python-alpha": "2.15.0-alpha.0",
49
- "@types/lodash": "^4.14.179",
48
+ "@aws-cdk/aws-lambda-python-alpha": "2.16.0-alpha.0",
49
+ "@types/lodash": "^4.14.180",
50
50
  "@types/node": "^17.0.21",
51
51
  "app-root-path": "^3.0.0",
52
- "aws-cdk-lib": "^2.15.0",
53
- "aws-sdk": "^2.1085.0",
54
- "constructs": "^10.0.77",
52
+ "aws-cdk-lib": "^2.16.0",
53
+ "aws-sdk": "^2.1093.0",
54
+ "constructs": "^10.0.88",
55
55
  "lodash": "^4.17.21",
56
56
  "moment": "^2.29.1",
57
57
  "nconf": "^0.11.3",
58
58
  "pluralize": "^8.0.0",
59
- "ts-node": "^10.6.0"
59
+ "ts-node": "^10.7.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@babel/plugin-proposal-class-properties": "^7.16.7",
63
63
  "@types/jest": "^27.4.1",
64
- "@typescript-eslint/eslint-plugin": "^5.13.0",
65
- "@typescript-eslint/parser": "^5.13.0",
64
+ "@typescript-eslint/eslint-plugin": "^5.15.0",
65
+ "@typescript-eslint/parser": "^5.15.0",
66
66
  "aws-cdk": "*",
67
67
  "babel-eslint": "^10.1.0",
68
68
  "better-docs": "^2.7.2",
69
69
  "codecov": "^3.8.3",
70
70
  "commitizen": "^4.2.4",
71
71
  "dotenv": "^16.0.0",
72
- "eslint": "^8.10.0",
72
+ "eslint": "^8.11.0",
73
73
  "eslint-config-prettier": "^8.5.0",
74
74
  "eslint-plugin-import": "^2.25.4",
75
75
  "husky": "^7.0.4",
@@ -85,11 +85,11 @@
85
85
  "rimraf": "^3.0.2",
86
86
  "semantic-release": "^19.0.2",
87
87
  "ts-jest": "^27.1.3",
88
- "ts-node": "^10.6.0",
88
+ "ts-node": "^10.7.0",
89
89
  "typescript": "4.6.2"
90
90
  },
91
91
  "optionalDependencies": {
92
- "@babel/core": "^7.17.5",
92
+ "@babel/core": "^7.17.7",
93
93
  "prop-types": "^15.8.1",
94
94
  "react": "^17.0.2",
95
95
  "react-dom": "^17.0.2"
@@ -655,7 +655,7 @@ export class ApiToEventBridgeTarget extends CommonConstruct {
655
655
  this.apiDestinedRestApi.domain = this.apiManager.createApiDomain(
656
656
  `${this.id}-api-domain`,
657
657
  this,
658
- this.isProductionStage()
658
+ this.isProductionStage() || this.props.skipStageForARecords
659
659
  ? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
660
660
  : `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`,
661
661
  this.apiDestinedRestApi.certificate
@@ -207,7 +207,7 @@ export class GraphQLApiLambda extends CommonConstruct {
207
207
  this.graphQLApiDomain = this.apiManager.createApiDomain(
208
208
  `${this.id}-api-domain`,
209
209
  this,
210
- this.isProductionStage()
210
+ this.isProductionStage() || this.props.skipStageForARecords
211
211
  ? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
212
212
  : `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`,
213
213
  this.graphQLApiCertificate
@@ -68,6 +68,8 @@ export class EventManager {
68
68
  description: props.description,
69
69
  ruleName: `${props.ruleName}-${scope.props.stage}`,
70
70
  eventPattern: props.eventPattern,
71
+ enabled: props.enabled,
72
+ schedule: props.schedule,
71
73
  })
72
74
 
73
75
  if (targets && targets.length > 0) {