260 260 |
|
261 261 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for InvokeWithResponseStreamEndpointParamsInterceptor {
|
262 262 | fn name(&self) -> &'static str {
|
263 263 | "InvokeWithResponseStreamEndpointParamsInterceptor"
|
264 264 | }
|
265 265 |
|
266 266 | fn read_before_execution(
|
267 267 | &self,
|
268 268 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
269 269 | '_,
|
270 270 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
271 271 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
272 272 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
273 273 | >,
|
274 274 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
275 275 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
276 276 | let _input = context
|
277 277 | .input()
|
278 278 | .downcast_ref::<InvokeWithResponseStreamInput>()
|
279 279 | .ok_or("failed to downcast to InvokeWithResponseStreamInput")?;
|
280 280 |
|
281 281 | let params = crate::config::endpoint::Params::builder()
|
282 282 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
283 283 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|
284 284 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|
285 285 | .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
|
286 286 | .build()
|
287 287 | .map_err(|err| {
|
288 288 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
289 289 | })?;
|
290 + |
|
290 291 | cfg.interceptor_state()
|
291 292 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
293 + |
|
292 294 | ::std::result::Result::Ok(())
|
293 295 | }
|
294 296 | }
|
295 297 |
|
296 298 | // The get_* functions below are generated from JMESPath expressions in the
|
297 299 | // operationContextParams trait. They target the operation's input shape.
|
298 300 |
|
299 301 | /// Error type for the `InvokeWithResponseStreamError` operation.
|
300 302 | #[non_exhaustive]
|
301 303 | #[derive(::std::fmt::Debug)]
|
302 304 | pub enum InvokeWithResponseStreamError {
|
303 305 | /// <p>Need additional permissions to configure VPC settings.</p>
|
304 306 | Ec2AccessDeniedException(crate::types::error::Ec2AccessDeniedException),
|
305 307 | /// <p>Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.</p>
|
306 308 | Ec2ThrottledException(crate::types::error::Ec2ThrottledException),
|
307 309 | /// <p>Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.</p>
|
308 310 | Ec2UnexpectedException(crate::types::error::Ec2UnexpectedException),
|
309 311 | /// <p>An error occurred when reading from or writing to a connected file system.</p>
|
310 312 | EfsioException(crate::types::error::EfsioException),
|
311 313 | /// <p>The Lambda function couldn't make a network connection to the configured file system.</p>
|
312 314 | EfsMountConnectivityException(crate::types::error::EfsMountConnectivityException),
|
313 315 | /// <p>The Lambda function couldn't mount the configured file system due to a permission or configuration issue.</p>
|
314 316 | EfsMountFailureException(crate::types::error::EfsMountFailureException),
|
315 317 | /// <p>The Lambda function made a network connection to the configured file system, but the mount operation timed out.</p>
|
316 318 | EfsMountTimeoutException(crate::types::error::EfsMountTimeoutException),
|
317 319 | /// <p>Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a>.</p>
|
318 320 | EniLimitReachedException(crate::types::error::EniLimitReachedException),
|
319 321 | /// <p>One of the parameters in the request is not valid.</p>
|
320 322 | InvalidParameterValueException(crate::types::error::InvalidParameterValueException),
|
321 323 | /// <p>The request body could not be parsed as JSON.</p>
|