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/cloud_watch_events.py
| def put_partner_events(
self,
entries: "capo_cloudwatch_events.types.put_partner_events_request_entry_list.PutPartnerEventsRequestEntryList",
*,
config_overrides: Optional[CloudWatchEventsClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_cloudwatch_events.types.put_partner_events_request.PutPartnerEventsRequest]",
) -> OperationResponse[
"capo_cloudwatch_events.types.put_partner_events_response.PutPartnerEventsResponse"
]:
import capo_cloudwatch_events._operations.aws_events.put_partner_events
output, http_response = (
capo_cloudwatch_events._operations.aws_events.put_partner_events.put_partner_events(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|