-
Notifications
You must be signed in to change notification settings - Fork 13
/
generator.yaml
85 lines (85 loc) · 1.98 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
80
81
82
83
84
85
resources:
Alias:
fields:
Name:
is_primary_key: true
TargetKeyId:
is_required: true
from:
operation: CreateAlias
path: TargetKeyId
references:
resource: Key
path: Status.KeyID
renames:
operations:
CreateAlias:
input_fields:
AliasName: Name
UpdateAlias:
input_fields:
AliasName: Name
DeleteAlias:
input_fields:
AliasName: Name
exceptions:
terminal_codes:
- ValidationException
hooks:
sdk_read_many_pre_set_output:
template_path: hooks/alias/sdk_read_many_pre_set_output.go.tpl
tags:
ignore: true
Key:
fields:
Origin:
is_immutable: true
MultiRegion:
is_immutable: true
KeyUsage:
is_immutable: true
KeySpec:
is_immutable: true
Description:
is_immutable: true
CustomKeyStoreID:
is_immutable: true
EnableKeyRotation:
type: bool
hooks:
sdk_delete_post_build_request:
template_path: hooks/key/sdk_delete_post_build_request.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/key/sdk_read_one_post_set_output.go.tpl
sdk_create_post_set_output:
template_path: hooks/key/sdk_create_post_set_output.go.tpl
tags:
key_name: TagKey
value_name: TagValue
update_operation:
custom_method_name: customUpdate
Grant:
fields:
KeyId:
references:
resource: Key
path: Status.KeyID
tags:
ignore: true
update_operation:
custom_method_name: updateNotSupported
operations:
ScheduleKeyDeletion:
operation_type:
- Delete
resource_name: Key
RevokeGrant:
operation_type:
- Delete
resource_name: Grant
ignore:
resource_names:
- CustomKeyStore
field_paths:
- CreateKeyInput.CustomerMasterKeySpec
- KeyMetadata.CustomerMasterKeySpec