23 23 | #[allow(unused_mut)]
|
24 24 | let mut output = crate::types::error::builders::CodeSigningConfigNotFoundExceptionBuilder::default();
|
25 25 | output = crate::protocol_serde::shape_code_signing_config_not_found_exception::de_code_signing_config_not_found_exception_json_err(
|
26 26 | _response_body,
|
27 27 | output,
|
28 28 | )
|
29 29 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
30 30 | let output = output.meta(generic);
|
31 31 | output.build()
|
32 32 | };
|
33 - | if tmp.message.is_none() {
|
34 - | tmp.message = _error_message;
|
35 - | }
|
36 33 | tmp
|
37 34 | }),
|
38 35 | "CodeStorageExceededException" => crate::operation::create_function::CreateFunctionError::CodeStorageExceededException({
|
39 36 | #[allow(unused_mut)]
|
40 37 | let mut tmp = {
|
41 38 | #[allow(unused_mut)]
|
42 39 | let mut output = crate::types::error::builders::CodeStorageExceededExceptionBuilder::default();
|
43 40 | output =
|
44 41 | crate::protocol_serde::shape_code_storage_exceeded_exception::de_code_storage_exceeded_exception_json_err(_response_body, output)
|
45 42 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
46 43 | let output = output.meta(generic);
|
47 44 | output.build()
|
48 45 | };
|
49 - | if tmp.message.is_none() {
|
50 - | tmp.message = _error_message;
|
51 - | }
|
52 46 | tmp
|
53 47 | }),
|
54 48 | "CodeVerificationFailedException" => crate::operation::create_function::CreateFunctionError::CodeVerificationFailedException({
|
55 49 | #[allow(unused_mut)]
|
56 50 | let mut tmp = {
|
57 51 | #[allow(unused_mut)]
|
58 52 | let mut output = crate::types::error::builders::CodeVerificationFailedExceptionBuilder::default();
|
59 53 | output = crate::protocol_serde::shape_code_verification_failed_exception::de_code_verification_failed_exception_json_err(
|
60 54 | _response_body,
|
61 55 | output,
|
62 56 | )
|
63 57 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
64 58 | let output = output.meta(generic);
|
65 59 | output.build()
|
66 60 | };
|
67 - | if tmp.message.is_none() {
|
68 - | tmp.message = _error_message;
|
69 - | }
|
70 61 | tmp
|
71 62 | }),
|
72 63 | "InvalidCodeSignatureException" => crate::operation::create_function::CreateFunctionError::InvalidCodeSignatureException({
|
73 64 | #[allow(unused_mut)]
|
74 65 | let mut tmp = {
|
75 66 | #[allow(unused_mut)]
|
76 67 | let mut output = crate::types::error::builders::InvalidCodeSignatureExceptionBuilder::default();
|
77 68 | output = crate::protocol_serde::shape_invalid_code_signature_exception::de_invalid_code_signature_exception_json_err(
|
78 69 | _response_body,
|
79 70 | output,
|
80 71 | )
|
81 72 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
82 73 | let output = output.meta(generic);
|
83 74 | output.build()
|
84 75 | };
|
85 - | if tmp.message.is_none() {
|
86 - | tmp.message = _error_message;
|
87 - | }
|
88 76 | tmp
|
89 77 | }),
|
90 78 | "InvalidParameterValueException" => crate::operation::create_function::CreateFunctionError::InvalidParameterValueException({
|
91 79 | #[allow(unused_mut)]
|
92 80 | let mut tmp = {
|
93 81 | #[allow(unused_mut)]
|
94 82 | let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default();
|
95 83 | output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err(
|
96 84 | _response_body,
|
97 85 | output,
|
98 86 | )
|
99 87 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
100 88 | let output = output.meta(generic);
|
101 89 | output.build()
|
102 90 | };
|
103 - | if tmp.message.is_none() {
|
104 - | tmp.message = _error_message;
|
105 - | }
|
106 91 | tmp
|
107 92 | }),
|
108 93 | "ResourceConflictException" => crate::operation::create_function::CreateFunctionError::ResourceConflictException({
|
109 94 | #[allow(unused_mut)]
|
110 95 | let mut tmp = {
|
111 96 | #[allow(unused_mut)]
|
112 97 | let mut output = crate::types::error::builders::ResourceConflictExceptionBuilder::default();
|
113 98 | output = crate::protocol_serde::shape_resource_conflict_exception::de_resource_conflict_exception_json_err(_response_body, output)
|
114 99 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
115 100 | let output = output.meta(generic);
|
116 101 | output.build()
|
117 102 | };
|
118 - | if tmp.message.is_none() {
|
119 - | tmp.message = _error_message;
|
120 - | }
|
121 103 | tmp
|
122 104 | }),
|
123 105 | "ResourceNotFoundException" => crate::operation::create_function::CreateFunctionError::ResourceNotFoundException({
|
124 106 | #[allow(unused_mut)]
|
125 107 | let mut tmp = {
|
126 108 | #[allow(unused_mut)]
|
127 109 | let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default();
|
128 110 | output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
|
129 111 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
130 112 | let output = output.meta(generic);
|
131 113 | output.build()
|
132 114 | };
|
133 - | if tmp.message.is_none() {
|
134 - | tmp.message = _error_message;
|
135 - | }
|
136 115 | tmp
|
137 116 | }),
|
138 117 | "ServiceException" => crate::operation::create_function::CreateFunctionError::ServiceException({
|
139 118 | #[allow(unused_mut)]
|
140 119 | let mut tmp = {
|
141 120 | #[allow(unused_mut)]
|
142 121 | let mut output = crate::types::error::builders::ServiceExceptionBuilder::default();
|
143 122 | output = crate::protocol_serde::shape_service_exception::de_service_exception_json_err(_response_body, output)
|
144 123 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
145 124 | let output = output.meta(generic);
|
146 125 | output.build()
|
147 126 | };
|
148 - | if tmp.message.is_none() {
|
149 - | tmp.message = _error_message;
|
150 - | }
|
151 127 | tmp
|
152 128 | }),
|
153 129 | "TooManyRequestsException" => crate::operation::create_function::CreateFunctionError::TooManyRequestsException({
|
154 130 | #[allow(unused_mut)]
|
155 131 | let mut tmp = {
|
156 132 | #[allow(unused_mut)]
|
157 133 | let mut output = crate::types::error::builders::TooManyRequestsExceptionBuilder::default();
|
158 134 | output = crate::protocol_serde::shape_too_many_requests_exception::de_too_many_requests_exception_json_err(_response_body, output)
|
159 135 | .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?;
|
160 136 | output = output.set_retry_after_seconds(
|
161 137 | crate::protocol_serde::shape_too_many_requests_exception::de_retry_after_seconds_header(_response_headers).map_err(|_| {
|
162 138 | crate::operation::create_function::CreateFunctionError::unhandled(
|
163 139 | "Failed to parse retryAfterSeconds from header `Retry-After",
|
164 140 | )
|
165 141 | })?,
|
166 142 | );
|
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 | _ => crate::operation::create_function::CreateFunctionError::generic(generic),
|
176 149 | })
|
177 150 | }
|
178 151 |
|
179 152 | #[allow(clippy::unnecessary_wraps)]
|
180 153 | pub fn de_create_function_http_response(
|
181 154 | _response_status: u16,
|
182 155 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|