Skip to content

Commit d8ba82c

Browse files
authored
Add comments to generate code to fix #122 (#127)
1 parent 3e9e890 commit d8ba82c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/rpdk/go/templates/main.go.tple

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ This file is autogenerated, do not edit;
1515
changes will be undone by the next 'cfn generate' command.
1616
*/
1717

18+
// Handler is a container for the CRUDL actions exported by resources
1819
type Handler struct{}
1920

2021
{% for method in ("Create", "Read", "Update", "Delete", "List") %}
2122

23+
// {{ method }} wraps the related {{ method }} function exposed by the resource code
2224
func (r *Handler) {{ method }}(req handler.Request) handler.ProgressEvent {
2325
return wrap(req, resource.{{ method }})
2426
}

0 commit comments

Comments
 (0)