Documentation
¶
Index ¶
- func Clone[M ~map[K]V, K comparable, V any](m M) M
- func ImportResourceGroupID(resourceGroup ...string) schema.StateContextFunc
- func SetExistingAttributesAsOptional(schema map[string]*schema.Schema, keys ...string)
- func SetExistingAttributesAsRequired(schema map[string]*schema.Schema, keys ...string)
- func SetResourceGroupID(data *schema.ResourceData, resourceGroup ...string)
- func TransformResourceToDataSource(resourceSchema map[string]*schema.Schema) map[string]*schema.Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportResourceGroupID ¶ added in v0.49.0
func ImportResourceGroupID(resourceGroup ...string) schema.StateContextFunc
ImportResourceGroupID deconstructs the given ID when terraform import runs, so the attribute groups can be set within the terraform state.
func SetExistingAttributesAsOptional ¶
SetExistingAttributesAsOptional updates the schema of existing top level attributes by ensuring they are optional by setting Computed and Required to false and Optional to true.
func SetExistingAttributesAsRequired ¶ added in v1.4.0
SetExistingAttributesAsRequired updates the schema of existing top level attributes by ensuring they are required by setting Computed and Optional to false and Required to true.
func SetResourceGroupID ¶ added in v1.0.0
func SetResourceGroupID(data *schema.ResourceData, resourceGroup ...string)
SetResourceGroupID sets the ID of the resource when the ID is a combination of multiple resource IDs. If the value is blank, then the resource is destroyed.
Types ¶
This section is empty.