Hi I am creating a step function using python cdk and my step function code look like this :
state_machine = sfn.StateMachine(
self,
"MyStateMachine",
definition=tasks.LambdaInvoke(
self,
"MyLambdaTask",
lambda_function=hello_function
).next(
sfn.Succeed(
self,
"GreetedWorld"
)
)
)
and here just I want to add this configurations to wait for token using python cdk:
as I added this configuration on aws dashboard directly in edit state machine json
"Resource": "arn:aws:states:::lambda:invoke.waitForTaskToken",
want to add this line of code using python cdk . can't find way to add this