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
22
33import (
44 "context"
5+ "fmt"
6+ "strings"
57
68 "github.com/aws/aws-sdk-go-v2/aws"
79 "github.com/aws/aws-sdk-go-v2/service/docdb"
@@ -73,6 +75,13 @@ type DocDBParameterGroup struct {
7375 Tags []docdbtypes.Tag
7476}
7577
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+
7685func (r * DocDBParameterGroup ) Remove (ctx context.Context ) error {
7786 _ , err := r .svc .DeleteDBClusterParameterGroup (ctx , & docdb.DeleteDBClusterParameterGroupInput {
7887 DBClusterParameterGroupName : r .Name ,
@@ -83,3 +92,7 @@ func (r *DocDBParameterGroup) Remove(ctx context.Context) error {
8392func (r * DocDBParameterGroup ) Properties () types.Properties {
8493 return types .NewPropertiesFromStruct (r )
8594}
95+
96+ func (r * DocDBParameterGroup ) String () string {
97+ return * r .Name
98+ }
You can’t perform that action at this time.
0 commit comments