Documentation ¶
Index ¶
- func GetSchemaBlock(r *schema.Resource, d *schema.ResourceData, k []string, i int, ...) (map[string]interface{}, error)
- func MergeSchema(dst, src map[string]*schema.Schema)
- func SuppressIfListsAreEqualIgnoringOrder(key, _, _ string, d *schema.ResourceData) bool
- func SuppressIfListsOfMapsAreEqualIgnoringOrderByKey(keyAttr string) schema.SchemaDiffSuppressFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSchemaBlock ¶ added in v0.25.0
func GetSchemaBlock( r *schema.Resource, d *schema.ResourceData, k []string, i int, allowDefault bool, ) (map[string]interface{}, error)
GetSchemaBlock returns a map[string]interface{} of a nested resource by key(s) from a schema.ResourceData.
func MergeSchema ¶
MergeSchema merges the map[string]*schema.Schema from src into dst. Panicking enforces safety against conflicts.
func SuppressIfListsAreEqualIgnoringOrder ¶ added in v0.25.0
func SuppressIfListsAreEqualIgnoringOrder(key, _, _ string, d *schema.ResourceData) bool
SuppressIfListsAreEqualIgnoringOrder is a customdiff.SuppressionFunc that suppresses changes to a list if the old and new lists are equal, ignoring the order of the elements. It will be called for each list item, so it is not super efficient. It is recommended to use it only for small lists. Ref: https://github.com/hashicorp/terraform-plugin-sdk/issues/477
func SuppressIfListsOfMapsAreEqualIgnoringOrderByKey ¶ added in v0.52.0
func SuppressIfListsOfMapsAreEqualIgnoringOrderByKey(keyAttr string) schema.SchemaDiffSuppressFunc
SuppressIfListsOfMapsAreEqualIgnoringOrderByKey is a customdiff.SuppressionFunc that suppresses changes to a list of resources if the old and new lists are equal, ignoring the order of the elements. It will be called for each resource attribute, so it is not super efficient. It is recommended to use it only for small lists / small resources. Note: The order of the attributes within the resource is still important. Ref: https://github.com/hashicorp/terraform-plugin-sdk/issues/477
Types ¶
This section is empty.