Update the configuration of an event destination for a configuration set.
In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.
Parameters:
-
configuration_set_name
(ConfigurationSetName)
–
The name of the configuration set that contains the event destination that you want to modify.
-
event_destination_name
(EventDestinationName)
–
The name of the event destination that you want to modify.
-
event_destination
(EventDestinationDefinition)
–
An object that defines the event destination.
Raises:
Source code in docs_src/capo_pinpoint_email/_services/async_pinpoint_email.py
| async def update_configuration_set_event_destination(
self,
configuration_set_name: "capo_pinpoint_email.types.configuration_set_name.ConfigurationSetName",
event_destination_name: "capo_pinpoint_email.types.event_destination_name.EventDestinationName",
event_destination: "capo_pinpoint_email.types.event_destination_definition.EventDestinationDefinition",
*,
config_overrides: Optional[AsyncPinpointEmailClientConfig] = None,
) -> "capo_pinpoint_email.types.update_configuration_set_event_destination_response.UpdateConfigurationSetEventDestinationResponse":
"""<p>Update the configuration of an event destination for a configuration set.</p> <p>In Amazon Pinpoint, <i>events</i> include message sends, deliveries, opens, clicks, bounces, and complaints. <i>Event destinations</i> are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.</p>
Args:
configuration_set_name: <p>The name of the configuration set that contains the event destination that you want to modify.</p>
event_destination_name: <p>The name of the event destination that you want to modify.</p>
event_destination: <p>An object that defines the event destination.</p>
Raises:
capo_pinpoint_email.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_pinpoint_email.errors.not_found_exception.NotFoundException: <p>The resource you attempted to access doesn't exist.</p>
capo_pinpoint_email.errors.too_many_requests_exception.TooManyRequestsException: <p>Too many requests have been made to the operation.</p>
capo_pinpoint_email.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_pinpoint_email.types.update_configuration_set_event_destination_request.UpdateConfigurationSetEventDestinationRequest]",
) -> AsyncOperationResponse[
"capo_pinpoint_email.types.update_configuration_set_event_destination_response.UpdateConfigurationSetEventDestinationResponse"
]:
import capo_pinpoint_email._operations.amazon_pinpoint_email_service.update_configuration_set_event_destination
(
output,
http_response,
) = await capo_pinpoint_email._operations.amazon_pinpoint_email_service.update_configuration_set_event_destination.async_update_configuration_set_event_destination(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateConfigurationSetEventDestination")
)
input_: capo_pinpoint_email.types.update_configuration_set_event_destination_request.UpdateConfigurationSetEventDestinationRequest = {
"configuration_set_name": configuration_set_name,
"event_destination_name": event_destination_name,
"event_destination": event_destination,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|