Skip to content

(scheduler-alpha): Schedule description is not set #31269

@WtfJoke

Description

@WtfJoke

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:

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 servicebugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions