-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-schedulerRelated to the AWS Scheduler serviceRelated to the AWS Scheduler servicebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2
Description
Describe the bug
If you specify a description on a schedule its not set in the created Scheduled Rule.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
I would have expected that the description of a schedule will be set.
Current Behavior
The schedule is created without description
Reproduction Steps
import { Schedule, ScheduleExpression} from "@aws-cdk/aws-scheduler-alpha";
import { StepFunctionsStartExecution } from "@aws-cdk/aws-scheduler-targets-alpha";
new Schedule(scope, "SomeSchedule", {
description: `Some description`,
schedule: ScheduleExpression.rate(Duration.days(7)),
target: new StepFunctionsStartExecution(someSfn, {}),
});Possible Solution
Set field description of CfnSchedule in Schedule here:
aws-cdk/packages/@aws-cdk/aws-scheduler-alpha/lib/schedule.ts
Lines 328 to 329 in 34dcc5a
| const resource = new CfnSchedule(this, 'Resource', { | |
| name: this.physicalName, |
Additional Information/Context
No response
CDK CLI Version
2.150.0
Framework Version
No response
Node.js Version
20.17.0
OS
windows 11
Language
TypeScript
Language Version
5.5.4
Other information
No response
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-schedulerRelated to the AWS Scheduler serviceRelated to the AWS Scheduler servicebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2