We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38d7c50 + 80ed3c5 commit 5949102Copy full SHA for 5949102
resources/sns-subscription.go
@@ -68,6 +68,13 @@ type SNSSubscription struct {
68
TopicARN *string
69
}
70
71
+func (r *SNSSubscription) Filter() error {
72
+ if *r.ARN == "Deleted" {
73
+ return fmt.Errorf("subscription %s is already deleted", *r.ARN)
74
+ }
75
+ return nil
76
+}
77
+
78
func (r *SNSSubscription) Remove(_ context.Context) error {
79
_, err := r.svc.Unsubscribe(&sns.UnsubscribeInput{
80
SubscriptionArn: r.ARN,
0 commit comments