cdk-real-drift 0.2.12 → 0.2.13
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/cli.js +8 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3513,6 +3513,10 @@ const ELB_ATTRIBUTE_BAGS = {
|
|
|
3513
3513
|
"AWS::ElasticLoadBalancingV2::TargetGroup": "TargetGroupAttributes",
|
|
3514
3514
|
"AWS::ElasticLoadBalancingV2::Listener": "ListenerAttributes"
|
|
3515
3515
|
};
|
|
3516
|
+
const MEANINGFUL_WHEN_OFF = {
|
|
3517
|
+
"AWS::KMS::Key": { Enabled: () => true },
|
|
3518
|
+
"AWS::SQS::Queue": { SqsManagedSseEnabled: ({ declared, live }) => declared["KmsMasterKeyId"] === void 0 && live["KmsMasterKeyId"] === void 0 }
|
|
3519
|
+
};
|
|
3516
3520
|
const stripCognitoAttrPrefix = (id) => id.replace(/^(custom|dev):/, "");
|
|
3517
3521
|
const IDENTITY_KEYED_SUBSET_ARRAYS = {
|
|
3518
3522
|
"AWS::Cognito::UserPool": { Schema: {
|
|
@@ -4272,7 +4276,10 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
4272
4276
|
}
|
|
4273
4277
|
if (isAllAwsTags(v)) continue;
|
|
4274
4278
|
if (physicalId !== void 0 && v === physicalId) continue;
|
|
4275
|
-
if (
|
|
4279
|
+
if (!(k in knownDef && !matchesKnownDefault(v, knownDef[k]) && (MEANINGFUL_WHEN_OFF[resourceType]?.[k]?.({
|
|
4280
|
+
declared,
|
|
4281
|
+
live
|
|
4282
|
+
}) ?? false)) && (isTrivialEmpty(v) || isSelfEchoTrivialEmpty(v, physicalId) || isEmptyPolicyShell(v))) continue;
|
|
4276
4283
|
if (isNestedObject(v) && DESCEND_UNDECLARED_OBJECT_PATHS[resourceType]?.has(k)) {
|
|
4277
4284
|
collectNestedUndeclared({}, v, k, emitNested, NESTED_ARRAY_IDENTITY[resourceType]);
|
|
4278
4285
|
continue;
|