-
Notifications
You must be signed in to change notification settings - Fork 9
/
generator.yaml
77 lines (77 loc) · 2.06 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
sdk_names:
model_name: logs
client_interface: CloudWatchLogsAPI
client_struct: CloudWatchLogs
ignore:
resource_names:
- ExportTask
#- LogGroup
- LogStream
field_paths:
- PutSubscriptionFilterInput.LogGroupName
resources:
LogGroup:
exceptions:
terminal_codes:
- InvalidParameterException
fields:
Name:
type: string
is_primary_key: true
KMSKeyID:
references:
resource: Key
service_name: kms
path: Status.ACKResourceMetadata.ARN
SubscriptionFilters:
custom_field:
list_of: PutSubscriptionFilterInput
RetentionDays:
from:
operation: PutRetentionPolicy
path: RetentionInDays
CreationTime:
is_read_only: true
from:
operation: DescribeLogGroups
path: LogGroups.CreationTime
DataProtectionStatus:
is_read_only: true
from:
operation: DescribeLogGroups
path: LogGroups.DataProtectionStatus
MetricFilterCount:
is_read_only: true
from:
operation: DescribeLogGroups
path: LogGroups.MetricFilterCount
RetentionInDays:
is_read_only: true
from:
operation: DescribeLogGroups
path: LogGroups.RetentionInDays
StoredBytes:
is_read_only: true
from:
operation: DescribeLogGroups
path: LogGroups.StoredBytes
renames:
operations:
DescribeLogGroups:
input_fields:
LogGroupNamePrefix: Name
CreateLogGroup:
input_fields:
LogGroupName: Name
DeleteLogGroup:
input_fields:
LogGroupName: Name
hooks:
delta_pre_compare:
code: customPreCompare(delta, a, b)
sdk_create_post_set_output:
template_path: hooks/log_group/sdk_create_post_set_output.go.tpl
sdk_read_many_post_set_output:
template_path: hooks/log_group/sdk_read_many_post_set_output.go.tpl
update_operation:
custom_method_name: customUpdateLogGroup