Skip to content

Commit

Permalink
Implement CodePipelineEventDetailExecutionResult
Browse files Browse the repository at this point in the history
  • Loading branch information
guiminyao committed Mar 22, 2023
1 parent 3dedc32 commit 27d5881
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions events/codepipeline_cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ type CodePipelineEventDetail struct {
Region string `json:"region"`

Type CodePipelineEventDetailType `json:"type,omitempty"`

ExecutionResult CodePipelineEventDetailExecutionResult `json:"execution-result,omitempty"`
}

type CodePipelineEventDetailType struct {
Expand All @@ -105,3 +107,13 @@ type CodePipelineEventDetailType struct {
// From published EventBridge schema registry this is always int64 not string as documented
Version int64 `json:"version"`
}

type CodePipelineEventDetailExecutionResult struct {
ExternalExecutionUrl string `json:"external-execution-url"`

ExternalExecutionSummary string `json:"external-execution-summary"`

ExternalExecutionID string `json:"external-execution-id"`

ErrorCode string `json:"error-code,omitempty"`
}

0 comments on commit 27d5881

Please sign in to comment.