@gradientedge/cdk-utils 4.11.3 → 4.11.4

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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "4.11.3",
3
+ "version": "4.11.4",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -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