InvokeActivity

class aws_cdk.aws_stepfunctions_tasks.InvokeActivity(activity, *, heartbeat=None)

Bases: object

A Step Functions Task to invoke an Activity worker.

An Activity can be used directly as a Resource.

stability :stability: experimental

__init__(activity, *, heartbeat=None)
Parameters
  • activity (IActivity) –

  • props

  • heartbeat (Optional[Duration]) – Maximum time between heart beats. If the time between heart beats takes longer than this, a ‘Timeout’ error is raised. Default: No heart beat timeout

stability :stability: experimental

Return type

None

Methods

bind(_task)

Called when the task object is used in a workflow.

Parameters

_task (Task) –

stability :stability: experimental

Return type

StepFunctionsTaskConfig