Documentation
¶
Index ¶
- func EnsureTypedList(ctx context.Context, list types.List, elemType attr.Type) types.List
- func NonEmptyListOrDefault[T any](ctx context.Context, original types.List, elemType attr.Type, slice []T) (types.List, diag.Diagnostics)
- func NonEmptySetOrDefault[T any](ctx context.Context, original types.Set, elemType attr.Type, slice []T) (types.Set, diag.Diagnostics)
- func NonEmptyStringishPointerValue[T ~string](ptr *T) types.String
- func NonEmptyStringishValue[T ~string](value T) types.String
- func StringishPointerValue[T ~string](ptr *T) types.String
- func StringishValue[T ~string](value T) types.String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureTypedList ¶ added in v0.14.0
EnsureTypedList converts untyped zero-value lists to properly typed null lists. This is commonly needed during import operations where the framework may create untyped lists with DynamicPseudoType elements, which causes type conversion errors. If the list already has a proper type, it is returned unchanged.
func NonEmptyListOrDefault ¶ added in v0.13.1
func NonEmptySetOrDefault ¶ added in v0.13.1
func NonEmptyStringishValue ¶
func StringishPointerValue ¶
StringishPointerValue converts a pointer to a string-like type to a Terraform types.String value.
func StringishValue ¶
StringishValue converts a value of any string-like type T to a Terraform types.String.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.