File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,11 @@ func (d *ResourceData) GetOk(key string) (interface{}, bool) {
108108 return r .Value , exists
109109}
110110
111- // GetOkExists returns the data for a given key and whether or not the key
112- // has been set to a non-zero value. This is only useful for determining
113- // if boolean attributes have been set, if they are Optional but do not
114- // have a Default value.
111+ // GetOkExists can check if TypeBool attributes that are Optional with
112+ // no Default value have been set.
115113//
116- // This is nearly the same function as GetOk, yet it does not check
117- // for the zero value of the attribute's type. This allows for attributes
118- // without a default, to fully check for a literal assignment, regardless
119- // of the zero-value for that type.
120- // This should only be used if absolutely required/needed.
114+ // Deprecated: usage is discouraged due to undefined behaviors and may be
115+ // removed in a future version of the SDK
121116func (d * ResourceData ) GetOkExists (key string ) (interface {}, bool ) {
122117 r := d .getRaw (key , getSourceSet )
123118 exists := r .Exists && ! r .Computed
You can’t perform that action at this time.
0 commit comments