/
config.yaml
53 lines (45 loc) · 1.3 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
types:
- Test
duration_custom_type: Duration
use_state_for_unknown_by_default: true
sort: true
target_package_name: test
# default_package_name: test - since source and target package names equal, there's no need for this
exclude_fields:
- Test.Excluded
computed_fields:
- Test.Str
required_fields:
- Test.Str
sensitive_fields:
- Test.Str
suffixes:
BoolCustom: BoolSpecial
name_overrides:
Test.Str: "str"
time_type:
type: "TimeType" # Struct name of attrs.Type
value_type: "TimeValue" # Struct name of attrs.Value
cast_to_type: "time.Time" # Go type of .Value
cast_from_type: "time.Time" # Go type of an object field
type_constructor: UseRFC3339Time()
duration_type:
type: "DurationType" # Struct name of attrs.Type
value_type: "DurationValue" # Struct name of attrs.Value
cast_to_type: "time.Duration" # Go type of .Value
cast_from_type: "time.Duration" # Go type of an object field
injected_fields:
Test:
-
name: id
type: github.com/hashicorp/terraform-plugin-framework/types.StringType
computed: true
plan_modifiers:
"Test.Str":
- github.com/hashicorp/terraform-plugin-framework/tfsdk.UseStateForUnknown()
validators:
"Test.Str":
- UseMockValidator()
custom_types:
"Test.StringOverride": StringCustom