put_raw_events
async
¶
put_raw_events(
event_bus_arn: EventBusArn,
entries: PutRawEventsRequestEntryList,
*,
config_overrides: Optional[AsyncEventBridgeV2ClientConfig] = None,
schema_registry_configuration: Optional[SchemaRegistryConfiguration] = None,
deduplication_configuration: Optional[DeduplicationConfiguration] = None,
) -> PutRawEventsResponse
Publishes pre-shaped events to an event bus.
The total size of all event entries in a request must not exceed 1 MB (1,048,576 bytes), including the Data payload and the keys and values of Metadata for each entry. The limit applies to the request as a whole, not to individual entries.
If you exceed the limit, the request fails with InvalidInputException, and the service doesn't publish any of the entries in the request.
Parameters:
-
event_bus_arn(EventBusArn) –The Amazon Resource Name (ARN) that uniquely identifies an event bus.
-
entries(PutRawEventsRequestEntryList) –List of event entries to publish. Must contain at least one entry.
-
schema_registry_configuration(Optional[SchemaRegistryConfiguration], default:None) –Schema-registry settings for encoding open-format (Avro/Protobuf) events. Required for open-format entries; ignored for JSON entries. The registry is read with the caller's credentials, so the caller needs read access to the registry it references.
-
deduplication_configuration(Optional[DeduplicationConfiguration], default:None) –Request-level deduplication settings, applied to every entry in the batch.
Raises:
-
AccessDeniedException–The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
-
InternalException–The request failed because of an internal service error. Retry the request.
-
InvalidInputException–A request parameter is missing or not valid.
-
ThrottlingException–The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
-
InvalidStateException–The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
-
ResourceNotFoundException–The resource does not exist.
-
SchemaRegistryUnavailableException–The configured schema registry could not be reached. Retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridgev2/_services/async_event_bridge_v2.py
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 | |