Skip to content

Commit 193b048

Browse files
committed
make taskMetrics and taskPolicies abstract properties
1 parent 0cde795 commit 193b048

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

packages/@aws-cdk/aws-stepfunctions-tasks/lib/lambda/invoke.ts

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export class LambdaInvoke extends sfn.TaskStateBase {
5656
sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
5757
];
5858

59+
protected readonly taskMetrics: sfn.TaskMetricsConfig | undefined;
60+
protected readonly taskPolicies: iam.PolicyStatement[] | undefined;
61+
5962
private readonly integrationPattern: sfn.IntegrationPattern;
6063

6164
constructor(scope: cdk.Construct, id: string, private readonly props: LambdaInvokeProps) {

packages/@aws-cdk/aws-stepfunctions-tasks/lib/sns/publish.ts

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export class SnsPublish extends sfn.TaskStateBase {
6161
sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
6262
];
6363

64+
protected readonly taskMetrics: sfn.TaskMetricsConfig | undefined;
65+
protected readonly taskPolicies: iam.PolicyStatement[] | undefined;
66+
6467
private readonly integrationPattern: sfn.IntegrationPattern;
6568

6669
constructor(scope: cdk.Construct, id: string, private readonly props: SnsPublishProps) {

packages/@aws-cdk/aws-stepfunctions-tasks/lib/sqs/send-message.ts

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ export class SqsSendMessage extends sfn.TaskStateBase {
6666
sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
6767
];
6868

69+
protected readonly taskMetrics: sfn.TaskMetricsConfig | undefined;
70+
protected readonly taskPolicies: iam.PolicyStatement[] | undefined;
71+
6972
private readonly integrationPattern: sfn.IntegrationPattern;
7073

7174
constructor(scope: cdk.Construct, id: string, private readonly props: SqsSendMessageProps) {

packages/@aws-cdk/aws-stepfunctions/lib/states/task-base.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ export abstract class TaskStateBase extends State implements INextable {
8989

9090
public readonly endStates: INextable[];
9191

92-
protected taskMetrics: TaskMetricsConfig = {};
93-
94-
protected taskPolicies: iam.PolicyStatement[] | undefined;
92+
protected abstract readonly taskMetrics: TaskMetricsConfig | undefined;
93+
protected abstract readonly taskPolicies: iam.PolicyStatement[] | undefined;
9594

9695
constructor(scope: cdk.Construct, id: string, props: TaskStateBaseProps) {
9796
super(scope, id, props);

0 commit comments

Comments
 (0)