InvokeActivity

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

Bases: object

(deprecated) A Step Functions Task to invoke an Activity worker.

An Activity can be used directly as a Resource.

Deprecated:

use StepFunctionsInvokeActivity

Stability:

deprecated

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_stepfunctions as stepfunctions
import aws_cdk.aws_stepfunctions_tasks as stepfunctions_tasks
import aws_cdk.core as cdk

# activity: stepfunctions.Activity

invoke_activity = stepfunctions_tasks.InvokeActivity(activity,
    heartbeat=cdk.Duration.minutes(30)
)
Parameters:
  • activity (IActivity) –

  • heartbeat (Optional[Duration]) – (deprecated) 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:

deprecated

Methods

bind(_task)

(deprecated) Called when the task object is used in a workflow.

Parameters:

_task (Task) –

Stability:

deprecated

Return type:

StepFunctionsTaskConfig