-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathgenerator.yaml
55 lines (55 loc) · 1.69 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
sdk_names:
model_name: opensearch
package_name: opensearch
ignore:
resource_names:
- Package
# - Domain
- OutboundConnection
- VpcEndpoint
- Application
field_paths:
# SnapshotOptions is irrelevant for OpenSearch 5.3+
- CreateDomainInput.SnapshotOptions
- CreateDomainInput.IdentityCenterOptions
- ClusterConfig.NodeOptions
- CreateDomainOutput.DomainStatus.IdentityCenterOptions
resources:
Domain:
renames:
operations:
CreateDomain:
input_fields:
DomainName: Name
TagList: Tags
DeleteDomain:
input_fields:
DomainName: Name
DescribeDomain:
input_fields:
DomainName: Name
reconcile:
# Doing this because it takes a LONG time for the Domain's
# endpoint/endpoints field to be populated, even after the Domain's
# Processing field is set to False after creation...
requeue_on_success_seconds: 60
exceptions:
errors:
404:
code: ResourceNotFoundException
terminal_codes:
- ValidationException
hooks:
sdk_create_post_set_output:
template_path: hooks/domain/sdk_create_post_set_output.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/domain/sdk_read_one_post_set_output.go.tpl
sdk_update_pre_build_request:
template_path: hooks/domain/sdk_update_pre_build_request.go.tpl
sdk_delete_pre_build_request:
template_path: hooks/domain/sdk_delete_pre_build_request.go.tpl
fields:
AdvancedSecurityOptions.MasterUserOptions.MasterUserPassword:
is_secret: true
update_operation:
custom_method_name: customUpdateDomain