@cdkd/cli 0.334.3 → 0.336.0

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.
Files changed (39) hide show
  1. package/dist/ambient-client-defaults-B9bnuob2.js +960 -0
  2. package/dist/ambient-client-defaults-B9bnuob2.js.map +1 -0
  3. package/dist/{asg-provider-Gu-qQLG9.js → asg-provider-Kmj1OMXP.js} +4 -3
  4. package/dist/asg-provider-Kmj1OMXP.js.map +1 -0
  5. package/dist/cli.js +2 -2
  6. package/dist/{db-instance-modify-retry-AJiRFAXa.js → db-instance-modify-retry-CQLlNArd.js} +10 -9
  7. package/dist/{db-instance-modify-retry-AJiRFAXa.js.map → db-instance-modify-retry-CQLlNArd.js.map} +1 -1
  8. package/dist/{deploy-engine-BktCSZdi.js → deploy-engine-C1sQP24T.js} +2145 -1955
  9. package/dist/deploy-engine-C1sQP24T.js.map +1 -0
  10. package/dist/ecr-uri-EPT8p1G0.js +93 -0
  11. package/dist/ecr-uri-EPT8p1G0.js.map +1 -0
  12. package/dist/{iam-role-provider-BJ5XgxFH.js → iam-role-provider-DF2RT3QW.js} +4 -3
  13. package/dist/iam-role-provider-DF2RT3QW.js.map +1 -0
  14. package/dist/index.d.ts +34 -42
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +3 -3
  17. package/dist/{neptune-provider-6SGPWYUE.js → neptune-provider-DYvMIjKO.js} +5 -4
  18. package/dist/neptune-provider-DYvMIjKO.js.map +1 -0
  19. package/dist/{program-Dm0zFrcG.js → program-B8rxD6E3.js} +22 -94
  20. package/dist/program-B8rxD6E3.js.map +1 -0
  21. package/dist/{provider-classes-BDPm7luc.js → provider-classes-BxlB3pLK.js} +10 -9
  22. package/dist/provider-classes-BxlB3pLK.js.map +1 -0
  23. package/dist/{rds-provider--9aIoAY-.js → rds-provider-DuzqwKfc.js} +320 -32
  24. package/dist/rds-provider-DuzqwKfc.js.map +1 -0
  25. package/dist/read-replica-BHKXELki.js +226 -0
  26. package/dist/read-replica-BHKXELki.js.map +1 -0
  27. package/dist/{update-removal-73OUGFVU.js → update-removal-Dh6W86TO.js} +148 -1098
  28. package/dist/update-removal-Dh6W86TO.js.map +1 -0
  29. package/dist/{version-CO5muce9.js → version-hOdgRlOf.js} +2 -2
  30. package/dist/{version-CO5muce9.js.map → version-hOdgRlOf.js.map} +1 -1
  31. package/package.json +1 -1
  32. package/dist/asg-provider-Gu-qQLG9.js.map +0 -1
  33. package/dist/deploy-engine-BktCSZdi.js.map +0 -1
  34. package/dist/iam-role-provider-BJ5XgxFH.js.map +0 -1
  35. package/dist/neptune-provider-6SGPWYUE.js.map +0 -1
  36. package/dist/program-Dm0zFrcG.js.map +0 -1
  37. package/dist/provider-classes-BDPm7luc.js.map +0 -1
  38. package/dist/rds-provider--9aIoAY-.js.map +0 -1
  39. package/dist/update-removal-73OUGFVU.js.map +0 -1
@@ -1,11 +1,13 @@
1
1
  import { $ as safeMsg, n as describeAwsFailure, s as getLogger, y as generatedNameFor } from "./aws-failure-text-CoS1huLy.js";
2
- import { $ as isTerminalDbWaitStatus, B as resolveExplicitPhysicalId, Dn as ResourceUpdateNotSupportedError, G as PROTECTION_FLIP_RETRY_WAIT_MS, H as assertRegionMatch, I as normalizeAwsTagsToCfn, It as maskerOrIdentity, Kt as markAuxiliaryFailure, Lt as withDerivedNameMasks, Mt as createMaskedLogSinks, Rn as relayedNameCollision, V as RESOURCE_NOT_FOUND, W as markNotGone, X as deleteWithProtectionCompensation, Y as deleteAfterProtectionFlipWithFinalSnapshot, a as withRemovalDefaults, er as markNonRetryable, f as retractCreatedResource, ft as pasteableAwsCommand, it as rdsFamilyProtectionSite, j as withoutServerErrorRetries, lr as CdkdError, mr as ProvisioningError, nr as wrapMaskedAwsError, nt as observeThenDisableProtection, pn as ambientClientDefaults, pt as protectedReplacementAdvice, q as ProtectionFlipRegistry, qt as markCreatedBeforeFailure, rt as protectionFlipKey, t as clearOnUpdateRemoval, tr as markRedactedCause, u as reportCreatedResource } from "./update-removal-73OUGFVU.js";
2
+ import { E as relayedNameCollision, H as markNonRetryable, U as markRedactedCause, W as wrapMaskedAwsError, Z as CdkdError, h as ResourceUpdateNotSupportedError, nt as ProvisioningError, t as ambientClientDefaults } from "./ambient-client-defaults-B9bnuob2.js";
3
3
  import { c as ambientRegion } from "./aws-client-defaults-BLXFsfMa.js";
4
- import { Ac as dbInstanceEngineChangeIsInPlace, Gi as stringifyIfAssigned, Ji as planTagDiff, Nt as enclosingDeadlineRemainingMs, Qi as tagPlanWarning, Wi as definedAttributes, Xi as refuseMalformedDesiredTags, ea as markDeleteStarted, xl as dynamicReferenceTokens, ya as slowCcOperationTimeoutMs } from "./deploy-engine-BktCSZdi.js";
5
- import { a as associatedRoleList, c as canonicalAssociatedRoles, i as associatedRoleKey, l as isRoleCallNotAvailableRefusal, n as modifyDbInstanceWhenAvailable, o as associatedRolesNamed, r as associatedRoleArns, s as associatedRolesReadback, t as isModifyNotAvailableRefusal, u as planAssociatedRoleChanges } from "./db-instance-modify-retry-AJiRFAXa.js";
4
+ import { $i as tagPlanWarning, Gi as definedAttributes, Ki as stringifyIfAssigned, Nt as enclosingDeadlineRemainingMs, Sl as dynamicReferenceTokens, Yi as planTagDiff, Zi as refuseMalformedDesiredTags, ba as slowCcOperationTimeoutMs, jc as dbInstanceEngineChangeIsInPlace, ta as markDeleteStarted } from "./deploy-engine-C1sQP24T.js";
5
+ import { $ as deleteAfterProtectionFlipWithFinalSnapshot, B as resolveExplicitPhysicalId, H as assertRegionMatch, I as normalizeAwsTagsToCfn, It as maskerOrIdentity, J as observeThenDisableProtection, K as deleteWithProtectionCompensation, Kt as markAuxiliaryFailure, Lt as withDerivedNameMasks, Mt as createMaskedLogSinks, Q as PROTECTION_FLIP_RETRY_WAIT_MS, V as RESOURCE_NOT_FOUND, W as markNotGone, Y as rdsFamilyProtectionSite, a as withRemovalDefaults, f as retractCreatedResource, gt as protectedReplacementAdvice, ht as pasteableAwsCommand, it as ProtectionFlipRegistry, j as withoutServerErrorRetries, nt as isTerminalDbWaitStatus, ot as protectionFlipKey, qt as markCreatedBeforeFailure, t as clearOnUpdateRemoval, u as reportCreatedResource } from "./update-removal-Dh6W86TO.js";
6
+ import { a as associatedRoleList, c as canonicalAssociatedRoles, i as associatedRoleKey, l as isRoleCallNotAvailableRefusal, n as modifyDbInstanceWhenAvailable, o as associatedRolesNamed, r as associatedRoleArns, s as associatedRolesReadback, t as isModifyNotAvailableRefusal, u as planAssociatedRoleChanges } from "./db-instance-modify-retry-CQLlNArd.js";
7
+ import { a as refuseMalformedReplicaSource, c as replicaEngine, d as replicaSourceChange, f as replicaSourceOf, l as replicaModifyAfterCreateInput, m as withPreviousReplicaSource, n as isLiveReadReplica, o as refuseUnknownSourceRegion, p as sameReplicaSource, r as ownScopeOf, s as replicaCreateInput, t as describeReplicaSource, u as replicaNeedsModifyAfterCreate } from "./read-replica-BHKXELki.js";
6
8
  import { DescribeSecurityGroupsCommand, EC2Client } from "@aws-sdk/client-ec2";
7
9
  import { isDeepStrictEqual } from "node:util";
8
- import { AddRoleToDBClusterCommand, AddRoleToDBInstanceCommand, AddTagsToResourceCommand, CreateDBClusterCommand, CreateDBInstanceCommand, CreateDBSubnetGroupCommand, DeleteDBClusterCommand, DeleteDBInstanceCommand, DeleteDBSubnetGroupCommand, DescribeDBClustersCommand, DescribeDBInstancesCommand, DescribeDBSubnetGroupsCommand, DescribeGlobalClustersCommand, DisableHttpEndpointCommand, EnableHttpEndpointCommand, ListTagsForResourceCommand, ModifyDBClusterCommand, ModifyDBInstanceCommand, ModifyDBSubnetGroupCommand, RDSClient, RebootDBInstanceCommand, RemoveFromGlobalClusterCommand, RemoveRoleFromDBClusterCommand, RemoveRoleFromDBInstanceCommand, RemoveTagsFromResourceCommand } from "@aws-sdk/client-rds";
10
+ import { AddRoleToDBClusterCommand, AddRoleToDBInstanceCommand, AddTagsToResourceCommand, CreateDBClusterCommand, CreateDBInstanceCommand, CreateDBInstanceReadReplicaCommand, CreateDBSubnetGroupCommand, DeleteDBClusterCommand, DeleteDBInstanceCommand, DeleteDBSubnetGroupCommand, DescribeDBClustersCommand, DescribeDBInstancesCommand, DescribeDBSubnetGroupsCommand, DescribeGlobalClustersCommand, DisableHttpEndpointCommand, EnableHttpEndpointCommand, ListTagsForResourceCommand, ModifyDBClusterCommand, ModifyDBInstanceCommand, ModifyDBSubnetGroupCommand, PromoteReadReplicaCommand, RDSClient, RebootDBInstanceCommand, RemoveFromGlobalClusterCommand, RemoveRoleFromDBClusterCommand, RemoveRoleFromDBInstanceCommand, RemoveTagsFromResourceCommand } from "@aws-sdk/client-rds";
9
11
 
10
12
  // src/provisioning/providers/rds/shared.ts
11
13
  const RDS_DELETE_WAIT_MS = Math.max(18e5, slowCcOperationTimeoutMs("AWS::RDS::DBCluster", "DELETE"), slowCcOperationTimeoutMs("AWS::RDS::DBInstance", "DELETE"));
@@ -404,6 +406,68 @@ function clusterModifyBackfillMembers(properties, previousProperties, context) {
404
406
  if (changed("CopyTagsToSnapshot")) members.CopyTagsToSnapshot = properties["CopyTagsToSnapshot"];
405
407
  return members;
406
408
  }
409
+ function clusterSizeValue(value) {
410
+ return retentionPeriodValue(value);
411
+ }
412
+ function malformedInstanceClass(value) {
413
+ return value != null && typeof value !== "string";
414
+ }
415
+ const usableInstanceClass = (value) => typeof value === "string";
416
+ const usableClusterSize = (value) => typeof clusterSizeValue(value) === "number";
417
+ function clusterCreateMultiAzMembers(properties) {
418
+ const members = {};
419
+ const instanceClass = properties["DBClusterInstanceClass"];
420
+ if (typeof instanceClass === "string") members.DBClusterInstanceClass = instanceClass;
421
+ const allocated = clusterSizeValue(properties["AllocatedStorage"]);
422
+ if (typeof allocated === "number") members.AllocatedStorage = allocated;
423
+ const iops = clusterSizeValue(properties["Iops"]);
424
+ if (typeof iops === "number") members.Iops = iops;
425
+ return members;
426
+ }
427
+ function clusterModifyMultiAzMembers(properties, previousProperties, context, onShrinkSkipped = () => {}) {
428
+ const changed = (key) => instanceValueChanged(properties, previousProperties, key, context);
429
+ const members = {};
430
+ const instanceClass = properties["DBClusterInstanceClass"];
431
+ if (typeof instanceClass === "string" && changed("DBClusterInstanceClass")) members.DBClusterInstanceClass = instanceClass;
432
+ const allocated = clusterSizeValue(properties["AllocatedStorage"]);
433
+ const previousAllocated = clusterSizeValue(previousProperties["AllocatedStorage"]);
434
+ const shrinkSkipped = (context?.replayingState === true || context?.desiredFromAwsReadback === true) && changed("AllocatedStorage") && typeof allocated === "number" && typeof previousAllocated === "number" && allocated < previousAllocated;
435
+ if (shrinkSkipped) onShrinkSkipped(allocated, previousAllocated);
436
+ if (changed("AllocatedStorage") && !shrinkSkipped || changed("Iops") || changed("StorageType")) {
437
+ if (shrinkSkipped) members.AllocatedStorage = previousAllocated;
438
+ else if (typeof allocated === "number") members.AllocatedStorage = allocated;
439
+ const iops = clusterSizeValue(properties["Iops"]);
440
+ if (typeof iops === "number") members.Iops = iops;
441
+ }
442
+ return members;
443
+ }
444
+ function multiAzSettledStatuses(fullWait) {
445
+ return new Set(fullWait ? ["available"] : ["available", "storage-optimization"]);
446
+ }
447
+ function multiAzReadState(cluster, sent, fullWait) {
448
+ if (sent.DBClusterInstanceClass === void 0 && sent.AllocatedStorage === void 0 && sent.Iops === void 0) return "applied";
449
+ if (!multiAzSettledStatuses(fullWait).has(cluster.Status ?? "")) return "pending";
450
+ if (sent.DBClusterInstanceClass !== void 0 && cluster.DBClusterInstanceClass !== sent.DBClusterInstanceClass) return "pending";
451
+ if (sent.AllocatedStorage === void 0 && sent.Iops === void 0) return "applied";
452
+ if (sent.AllocatedStorage !== void 0 && cluster.AllocatedStorage !== sent.AllocatedStorage) return "pending";
453
+ const pending = cluster.PendingModifiedValues;
454
+ if (pending?.AllocatedStorage !== void 0 || pending?.Iops !== void 0 || pending?.StorageType !== void 0) return "pending";
455
+ if (sent.Iops === void 0 || cluster.Iops === sent.Iops) return "applied";
456
+ return ["io1", "io2"].includes(cluster.StorageType?.toLowerCase() ?? "") ? "pending" : "iops-unconfirmed";
457
+ }
458
+ const MULTI_AZ_IOPS_CONFIRM_READS = 3;
459
+ function multiAzAppliedProbe(sent, fullWait) {
460
+ let unconfirmedReads = 0;
461
+ return (cluster) => {
462
+ const state = multiAzReadState(cluster, sent, fullWait);
463
+ if (state !== "iops-unconfirmed") {
464
+ unconfirmedReads = 0;
465
+ return state === "applied";
466
+ }
467
+ unconfirmedReads += 1;
468
+ return unconfirmedReads >= 3;
469
+ };
470
+ }
407
471
  const CLUSTER_PERFORMANCE_INSIGHTS_MEMBERS = [
408
472
  ["PerformanceInsightsEnabled", "EnablePerformanceInsights"],
409
473
  ["PerformanceInsightsKmsKeyId", "PerformanceInsightsKMSKeyId"],
@@ -514,6 +578,11 @@ function clusterEngineVersionChanged(properties, previousProperties, context) {
514
578
  if (context?.replayingState === true) return false;
515
579
  return instanceValueChanged(properties, previousProperties, "EngineVersion", context);
516
580
  }
581
+ function clusterInstanceParameterGroupToSend(properties, previousProperties, engineVersionChanged, context) {
582
+ const desired = properties["DBInstanceParameterGroupName"];
583
+ if (!engineVersionChanged || typeof desired !== "string") return void 0;
584
+ return instanceValueChanged(properties, previousProperties, "DBInstanceParameterGroupName", context) ? desired : void 0;
585
+ }
517
586
  const SECURITY_GROUP_CHANGE_MEMBER_STATUSES = /* @__PURE__ */ new Set(["modifying"]);
518
587
  const PORT_CHANGE_MEMBER_STATUSES = /* @__PURE__ */ new Set(["modifying", "rebooting"]);
519
588
  function clusterPortToSend(properties, previousProperties) {
@@ -546,6 +615,10 @@ async function createDBCluster(logicalId, resourceType, properties, mask, replay
546
615
  const availabilityZones = rawAvailabilityZones != null && !availabilityZonesSkipped ? rawAvailabilityZones : void 0;
547
616
  const globalClusterSkipped = !readableGlobalClusterId(properties["GlobalClusterIdentifier"]);
548
617
  const globalClusterId = globalClusterSkipped ? void 0 : recordedGlobalClusterIdentifier(properties);
618
+ const classSkipped = malformedInstanceClass(properties["DBClusterInstanceClass"]);
619
+ const allocatedSkipped = clusterSizeValue(properties["AllocatedStorage"]) === "malformed";
620
+ const iopsSkipped = clusterSizeValue(properties["Iops"]) === "malformed";
621
+ const instanceParamsSkipped = malformedInstanceClass(properties["DBInstanceParameterGroupName"]);
549
622
  for (const [skipped, key, expected, created] of [
550
623
  [
551
624
  backtrackSkipped,
@@ -565,6 +638,30 @@ async function createDBCluster(logicalId, resourceType, properties, mask, replay
565
638
  "a string",
566
639
  "no global cluster"
567
640
  ],
641
+ [
642
+ classSkipped,
643
+ "DBClusterInstanceClass",
644
+ "a string",
645
+ "no instance class sent"
646
+ ],
647
+ [
648
+ allocatedSkipped,
649
+ "AllocatedStorage",
650
+ "a whole number of GiB",
651
+ "no storage size sent"
652
+ ],
653
+ [
654
+ iopsSkipped,
655
+ "Iops",
656
+ "a whole number",
657
+ "no IOPS sent"
658
+ ],
659
+ [
660
+ instanceParamsSkipped,
661
+ "DBInstanceParameterGroupName",
662
+ "a string",
663
+ "none (CreateDBCluster takes none), and the record drops it"
664
+ ],
568
665
  [
569
666
  availabilityZonesSkipped,
570
667
  "AvailabilityZones",
@@ -584,7 +681,11 @@ async function createDBCluster(logicalId, resourceType, properties, mask, replay
584
681
  ...backtrackSkipped ? ["BacktrackWindow"] : [],
585
682
  ...forwardingSkipped ? ["EnableLocalWriteForwarding"] : [],
586
683
  ...availabilityZonesSkipped ? ["AvailabilityZones"] : [],
587
- ...globalClusterSkipped ? ["GlobalClusterIdentifier"] : []
684
+ ...globalClusterSkipped ? ["GlobalClusterIdentifier"] : [],
685
+ ...classSkipped ? ["DBClusterInstanceClass"] : [],
686
+ ...allocatedSkipped ? ["AllocatedStorage"] : [],
687
+ ...iopsSkipped ? ["Iops"] : [],
688
+ ...instanceParamsSkipped ? ["DBInstanceParameterGroupName"] : []
588
689
  ];
589
690
  const effectiveProperties = skippedKeys.length > 0 ? Object.fromEntries(Object.entries(properties).filter(([key]) => !skippedKeys.includes(key))) : void 0;
590
691
  const logExports = desiredLogExports(properties, resourceType, logicalId);
@@ -616,6 +717,7 @@ async function createDBCluster(logicalId, resourceType, properties, mask, replay
616
717
  ...properties["PubliclyAccessible"] !== void 0 && { PubliclyAccessible: properties["PubliclyAccessible"] },
617
718
  ...serverlessV2Config && { ServerlessV2ScalingConfiguration: serverlessV2ScalingToSend(serverlessV2Config) },
618
719
  ...clusterCreateBackfillMembers(properties),
720
+ ...clusterCreateMultiAzMembers(properties),
619
721
  ...logExports !== void 0 && logExports.length > 0 && { EnableCloudwatchLogsExports: logExports },
620
722
  ...clusterCreateScalarMembers(properties),
621
723
  ...httpEndpoint !== void 0 && { EnableHttpEndpoint: httpEndpoint },
@@ -762,17 +864,44 @@ async function updateDBCluster(logicalId, physicalId, resourceType, properties,
762
864
  this.logger.warn(safeMsg`DBCluster ${logicalId}: the replayed AvailabilityZones is not a list of Availability Zone names; the record keeps the previous list`);
763
865
  skippedKeys.push(["AvailabilityZones", usableAvailabilityZones]);
764
866
  }
765
- for (const [malformed, key, expected, usable] of [[
766
- backtrackWindowValue(properties["BacktrackWindow"]) === "malformed",
767
- "BacktrackWindow",
768
- "a whole number of seconds",
769
- usableBacktrackWindow
770
- ], [
771
- localWriteForwardingFlag(properties["EnableLocalWriteForwarding"]) === "malformed",
772
- "EnableLocalWriteForwarding",
773
- "true or false",
774
- usableLocalWriteForwarding
775
- ]]) {
867
+ for (const [malformed, key, expected, usable] of [
868
+ [
869
+ backtrackWindowValue(properties["BacktrackWindow"]) === "malformed",
870
+ "BacktrackWindow",
871
+ "a whole number of seconds",
872
+ usableBacktrackWindow
873
+ ],
874
+ [
875
+ localWriteForwardingFlag(properties["EnableLocalWriteForwarding"]) === "malformed",
876
+ "EnableLocalWriteForwarding",
877
+ "true or false",
878
+ usableLocalWriteForwarding
879
+ ],
880
+ [
881
+ malformedInstanceClass(properties["DBClusterInstanceClass"]),
882
+ "DBClusterInstanceClass",
883
+ "a string",
884
+ usableInstanceClass
885
+ ],
886
+ [
887
+ clusterSizeValue(properties["AllocatedStorage"]) === "malformed",
888
+ "AllocatedStorage",
889
+ "a whole number of GiB",
890
+ usableClusterSize
891
+ ],
892
+ [
893
+ clusterSizeValue(properties["Iops"]) === "malformed",
894
+ "Iops",
895
+ "a whole number",
896
+ usableClusterSize
897
+ ],
898
+ [
899
+ malformedInstanceClass(properties["DBInstanceParameterGroupName"]),
900
+ "DBInstanceParameterGroupName",
901
+ "a string",
902
+ usableInstanceClass
903
+ ]
904
+ ]) {
776
905
  if (!malformed) continue;
777
906
  if (context?.replayingState !== true && context?.desiredFromAwsReadback !== true) throw markNonRetryable(new ProvisioningError(`${resourceType} ${logicalId}: ${key} must be ${expected}`, resourceType, logicalId, physicalId));
778
907
  this.logger.warn(safeMsg`DBCluster ${logicalId}: the replayed ${key} is not ${expected}; the setting is left as it is`);
@@ -805,7 +934,12 @@ async function updateDBCluster(logicalId, physicalId, resourceType, properties,
805
934
  const manageMasterUserPasswordOff = managedPasswordOnRemoval(properties, previousProperties);
806
935
  const portToSend = clusterPortToSend(properties, previousProperties);
807
936
  const engineVersionChanged = clusterEngineVersionChanged(properties, previousProperties, context);
937
+ const instanceParameterGroup = clusterInstanceParameterGroupToSend(properties, previousProperties, engineVersionChanged, context);
808
938
  const scalarMembers = clusterModifyScalarMembers(properties, previousProperties, context);
939
+ const multiAzMembers = clusterModifyMultiAzMembers(properties, previousProperties, context, (desired, previous) => {
940
+ this.logger.warn(safeMsg`DBCluster ${logicalId}: AllocatedStorage stays at ${String(previous)} GiB rather than going back to ${String(desired)} GiB, because RDS cannot shrink storage`);
941
+ skippedKeys.push(["AllocatedStorage", usableClusterSize]);
942
+ });
809
943
  if (globalClusterPlan.kind === "detach") {
810
944
  if (await this.detachFromGlobalCluster(logicalId, physicalId, globalClusterPlan.globalClusterId, {
811
945
  beforeDelete: false,
@@ -818,6 +952,7 @@ async function updateDBCluster(logicalId, physicalId, resourceType, properties,
818
952
  EngineVersion: properties["EngineVersion"],
819
953
  AllowMajorVersionUpgrade: true
820
954
  },
955
+ ...instanceParameterGroup !== void 0 && { DBInstanceParameterGroupName: instanceParameterGroup },
821
956
  DeletionProtection: properties["DeletionProtection"],
822
957
  BackupRetentionPeriod: clearOnUpdateRemoval(properties["BackupRetentionPeriod"] != null ? Number(properties["BackupRetentionPeriod"]) : void 0, previousProperties["BackupRetentionPeriod"] != null ? Number(previousProperties["BackupRetentionPeriod"]) : void 0, 1),
823
958
  ...vpcSgIds !== void 0 && { VpcSecurityGroupIds: vpcSgIds },
@@ -832,6 +967,7 @@ async function updateDBCluster(logicalId, physicalId, resourceType, properties,
832
967
  ...hasServerlessV2 && { ServerlessV2ScalingConfiguration: serverlessV2ScalingToSend(serverlessV2Config) },
833
968
  ...clusterModifyBackfillMembers(properties, previousProperties, context),
834
969
  ...scalarMembers,
970
+ ...multiAzMembers,
835
971
  ...engineLifecycleSupport !== void 0 && { EngineLifecycleSupport: engineLifecycleSupport },
836
972
  ...authenticationType !== void 0 && { MasterUserAuthenticationType: authenticationType },
837
973
  ...logExportConfig !== void 0 && { CloudwatchLogsExportConfiguration: logExportConfig },
@@ -857,6 +993,7 @@ async function updateDBCluster(logicalId, physicalId, resourceType, properties,
857
993
  if (!noWait && forwardingSent !== void 0) await this.waitForClusterState(logicalId, physicalId, (cluster) => localWriteForwardingApplied(cluster, forwardingSent), "local write forwarding setting");
858
994
  const backtrackSent = scalarMembers.BacktrackWindow;
859
995
  if (!noWait && backtrackSent !== void 0) await this.waitForClusterState(logicalId, physicalId, (cluster) => cluster.BacktrackWindow === void 0 || cluster.BacktrackWindow === backtrackSent, "backtrack window");
996
+ if (!noWait && Object.keys(multiAzMembers).length > 0) await this.waitForClusterState(logicalId, physicalId, multiAzAppliedProbe(multiAzMembers, process.env["CDKD_FULL_WAIT"] === "true"), "instance class or storage change", slowCcOperationTimeoutMs("AWS::RDS::DBCluster", "UPDATE"));
860
997
  const described = await this.describeDBCluster(physicalId);
861
998
  if (httpEndpointAction === "enable" || httpEndpointAction === "disable") {
862
999
  const arn = described?.DBClusterArn;
@@ -1182,12 +1319,15 @@ async function createDBInstance(logicalId, resourceType, properties, mask, repla
1182
1319
  const tags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
1183
1320
  const roles = this.desiredAssociatedRoles(properties, resourceType, logicalId, void 0, replaying);
1184
1321
  const logExports = desiredLogExports(properties, resourceType, logicalId);
1322
+ refuseMalformedReplicaSource(properties, resourceType, logicalId);
1323
+ refuseUnknownSourceRegion(properties, resourceType, logicalId, replaying, (message) => this.logger.warn(message));
1324
+ const replicaSource = replicaSourceOf(properties);
1185
1325
  const dbInstanceIdentifier = properties["DBInstanceIdentifier"] || generatedNameFor("AWS::RDS::DBInstance", logicalId);
1186
1326
  let instanceCreated = false;
1187
1327
  let createdResourceId;
1188
1328
  try {
1189
1329
  const masterUserSecret = properties["MasterUserSecret"];
1190
- const response = await this.getCreateClient().send(new CreateDBInstanceCommand({
1330
+ const standaloneCreate = () => new CreateDBInstanceCommand({
1191
1331
  DBInstanceIdentifier: dbInstanceIdentifier,
1192
1332
  DBInstanceClass: properties["DBInstanceClass"],
1193
1333
  Engine: properties["Engine"],
@@ -1237,13 +1377,25 @@ async function createDBInstance(logicalId, resourceType, properties, mask, repla
1237
1377
  ...properties["DBName"] != null && { DBName: properties["DBName"] },
1238
1378
  ...properties["AvailabilityZone"] != null && { AvailabilityZone: properties["AvailabilityZone"] },
1239
1379
  ...tags.length > 0 && { Tags: tags }
1240
- }));
1380
+ });
1381
+ const replicaEngineName = replicaSource === void 0 ? void 0 : await replicaEngine.call(this, properties, replicaSource);
1382
+ const response = replicaSource === void 0 ? await this.getCreateClient().send(standaloneCreate()) : await createReadReplicaWhenSourceAvailable.call(this, logicalId, replicaSource, new CreateDBInstanceReadReplicaCommand(replicaCreateInput(properties, {
1383
+ identifier: dbInstanceIdentifier,
1384
+ source: replicaSource,
1385
+ engine: replicaEngineName,
1386
+ currentRegion: await this.getClient().config.region(),
1387
+ tags,
1388
+ logExports
1389
+ })));
1241
1390
  instanceCreated = true;
1242
1391
  createdResourceId = response.DBInstance?.DbiResourceId;
1243
1392
  reportCreatedResource(logicalId, resourceType, dbInstanceIdentifier, createdResourceId);
1244
- if (!response.DBInstance) throw new Error("CreateDBInstance did not return DBInstance");
1393
+ const instance = response.DBInstance;
1394
+ if (!instance) throw new Error(`${replicaSource === void 0 ? "CreateDBInstance" : "CreateDBInstanceReadReplica"} did not return DBInstance`);
1245
1395
  this.logger.debug(`Successfully created DBInstance ${logicalId}: ${dbInstanceIdentifier}`);
1246
- if (process.env["CDKD_NO_WAIT"] !== "true") await this.waitForInstanceAvailable(logicalId, dbInstanceIdentifier);
1396
+ const modifyAfterCreate = replicaSource !== void 0 && replicaNeedsModifyAfterCreate(properties, replicaEngineName, instance.Engine);
1397
+ if (process.env["CDKD_NO_WAIT"] !== "true" || modifyAfterCreate) await this.waitForInstanceAvailable(logicalId, dbInstanceIdentifier);
1398
+ if (modifyAfterCreate) await modifyReplicaAfterCreate.call(this, logicalId, dbInstanceIdentifier, properties, replicaEngineName);
1247
1399
  if (roles !== "skipped") try {
1248
1400
  await this.applyAssociatedRoles("instance", logicalId, dbInstanceIdentifier, roles, [], mask, void 0);
1249
1401
  } catch (roleError) {
@@ -1266,6 +1418,37 @@ async function createDBInstance(logicalId, resourceType, properties, mask, repla
1266
1418
  throw thrown;
1267
1419
  }
1268
1420
  }
1421
+ async function modifyReplicaAfterCreate(logicalId, dbInstanceIdentifier, properties, engine) {
1422
+ await modifyDbInstanceWhenAvailable({
1423
+ send: () => this.getClient().send(new ModifyDBInstanceCommand(replicaModifyAfterCreateInput(properties, dbInstanceIdentifier, engine))),
1424
+ readStatus: async () => (await this.describeDBInstance(dbInstanceIdentifier))?.DBInstanceStatus,
1425
+ sleep: (ms) => this.sleep(ms),
1426
+ logger: this.logger,
1427
+ label: "RDS DBInstance",
1428
+ logicalId,
1429
+ remainingMs: enclosingDeadlineRemainingMs()
1430
+ });
1431
+ const group = properties["DBParameterGroupName"];
1432
+ if (typeof group === "string" && group !== "") await this.rebootForPendingParameterGroup(logicalId, dbInstanceIdentifier, group, false);
1433
+ else if (process.env["CDKD_NO_WAIT"] !== "true") await this.waitForInstanceAvailable(logicalId, dbInstanceIdentifier, void 0, "being modified after its create");
1434
+ }
1435
+ async function createReadReplicaWhenSourceAvailable(logicalId, source, command) {
1436
+ let response = {};
1437
+ await modifyDbInstanceWhenAvailable({
1438
+ send: async () => {
1439
+ response = await this.getCreateClient().send(command);
1440
+ },
1441
+ readStatus: async () => (await describeReplicaSource.call(this, source))?.DBInstanceStatus,
1442
+ sleep: (ms) => this.sleep(ms),
1443
+ logger: this.logger,
1444
+ label: "RDS DBInstance",
1445
+ logicalId,
1446
+ remainingMs: enclosingDeadlineRemainingMs(),
1447
+ action: "create of the read replica",
1448
+ nounText: "source instance"
1449
+ });
1450
+ return response;
1451
+ }
1269
1452
 
1270
1453
  // src/provisioning/providers/rds/instance-update.ts
1271
1454
  async function updateDBInstance(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -1283,7 +1466,36 @@ async function updateDBInstance(logicalId, physicalId, resourceType, properties,
1283
1466
  passwordCompanion = void 0;
1284
1467
  }
1285
1468
  if (passwordCompanion?.kind === "missing") throw markNonRetryable(new ProvisioningError(passwordAuthenticationMissingText(resourceType, logicalId), resourceType, logicalId, physicalId));
1469
+ refuseMalformedReplicaSource(properties, resourceType, logicalId, physicalId);
1470
+ const sourceChange = replicaSourceChange(properties, previousProperties);
1286
1471
  try {
1472
+ const { mask: sourceMask } = withDerivedNameMasks(this.logger, createMaskedLogSinks(this.logger, context?.maskSecrets), [[previousProperties["DBInstanceIdentifier"], physicalId]]);
1473
+ let sourceKept = sourceChange !== "immutable";
1474
+ let liveSourceRead = "read";
1475
+ if (!sourceKept) {
1476
+ const live = await this.describeDBInstance(physicalId).then((instance) => {
1477
+ if (instance === void 0) liveSourceRead = "not-found";
1478
+ return instance;
1479
+ }, (err) => {
1480
+ liveSourceRead = err?.name === "DBInstanceNotFoundFault" ? "not-found" : "unreadable";
1481
+ this.logger.debug(sourceMask(safeMsg`DBInstance ${logicalId}: could not read the live replica source: ${describeAwsFailure(err).summary}`));
1482
+ });
1483
+ const liveSource = live?.ReadReplicaSourceDBInstanceIdentifier;
1484
+ const desiredSource = replicaSourceOf(properties);
1485
+ sourceKept = liveSource !== void 0 && liveSource !== "" && desiredSource !== void 0 && sameReplicaSource(liveSource, desiredSource, ownScopeOf(live?.DBInstanceArn));
1486
+ }
1487
+ const stateBorne = context?.replayingState === true || context?.desiredFromAwsReadback === true;
1488
+ if (!sourceKept && !stateBorne) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, sourceMask(`SourceDBInstanceIdentifier cannot be added or changed on an existing DB instance — an instance becomes a read replica only when it is created, and CloudFormation refuses the same update ("Resource is immutable"). Removing it promotes the replica instead. Nothing was applied to DB instance ${physicalId}. ` + (liveSourceRead === "not-found" ? "RDS reports no such DB instance: it was deleted outside cdkd, so the state record no longer matches AWS. " : liveSourceRead === "unreadable" ? "cdkd could not read the instance's live replica source (an AWS read failed), so it could not tell whether the instance already replicates the declared source; a re-run may succeed. " : "") + "To keep the instance as it is, declare the source the previous deploy declared (or none, if it declared none). To replace it with a new read replica, " + (String(previousProperties["DeletionProtection"]) === "true" ? protectedReplacementAdvice({
1489
+ evidence: "cdkd's properties for this DB instance carry DeletionProtection: true",
1490
+ replaceFlags: "cdkd deploy --replace --force-stateful-recreation",
1491
+ disable: {
1492
+ before: "aws rds modify-db-instance --db-instance-identifier",
1493
+ identifier: physicalId,
1494
+ after: "--no-deletion-protection --apply-immediately",
1495
+ maskSecrets: sourceMask
1496
+ }
1497
+ }) : "note AWS::RDS::DBInstance is a stateful type: re-run with cdkd deploy --replace --force-stateful-recreation (this deletes the instance and its data). The replace flags apply to the WHOLE deploy, so run them with nothing else pending")));
1498
+ if (!sourceKept) this.logger.warn(sourceMask(safeMsg`DBInstance ${logicalId} (${physicalId}): SourceDBInstanceIdentifier cannot be ` + safeMsg`added or changed in place (an instance becomes a read replica only when it is ` + safeMsg`created), so the instance keeps its current replication and cdkd records that.`));
1287
1499
  const { mask: zoneMask } = withDerivedNameMasks(this.logger, createMaskedLogSinks(this.logger, context?.maskSecrets), [[previousProperties["DBInstanceIdentifier"], physicalId]]);
1288
1500
  const desiredZone = properties["AvailabilityZone"];
1289
1501
  let zoneKept = context?.desiredFromAwsReadback === true || context?.replayingState === true && (desiredZone == null || desiredZone === "") || instanceAvailabilityZoneKept(properties, previousProperties);
@@ -1306,7 +1518,24 @@ async function updateDBInstance(logicalId, physicalId, resourceType, properties,
1306
1518
  }
1307
1519
  }) : "note AWS::RDS::DBInstance is a stateful type: re-run with cdkd deploy --replace --force-stateful-recreation to recreate it in the new zone (this deletes the instance and its data)")));
1308
1520
  if (!zoneKept) this.logger.warn(zoneMask(safeMsg`DBInstance ${logicalId} (${physicalId}): AvailabilityZone cannot change in place ` + safeMsg`(ModifyDBInstance has no such member), so the instance keeps its current zone ` + safeMsg`and cdkd records that zone.`));
1309
- const effectiveProperties = zoneKept ? void 0 : withPreviousAvailabilityZone(properties, previousProperties);
1521
+ let promotionSkipped = false;
1522
+ if (sourceChange === "promote") {
1523
+ const live = await this.describeDBInstance(physicalId);
1524
+ if (isLiveReadReplica(live) && context?.replayingState === true) {
1525
+ promotionSkipped = true;
1526
+ this.logger.warn(sourceMask(safeMsg`DBInstance ${logicalId} (${physicalId}): the rollback does not promote the read replica (a promotion cannot be undone, and the instance was a replica before this deploy), so cdkd records its source.`));
1527
+ } else if (isLiveReadReplica(live)) {
1528
+ this.logger.info(safeMsg`Promoting DBInstance ${logicalId} to a standalone instance (SourceDBInstanceIdentifier was removed), as CloudFormation does`);
1529
+ await this.getClient().send(new PromoteReadReplicaCommand({
1530
+ DBInstanceIdentifier: physicalId,
1531
+ ...properties["BackupRetentionPeriod"] != null && { BackupRetentionPeriod: Number(properties["BackupRetentionPeriod"]) },
1532
+ ...properties["PreferredBackupWindow"] != null && { PreferredBackupWindow: properties["PreferredBackupWindow"] }
1533
+ }));
1534
+ await this.waitForInstanceState(logicalId, physicalId, (instance) => instance.DBInstanceStatus === "available" && !isLiveReadReplica(instance), "promotion to a standalone instance");
1535
+ } else this.logger.debug(safeMsg`DBInstance ${logicalId} is no longer a read replica; nothing to promote`);
1536
+ }
1537
+ const zoneEffective = zoneKept ? void 0 : withPreviousAvailabilityZone(properties, previousProperties);
1538
+ const effectiveProperties = sourceKept && !promotionSkipped ? zoneEffective : withPreviousReplicaSource(zoneEffective ?? properties, previousProperties);
1310
1539
  const masterUserSecret = properties["MasterUserSecret"];
1311
1540
  const sendCredentialSettings = masterCredentialSettingsChanged(properties, previousProperties, context);
1312
1541
  const sendManagedPasswordSetting = managedPasswordSettingRides(sendCredentialSettings, authenticationType);
@@ -1439,7 +1668,16 @@ async function deleteDBInstanceOnce(logicalId, physicalId, resourceType, propert
1439
1668
  } catch (disableError) {
1440
1669
  if (!this.isNotFoundError(disableError, "DBInstanceNotFoundFault")) this.logger.debug(maskerOrIdentity(context?.maskSecrets)(`Could not disable deletion protection for DBInstance ${logicalId}: ${describeAwsFailure(disableError).detail}`));
1441
1670
  }
1442
- const finalSnapshotId = properties?.["DBClusterIdentifier"] === void 0 ? context?.finalSnapshotIdentifier : void 0;
1671
+ let finalSnapshotId = properties?.["DBClusterIdentifier"] === void 0 ? context?.finalSnapshotIdentifier : void 0;
1672
+ if (finalSnapshotId && replicaSourceOf(properties) !== void 0) {
1673
+ const live = await this.describeDBInstance(physicalId).catch((err) => {
1674
+ this.logger.debug(maskerOrIdentity(context?.maskSecrets)(safeMsg`Could not read whether DBInstance ${logicalId} is a read replica: ${describeAwsFailure(err).detail}`));
1675
+ });
1676
+ if (isLiveReadReplica(live)) {
1677
+ finalSnapshotId = void 0;
1678
+ this.logger.info(safeMsg`Deleting DBInstance ${logicalId} without a final snapshot: it is a read replica, whose DeletionPolicy CloudFormation ignores`);
1679
+ }
1680
+ }
1443
1681
  const sendDelete = () => this.getClient().send(new DeleteDBInstanceCommand({
1444
1682
  DBInstanceIdentifier: physicalId,
1445
1683
  ...finalSnapshotId ? {
@@ -1680,9 +1918,9 @@ async function waitForSecurityGroupsApplied(dbClusterIdentifier, logicalId, expe
1680
1918
  }
1681
1919
  throw new Error(`Timed out waiting for DBCluster ${logicalId} to apply its new VPC security groups`);
1682
1920
  }
1683
- async function waitForClusterState(logicalId, dbClusterIdentifier, done, change) {
1921
+ async function waitForClusterState(logicalId, dbClusterIdentifier, done, change, unboundedMaxWaitMs = 18e5) {
1684
1922
  const remaining = enclosingDeadlineRemainingMs();
1685
- const maxWaitMs = Number.isFinite(remaining) ? remaining : 18e5;
1923
+ const maxWaitMs = Number.isFinite(remaining) ? remaining : unboundedMaxWaitMs;
1686
1924
  const startTime = Date.now();
1687
1925
  let delay = 5e3;
1688
1926
  while (Date.now() - startTime < maxWaitMs) {
@@ -1855,14 +2093,19 @@ function getDriftUnorderedPaths(resourceType) {
1855
2093
  return resourceType === "AWS::RDS::DBCluster" || resourceType === "AWS::RDS::DBInstance" ? ["EnableCloudwatchLogsExports", "AssociatedRoles"] : [];
1856
2094
  }
1857
2095
  function getDriftUnknownPaths(resourceType, properties) {
1858
- if (resourceType === "AWS::RDS::DBInstance") return ["AllowMajorVersionUpgrade", "CertificateRotationRestart"];
2096
+ if (resourceType === "AWS::RDS::DBInstance") return [
2097
+ "AllowMajorVersionUpgrade",
2098
+ "CertificateRotationRestart",
2099
+ "SourceRegion"
2100
+ ];
1859
2101
  if (resourceType !== "AWS::RDS::DBCluster") return [];
1860
2102
  const neverRead = [
1861
2103
  "EngineMode",
1862
2104
  "AvailabilityZones",
1863
2105
  "ClusterScalabilityType",
1864
2106
  "MasterUserAuthenticationType",
1865
- "GlobalClusterIdentifier"
2107
+ "GlobalClusterIdentifier",
2108
+ "DBInstanceParameterGroupName"
1866
2109
  ];
1867
2110
  if (properties === void 0 || Object.keys(properties).length === 0) return neverRead;
1868
2111
  return (properties?.["ServerlessV2ScalingConfiguration"])?.SecondsUntilAutoPause === void 0 ? [...neverRead, "ServerlessV2ScalingConfiguration.SecondsUntilAutoPause"] : neverRead;
@@ -1880,7 +2123,12 @@ function canonicalizeDriftProperties(resourceType, properties) {
1880
2123
  const value = properties[key];
1881
2124
  if (value === "true" || value === "false") set(key, value === "true");
1882
2125
  }
1883
- for (const key of ["PerformanceInsightsRetentionPeriod", "BacktrackWindow"]) {
2126
+ for (const key of [
2127
+ "PerformanceInsightsRetentionPeriod",
2128
+ "BacktrackWindow",
2129
+ "AllocatedStorage",
2130
+ "Iops"
2131
+ ]) {
1884
2132
  const value = properties[key];
1885
2133
  if (typeof value === "string") {
1886
2134
  const parsed = retentionPeriodValue(value);
@@ -1889,6 +2137,25 @@ function canonicalizeDriftProperties(resourceType, properties) {
1889
2137
  }
1890
2138
  return out ?? properties;
1891
2139
  }
2140
+ async function canonicalizeDriftPair(resourceType, baseline, aws) {
2141
+ const recorded = baseline["SourceDBInstanceIdentifier"];
2142
+ const live = aws["SourceDBInstanceIdentifier"];
2143
+ if (resourceType !== "AWS::RDS::DBInstance" || typeof recorded !== "string" || typeof live !== "string" || recorded === live) return {
2144
+ baseline,
2145
+ aws
2146
+ };
2147
+ const region = await this.getClient().config.region();
2148
+ return sameReplicaSource(recorded, live, { region }) ? {
2149
+ baseline,
2150
+ aws: {
2151
+ ...aws,
2152
+ SourceDBInstanceIdentifier: recorded
2153
+ }
2154
+ } : {
2155
+ baseline,
2156
+ aws
2157
+ };
2158
+ }
1892
2159
  function canonicalizeUnsettledProperties(resourceType, properties) {
1893
2160
  return this.canonicalizeDriftProperties(resourceType, properties);
1894
2161
  }
@@ -2020,6 +2287,11 @@ async function readCurrentStateDBInstance(physicalId) {
2020
2287
  if (inst.DBName !== void 0) result["DBName"] = inst.DBName;
2021
2288
  if (inst.AvailabilityZone !== void 0 && inst.MultiAZ !== true) result["AvailabilityZone"] = inst.AvailabilityZone;
2022
2289
  if (inst.EngineLifecycleSupport !== void 0 && inst.DBClusterIdentifier === void 0) result["EngineLifecycleSupport"] = inst.EngineLifecycleSupport;
2290
+ const liveSource = inst.ReadReplicaSourceDBInstanceIdentifier;
2291
+ if (liveSource !== void 0 && liveSource !== "") {
2292
+ const ownArn = inst.DBInstanceArn;
2293
+ result["SourceDBInstanceIdentifier"] = liveSource.startsWith("arn:") || ownArn === void 0 || !ownArn.startsWith("arn:") ? liveSource : `${ownArn.slice(0, ownArn.lastIndexOf(":") + 1)}${liveSource}`;
2294
+ }
2023
2295
  result["AssociatedRoles"] = associatedRolesReadback(inst.AssociatedRoles);
2024
2296
  if (inst.DBInstanceArn) await this.attachTags(result, inst.DBInstanceArn);
2025
2297
  return result;
@@ -2065,6 +2337,13 @@ async function readCurrentStateDBCluster(physicalId) {
2065
2337
  if (cluster.CopyTagsToSnapshot !== void 0) result["CopyTagsToSnapshot"] = cluster.CopyTagsToSnapshot;
2066
2338
  const storageType = cluster.PendingModifiedValues?.StorageType ?? cluster.StorageType ?? (cluster.Engine?.toLowerCase().startsWith("aurora") ? "aurora" : void 0);
2067
2339
  if (storageType !== void 0) result["StorageType"] = storageType;
2340
+ if (!cluster.Engine?.toLowerCase().startsWith("aurora")) {
2341
+ if (cluster.DBClusterInstanceClass !== void 0) result["DBClusterInstanceClass"] = cluster.DBClusterInstanceClass;
2342
+ const allocatedStorage = cluster.PendingModifiedValues?.AllocatedStorage ?? cluster.AllocatedStorage;
2343
+ if (allocatedStorage !== void 0) result["AllocatedStorage"] = allocatedStorage;
2344
+ const iops = cluster.PendingModifiedValues?.Iops ?? cluster.Iops;
2345
+ if (iops !== void 0) result["Iops"] = iops;
2346
+ }
2068
2347
  const clusterLogs = liveLogExports(cluster.EnabledCloudwatchLogsExports, cluster.PendingModifiedValues?.PendingCloudwatchLogsExports);
2069
2348
  if (clusterLogs.length > 0) result["EnableCloudwatchLogsExports"] = clusterLogs;
2070
2349
  if (cluster.AutoMinorVersionUpgrade !== void 0) result["AutoMinorVersionUpgrade"] = cluster.AutoMinorVersionUpgrade;
@@ -2179,7 +2458,11 @@ var RDSProvider = class {
2179
2458
  "AssociatedRoles",
2180
2459
  "EngineMode",
2181
2460
  "AvailabilityZones",
2182
- "GlobalClusterIdentifier"
2461
+ "GlobalClusterIdentifier",
2462
+ "DBClusterInstanceClass",
2463
+ "AllocatedStorage",
2464
+ "Iops",
2465
+ "DBInstanceParameterGroupName"
2183
2466
  ])],
2184
2467
  ["AWS::RDS::DBInstance", /* @__PURE__ */ new Set([
2185
2468
  "DBInstanceIdentifier",
@@ -2231,7 +2514,9 @@ var RDSProvider = class {
2231
2514
  "AvailabilityZone",
2232
2515
  "EngineLifecycleSupport",
2233
2516
  "MasterUserAuthenticationType",
2234
- "AssociatedRoles"
2517
+ "AssociatedRoles",
2518
+ "SourceDBInstanceIdentifier",
2519
+ "SourceRegion"
2235
2520
  ])]
2236
2521
  ]);
2237
2522
  unhandledByDesign = /* @__PURE__ */ new Map([["AWS::RDS::DBCluster", /* @__PURE__ */ new Map([
@@ -2358,8 +2643,8 @@ var RDSProvider = class {
2358
2643
  waitForSecurityGroupsApplied(dbClusterIdentifier, logicalId, expected, maxWaitMs = 18e5) {
2359
2644
  return waitForSecurityGroupsApplied.call(this, dbClusterIdentifier, logicalId, expected, maxWaitMs);
2360
2645
  }
2361
- waitForClusterState(logicalId, dbClusterIdentifier, done, change) {
2362
- return waitForClusterState.call(this, logicalId, dbClusterIdentifier, done, change);
2646
+ waitForClusterState(logicalId, dbClusterIdentifier, done, change, unboundedMaxWaitMs = 18e5) {
2647
+ return waitForClusterState.call(this, logicalId, dbClusterIdentifier, done, change, unboundedMaxWaitMs);
2363
2648
  }
2364
2649
  sendHttpEndpointChange(logicalId, physicalId, arn, enable) {
2365
2650
  return sendHttpEndpointChange.call(this, logicalId, physicalId, arn, enable);
@@ -2409,6 +2694,9 @@ var RDSProvider = class {
2409
2694
  canonicalizeDriftProperties(resourceType, properties) {
2410
2695
  return canonicalizeDriftProperties.call(this, resourceType, properties);
2411
2696
  }
2697
+ canonicalizeDriftPair(resourceType, baseline, aws) {
2698
+ return canonicalizeDriftPair.call(this, resourceType, baseline, aws);
2699
+ }
2412
2700
  canonicalizeUnsettledProperties(resourceType, properties) {
2413
2701
  return canonicalizeUnsettledProperties.call(this, resourceType, properties);
2414
2702
  }
@@ -2451,4 +2739,4 @@ var RDSProvider = class {
2451
2739
  };
2452
2740
 
2453
2741
  export { RDSProvider };
2454
- //# sourceMappingURL=rds-provider--9aIoAY-.js.map
2742
+ //# sourceMappingURL=rds-provider-DuzqwKfc.js.map