@jaypie/constructs 1.2.45 → 1.2.46

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);