Skip to content

Commit

Permalink
docs(stepfunctions-task): fix sagemaker training job example (aws#12727)
Browse files Browse the repository at this point in the history
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
zxkane authored Feb 22, 2021
1 parent 5a54741 commit 745fc22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-stepfunctions-tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ Step Functions supports [AWS SageMaker](https://docs.aws.amazon.com/step-functio
You can call the [`CreateTrainingJob`](https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html) API from a `Task` state.

```ts
new sfn.SagemakerTrainTask(this, 'TrainSagemaker', {
new sfn.SageMakerCreateTrainingJob(this, 'TrainSagemaker', {
trainingJobName: sfn.JsonPath.stringAt('$.JobName'),
role,
algorithmSpecification: {
Expand Down Expand Up @@ -846,7 +846,7 @@ new sfn.SagemakerTrainTask(this, 'TrainSagemaker', {
You can call the [`CreateTransformJob`](https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTransformJob.html) API from a `Task` state.

```ts
new sfn.SagemakerTransformTask(this, 'Batch Inference', {
new sfn.SageMakerCreateTransformJob(this, 'Batch Inference', {
transformJobName: 'MyTransformJob',
modelName: 'MyModelName',
modelClientOptions: {
Expand Down

0 comments on commit 745fc22

Please sign in to comment.