Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reduce ¶
func Reduce(m builder.ResourceMap)
Reduce removes nested resources with a single field:
Example:
"allow": { Type: schema.TypeList, Optional: true, MaxItems: 1, Elem: &schema.Resource{ Schema: SchemaBoolValue(), // Which has the single field value bool }, },
is replaced with
"allow": { Type: schema.TypeBool, Optional: true, }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.