Skip to content

Commit 8b91e10

Browse files
authored
fix(scheduler): typo in metricSentToDLQ... methods (#28307)
This PR includes breaking changes to the `aws-scheduler-alpha` module. ## Description This PR introduces breaking changes by correcting typos in the method names of the Schedule and Group constructs. Specifically, the method name `metricSentToDLQTrunacted` has been changed to `metricSentToDLQTruncated`, and `metricAllSentToDLQTrunacted` has been changed to `metricAllSentToDLQTruncated`. https://docs.aws.amazon.com/scheduler/latest/UserGuide/monitoring-cloudwatch.html BREAKING CHANGE: The typos in the Schedule and Group construct method names have been fixed, changing `metricSentToDLQTrunacted` to `metricSentToDLQTruncated` and `metricAllSentToDLQTrunacted` to `metricAllSentToDLQTruncated`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent fe30921 commit 8b91e10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/@aws-cdk/aws-scheduler-alpha/lib/group.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export interface IGroup extends IResource {
100100
*
101101
* @default - sum over 5 minutes
102102
*/
103-
metricSentToDLQTrunacted(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
103+
metricSentToDLQTruncated(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
104104

105105
/**
106106
* Grant the indicated permissions on this group to the given principal
@@ -224,7 +224,7 @@ abstract class GroupBase extends Resource implements IGroup {
224224
*
225225
* @default - sum over 5 minutes
226226
*/
227-
public metricSentToDLQTrunacted(props?: cloudwatch.MetricOptions): cloudwatch.Metric {
227+
public metricSentToDLQTruncated(props?: cloudwatch.MetricOptions): cloudwatch.Metric {
228228
return this.metric('InvocationsSentToDeadLetterCount_Truncated_MessageSizeExceeded', props);
229229
}
230230

packages/@aws-cdk/aws-scheduler-alpha/lib/schedule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export class Schedule extends Resource implements ISchedule {
209209
*
210210
* @default - sum over 5 minutes
211211
*/
212-
public static metricAllSentToDLQTrunacted(props?: cloudwatch.MetricOptions): cloudwatch.Metric {
212+
public static metricAllSentToDLQTruncated(props?: cloudwatch.MetricOptions): cloudwatch.Metric {
213213
return this.metricAll('InvocationsSentToDeadLetterCount_Truncated_MessageSizeExceeded', props);
214214
}
215215

0 commit comments

Comments
 (0)