AWS SDK Version 2 for .NET
API Reference

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.

.NET Framework 3.5
 
Deletes the specified AWS Config rule and all of its evaluation results.

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)

Syntax

C#
public abstract DeleteConfigRuleResponse DeleteConfigRule(
         DeleteConfigRuleRequest request
)

Parameters

request
Type: Amazon.ConfigService.Model.DeleteConfigRuleRequest

Container for the necessary parameters to execute the DeleteConfigRule service method.

Return Value
Type: Amazon.ConfigService.Model.DeleteConfigRuleResponse
The response from the DeleteConfigRule service method, as returned by ConfigService.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5