We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17230ee commit e573267Copy full SHA for e573267
1 file changed
events/codepipeline_cloudwatch.go
@@ -80,8 +80,8 @@ type CodePipelineEventBridgeEvent = CodePipelineCloudWatchEvent
80
type CodePipelineEventDetail struct {
81
Pipeline string `json:"pipeline"`
82
83
- // Version is numeric. AWS may send integer (1) or float (2.0) depending on the event.
84
- // json.Number preserves the raw value and allows callers to convert as needed.
+ // Version is the pipeline version number. AWS may send this as an integer (e.g. 1)
+ // or a float (e.g. 2.0). Use Version.Int64() or Version.Float64() to extract the value.
85
Version json.Number `json:"version"`
86
87
ExecutionID string `json:"execution-id"`
0 commit comments