Skip to content

EventBridgeClient.remove_targets

rboto-eventbridge==0.4.0 · Service index · Types

Model summary (excerpt): Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked. A successful execution of RemoveTargets doesn't guarantee all targets are removed from the rule, it means that the target(s) listed in the request are removed. When you remove a target, when the associated rule triggers, removed targets might continue to be invoked. Allow...

Install and imports

python -m pip install "rboto[eventbridge]==0.4.0"
from rboto import EventBridgeClient
from collections.abc import Sequence
from rboto_eventbridge.types import (
    RemoveTargetsOutput,
)

Signature

async def remove_targets(
    *,
    rule: str,
    ids: Sequence[str],
    event_bus_name: str | None = None,
    force: bool | None = None,
) -> RemoveTargetsOutput: ...

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)
rule Yes The name of the rule.
ids Yes The IDs of the targets to remove from 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 remove targets. 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

RemoveTargetsOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
failed_entry_count int Always present —
failed_entries list[RemoveTargetsResultEntryOutput] | None Always present RemoveTargetsResultEntryOutput

| 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.

RemoveTargetsOutput

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