Documentation ¶
Index ¶
- Constants
- func DiffSuppressNullableBoolFalseAsNull(k, o, n string, d *schema.ResourceData) bool
- func ValidateTypeStringNullableBool(v interface{}, k string) (ws []string, es []error)
- func ValidateTypeStringNullableInt(v interface{}, k string) (ws []string, es []error)
- func ValidateTypeStringNullableIntAtLeast(min int) schema.SchemaValidateFunc
- func ValidateTypeStringNullableIntBetween(min int, max int) schema.SchemaValidateFunc
- type Bool
- type Int
Constants ¶
const (
TypeNullableBool = schema.TypeString
)
const (
TypeNullableInt = schema.TypeString
)
Variables ¶
This section is empty.
Functions ¶
func DiffSuppressNullableBoolFalseAsNull ¶
func DiffSuppressNullableBoolFalseAsNull(k, o, n string, d *schema.ResourceData) bool
DiffSuppressNullableBoolFalseAsNull allows false to be treated equivalently to null. This can be used to allow a practitioner to set false when the API requires a null value, as a convenience.
func ValidateTypeStringNullableBool ¶
ValidateTypeStringNullableBool provides custom error messaging for TypeString booleans Some arguments require a boolean value or unspecified, empty field.
func ValidateTypeStringNullableInt ¶
ValidateTypeStringNullableInt provides custom error messaging for TypeString ints Some arguments require an int value or unspecified, empty field.
func ValidateTypeStringNullableIntAtLeast ¶
func ValidateTypeStringNullableIntAtLeast(min int) schema.SchemaValidateFunc
ValidateTypeStringNullableIntAtLeast provides custom error messaging for TypeString ints Some arguments require an int value or unspecified, empty field.
func ValidateTypeStringNullableIntBetween ¶
func ValidateTypeStringNullableIntBetween(min int, max int) schema.SchemaValidateFunc
ValidateTypeStringNullableIntBetween provides custom error messaging for TypeString ints Some arguments require an int value or unspecified, empty field.