/AWS1/IF_CWE=>DELETERULE()¶
About DeleteRule¶
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.
Method Signature¶
METHODS /AWS1/IF_CWE~DELETERULE
IMPORTING
!IV_NAME TYPE /AWS1/CWERULENAME OPTIONAL
!IV_EVENTBUSNAME TYPE /AWS1/CWEEVENTBUSNAMEORARN OPTIONAL
!IV_FORCE TYPE /AWS1/CWEBOOLEAN OPTIONAL
RAISING
/AWS1/CX_CWECONCURRENTMODEX
/AWS1/CX_CWEINTERNALEXCEPTION
/AWS1/CX_CWEMANAGEDRULEEX
/AWS1/CX_CWERESOURCENOTFOUNDEX
/AWS1/CX_CWECLIENTEXC
/AWS1/CX_CWESERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/CWERULENAME /AWS1/CWERULENAME¶
The name of the rule.
Optional arguments:¶
iv_eventbusname TYPE /AWS1/CWEEVENTBUSNAMEORARN /AWS1/CWEEVENTBUSNAMEORARN¶
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
iv_force TYPE /AWS1/CWEBOOLEAN /AWS1/CWEBOOLEAN¶
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
ForceasTrueto 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 usingDescribeRuleorListRulesand checking theManagedByfield of the response.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->deleterule(
iv_eventbusname = |string|
iv_force = ABAP_TRUE
iv_name = |string|
).