Skip to content

EventBridgeClient.list_rule_names_by_target

rboto-eventbridge==0.4.0 · Service index · Types

Model summary (excerpt): Lists the rules for the specified target. You can see which of the rules in Amazon EventBridge can invoke a specific target in your account. The maximum number of results per page for requests is 100.

Install and imports

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

Signature

async def list_rule_names_by_target(
    *,
    target_arn: str,
    event_bus_name: str | None = None,
    next_token: str | None = None,
    limit: int | None = None,
) -> ListRuleNamesByTargetOutput: ...

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)
target_arn Yes The Amazon Resource Name (ARN) of the target resource.
event_bus_name No The name or ARN of the event bus to list rules for. If you omit this, the default event bus is used.
next_token No The token returned by a previous call, which you can use to retrieve the next set of results. The value of nextToken is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged. Using an expired pagination token results in an HTTP 400 InvalidToken error.
limit No The maximum number of results to return.

Output

ListRuleNamesByTargetOutput.

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
rule_names list[str] | None Always present —
next_token str | None Always present —

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

ListRuleNamesByTargetOutput

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

Pagination and streaming

client.paginators.list_rule_names_by_target(...) accepts the same arguments and returns AsyncIterator[ListRuleNamesByTargetOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: limit.

No output stream.

Errors

Import from rboto_eventbridge.exceptions:

InternalError, ResourceNotFoundError.

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

Service guide · Pinned model