Skip to content

update_configuration_set_event_destination

update_configuration_set_event_destination(
    configuration_set_name: __string,
    event_destination_name: __string,
    *,
    config_overrides: Optional[PinpointSMSVoiceClientConfig] = None,
    event_destination: Optional[EventDestinationDefinition] = None,
) -> UpdateConfigurationSetEventDestinationResponse

Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.

Parameters:

  • configuration_set_name (__string) –

    ConfigurationSetName

  • event_destination_name (__string) –

    EventDestinationName

Raises:

Source code in docs_src/capo_pinpoint_sms_voice/_services/pinpoint_sms_voice.py
def update_configuration_set_event_destination(
    self,
    configuration_set_name: "capo_pinpoint_sms_voice.types.__string.__string",
    event_destination_name: "capo_pinpoint_sms_voice.types.__string.__string",
    *,
    config_overrides: Optional[PinpointSMSVoiceClientConfig] = None,
    event_destination: Optional[
        "capo_pinpoint_sms_voice.types.event_destination_definition.EventDestinationDefinition"
    ] = None,
) -> "capo_pinpoint_sms_voice.types.update_configuration_set_event_destination_response.UpdateConfigurationSetEventDestinationResponse":
    """Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.

    Args:
        configuration_set_name: ConfigurationSetName
        event_destination_name: EventDestinationName

    Raises:
        capo_pinpoint_sms_voice.errors.bad_request_exception.BadRequestException: The input you provided is invalid.
        capo_pinpoint_sms_voice.errors.internal_service_error_exception.InternalServiceErrorException: The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
        capo_pinpoint_sms_voice.errors.not_found_exception.NotFoundException: The resource you attempted to access doesn't exist.
        capo_pinpoint_sms_voice.errors.too_many_requests_exception.TooManyRequestsException: You've issued too many requests to the resource. Wait a few minutes, and then try again.
        capo_pinpoint_sms_voice.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_pinpoint_sms_voice.types.update_configuration_set_event_destination_request.UpdateConfigurationSetEventDestinationRequest]",
    ) -> OperationResponse[
        "capo_pinpoint_sms_voice.types.update_configuration_set_event_destination_response.UpdateConfigurationSetEventDestinationResponse"
    ]:
        import capo_pinpoint_sms_voice._operations.pinpoint_sms_voice.update_configuration_set_event_destination

        output, http_response = (
            capo_pinpoint_sms_voice._operations.pinpoint_sms_voice.update_configuration_set_event_destination.update_configuration_set_event_destination(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateConfigurationSetEventDestination")
    )
    input_: capo_pinpoint_sms_voice.types.update_configuration_set_event_destination_request.UpdateConfigurationSetEventDestinationRequest = {
        "configuration_set_name": configuration_set_name,
        "event_destination_name": event_destination_name,
    }
    if event_destination is not None:
        input_["event_destination"] = event_destination

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output