Skip to content

Commit ec3fa04

Browse files
Update codepipeline-custom-action-types.go
Adding needed provider and version.
1 parent 96f7e14 commit ec3fa04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

resources/codepipeline-custom-action-types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type CodePipelineCustomActionType struct {
1414
owner *string
1515
category *string
1616
provider *string
17+
version *string
1718
}
1819

1920
func init() {
@@ -38,6 +39,7 @@ func ListCodePipelineCustomActionTypes(sess *session.Session) ([]Resource, error
3839
owner: actionTypes.Id.Owner,
3940
category: actionTypes.Id.Category,
4041
provider: actionTypes.Id.Provider,
42+
version: actionTypes.Id.Version,
4143
})
4244
}
4345

@@ -61,6 +63,8 @@ func (f *CodePipelineCustomActionType) Filter() error {
6163
func (f *CodePipelineCustomActionType) Remove() error {
6264
_, err := f.svc.DeleteCustomActionType(&codepipeline.DeleteCustomActionTypeInput{
6365
Category: f.category,
66+
Provider: f.provider,
67+
Version: f.version,
6468
})
6569

6670
return err
@@ -71,6 +75,7 @@ func (f *CodePipelineCustomActionType) Properties() types.Properties {
7175
properties.Set("Category", f.category)
7276
properties.Set("Owner", f.owner)
7377
properties.Set("Provider", f.provider)
78+
properties.Set("Version", f.version)
7479
return properties
7580
}
7681

0 commit comments

Comments
 (0)