This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services customers do not use this operation.
Parameters:
Raises:
Source code in docs_src/capo_cloudwatch_events/_services/async_cloud_watch_events.py
| async def put_partner_events(
self,
entries: "capo_cloudwatch_events.types.put_partner_events_request_entry_list.PutPartnerEventsRequestEntryList",
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
) -> "capo_cloudwatch_events.types.put_partner_events_response.PutPartnerEventsResponse":
"""<p>This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services customers do not use this operation.</p>
Args:
entries: <p>The list of events to write to the event bus.</p>
Raises:
capo_cloudwatch_events.errors.internal_exception.InternalException: <p>This exception occurs due to unexpected causes.</p>
capo_cloudwatch_events.errors.operation_disabled_exception.OperationDisabledException: <p>The operation you are attempting is not available in this region.</p>
capo_cloudwatch_events.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudwatch_events.types.put_partner_events_request.PutPartnerEventsRequest]",
) -> AsyncOperationResponse[
"capo_cloudwatch_events.types.put_partner_events_response.PutPartnerEventsResponse"
]:
import capo_cloudwatch_events._operations.aws_events.put_partner_events
(
output,
http_response,
) = await capo_cloudwatch_events._operations.aws_events.put_partner_events.async_put_partner_events(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutPartnerEvents")
)
input_: capo_cloudwatch_events.types.put_partner_events_request.PutPartnerEventsRequest = {
"entries": entries
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|