@go-to-k/cdkd 0.230.25 → 0.230.26
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 +12 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1445,7 +1445,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1445
1445
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1446
1446
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1447
1447
|
function getCdkdVersion() {
|
|
1448
|
-
return "0.230.
|
|
1448
|
+
return "0.230.26";
|
|
1449
1449
|
}
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -12228,11 +12228,19 @@ var LogsLogGroupProvider = class {
|
|
|
12228
12228
|
*
|
|
12229
12229
|
* Mutable: `RetentionInDays`, `DataProtectionPolicy`, `Tags`,
|
|
12230
12230
|
* `DeletionProtectionEnabled`, `BearerTokenAuthenticationEnabled`,
|
|
12231
|
-
* `FieldIndexPolicies`. `LogGroupName`
|
|
12232
|
-
*
|
|
12231
|
+
* `FieldIndexPolicies`. `LogGroupName` requires replacement.
|
|
12232
|
+
* `LogGroupClass` cannot be changed at all (CFn: "Updates are not
|
|
12233
|
+
* supported" — there is no CloudWatch Logs API to change a log group's
|
|
12234
|
+
* class after creation), so a class change throws
|
|
12235
|
+
* {@link ResourceUpdateNotSupportedError} instead of being silently
|
|
12236
|
+
* dropped; `--replace` recreates the log group under the new class.
|
|
12233
12237
|
*/
|
|
12234
12238
|
async update(logicalId, physicalId, _resourceType, properties, previousProperties) {
|
|
12235
12239
|
this.logger.debug(`Updating log group ${logicalId}: ${physicalId}`);
|
|
12240
|
+
const normalizeClass = (v) => typeof v === "string" && v.length > 0 ? v : "STANDARD";
|
|
12241
|
+
const prevClass = normalizeClass(previousProperties["LogGroupClass"]);
|
|
12242
|
+
const nextClass = normalizeClass(properties["LogGroupClass"]);
|
|
12243
|
+
if (prevClass !== nextClass) throw new ResourceUpdateNotSupportedError("AWS::Logs::LogGroup", logicalId, `the LogGroupClass ('${prevClass}' -> '${nextClass}') cannot be changed after creation. Re-deploy with ${properties["RetentionInDays"] ? "--replace --force-stateful-recreation" : "--replace"} to delete + recreate the log group under the new class (its stored log events are lost), or revert the LogGroupClass change`);
|
|
12236
12244
|
const retentionInDays = properties["RetentionInDays"];
|
|
12237
12245
|
if (retentionInDays !== previousProperties["RetentionInDays"]) if (retentionInDays) await this.logsClient.send(new PutRetentionPolicyCommand({
|
|
12238
12246
|
logGroupName: physicalId,
|
|
@@ -55412,7 +55420,7 @@ function reorderArgs(argv) {
|
|
|
55412
55420
|
async function main() {
|
|
55413
55421
|
installPipeCloseHandler();
|
|
55414
55422
|
const program = new Command();
|
|
55415
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.
|
|
55423
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.26");
|
|
55416
55424
|
program.addCommand(createBootstrapCommand());
|
|
55417
55425
|
program.addCommand(createSynthCommand());
|
|
55418
55426
|
program.addCommand(createListCommand());
|