Documentation
¶
Index ¶
- func BoolPtr(b bool) *bool
- func IntPtr[I int32 | int64](i *I) *int
- func JSONStringToObject(s string) (map[string]interface{}, error)
- func MapStringString(ctx context.Context, input types.Map) (map[string]string, diag.Diagnostics)
- func StringList(ctx context.Context, in types.List) ([]string, diag.Diagnostics)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONStringToObject ¶ added in v1.12.6
JSONStringToObject parses a JSON-object string attribute (iac_input_data.data, wf_step_input_data.data, workflow_run_payload, stack_run_payload) for the API. It returns the parse error instead of replacing invalid input with an empty object, as the helpers it replaced did: a silent {} sent the user's inputs nowhere and only surfaced as "Provider produced inconsistent result after apply". "" means no data and returns nil. Valid JSON that isn't an object (an array, a string, null) is an error too, since the API expects an object.
func MapStringString ¶ added in v1.9.0
func StringList ¶
StringList accepts a `types.List` and returns a slice of strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.