@go-to-k/cdkd 0.229.6 → 0.229.7

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
@@ -1556,7 +1556,7 @@ const FLUSH_INTERVAL_MS = 2e3;
1556
1556
  const FLUSH_EVENT_THRESHOLD = 50;
1557
1557
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
1558
1558
  function getCdkdVersion() {
1559
- return "0.229.6";
1559
+ return "0.229.7";
1560
1560
  }
1561
1561
  /**
1562
1562
  * Generate a time-sortable unique run id, e.g.
@@ -9867,7 +9867,7 @@ var DynamoDBTableProvider = class {
9867
9867
  if (properties["GlobalSecondaryIndexes"]) createParams.GlobalSecondaryIndexes = properties["GlobalSecondaryIndexes"];
9868
9868
  if (properties["LocalSecondaryIndexes"]) createParams.LocalSecondaryIndexes = properties["LocalSecondaryIndexes"];
9869
9869
  const sse = mapSSESpecification(properties["SSESpecification"]);
9870
- if (sse) createParams.SSESpecification = sse;
9870
+ if (sse && Object.keys(sse).length > 0) createParams.SSESpecification = sse;
9871
9871
  if (properties["Tags"]) createParams.Tags = properties["Tags"];
9872
9872
  if (properties["DeletionProtectionEnabled"] !== void 0) createParams.DeletionProtectionEnabled = properties["DeletionProtectionEnabled"];
9873
9873
  if (properties["TableClass"]) createParams.TableClass = properties["TableClass"];
@@ -9948,6 +9948,17 @@ var DynamoDBTableProvider = class {
9948
9948
  this.logger.debug(`Updated WarmThroughput on DynamoDB table ${physicalId}`);
9949
9949
  }
9950
9950
  }
9951
+ if (JSON.stringify(properties["SSESpecification"]) !== JSON.stringify(previousProperties["SSESpecification"])) {
9952
+ const sseUpdate = mapSSESpecification(properties["SSESpecification"]);
9953
+ if (sseUpdate && Object.keys(sseUpdate).length > 0) {
9954
+ await this.dynamoDBClient.send(new UpdateTableCommand({
9955
+ TableName: physicalId,
9956
+ SSESpecification: sseUpdate
9957
+ }));
9958
+ await this.waitForTableActiveAfterUpdate(physicalId);
9959
+ this.logger.debug(`Updated SSESpecification on DynamoDB table ${physicalId}`);
9960
+ }
9961
+ }
9951
9962
  if (JSON.stringify(properties["GlobalSecondaryIndexes"]) !== JSON.stringify(previousProperties["GlobalSecondaryIndexes"])) await this.applyGsiUpdates(physicalId, resourceType, logicalId, previousProperties["GlobalSecondaryIndexes"], properties["GlobalSecondaryIndexes"], properties["AttributeDefinitions"]);
9952
9963
  if (JSON.stringify(properties["PointInTimeRecoverySpecification"]) !== JSON.stringify(previousProperties["PointInTimeRecoverySpecification"])) await this.applyPointInTimeRecovery(physicalId, properties["PointInTimeRecoverySpecification"], previousProperties["PointInTimeRecoverySpecification"]);
9953
9964
  if (JSON.stringify(properties["TimeToLiveSpecification"]) !== JSON.stringify(previousProperties["TimeToLiveSpecification"])) await this.applyTimeToLive(physicalId, properties["TimeToLiveSpecification"], previousProperties["TimeToLiveSpecification"]);
@@ -55056,7 +55067,7 @@ function reorderArgs(argv) {
55056
55067
  async function main() {
55057
55068
  installPipeCloseHandler();
55058
55069
  const program = new Command();
55059
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.229.6");
55070
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.229.7");
55060
55071
  program.addCommand(createBootstrapCommand());
55061
55072
  program.addCommand(createSynthCommand());
55062
55073
  program.addCommand(createListCommand());