diff --git a/packages/@aws-cdk/aws-stepfunctions/README.md b/packages/@aws-cdk/aws-stepfunctions/README.md index cba7875702392..4f821b470faee 100644 --- a/packages/@aws-cdk/aws-stepfunctions/README.md +++ b/packages/@aws-cdk/aws-stepfunctions/README.md @@ -125,7 +125,7 @@ couple of the tasks available are: * `tasks.InvokeActivity` -- start an Activity (Activities represent a work queue that you poll on a compute fleet you manage yourself) * `tasks.InvokeFunction` -- invoke a Lambda function with function ARN -* `tasks.InvokeBatchJob` -- invoke a Batch job +* `tasks.RunBatchJob` -- run a Batch job * `tasks.RunLambdaTask` -- call Lambda as integrated service with magic ARN * `tasks.PublishToTopic` -- publish a message to an SNS topic * `tasks.SendToQueue` -- send a message to an SQS queue @@ -202,7 +202,7 @@ const batchJobDefinition = new batch.JobDefinition(this, 'JobDefinition', { }); const task = new sfn.Task(this, 'Submit Job', { - task: new tasks.InvokeBatchJob({ + task: new tasks.RunBatchJob({ jobDefinition: batchJobDefinition, jobName: 'MyJob', jobQueue: batchQueue