BREAKING CHANGES:
attr.Type
implementations must now have aString()
method that returns a human-friendly name for the type. (#120)- tfsdk:
Resource
implementations must now include theImportState(context.Context, ImportResourceStateRequest, *ImportResourceStateResponse)
method. If import is not supported, call theResourceImportStateNotImplemented()
function or return an error. (#149)
FEATURES:
- tfsdk: Support resource import (#149)
- types: Support
Set
andSetType
(#126) - types: Support for
Float64
,Float64Type
,Int64
, andInt64Type
(#166)
ENHANCEMENTS:
- Added a
tfsdk.ConvertValue
helper that will convert anyattr.Value
into any compatibleattr.Type
. Compatibility happens at the terraform-plugin-go level; the type that theattr.Value
'sToTerraformValue
method produces must be compatible with theattr.Type
'sTerraformType()
. Generally, this means that theattr.Type
of theattr.Value
and theattr.Type
being converted to must both produce the sametftypes.Type
when theirTerraformType()
method is called. (#120)
BUG FIXES: