-
Notifications
You must be signed in to change notification settings - Fork 0
/
generator.yaml
66 lines (65 loc) · 1.83 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
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
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
ScalingPolicy:
hooks:
sdk_read_many_post_set_output:
code: rm.customSetLastModifiedTimeToCreationTime(ko)
sdk_update_post_set_output:
code: rm.customSetLastModifiedTimeToCurrentTime(ko)
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
ignore:
resource_names:
- ScheduledAction