/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudWatchEvents.Model { /// /// Container for the parameters to the DeleteRule operation. /// Deletes the specified rule. /// /// /// /// Before you can delete the rule, you must remove all targets, using RemoveTargets. /// /// /// /// When you delete a rule, incoming events might continue to match to the deleted rule. /// Allow a short period of time for changes to take effect. /// /// /// /// If you call delete rule multiple times for the same rule, all calls will succeed. /// When you call delete rule for a non-existent custom eventbus, ResourceNotFoundException /// is returned. /// /// /// /// Managed rules are rules created and managed by another Amazon Web Services service /// on your behalf. These rules are created by those other Amazon Web Services services /// to support functionality in those services. You can delete these rules using the Force /// option, but you should do so only if you are sure the other service is not still using /// that rule. /// /// public partial class DeleteRuleRequest : AmazonCloudWatchEventsRequest { private string _eventBusName; private bool? _force; private string _name; /// /// Gets and sets the property EventBusName. /// /// The name or ARN of the event bus associated with the rule. If you omit this, the default /// event bus is used. /// /// [AWSProperty(Min=1, Max=1600)] public string EventBusName { get { return this._eventBusName; } set { this._eventBusName = value; } } // Check to see if EventBusName property is set internal bool IsSetEventBusName() { return this._eventBusName != null; } /// /// Gets and sets the property Force. /// /// If this is a managed rule, created by an Amazon Web Services service on your behalf, /// you must specify Force as True to delete the rule. This /// parameter is ignored for rules that are not managed rules. You can check whether a /// rule is a managed rule by using DescribeRule or ListRules /// and checking the ManagedBy field of the response. /// /// public bool Force { get { return this._force.GetValueOrDefault(); } set { this._force = value; } } // Check to see if Force property is set internal bool IsSetForce() { return this._force.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the rule. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }