28 28 | #[allow(unused_mut)]
|
29 29 | let mut tmp = {
|
30 30 | #[allow(unused_mut)]
|
31 31 | let mut output = crate::types::error::builders::EngineNotSupportedExceptionBuilder::default();
|
32 32 | output =
|
33 33 | crate::protocol_serde::shape_engine_not_supported_exception::de_engine_not_supported_exception_json_err(_response_body, output)
|
34 34 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
35 35 | let output = output.meta(generic);
|
36 36 | output.build()
|
37 37 | };
|
38 - | if tmp.message.is_none() {
|
39 - | tmp.message = _error_message;
|
40 - | }
|
41 38 | tmp
|
42 39 | }),
|
43 40 | "InvalidS3BucketException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidS3BucketException({
|
44 41 | #[allow(unused_mut)]
|
45 42 | let mut tmp = {
|
46 43 | #[allow(unused_mut)]
|
47 44 | let mut output = crate::types::error::builders::InvalidS3BucketExceptionBuilder::default();
|
48 45 | output = crate::protocol_serde::shape_invalid_s3_bucket_exception::de_invalid_s3_bucket_exception_json_err(_response_body, output)
|
49 46 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
50 47 | let output = output.meta(generic);
|
51 48 | output.build()
|
52 49 | };
|
53 - | if tmp.message.is_none() {
|
54 - | tmp.message = _error_message;
|
55 - | }
|
56 50 | tmp
|
57 51 | }),
|
58 52 | "InvalidS3KeyException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidS3KeyException({
|
59 53 | #[allow(unused_mut)]
|
60 54 | let mut tmp = {
|
61 55 | #[allow(unused_mut)]
|
62 56 | let mut output = crate::types::error::builders::InvalidS3KeyExceptionBuilder::default();
|
63 57 | output = crate::protocol_serde::shape_invalid_s3_key_exception::de_invalid_s3_key_exception_json_err(_response_body, output)
|
64 58 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
65 59 | let output = output.meta(generic);
|
66 60 | output.build()
|
67 61 | };
|
68 - | if tmp.message.is_none() {
|
69 - | tmp.message = _error_message;
|
70 - | }
|
71 62 | tmp
|
72 63 | }),
|
73 64 | "InvalidSampleRateException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidSampleRateException({
|
74 65 | #[allow(unused_mut)]
|
75 66 | let mut tmp = {
|
76 67 | #[allow(unused_mut)]
|
77 68 | let mut output = crate::types::error::builders::InvalidSampleRateExceptionBuilder::default();
|
78 69 | output =
|
79 70 | crate::protocol_serde::shape_invalid_sample_rate_exception::de_invalid_sample_rate_exception_json_err(_response_body, output)
|
80 71 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
81 72 | let output = output.meta(generic);
|
82 73 | output.build()
|
83 74 | };
|
84 - | if tmp.message.is_none() {
|
85 - | tmp.message = _error_message;
|
86 - | }
|
87 75 | tmp
|
88 76 | }),
|
89 77 | "InvalidSnsTopicArnException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidSnsTopicArnException({
|
90 78 | #[allow(unused_mut)]
|
91 79 | let mut tmp = {
|
92 80 | #[allow(unused_mut)]
|
93 81 | let mut output = crate::types::error::builders::InvalidSnsTopicArnExceptionBuilder::default();
|
94 82 | output =
|
95 83 | crate::protocol_serde::shape_invalid_sns_topic_arn_exception::de_invalid_sns_topic_arn_exception_json_err(_response_body, output)
|
96 84 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
97 85 | let output = output.meta(generic);
|
98 86 | output.build()
|
99 87 | };
|
100 - | if tmp.message.is_none() {
|
101 - | tmp.message = _error_message;
|
102 - | }
|
103 88 | tmp
|
104 89 | }),
|
105 90 | "InvalidSsmlException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidSsmlException({
|
106 91 | #[allow(unused_mut)]
|
107 92 | let mut tmp = {
|
108 93 | #[allow(unused_mut)]
|
109 94 | let mut output = crate::types::error::builders::InvalidSsmlExceptionBuilder::default();
|
110 95 | output = crate::protocol_serde::shape_invalid_ssml_exception::de_invalid_ssml_exception_json_err(_response_body, output)
|
111 96 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
112 97 | let output = output.meta(generic);
|
113 98 | output.build()
|
114 99 | };
|
115 - | if tmp.message.is_none() {
|
116 - | tmp.message = _error_message;
|
117 - | }
|
118 100 | tmp
|
119 101 | }),
|
120 102 | "LanguageNotSupportedException" => {
|
121 103 | crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::LanguageNotSupportedException({
|
122 104 | #[allow(unused_mut)]
|
123 105 | let mut tmp = {
|
124 106 | #[allow(unused_mut)]
|
125 107 | let mut output = crate::types::error::builders::LanguageNotSupportedExceptionBuilder::default();
|
126 108 | output = crate::protocol_serde::shape_language_not_supported_exception::de_language_not_supported_exception_json_err(
|
127 109 | _response_body,
|
128 110 | output,
|
129 111 | )
|
130 112 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
131 113 | let output = output.meta(generic);
|
132 114 | output.build()
|
133 115 | };
|
134 - | if tmp.message.is_none() {
|
135 - | tmp.message = _error_message;
|
136 - | }
|
137 116 | tmp
|
138 117 | })
|
139 118 | }
|
140 119 | "LexiconNotFoundException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::LexiconNotFoundException({
|
141 120 | #[allow(unused_mut)]
|
142 121 | let mut tmp = {
|
143 122 | #[allow(unused_mut)]
|
144 123 | let mut output = crate::types::error::builders::LexiconNotFoundExceptionBuilder::default();
|
145 124 | output = crate::protocol_serde::shape_lexicon_not_found_exception::de_lexicon_not_found_exception_json_err(_response_body, output)
|
146 125 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
147 126 | let output = output.meta(generic);
|
148 127 | output.build()
|
149 128 | };
|
150 - | if tmp.message.is_none() {
|
151 - | tmp.message = _error_message;
|
152 - | }
|
153 129 | tmp
|
154 130 | }),
|
155 131 | "MarksNotSupportedForFormatException" => {
|
156 132 | crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::MarksNotSupportedForFormatException({
|
157 133 | #[allow(unused_mut)]
|
158 134 | let mut tmp = {
|
159 135 | #[allow(unused_mut)]
|
160 136 | let mut output = crate::types::error::builders::MarksNotSupportedForFormatExceptionBuilder::default();
|
161 137 | output =
|
162 138 | crate::protocol_serde::shape_marks_not_supported_for_format_exception::de_marks_not_supported_for_format_exception_json_err(
|
163 139 | _response_body,
|
164 140 | output,
|
165 141 | )
|
166 142 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
167 143 | let output = output.meta(generic);
|
168 144 | output.build()
|
169 145 | };
|
170 - | if tmp.message.is_none() {
|
171 - | tmp.message = _error_message;
|
172 - | }
|
173 146 | tmp
|
174 147 | })
|
175 148 | }
|
176 149 | "ServiceFailureException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::ServiceFailureException({
|
177 150 | #[allow(unused_mut)]
|
178 151 | let mut tmp = {
|
179 152 | #[allow(unused_mut)]
|
180 153 | let mut output = crate::types::error::builders::ServiceFailureExceptionBuilder::default();
|
181 154 | output = crate::protocol_serde::shape_service_failure_exception::de_service_failure_exception_json_err(_response_body, output)
|
182 155 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
183 156 | let output = output.meta(generic);
|
184 157 | output.build()
|
185 158 | };
|
186 - | if tmp.message.is_none() {
|
187 - | tmp.message = _error_message;
|
188 - | }
|
189 159 | tmp
|
190 160 | }),
|
191 161 | "SsmlMarksNotSupportedForTextTypeException" => {
|
192 162 | crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::SsmlMarksNotSupportedForTextTypeException({
|
193 163 | #[allow(unused_mut)]
|
194 164 | let mut tmp = {
|
195 165 | #[allow(unused_mut)]
|
196 166 | let mut output = crate::types::error::builders::SsmlMarksNotSupportedForTextTypeExceptionBuilder::default();
|
197 167 | output = crate::protocol_serde::shape_ssml_marks_not_supported_for_text_type_exception::de_ssml_marks_not_supported_for_text_type_exception_json_err(_response_body, output).map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
198 168 | let output = output.meta(generic);
|
199 169 | output.build()
|
200 170 | };
|
201 - | if tmp.message.is_none() {
|
202 - | tmp.message = _error_message;
|
203 - | }
|
204 171 | tmp
|
205 172 | })
|
206 173 | }
|
207 174 | "TextLengthExceededException" => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::TextLengthExceededException({
|
208 175 | #[allow(unused_mut)]
|
209 176 | let mut tmp = {
|
210 177 | #[allow(unused_mut)]
|
211 178 | let mut output = crate::types::error::builders::TextLengthExceededExceptionBuilder::default();
|
212 179 | output =
|
213 180 | crate::protocol_serde::shape_text_length_exceeded_exception::de_text_length_exceeded_exception_json_err(_response_body, output)
|
214 181 | .map_err(crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::unhandled)?;
|
215 182 | let output = output.meta(generic);
|
216 183 | output.build()
|
217 184 | };
|
218 - | if tmp.message.is_none() {
|
219 - | tmp.message = _error_message;
|
220 - | }
|
221 185 | tmp
|
222 186 | }),
|
223 187 | _ => crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::generic(generic),
|
224 188 | })
|
225 189 | }
|
226 190 |
|
227 191 | #[allow(clippy::unnecessary_wraps)]
|
228 192 | pub fn de_start_speech_synthesis_task_http_response(
|
229 193 | _response_status: u16,
|
230 194 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|