@jaypie/constructs 1.2.45 → 1.2.47

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.
@@ -965,6 +965,13 @@ class JaypieEnvSecret extends constructs.Construct {
965
965
  else {
966
966
  exportName = cleanName$1(exportParam);
967
967
  }
968
+ if (!consumer &&
969
+ envKey &&
970
+ !process.env[envKey] &&
971
+ value === undefined &&
972
+ !generateSecretString) {
973
+ throw new errors.ConfigurationError(`JaypieEnvSecret(${id}): envKey "${envKey}" is empty in process.env and no value or generateSecretString was provided`);
974
+ }
968
975
  if (consumer) {
969
976
  const secretName = cdk.Fn.importValue(exportName);
970
977
  this._secret = secretsmanager__namespace.Secret.fromSecretNameV2(this, id, secretName);
@@ -2675,7 +2682,7 @@ class JaypieDistribution extends constructs.Construct {
2675
2682
  // Add rate-based rule
2676
2683
  rules.push({
2677
2684
  name: "RateLimitPerIp",
2678
- priority: priority++,
2685
+ priority,
2679
2686
  action: { block: {} },
2680
2687
  statement: {
2681
2688
  rateBasedStatement: {