You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudWatchEvents::Types::DeleteRuleRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchEvents::Types::DeleteRuleRequest
- Defined in:
- (unknown)
Overview
When passing DeleteRuleRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
name: "RuleName", # required
event_bus_name: "EventBusNameOrArn",
force: false,
}
Instance Attribute Summary collapse
-
#event_bus_name ⇒ String
The name or ARN of the event bus associated with the rule.
-
#force ⇒ Boolean
If this is a managed rule, created by an AWS service on your behalf, you must specify
ForceasTrueto delete the rule. -
#name ⇒ String
The name of the rule.
Instance Attribute Details
#event_bus_name ⇒ String
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
#force ⇒ Boolean
If this is a managed rule, created by an AWS 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.
#name ⇒ String
The name of the rule.