cdk-real-drift 0.18.8 → 0.18.9

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 CHANGED
@@ -2242,6 +2242,10 @@ const KNOWN_DEFAULTS = {
2242
2242
  EventBusName: "default",
2243
2243
  State: "ENABLED"
2244
2244
  },
2245
+ "AWS::Events::EventBus": { LogConfig: {
2246
+ IncludeDetail: "NONE",
2247
+ Level: "OFF"
2248
+ } },
2245
2249
  "AWS::Athena::WorkGroup": {
2246
2250
  State: "ENABLED",
2247
2251
  WorkGroupConfiguration: {
@@ -2411,7 +2415,8 @@ const KNOWN_DEFAULTS = {
2411
2415
  },
2412
2416
  "AWS::Kinesis::Stream": {
2413
2417
  MaxRecordSizeInKiB: 1024,
2414
- RetentionPeriodHours: 24
2418
+ RetentionPeriodHours: 24,
2419
+ StreamModeDetails: { StreamMode: "PROVISIONED" }
2415
2420
  },
2416
2421
  "AWS::SSM::Parameter": {
2417
2422
  DataType: "text",
@@ -18635,6 +18640,7 @@ const SYNTHETIC_READ_SIGNAL_PATHS = {
18635
18640
  "AWS::Lambda::Function": ["CodeSha256"],
18636
18641
  "AWS::Glue::Job": ["ScriptSha256"]
18637
18642
  };
18643
+ const WRITEONLY_REINCLUDE_SKIP = { "AWS::Lambda::Function": ["Code"] };
18638
18644
  const CC_REVERTABLE_DESPITE_READ_OVERRIDE = new Set([
18639
18645
  "AWS::Scheduler::Schedule",
18640
18646
  "AWS::Cognito::IdentityPool",
@@ -19189,12 +19195,14 @@ function valueAtDottedPath(model, path) {
19189
19195
  }
19190
19196
  return node;
19191
19197
  }
19192
- function writeOnlyReincludeOps(declared, schema, existingOps) {
19198
+ function writeOnlyReincludeOps(declared, schema, existingOps, resourceType) {
19193
19199
  if (!declared || !schema || schema.writeOnlyPaths.length === 0) return [];
19194
19200
  const touched = new Set(existingOps.map((o) => o.path));
19201
+ const skipPrefixes = resourceType ? WRITEONLY_REINCLUDE_SKIP[resourceType] ?? [] : [];
19195
19202
  const ops = [];
19196
19203
  for (const path of schema.writeOnlyPaths) {
19197
19204
  if (path.includes("*")) continue;
19205
+ if (skipPrefixes.some((p) => path === p || path.startsWith(`${p}.`))) continue;
19198
19206
  if (isUnderCreateOnly(path, schema.createOnlyPaths)) continue;
19199
19207
  if (isUnderCreateOnly(path, schema.conditionalCreateOnlyPaths ?? [])) continue;
19200
19208
  const value = valueAtDottedPath(declared, path);
@@ -20108,7 +20116,7 @@ function augmentCcItemOps(item, schemas, liveByLogical, declaredByLogical) {
20108
20116
  if (item.kind !== "cc") return item;
20109
20117
  const liveRaw = liveByLogical.get(item.logicalId);
20110
20118
  const tagged = tagPreservingOps(item.ops, liveRaw);
20111
- const extra = writeOnlyReincludeOps(declaredByLogical(item.logicalId), schemas.get(item.resourceType), tagged);
20119
+ const extra = writeOnlyReincludeOps(declaredByLogical(item.logicalId), schemas.get(item.resourceType), tagged, item.resourceType);
20112
20120
  const strip = rejectedEmptyStripOps(item.resourceType, [...tagged, ...extra], liveRaw);
20113
20121
  const combined = [
20114
20122
  ...tagged,