aws-sdk-polly 1.109.0

AWS SDK for Amazon Polly
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn type_erase_result<O, E>(
    result: ::std::result::Result<O, E>,
) -> ::std::result::Result<
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
>
where
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
{
    result
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
        .map_err(::std::convert::Into::into)
}

pub fn parse_http_error_metadata(
    _response_status: u16,
    response_headers: &::aws_smithy_runtime_api::http::Headers,
    response_body: &[u8],
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
    crate::json_errors::parse_error_metadata(response_body, response_headers)
}

pub(crate) mod shape_delete_lexicon;

pub(crate) mod shape_describe_voices;

pub(crate) mod shape_get_lexicon;

pub(crate) mod shape_get_speech_synthesis_task;

pub(crate) mod shape_list_lexicons;

pub(crate) mod shape_list_speech_synthesis_tasks;

pub(crate) mod shape_put_lexicon;

pub(crate) mod shape_start_speech_synthesis_stream;

pub(crate) mod shape_start_speech_synthesis_task;

pub(crate) mod shape_synthesize_speech;

pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
    if data.is_empty() {
        b"{}"
    } else {
        data
    }
}

pub(crate) mod shape_engine_not_supported_exception;

pub(crate) mod shape_invalid_lexicon_exception;

pub(crate) mod shape_invalid_next_token_exception;

pub(crate) mod shape_invalid_s3_bucket_exception;

pub(crate) mod shape_invalid_s3_key_exception;

pub(crate) mod shape_invalid_sample_rate_exception;

pub(crate) mod shape_invalid_sns_topic_arn_exception;

pub(crate) mod shape_invalid_ssml_exception;

pub(crate) mod shape_invalid_task_id_exception;

pub(crate) mod shape_language_not_supported_exception;

pub(crate) mod shape_lexicon_not_found_exception;

pub(crate) mod shape_lexicon_size_exceeded_exception;

pub(crate) mod shape_marks_not_supported_for_format_exception;

pub(crate) mod shape_max_lexeme_length_exceeded_exception;

pub(crate) mod shape_max_lexicons_number_exceeded_exception;

pub(crate) mod shape_put_lexicon_input;

pub(crate) mod shape_service_failure_exception;

pub(crate) mod shape_service_quota_exceeded_exception;

pub(crate) mod shape_ssml_marks_not_supported_for_text_type_exception;

pub(crate) mod shape_start_speech_synthesis_stream_action_stream;

pub(crate) mod shape_start_speech_synthesis_stream_output;

pub(crate) mod shape_start_speech_synthesis_task_input;

pub(crate) mod shape_synthesis_task_not_found_exception;

pub(crate) mod shape_synthesize_speech_input;

pub(crate) mod shape_synthesize_speech_output;

pub(crate) mod shape_text_length_exceeded_exception;

pub(crate) mod shape_throttling_exception;

pub(crate) mod shape_unsupported_pls_alphabet_exception;

pub(crate) mod shape_unsupported_pls_language_exception;

pub(crate) mod shape_validation_exception;

pub fn parse_event_stream_error_metadata(
    payload: &::bytes::Bytes,
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
    crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
}

pub(crate) mod shape_close_stream_event;

pub(crate) mod shape_lexicon;

pub(crate) mod shape_lexicon_attributes;

pub(crate) mod shape_lexicon_description_list;

pub(crate) mod shape_synthesis_task;

pub(crate) mod shape_synthesis_tasks;

pub(crate) mod shape_text_event;

pub(crate) mod shape_throttling_reason_list;

pub(crate) mod shape_validation_exception_field_list;

pub(crate) mod shape_voice_list;

pub(crate) mod shape_flush_stream_configuration;

pub(crate) mod shape_lexicon_description;

pub(crate) mod shape_lexicon_name_list;

pub(crate) mod shape_speech_mark_type_list;

pub(crate) mod shape_stream_closed_event;

pub(crate) mod shape_throttling_reason;

pub(crate) mod shape_validation_exception_field;

pub(crate) mod shape_voice;

pub(crate) mod shape_engine_list;

pub(crate) mod shape_language_code_list;