Commit 25c43e8
authored
Remove code setting a resource ARN from its spec primary identifier (#243)
Originally, this code was added to be able to make `ReadOne` calls when
a resource was not created yet and its ARN is not known, by trying to
build the ARN from the primary identifier field.
Currently `ReadOne` calls uses `requiredFieldsMissingFromReadOneInput`
to know whether a resource was created or not - if a required field is
missing, the `sdkFind` function will return a `ackerr.NotFound`
This also fixes code generation for lambda `CodeSigningConfig` resource
which was panicking because `CodeSIgningConfig` doesn't have a spec
identifier field.
Tested with dynamodb and ECR.
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.1 parent 2965d26 commit 25c43e8
1 file changed
+0
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| |||
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 206 | | |
217 | 207 | | |
218 | 208 | | |
| |||
0 commit comments