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
  • Loading branch information
Muhammad-Ahmad-Rai committed May 18, 2023
1 parent 58736c8 commit 64b19e1
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 64b19e1

Please sign in to comment.