You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/common/customplanmodifier/create_only_bool.go
+3-14Lines changed: 3 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ import (
16
16
// This is useful for attributes only supported in create and not in update.
17
17
// It shows a helpful error message helping the user to update their config to match the state.
18
18
// Never use a schema.Default for create only attributes, instead use `WithDefault`, the default will lead to plan changes that are not expected after import.
19
-
// Implement CopyFromPlan if the attribute is not in the API Response.
19
+
// If the attribute is not in the API Response implement CopyFromPlan behavior when converting API Model to TF Model.
return"Ensures the update operation fails when updating an attribute. If the read after import don't equal the configuration value it will also raise an error."
42
+
return"Ensures the update operation fails when updating an attribute. If the read after import doesn't equal the configuration value it will also raise an error."
42
43
}
43
44
44
45
// isCreate uses the full state to check if this is a create operation
Copy file name to clipboardExpand all lines: internal/common/customplanmodifier/create_only_string.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ import (
15
15
// It shows a helpful error message helping the user to update their config to match the state.
16
16
// Never use a schema.Default for create only attributes, instead use `WithDefault`, the default will lead to plan changes that are not expected after import.
17
17
// No default value implemented for string until we have a use case.
18
-
// Implement CopyFromPlan if the attribute is not in the API Response.
18
+
// If the attribute is not in the API Response implement CopyFromPlan behavior when converting API Model to TF Model.
0 commit comments