@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.
- package/dist/cjs/index.cjs +8 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
|
2685
|
+
priority,
|
|
2679
2686
|
action: { block: {} },
|
|
2680
2687
|
statement: {
|
|
2681
2688
|
rateBasedStatement: {
|