Skip to content

Commit 8912eb3

Browse files
committed
Replacing Definition which is depreciated with Definitionbody
1 parent 890a7b2 commit 8912eb3

File tree

1 file changed

+1
-1
lines changed
  • PetAdoptions/cdk/pet_stack/lib/services

1 file changed

+1
-1
lines changed

PetAdoptions/cdk/pet_stack/lib/services/stepfn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class PetAdoptionsStepFn extends Construct {
6060

6161

6262
this.stepFn = new sfn.StateMachine(this, 'StateMachine', {
63-
definition,
63+
definitionBody: sfn.DefinitionBody.fromChainable(definition),
6464
tracingEnabled: true,
6565
timeout: Duration.minutes(5)
6666
});

0 commit comments

Comments
 (0)