File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 15
15
16
16
from typing import Optional , Iterator
17
17
from datetime import datetime
18
+ import logging
18
19
19
20
from sagemaker .apiutils import _base_types
20
21
from sagemaker .lineage import _api_types
21
22
from sagemaker .lineage ._api_types import AssociationSummary
22
23
24
+ logger = logging .getLogger (__name__ )
25
+
23
26
24
27
class Association (_base_types .Record ):
25
28
"""An Amazon SageMaker artifact, which is part of a SageMaker lineage.
@@ -73,6 +76,10 @@ def set_tag(self, tag=None):
73
76
Returns:
74
77
list({str:str}): a list of key value pairs
75
78
"""
79
+ logger .warning (
80
+ "set_tag on Association is deprecated. Use set_tag on the source or destination\
81
+ entity instead."
82
+ )
76
83
return self ._set_tags (resource_arn = self .source_arn , tags = [tag ])
77
84
78
85
def set_tags (self , tags = None ):
@@ -84,6 +91,10 @@ def set_tags(self, tags=None):
84
91
Returns:
85
92
list({str:str}): a list of key value pairs
86
93
"""
94
+ logger .warning (
95
+ "set_tags on Association is deprecated. Use set_tags on the source or destination\
96
+ entity instead."
97
+ )
87
98
return self ._set_tags (resource_arn = self .source_arn , tags = tags )
88
99
89
100
@classmethod
You can’t perform that action at this time.
0 commit comments