hashicorp / aws-cloudformation-resource-schema-sdk-go

This package provides AWS CloudFormation Resource Schema functionality in Go
Mozilla Public License 2.0
5 stars 2 forks source link

Incorrect JSON tag for resource handlers #3

Closed ewbankkit closed 3 years ago

ewbankkit commented 3 years ago

The resource handlers JSON tag is declared as handler

type Resource struct {
    ...
    Handlers                        map[string]*Handler    `json:"handler,omitempty"`
    ...
}

but in actuality is handlers

  "handlers" : {
    "create" : {
      "permissions" : [ "ecs:CreateService", "ecs:DescribeServices", "iam:PassRole" ],
      "timeoutInMinutes" : 180
    },
    ...
  },

Correct this.