193 193 |
|
194 194 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
195 195 | }
|
196 196 | }
|
197 197 | #[derive(Debug)]
|
198 198 | struct ErrCollisionsEndpointParamsInterceptor;
|
199 199 |
|
200 200 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ErrCollisionsEndpointParamsInterceptor {
|
201 201 | fn name(&self) -> &'static str {
|
202 202 | "ErrCollisionsEndpointParamsInterceptor"
|
203 203 | }
|
204 204 |
|
205 205 | fn read_before_execution(
|
206 206 | &self,
|
207 207 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
208 208 | '_,
|
209 209 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
210 210 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
211 211 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
212 212 | >,
|
213 213 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
214 214 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
215 215 | let _input = context
|
216 216 | .input()
|
217 217 | .downcast_ref::<ErrCollisionsInput>()
|
218 218 | .ok_or("failed to downcast to ErrCollisionsInput")?;
|
219 219 |
|
220 220 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
221 221 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
222 222 | })?;
|
223 + |
|
223 224 | cfg.interceptor_state()
|
224 225 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
226 + |
|
225 227 | ::std::result::Result::Ok(())
|
226 228 | }
|
227 229 | }
|
228 230 |
|
229 231 | // The get_* functions below are generated from JMESPath expressions in the
|
230 232 | // operationContextParams trait. They target the operation's input shape.
|
231 233 |
|
232 234 | /// Error type for the `ErrCollisionsError` operation.
|
233 235 | #[non_exhaustive]
|
234 236 | #[derive(::std::fmt::Debug)]
|
235 237 | pub enum ErrCollisionsError {
|
236 238 | #[allow(missing_docs)] // documentation missing in model
|
237 239 | CollidingError(crate::types::error::CollidingError),
|
238 240 | /// This will be renamed to CollidingError
|
239 241 | CollidingException(crate::types::error::CollidingException),
|
240 242 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
241 243 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
242 244 | variable wildcard pattern and check `.code()`:
|
243 245 | \
|
244 246 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
245 247 | \
|
246 248 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ErrCollisionsError) for what information is available for the error.")]
|
247 249 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
248 250 | }
|
249 251 | impl ErrCollisionsError {
|
250 252 | /// Creates the `ErrCollisionsError::Unhandled` variant from any error type.
|
251 253 | pub fn unhandled(
|
252 254 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
253 255 | ) -> Self {
|
254 256 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|