Skip to content

Commit df701c3

Browse files
doc: fix the incorrect property reference (aws#3553)
1 parent d000bdc commit df701c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/amazon_sagemaker_model_building_pipeline.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ Example:
453453
str_outputParam, int_outputParam, bool_outputParam, float_outputParam
454454
],
455455
)
456-
output_ref = step_lambda.OutputParameters["output1"]
456+
output_ref = step_lambda.properties.Outputs["output1"]
457457
458458
Where the lambda function with :code:`arn arn:aws:lambda:us-west-2:123456789012:function:sagemaker_test_lambda`
459459
should output like this:
@@ -479,7 +479,7 @@ Note that the output parameters can not be nested. Otherwise, the value will be
479479
}
480480
}
481481
482-
This will be resolved as :code:`{"output1": "{\"nested_output1\":\"my-output\"}"}` by which if you refer :code:`step_lambda.OutputParameters["output1"]["nested_output1"]` later, a non-retryable client error will be thrown.
482+
This will be resolved as :code:`{"output1": "{\"nested_output1\":\"my-output\"}"}` by which if you refer :code:`step_lambda.properties.Outputs["output1"]["nested_output1"]` later, a non-retryable client error will be thrown.
483483

484484
CallbackStep
485485
`````````````
@@ -503,7 +503,7 @@ Example:
503503
inputs={"arg1": "foo", "arg2": 5, "arg3": param},
504504
outputs=[outputParam],
505505
)
506-
output_ref = step_callback.OutputParameters["output1]
506+
output_ref = step_callback.properties.Outputs["output1]
507507
508508
The output parameters cannot be nested. If the values are nested, they will be treated as a single string value. For example, a nested output value of
509509
@@ -515,7 +515,7 @@ The output parameters cannot be nested. If the values are nested, they will be t
515515
}
516516
}
517517
518-
is resolved as :code:`{"output1": "{\"nested_output1\":\"my-output\"}"}`. If you try to refer to :code:`step_callback.OutputParameters["output1"]["nested_output1"]` this will throw a non-retryable client error.
518+
is resolved as :code:`{"output1": "{\"nested_output1\":\"my-output\"}"}`. If you try to refer to :code:`step_callback.properties.Outputs["output1"]["nested_output1"]` this will throw a non-retryable client error.
519519
520520
521521
QualityCheckStep

0 commit comments

Comments
 (0)