-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-scheduler-alpha): Override target properties in schedule #27545
Labels
@aws-cdk/aws-scheduler
Related to the AWS Scheduler service
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Comments
filletofish
added
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 14, 2023
github-actions
bot
added
the
@aws-cdk/aws-scheduler
Related to the AWS Scheduler service
label
Oct 14, 2023
2 tasks
kaizencc
added
p2
effort/small
Small work item – less than a day of effort
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 16, 2023
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Oct 19, 2023
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Oct 23, 2023
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Oct 24, 2023
kaizencc
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Oct 26, 2023
mergify bot
pushed a commit
that referenced
this issue
Oct 26, 2023
Allows to override a `Schedule` target's properties. Supported properties: `input`, `maxEventAge`, and `retryAttempts`. Example: ```ts declare const target: targets.LambdaInvoke; const oneTimeSchedule = new Schedule(this, 'Schedule', { schedule: ScheduleExpression.rate(cdk.Duration.hours(12)), target, targetOverrides: { input: ScheduleTargetInput.fromText("Overriding Target Input"), maxEventAge: Duration.seconds(180), retryAttempts: 5, }, }); ``` Closes #27545. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
mrgrain
pushed a commit
that referenced
this issue
Nov 1, 2023
Allows to override a `Schedule` target's properties. Supported properties: `input`, `maxEventAge`, and `retryAttempts`. Example: ```ts declare const target: targets.LambdaInvoke; const oneTimeSchedule = new Schedule(this, 'Schedule', { schedule: ScheduleExpression.rate(cdk.Duration.hours(12)), target, targetOverrides: { input: ScheduleTargetInput.fromText("Overriding Target Input"), maxEventAge: Duration.seconds(180), retryAttempts: 5, }, }); ``` Closes #27545. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-scheduler
Related to the AWS Scheduler service
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
If customers wish to reuse the same target in multiple schedules, they should be able to override target properties like input, maximumRetryAttempts and maximumEventAge when creating a Schedule:
See https://github.com/aws/aws-cdk-rfcs/blob/main/text/0474-event-bridge-scheduler-l2.md#overriding-target-properties
Use Case
It will be useful for customers who wish to reuse the same target in multiple schedules.
Proposed Solution
Add property
targetOverrides
toScheduleProps
that is being used during creation ofCfnSchedule
.Other Information
No response
Acknowledgements
CDK version used
2.99.1
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: