You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was a nasty issue to troubleshoot. :( Turns out that for
REST+XML-based APIs (such as CloudFront), the aws-sdk-go
`private/model/api.Operation` objects have a `Name` field that contains
crap like this: "CreateCachePolicy2020_05_31". What this means is that
when looking up things like output wrapper field paths by the
`Operation.Name` of "CreateCachePolicy" (from the `generator.yaml`
file's `operations` map), things were failing because the
`private/model/api.API:Operations` map is actually keyed by
`Operation.ExportedName`, not `Operation.Name`. `Operation.ExportedName`
for REST+XML APIs like CloudFront contain the proper string
"CreateCachePolicy" without the date suffix.
Signed-off-by: Jay Pipes <jaypipes@gmail.com>
0 commit comments