@go-to-k/cdkd 0.110.0 → 0.111.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.
- package/dist/cli.js +15 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -8074,7 +8074,10 @@ var DynamoDBGlobalTableProvider = class {
|
|
|
8074
8074
|
if (sse["SSEType"]) sseInput.SSEType = sse["SSEType"];
|
|
8075
8075
|
createParams.SSESpecification = sseInput;
|
|
8076
8076
|
}
|
|
8077
|
-
|
|
8077
|
+
const dpePerReplica = replicas.find((r) => r["Region"] === currentRegion)?.["DeletionProtectionEnabled"];
|
|
8078
|
+
const dpeTopLevel = properties["DeletionProtectionEnabled"];
|
|
8079
|
+
const dpeResolved = typeof dpePerReplica === "boolean" ? dpePerReplica : typeof dpeTopLevel === "boolean" ? dpeTopLevel : void 0;
|
|
8080
|
+
if (dpeResolved !== void 0) createParams.DeletionProtectionEnabled = dpeResolved;
|
|
8078
8081
|
if (properties["TableClass"]) createParams.TableClass = properties["TableClass"];
|
|
8079
8082
|
const wodts = properties["WriteOnDemandThroughputSettings"];
|
|
8080
8083
|
if (wodts?.["MaxWriteRequestUnits"] !== void 0) createParams.OnDemandThroughput = { MaxWriteRequestUnits: Number(wodts["MaxWriteRequestUnits"]) };
|
|
@@ -8204,10 +8207,18 @@ var DynamoDBGlobalTableProvider = class {
|
|
|
8204
8207
|
return (props["Replicas"] ?? []).find((r) => r["Region"] === currentRegion)?.["Tags"];
|
|
8205
8208
|
};
|
|
8206
8209
|
if (tableArn) await this.applyTagDiff(tableArn, extractLocalTags(previousProperties), extractLocalTags(properties));
|
|
8210
|
+
const extractLocalDP = (props) => {
|
|
8211
|
+
const perReplica = (props["Replicas"] ?? []).find((r) => r["Region"] === currentRegion)?.["DeletionProtectionEnabled"];
|
|
8212
|
+
if (typeof perReplica === "boolean") return perReplica;
|
|
8213
|
+
const topLevel = props["DeletionProtectionEnabled"];
|
|
8214
|
+
return typeof topLevel === "boolean" ? topLevel : void 0;
|
|
8215
|
+
};
|
|
8216
|
+
const newDpe = extractLocalDP(properties);
|
|
8217
|
+
const oldDpe = extractLocalDP(previousProperties);
|
|
8207
8218
|
const flatUpdate = { TableName: physicalId };
|
|
8208
8219
|
let flatChanged = false;
|
|
8209
|
-
if (
|
|
8210
|
-
flatUpdate.DeletionProtectionEnabled = Boolean(
|
|
8220
|
+
if (newDpe !== oldDpe) {
|
|
8221
|
+
flatUpdate.DeletionProtectionEnabled = Boolean(newDpe ?? false);
|
|
8211
8222
|
flatChanged = true;
|
|
8212
8223
|
}
|
|
8213
8224
|
if (properties["TableClass"] !== void 0 && properties["TableClass"] !== previousProperties["TableClass"]) {
|
|
@@ -45246,7 +45257,7 @@ function reorderArgs(argv) {
|
|
|
45246
45257
|
*/
|
|
45247
45258
|
async function main() {
|
|
45248
45259
|
const program = new Command();
|
|
45249
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
45260
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.111.0");
|
|
45250
45261
|
program.addCommand(createBootstrapCommand());
|
|
45251
45262
|
program.addCommand(createSynthCommand());
|
|
45252
45263
|
program.addCommand(createListCommand());
|