File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ func RegisterSweepers() {
21
21
22
22
func sweepClusters (ctx context.Context , client * conns.AWSClient ) ([]sweep.Sweepable , error ) {
23
23
conn := client .DSQLClient (ctx )
24
- var input dsql.ListClustersInput
25
- sweepResources := make ([]sweep.Sweepable , 0 )
24
+ var sweepResources []sweep.Sweepable
26
25
26
+ var input dsql.ListClustersInput
27
27
pages := dsql .NewListClustersPaginator (conn , & input )
28
28
for pages .HasMorePages () {
29
29
page , err := pages .NextPage (ctx )
@@ -34,8 +34,9 @@ func sweepClusters(ctx context.Context, client *conns.AWSClient) ([]sweep.Sweepa
34
34
35
35
for _ , v := range page .Clusters {
36
36
sweepResources = append (sweepResources , framework .NewSweepResource (newClusterResource , client ,
37
- framework .NewAttribute (names .AttrIdentifier , aws .ToString (v .Identifier ))),
38
- )
37
+ framework .NewAttribute (names .AttrIdentifier , aws .ToString (v .Identifier )),
38
+ framework .NewAttribute (names .AttrForceDestroy , true ),
39
+ ))
39
40
}
40
41
}
41
42
You can’t perform that action at this time.
0 commit comments