EventBridgeClient.put_targets
rboto-eventbridge==0.4.0 · Service index · Types
Model summary (excerpt): Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule. Targets are the resources that are invoked when a rule is triggered. The maximum number of entries per request is 10. Each rule can have up to five (5) targets associated with it at one time. For a list of services you can configure as targets for events, see EventBridge...
Install and imports
from rboto import EventBridgeClient
from collections.abc import Sequence
from rboto_eventbridge.types import (
PutTargetsOutput,
Target,
)
Signature
async def put_targets(
*,
rule: str,
targets: Sequence[Target],
event_bus_name: str | None = None,
) -> PutTargetsOutput: ...
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. |
targets |
Yes | The targets to update or add to 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. |
Output
PutTargetsOutput.
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[PutTargetsResultEntryOutput] | None |
Always present | PutTargetsResultEntryOutput |
| 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.
Related types
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, LimitExceededError, ManagedRuleError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.