Amazon.CloudWatchEvents.AmazonCloudWatchEventsClient.DeleteRule C# (CSharp) Method

DeleteRule() public method

Deletes a rule. You must remove all targets from a rule using RemoveTargets before you can delete the rule.

Note: When you delete a rule, incoming events might still continue to match to the deleted rule. Please allow a short period of time for changes to take effect.

/// This exception occurs if there is concurrent modification on rule or target. /// /// This exception occurs due to unexpected causes. ///
public DeleteRule ( DeleteRuleRequest request ) : DeleteRuleResponse
request Amazon.CloudWatchEvents.Model.DeleteRuleRequest Container for the necessary parameters to execute the DeleteRule service method.
return DeleteRuleResponse
        public DeleteRuleResponse DeleteRule(DeleteRuleRequest request)
        {
            var marshaller = new DeleteRuleRequestMarshaller();
            var unmarshaller = DeleteRuleResponseUnmarshaller.Instance;

            return Invoke<DeleteRuleRequest,DeleteRuleResponse>(request, marshaller, unmarshaller);
        }