@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/esm/index.js
CHANGED
|
@@ -929,6 +929,13 @@ class JaypieEnvSecret extends Construct {
|
|
|
929
929
|
else {
|
|
930
930
|
exportName = cleanName$1(exportParam);
|
|
931
931
|
}
|
|
932
|
+
if (!consumer &&
|
|
933
|
+
envKey &&
|
|
934
|
+
!process.env[envKey] &&
|
|
935
|
+
value === undefined &&
|
|
936
|
+
!generateSecretString) {
|
|
937
|
+
throw new ConfigurationError(`JaypieEnvSecret(${id}): envKey "${envKey}" is empty in process.env and no value or generateSecretString was provided`);
|
|
938
|
+
}
|
|
932
939
|
if (consumer) {
|
|
933
940
|
const secretName = Fn.importValue(exportName);
|
|
934
941
|
this._secret = secretsmanager.Secret.fromSecretNameV2(this, id, secretName);
|
|
@@ -2639,7 +2646,7 @@ class JaypieDistribution extends Construct {
|
|
|
2639
2646
|
// Add rate-based rule
|
|
2640
2647
|
rules.push({
|
|
2641
2648
|
name: "RateLimitPerIp",
|
|
2642
|
-
priority
|
|
2649
|
+
priority,
|
|
2643
2650
|
action: { block: {} },
|
|
2644
2651
|
statement: {
|
|
2645
2652
|
rateBasedStatement: {
|