forked from aws-controllers-k8s/acmpca-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generator.yaml
226 lines (226 loc) · 6.88 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
ignore:
resource_names:
#- CertificateAuthority
- CertificateAuthorityAuditReport
- Permission
field_paths:
- CreateCertificateAuthorityInput.IdempotencyToken
- IssueCertificateInput.IdempotencyToken
- IssueCertificateInput.Csr
- ImportCertificateAuthorityCertificateInput.Certificate
- ImportCertificateAuthorityCertificateInput.CertificateChain
- UpdateCertificateAuthorityInput.Status
operations:
UpdateCertificateAuthority:
operation_type:
- Update
resource_name: CertificateAuthority
IssueCertificate:
operation_type:
- Create
resource_name: Certificate
ImportCertificateAuthorityCertificate:
operation_type:
- Create
resource_name: CertificateAuthorityActivation
model_name: acm-pca
prefix_config: {}
resources:
CertificateAuthority:
reconcile:
requeue_on_success_seconds: 30
renames:
operations:
CreateCertificateAuthority:
input_fields:
CertificateAuthorityType: Type
hooks:
delta_pre_compare:
code: customSetDefaults(a, b)
sdk_create_post_build_request:
template_path: hooks/certificate_authority/sdk_create_post_build_request.go.tpl
sdk_update_pre_build_request:
template_path: hooks/certificate_authority/sdk_update_pre_build_request.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/certificate_authority/sdk_read_one_post_set_output.go.tpl
exceptions:
terminal_codes:
- InvalidAction
- InvalidParameterCombination
- InvalidParameterValue
- InvalidQueryParameter
- MissingParameter
- ValidationError
- ValidationException
- LimitExceededException
- InvalidTagException
- InvalidPolicyException
- InvalidArgsException
fields:
CertificateAuthorityConfiguration:
is_immutable: true
Type:
is_immutable: true
go_tag: json:"type,omitempty"
KeyStorageSecurityStandard:
is_immutable: true
UsageMode:
is_immutable: true
CertificateSigningRequest:
is_read_only: true
from:
operation: GetCertificateAuthorityCsr
path: Csr
Status:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.Status
CreatedAt:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.CreatedAt
FailureReason:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.FailureReason
LastStateChangeAt:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.LastStateChangeAt
NotAfter:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.NotAfter
NotBefore:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.NotBefore
RestorableUntil:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.RestorableUntil
Serial:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.Serial
OwnerAccount:
is_read_only: true
from:
operation: DescribeCertificateAuthority
path: CertificateAuthority.OwnerAccount
Certificate:
hooks:
sdk_read_one_pre_build_request:
template_path: hooks/certificate/sdk_read_one_pre_build_request.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/certificate/sdk_read_one_post_set_output.go.tpl
sdk_create_post_build_request:
template_path: hooks/certificate/sdk_create_post_build_request.go.tpl
sdk_create_post_request:
template_path: hooks/certificate/sdk_create_post_request.go.tpl
exceptions:
terminal_codes:
- InvalidAction
- InvalidParameterCombination
- InvalidParameterValue
- InvalidQueryParameter
- MissingParameter
- ValidationError
- ValidationException
- InvalidArgsException
- InvalidArnException
- InvalidStateException
- LimitExceededException
- MalformedCSRException
fields:
CertificateOutput:
type: string
is_secret: true
is_immutable: true
CertificateAuthorityARN:
references:
resource: CertificateAuthority
path: Status.ACKResourceMetadata.ARN
is_immutable: true
CertificateSigningRequest:
type: string
references:
resource: CertificateAuthority
path: Status.CertificateSigningRequest
is_immutable: true
APIPassthrough:
is_immutable: true
SigningAlgorithm:
is_immutable: true
TemplateARN:
is_immutable: true
Validity:
is_immutable: true
ValidityNotBefore:
is_immutable: true
Validity.Type:
go_tag: json:"type,omitempty"
tags:
ignore: true
CertificateAuthorityActivation:
exceptions:
terminal_codes:
- InvalidAction
- InvalidParameterCombination
- InvalidParameterValue
- InvalidQueryParameter
- MissingParameter
- ValidationError
- ValidationException
- CertificateMismatchException
- InvalidArnException
- InvalidRequestException
- InvalidStateException
- MalformedCertificateException
- RequestFailedException
hooks:
delta_pre_compare:
code: customSetDefaults(a, b)
sdk_create_post_build_request:
template_path: hooks/certificate_authority_activation/sdk_create_post_build_request.go.tpl
sdk_create_post_set_output:
template_path: hooks/certificate_authority_activation/sdk_create_post_set_output.go.tpl
sdk_create_post_request:
template_path: hooks/certificate_authority_activation/sdk_create_post_request.go.tpl
fields:
CompleteCertificateChainOutput:
type: string
is_secret: true
is_immutable: true
CertificateAuthorityARN:
is_primary_key: true
references:
resource: CertificateAuthority
path: Status.ACKResourceMetadata.ARN
is_immutable: true
Certificate:
type: string
is_secret: true
is_immutable: true
CertificateChain:
type: string
is_secret: true
is_immutable: true
Status:
type: string
find_operation:
custom_method_name: customFindCertificateAuthorityActivation
update_operation:
custom_method_name: customUpdateCertificateAuthorityActivation
delete_operation:
custom_method_name: customDeleteCertificateAuthorityActivation
tags:
ignore: true