AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
AWS Config sets the state of a rule to DELETING
until the deletion is
complete. You cannot update a rule while it is in this state. If you make a PutConfigRule
request for the rule, you will receive a ResourceInUseException
.
You can check the state of a rule by using the DescribeConfigRules
request.
Namespace: Amazon.ConfigService
Assembly: AWSSDK.dll
Version: (assembly version)
public virtual DeleteConfigRuleResponse DeleteConfigRule( DeleteConfigRuleRequest request )
Container for the necessary parameters to execute the DeleteConfigRule service method.
Exception | Condition |
---|---|
NoSuchConfigRuleException | One or more AWS Config rules in the request are invalid. Verify that the rule names are correct and try again. |
ResourceInUseException | The rule is currently being deleted. Wait for a while and try again. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5