File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package resources
2
2
3
3
import (
4
4
"context"
5
-
6
5
"errors"
7
6
8
7
"github.com/aws/aws-sdk-go/aws/awserr"
@@ -11,6 +10,7 @@ import (
11
10
12
11
"github.com/ekristen/libnuke/pkg/registry"
13
12
"github.com/ekristen/libnuke/pkg/resource"
13
+ "github.com/ekristen/libnuke/pkg/types"
14
14
15
15
"github.com/ekristen/aws-nuke/v3/pkg/nuke"
16
16
)
@@ -64,15 +64,19 @@ type IAMAccountSettingPasswordPolicy struct {
64
64
policy * iam.PasswordPolicy
65
65
}
66
66
67
- func (e * IAMAccountSettingPasswordPolicy ) Remove (_ context.Context ) error {
68
- _ , err := e .svc .DeleteAccountPasswordPolicy (& iam.DeleteAccountPasswordPolicyInput {})
67
+ func (r * IAMAccountSettingPasswordPolicy ) Remove (_ context.Context ) error {
68
+ _ , err := r .svc .DeleteAccountPasswordPolicy (& iam.DeleteAccountPasswordPolicyInput {})
69
69
if err != nil {
70
70
return err
71
71
}
72
72
73
73
return nil
74
74
}
75
75
76
- func (e * IAMAccountSettingPasswordPolicy ) String () string {
76
+ func (r * IAMAccountSettingPasswordPolicy ) String () string {
77
77
return "custom"
78
78
}
79
+
80
+ func (r * IAMAccountSettingPasswordPolicy ) Properties () types.Properties {
81
+ return types .NewProperties ().Set ("type" , "custom" )
82
+ }
You can’t perform that action at this time.
0 commit comments