File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package resources
2
2
3
3
import (
4
4
"context"
5
+ "fmt"
6
+ "strings"
5
7
6
8
"github.com/aws/aws-sdk-go-v2/aws"
7
9
"github.com/aws/aws-sdk-go-v2/service/docdb"
@@ -73,6 +75,13 @@ type DocDBParameterGroup struct {
73
75
Tags []docdbtypes.Tag
74
76
}
75
77
78
+ func (r * DocDBParameterGroup ) Filter () error {
79
+ if strings .HasPrefix (* r .Name , "default." ) {
80
+ return fmt .Errorf ("default parameter group" )
81
+ }
82
+ return nil
83
+ }
84
+
76
85
func (r * DocDBParameterGroup ) Remove (ctx context.Context ) error {
77
86
_ , err := r .svc .DeleteDBClusterParameterGroup (ctx , & docdb.DeleteDBClusterParameterGroupInput {
78
87
DBClusterParameterGroupName : r .Name ,
@@ -83,3 +92,7 @@ func (r *DocDBParameterGroup) Remove(ctx context.Context) error {
83
92
func (r * DocDBParameterGroup ) Properties () types.Properties {
84
93
return types .NewPropertiesFromStruct (r )
85
94
}
95
+
96
+ func (r * DocDBParameterGroup ) String () string {
97
+ return * r .Name
98
+ }
You can’t perform that action at this time.
0 commit comments