Documentation ¶
Index ¶
- func BoolValueToPointer(s basetypes.BoolValue) *bool
- func Float64ValueToPointer(s basetypes.Float64Value) *float64
- func Int64ValueToPointer(s basetypes.Int64Value) *int64
- func StringListToPointer(list basetypes.ListValue) (*[]string, error)
- func StringValueToPointer(s basetypes.StringValue) *string
- func ToJSONMapPartialUpdatePayload(ctx context.Context, current, desired types.Map) (map[string]interface{}, error)
- func ToOptStringMap(tfMap map[string]attr.Value) (*map[string]string, error)
- func ToString(ctx context.Context, v attr.Value) (string, error)
- func ToStringInterfaceMap(ctx context.Context, m basetypes.MapValue) (map[string]interface{}, error)
- func ToTerraformStringMap(ctx context.Context, m map[string]string) (basetypes.MapValue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolValueToPointer ¶ added in v0.6.3
BoolValueToPointer converts basetypes.BoolValue to a pointer to bool. It returns nil if the value is null or unknown.
func Float64ValueToPointer ¶ added in v0.23.0
func Float64ValueToPointer(s basetypes.Float64Value) *float64
Float64ValueToPointer converts basetypes.Float64Value to a pointer to float64. It returns nil if the value is null or unknown.
func Int64ValueToPointer ¶ added in v0.6.3
func Int64ValueToPointer(s basetypes.Int64Value) *int64
Int64ValueToPointer converts basetypes.Int64Value to a pointer to int64. It returns nil if the value is null or unknown.
func StringListToPointer ¶ added in v0.21.0
StringListToPointer converts basetypes.ListValue to a pointer to a list of strings. It returns nil if the value is null or unknown.
func StringValueToPointer ¶ added in v0.6.3
func StringValueToPointer(s basetypes.StringValue) *string
StringValueToPointer converts basetypes.StringValue to a pointer to string. It returns nil if the value is null or unknown.
func ToJSONMapPartialUpdatePayload ¶ added in v0.33.0
func ToJSONMapPartialUpdatePayload(ctx context.Context, current, desired types.Map) (map[string]interface{}, error)
ToJSONMApPartialUpdatePayload returns a map[string]interface{} to be used in a PATCH request payload. It takes a current map as it is in the terraform state and a desired map as it is in the user configuratiom and builds a map which sets to null keys that should be removed, updates the values of existing keys and adds new keys This method is needed because in partial updates, e.g. if the key is not provided it is ignored and not removed
Types ¶
This section is empty.