Skip to content

Commit 9ad4d91

Browse files
danabensajaykarpur
andauthored
documentation: create artifact restricted to SM context note (#2010)
* documentation: create artifact restricted to SM context note * Update src/sagemaker/lineage/artifact.py Co-authored-by: Ajay Karpur <[email protected]>
1 parent 0b58fba commit 9ad4d91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sagemaker/lineage/artifact.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ class Artifact(_base_types.Record):
8181
def save(self):
8282
"""Save the state of this Artifact to SageMaker.
8383
84+
Note that this method must be run from a SageMaker context such as Studio or a training job
85+
due to restrictions on the CreateArtifact API.
86+
8487
Returns:
8588
Artifact: A SageMaker `Artifact` object.
8689
"""

0 commit comments

Comments
 (0)