Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Disabling Remediation Configuration from configservice rules before a…
Browse files Browse the repository at this point in the history
…ttempting deletion of rule (#1001)
  • Loading branch information
Muhammad-Ahmad-Rai authored Aug 29, 2023
1 parent 36a47fe commit 7c612f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/configservice-configrules.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) {
}

func (f *ConfigServiceConfigRule) Remove() error {
f.svc.DeleteRemediationConfiguration(&configservice.DeleteRemediationConfigurationInput{
ConfigRuleName: f.configRuleName,
})

_, err := f.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{
ConfigRuleName: f.configRuleName,
Expand Down

0 comments on commit 7c612f4

Please sign in to comment.