Skip to content

EventBridgeClient.delete_rule

rboto-eventbridge==0.4.0 · Service index · Types

Model summary (excerpt): 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,...

Install and imports

python -m pip install "rboto[eventbridge]==0.4.0"
from rboto import EventBridgeClient

Signature

async def delete_rule(
    *,
    name: str,
    event_bus_name: str | None = None,
    force: bool | None = None,
) -> None: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The name of the rule.
event_bus_name No The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
force No 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.

Output

None.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

—

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_eventbridge.exceptions:

ConcurrentModificationError, InternalError, ManagedRuleError, ResourceNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model