aws/aws-cdk

elasticache-alpha: dailyBackupTime field uses misleading Schedule type

開放

#36,981 建立於 2026年2月12日

 (2 則留言) (0 個反應) (0 位負責人)TypeScript (3,530 個分叉)batch import
@aws-cdk/aws-schedulerbugeffort/smallgood first issuep2

倉庫指標

星標
 (10,710 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Describe the bug

The alpha elasticache module uses events.Schedule for dailyBackupTime. The expected elasticache type in the Cfn is just a time of day string HH:MM, but schedule is essentially a full cron interface leading to user potentially configuring a bunch of things that are irrelevant to the field.

https://github.com/aws/aws-cdk/blob/67f09c04ad860ff25494e1e76071c304adcf39b4/packages/%40aws-cdk/aws-elasticache-alpha/lib/serverless-cache.ts#L84

Proposal: Create a new helper type to specify time of day or revert back to expect a string on this field with validation in the construct that it matches expected string format.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

No response

Expected Behavior

Not to use Schedule type for this field

Current Behavior

uses overly broad Schedule type

Reproduction Steps

n/a

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

n/a

AWS CDK CLI version

n/a

Node.js Version

n/a

OS

n/a

Language

TypeScript

Language Version

No response

Other information

No response

貢獻者指南