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
// CreateOnlyAttributePlanModifier returns a plan modifier that ensures that update operations fails when the attribute is changed.
31
16
// This is useful for attributes only supported in create and not in update.
32
17
// It shows a helpful error message helping the user to update their config to match the state.
33
-
// Never use a schema.Default for create only attributes, instead use WithXXXDefault, the default will lead to plan changes that are not expected after import.
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.
34
19
// Implement CopyFromPlan if the attribute is not in the API Response.
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."
57
42
}
58
43
44
+
// isCreate uses the full state to check if this is a create operation
// CreateOnlyStringPlanModifier creates a plan modifier that prevents updates to string attributes.
14
+
// This is useful for attributes only supported in create and not in update.
15
+
// It shows a helpful error message helping the user to update their config to match the state.
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
+
// No default value implemented for string until we have a use case.
18
+
// Implement CopyFromPlan if the attribute is not in the API Response.
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."
MarkdownDescription: "Human-readable label that identifies the geographic location of your MongoDB flex cluster. The region you choose can affect network latency for clients accessing your databases. For a complete list of region names, see [AWS](https://docs.atlas.mongodb.com/reference/amazon-aws/#std-label-amazon-aws), [GCP](https://docs.atlas.mongodb.com/reference/google-gcp/), and [Azure](https://docs.atlas.mongodb.com/reference/microsoft-azure/).",
0 commit comments