-
Notifications
You must be signed in to change notification settings - Fork 17
/
generator.yaml
79 lines (78 loc) · 2.28 KB
/
generator.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
operations:
PutScalingPolicy:
operation_type:
- Create
- Update
resource_name: ScalingPolicy
RegisterScalableTarget:
operation_type:
- Create
- Update
resource_name: ScalableTarget
DeregisterScalableTarget:
operation_type:
- Delete
resource_name: ScalableTarget
DescribeScalableTargets:
custom_check_required_fields_missing_method: customCheckRequiredFieldsMissing
DescribeScalingPolicies:
custom_check_required_fields_missing_method: customCheckRequiredFieldsMissing
resources:
ScalableTarget:
hooks:
sdk_read_many_post_set_output:
code: rm.customSetLastModifiedTimeToCreationTime(ko)
sdk_read_many_post_build_request:
code: rm.customDescribeScalableTarget(ctx, r, input)
delta_pre_compare:
code: customSetDefaults(a, b)
sdk_update_post_set_output:
code: rm.customSetLastModifiedTimeToCurrentTime(ko)
fields:
ResourceID:
is_primary_key: true
CreationTime:
is_read_only: true
from:
operation: DescribeScalableTargets
path: ScalableTargets..CreationTime
LastModifiedTime:
is_read_only: true
from:
operation: DescribeScalableTargets
path: ScalableTargets..CreationTime
RoleARN:
late_initialize:
min_backoff_seconds: 5
tags:
ignore: true
ScalingPolicy:
hooks:
sdk_read_many_post_set_output:
code: rm.customSetLastModifiedTimeToCreationTime(ko)
sdk_update_post_set_output:
code: rm.customSetLastModifiedTimeToCurrentTime(ko)
sdk_read_many_post_build_request:
code: rm.customSetDescribeScalingPoliciesInput(ctx, r, input)
post_set_resource_identifiers:
template_path: scaling_policy/post_set_resource_identifiers.go.tpl
fields:
ResourceID:
is_primary_key: true
PolicyARN:
is_arn: true
CreationTime:
is_read_only: true
from:
operation: DescribeScalingPolicies
path: ScalingPolicies..CreationTime
LastModifiedTime:
is_read_only: true
from:
operation: DescribeScalingPolicies
path: ScalingPolicies..CreationTime
tags:
ignore: true
ignore:
resource_names:
- ScheduledAction