@jaypie/constructs 1.2.30 → 1.2.32
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
CHANGED
|
@@ -945,7 +945,7 @@ class JaypieEnvSecret extends constructs.Construct {
|
|
|
945
945
|
process.env[idOrEnvKey] !== "";
|
|
946
946
|
const id = treatAsEnvKey ? `EnvSecret_${idOrEnvKey}` : idOrEnvKey;
|
|
947
947
|
super(scope, id);
|
|
948
|
-
const { consumer = checkEnvIsConsumer$1(), envKey: envKeyProp, export: exportParam, generateSecretString, provider = checkEnvIsProvider$1(), roleTag, vendorTag, value, } = props || {};
|
|
948
|
+
const { consumer = checkEnvIsConsumer$1(), envKey: envKeyProp, export: exportParam, generateSecretString, provider = checkEnvIsProvider$1(), removalPolicy, roleTag, vendorTag, value, } = props || {};
|
|
949
949
|
const envKey = treatAsEnvKey ? idOrEnvKey : envKeyProp;
|
|
950
950
|
this._envKey = envKey;
|
|
951
951
|
let exportName;
|
|
@@ -972,6 +972,14 @@ class JaypieEnvSecret extends constructs.Construct {
|
|
|
972
972
|
: undefined,
|
|
973
973
|
};
|
|
974
974
|
this._secret = new secretsmanager__namespace.Secret(this, id, secretProps);
|
|
975
|
+
if (removalPolicy !== undefined) {
|
|
976
|
+
const policy = typeof removalPolicy === "boolean"
|
|
977
|
+
? removalPolicy
|
|
978
|
+
? cdk.RemovalPolicy.RETAIN
|
|
979
|
+
: cdk.RemovalPolicy.DESTROY
|
|
980
|
+
: removalPolicy;
|
|
981
|
+
this._secret.applyRemovalPolicy(policy);
|
|
982
|
+
}
|
|
975
983
|
if (roleTag) {
|
|
976
984
|
cdk.Tags.of(this._secret).add(CDK$2.TAG.ROLE, roleTag);
|
|
977
985
|
}
|
|
@@ -2461,6 +2469,16 @@ class JaypieDistribution extends constructs.Construct {
|
|
|
2461
2469
|
resolvedResponseHeadersPolicy = new cloudfront__namespace.ResponseHeadersPolicy(this, "SecurityHeaders", {
|
|
2462
2470
|
customHeadersBehavior: {
|
|
2463
2471
|
customHeaders: [
|
|
2472
|
+
{
|
|
2473
|
+
header: "Cache-Control",
|
|
2474
|
+
override: true,
|
|
2475
|
+
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
header: "Cross-Origin-Embedder-Policy",
|
|
2479
|
+
override: true,
|
|
2480
|
+
value: "unsafe-none",
|
|
2481
|
+
},
|
|
2464
2482
|
{
|
|
2465
2483
|
header: "Cross-Origin-Opener-Policy",
|
|
2466
2484
|
override: true,
|