Skip to content

Commit 745fc22

Browse files
authored
docs(stepfunctions-task): fix sagemaker training job example (#12727)
---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 5a54741 commit 745fc22

File tree

1 file changed

+2
-2
lines changed
  • packages/@aws-cdk/aws-stepfunctions-tasks

1 file changed

+2
-2
lines changed

packages/@aws-cdk/aws-stepfunctions-tasks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ Step Functions supports [AWS SageMaker](https://docs.aws.amazon.com/step-functio
811811
You can call the [`CreateTrainingJob`](https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html) API from a `Task` state.
812812

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

848848
```ts
849-
new sfn.SagemakerTransformTask(this, 'Batch Inference', {
849+
new sfn.SageMakerCreateTransformJob(this, 'Batch Inference', {
850850
transformJobName: 'MyTransformJob',
851851
modelName: 'MyModelName',
852852
modelClientOptions: {

0 commit comments

Comments
 (0)