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

EnableRule() public method

Enables a rule. If the rule does not exist, the operation fails.

Note: When you enable a rule, incoming events might not immediately start matching to a newly enabled 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. /// /// The rule does not exist. ///
public EnableRule ( EnableRuleRequest request ) : EnableRuleResponse
request Amazon.CloudWatchEvents.Model.EnableRuleRequest Container for the necessary parameters to execute the EnableRule service method.
return EnableRuleResponse
        public EnableRuleResponse EnableRule(EnableRuleRequest request)
        {
            var marshaller = new EnableRuleRequestMarshaller();
            var unmarshaller = EnableRuleResponseUnmarshaller.Instance;

            return Invoke<EnableRuleRequest,EnableRuleResponse>(request, marshaller, unmarshaller);
        }