handsome-dinner-16062
11/14/2024, 5:15 PMstepfunctions.StateMachine(
f"{function_name}StateMachine",
state_machine_name=f"{function_name}-StateMachine",
state_machine_type=stepfunctions.StateMachineType.STANDARD,
definition_string=json.dumps(step_function_machine_json),
role_arn=execution_role
)
This creation works fine.
But my other production Stack code is as follows:
stepfunctions.StateMachine(
f"{function_name}StateMachine",
state_machine_name=f"{function_name}-StateMachine",
state_machine_type=stepfunctions.StateMachineType.STANDARD,
definition_string=json.dumps(step_function_machine_json),
role_arn=self.params["execution_role"]
)
When using production deployment, an error will be reported: “NameError: name ’StateMachineDefinitionArgs ’is not defined” , which one has encountered this problem, can you help me solve it?
Thank you very much.stocky-restaurant-98004
11/14/2024, 6:03 PMhandsome-dinner-16062
11/14/2024, 6:08 PM