Skip to main content

aws_sdk_lambda/operation/
invoke_with_response_stream.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `InvokeWithResponseStream`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct InvokeWithResponseStream;
6impl InvokeWithResponseStream {
7    /// Creates a new `InvokeWithResponseStream`
8    pub fn new() -> Self {
9        Self
10    }
11    pub(crate) async fn orchestrate(
12        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13        input: crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput,
14    ) -> ::std::result::Result<
15        crate::operation::invoke_with_response_stream::InvokeWithResponseStreamOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError,
18            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19        >,
20    > {
21        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
22            ::aws_smithy_runtime_api::client::interceptors::context::Error,
23            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
24        >| {
25            err.map_service_error(|err| {
26                err.downcast::<crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError>()
27                    .expect("correct error type")
28            })
29        };
30        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
31            .await
32            .map_err(map_err)?;
33        let output = context.finalize().map_err(map_err)?;
34        ::std::result::Result::Ok(
35            output
36                .downcast::<crate::operation::invoke_with_response_stream::InvokeWithResponseStreamOutput>()
37                .expect("correct output type"),
38        )
39    }
40
41    pub(crate) async fn orchestrate_with_stop_point(
42        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
43        input: crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput,
44        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
45    ) -> ::std::result::Result<
46        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
47        ::aws_smithy_runtime_api::client::result::SdkError<
48            ::aws_smithy_runtime_api::client::interceptors::context::Error,
49            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
50        >,
51    > {
52        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
53        use ::tracing::Instrument;
54        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Lambda", "InvokeWithResponseStream", input, runtime_plugins, stop_point)
55            // Create a parent span for the entire operation. Includes a random, internal-only,
56            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
57            .instrument(::tracing::debug_span!(
58                "Lambda.InvokeWithResponseStream",
59                "rpc.service" = "Lambda",
60                "rpc.method" = "InvokeWithResponseStream",
61                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
62                "rpc.system" = "aws-api",
63            ))
64            .await
65    }
66
67    pub(crate) fn operation_runtime_plugins(
68        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
69        client_config: &crate::config::Config,
70        config_override: ::std::option::Option<crate::config::Builder>,
71    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
72        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
73
74        if let ::std::option::Option::Some(config_override) = config_override {
75            for plugin in config_override.runtime_plugins.iter().cloned() {
76                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
77            }
78            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
79                config_override,
80                client_config.config.clone(),
81                &client_config.runtime_components,
82            ));
83        }
84        runtime_plugins
85    }
86}
87impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for InvokeWithResponseStream {
88    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
89        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("InvokeWithResponseStream");
90
91        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
92            InvokeWithResponseStreamRequestSerializer,
93        ));
94        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
95            InvokeWithResponseStreamResponseDeserializer,
96        ));
97
98        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
99            crate::config::auth::Params::builder()
100                .operation_name("InvokeWithResponseStream")
101                .build()
102                .expect("required fields set"),
103        ));
104
105        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
106        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
107            "InvokeWithResponseStream",
108            "Lambda",
109        ));
110        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
111        signing_options.double_uri_encode = true;
112        signing_options.content_sha256_header = false;
113        signing_options.normalize_uri_path = true;
114        signing_options.payload_override = None;
115
116        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
117            signing_options,
118            ..::std::default::Default::default()
119        });
120
121        ::std::option::Option::Some(cfg.freeze())
122    }
123
124    fn runtime_components(
125        &self,
126        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
127    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
128        #[allow(unused_mut)]
129        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("InvokeWithResponseStream")
130            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
131                InvokeWithResponseStreamEndpointParamsInterceptor,
132            ))
133            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
134                crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError,
135            >::new())
136            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
137                crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError,
138            >::new())
139            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
140                crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError,
141            >::new());
142
143        ::std::borrow::Cow::Owned(rcb)
144    }
145}
146
147#[derive(Debug)]
148struct InvokeWithResponseStreamResponseDeserializer;
149impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for InvokeWithResponseStreamResponseDeserializer {
150    fn deserialize_streaming(
151        &self,
152        response: &mut ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
153    ) -> ::std::option::Option<::aws_smithy_runtime_api::client::interceptors::context::OutputOrError> {
154        #[allow(unused_mut)]
155        let mut force_error = false;
156        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
157
158        // If this is an error, defer to the non-streaming parser
159        if (!response.status().is_success() && response.status().as_u16() != 200) || force_error {
160            return ::std::option::Option::None;
161        }
162        ::std::option::Option::Some(crate::protocol_serde::type_erase_result(
163            crate::protocol_serde::shape_invoke_with_response_stream::de_invoke_with_response_stream_http_response(response),
164        ))
165    }
166
167    fn deserialize_nonstreaming(
168        &self,
169        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
170    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
171        // For streaming operations, we only hit this case if its an error
172        let body = response.body().bytes().expect("body loaded");
173        crate::protocol_serde::type_erase_result(
174            crate::protocol_serde::shape_invoke_with_response_stream::de_invoke_with_response_stream_http_error(
175                response.status().as_u16(),
176                response.headers(),
177                body,
178            ),
179        )
180    }
181}
182#[derive(Debug)]
183struct InvokeWithResponseStreamRequestSerializer;
184impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for InvokeWithResponseStreamRequestSerializer {
185    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
186    fn serialize_input(
187        &self,
188        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
189        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
190    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
191        let input = input
192            .downcast::<crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput>()
193            .expect("correct type");
194        let _header_serialization_settings = _cfg
195            .load::<crate::serialization_settings::HeaderSerializationSettings>()
196            .cloned()
197            .unwrap_or_default();
198        let mut request_builder = {
199            #[allow(clippy::uninlined_format_args)]
200            fn uri_base(
201                _input: &crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput,
202                output: &mut ::std::string::String,
203            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
204                use ::std::fmt::Write as _;
205                let input_1 = &_input.function_name;
206                let input_1 = input_1
207                    .as_ref()
208                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
209                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
210                if function_name.is_empty() {
211                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
212                        "function_name",
213                        "cannot be empty or unset",
214                    ));
215                }
216                ::std::write!(
217                    output,
218                    "/2021-11-15/functions/{FunctionName}/response-streaming-invocations",
219                    FunctionName = function_name
220                )
221                .expect("formatting should succeed");
222                ::std::result::Result::Ok(())
223            }
224            fn uri_query(
225                _input: &crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput,
226                mut output: &mut ::std::string::String,
227            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
228                let mut query = ::aws_smithy_http::query::Writer::new(output);
229                if let ::std::option::Option::Some(inner_2) = &_input.qualifier {
230                    {
231                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
232                    }
233                }
234                ::std::result::Result::Ok(())
235            }
236            #[allow(clippy::unnecessary_wraps)]
237            fn update_http_builder(
238                input: &crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput,
239                builder: ::http_1x::request::Builder,
240            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
241                let mut uri = ::std::string::String::new();
242                uri_base(input, &mut uri)?;
243                uri_query(input, &mut uri)?;
244                let builder = crate::protocol_serde::shape_invoke_with_response_stream::ser_invoke_with_response_stream_headers(input, builder)?;
245                ::std::result::Result::Ok(builder.method("POST").uri(uri))
246            }
247            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
248            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/octet-stream");
249            builder
250        };
251        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_invoke_with_response_stream_input::ser_payload_http_payload(
252            input.payload,
253        )?);
254        if let Some(content_length) = body.content_length() {
255            let content_length = content_length.to_string();
256            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
257        }
258        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
259    }
260}
261#[derive(Debug)]
262struct InvokeWithResponseStreamEndpointParamsInterceptor;
263
264#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
265impl ::aws_smithy_runtime_api::client::interceptors::Intercept for InvokeWithResponseStreamEndpointParamsInterceptor {
266    fn name(&self) -> &'static str {
267        "InvokeWithResponseStreamEndpointParamsInterceptor"
268    }
269
270    fn read_before_execution(
271        &self,
272        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
273            '_,
274            ::aws_smithy_runtime_api::client::interceptors::context::Input,
275            ::aws_smithy_runtime_api::client::interceptors::context::Output,
276            ::aws_smithy_runtime_api::client::interceptors::context::Error,
277        >,
278        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
279    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
280        let _input = context
281            .input()
282            .downcast_ref::<InvokeWithResponseStreamInput>()
283            .ok_or("failed to downcast to InvokeWithResponseStreamInput")?;
284
285        let params = crate::config::endpoint::Params::builder()
286            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
287            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
288            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
289            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
290            .build()
291            .map_err(|err| {
292                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
293            })?;
294        cfg.interceptor_state()
295            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
296        ::std::result::Result::Ok(())
297    }
298}
299
300// The get_* functions below are generated from JMESPath expressions in the
301// operationContextParams trait. They target the operation's input shape.
302
303/// Error type for the `InvokeWithResponseStreamError` operation.
304#[non_exhaustive]
305#[derive(::std::fmt::Debug)]
306pub enum InvokeWithResponseStreamError {
307    /// <p>Need additional permissions to configure VPC settings.</p>
308    Ec2AccessDeniedException(crate::types::error::Ec2AccessDeniedException),
309    /// <p>Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.</p>
310    Ec2ThrottledException(crate::types::error::Ec2ThrottledException),
311    /// <p>Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.</p>
312    Ec2UnexpectedException(crate::types::error::Ec2UnexpectedException),
313    /// <p>An error occurred when reading from or writing to a connected file system.</p>
314    EfsioException(crate::types::error::EfsioException),
315    /// <p>The Lambda function couldn't make a network connection to the configured file system.</p>
316    EfsMountConnectivityException(crate::types::error::EfsMountConnectivityException),
317    /// <p>The Lambda function couldn't mount the configured file system due to a permission or configuration issue.</p>
318    EfsMountFailureException(crate::types::error::EfsMountFailureException),
319    /// <p>The Lambda function made a network connection to the configured file system, but the mount operation timed out.</p>
320    EfsMountTimeoutException(crate::types::error::EfsMountTimeoutException),
321    /// <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>
322    EniLimitReachedException(crate::types::error::EniLimitReachedException),
323    /// <p>One of the parameters in the request is not valid.</p>
324    InvalidParameterValueException(crate::types::error::InvalidParameterValueException),
325    /// <p>The request body could not be parsed as JSON, or a request header is invalid. For example, the 'x-amzn-RequestId' header is not a valid UUID string.</p>
326    InvalidRequestContentException(crate::types::error::InvalidRequestContentException),
327    /// <p>The runtime or runtime version specified is not supported.</p>
328    InvalidRuntimeException(crate::types::error::InvalidRuntimeException),
329    /// <p>The security group ID provided in the Lambda function VPC configuration is not valid.</p>
330    InvalidSecurityGroupIdException(crate::types::error::InvalidSecurityGroupIdException),
331    /// <p>The subnet ID provided in the Lambda function VPC configuration is not valid.</p>
332    InvalidSubnetIdException(crate::types::error::InvalidSubnetIdException),
333    /// <p>Lambda could not unzip the deployment package.</p>
334    InvalidZipFileException(crate::types::error::InvalidZipFileException),
335    /// <p>Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.</p>
336    KmsAccessDeniedException(crate::types::error::KmsAccessDeniedException),
337    /// <p>Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.</p>
338    KmsDisabledException(crate::types::error::KmsDisabledException),
339    /// <p>Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.</p>
340    KmsInvalidStateException(crate::types::error::KmsInvalidStateException),
341    /// <p>Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.</p>
342    KmsNotFoundException(crate::types::error::KmsNotFoundException),
343    /// <p>The function has no published versions available.</p>
344    NoPublishedVersionException(crate::types::error::NoPublishedVersionException),
345    /// <p>Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.</p>
346    RecursiveInvocationException(crate::types::error::RecursiveInvocationException),
347    /// <p>The request payload exceeded the <code>Invoke</code> request body JSON input quota. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a>.</p>
348    RequestTooLargeException(crate::types::error::RequestTooLargeException),
349    /// <p>The resource already exists, or another operation is in progress.</p>
350    ResourceConflictException(crate::types::error::ResourceConflictException),
351    /// <p>The resource specified in the request does not exist.</p>
352    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
353    /// <p>The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.</p>
354    ResourceNotReadyException(crate::types::error::ResourceNotReadyException),
355    /// <p>The Lambda function couldn't make a network connection to the configured S3 Files access point.</p>
356    S3FilesMountConnectivityException(crate::types::error::S3FilesMountConnectivityException),
357    /// <p>The Lambda function couldn't mount the configured S3 Files access point due to a permission or configuration issue.</p>
358    S3FilesMountFailureException(crate::types::error::S3FilesMountFailureException),
359    /// <p>The Lambda function made a network connection to the configured S3 Files access point, but the mount operation timed out.</p>
360    S3FilesMountTimeoutException(crate::types::error::S3FilesMountTimeoutException),
361    /// <p>The request payload exceeded the maximum allowed size for serialized request entities.</p>
362    SerializedRequestEntityTooLargeException(crate::types::error::SerializedRequestEntityTooLargeException),
363    /// <p>The Lambda service encountered an internal error.</p>
364    ServiceException(crate::types::error::ServiceException),
365    /// <p>The <code>afterRestore()</code> <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html">runtime hook</a> encountered an error. For more information, check the Amazon CloudWatch logs.</p>
366    SnapStartException(crate::types::error::SnapStartException),
367    /// <p>Lambda is initializing your function. You can invoke the function when the <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">function state</a> becomes <code>Active</code>.</p>
368    SnapStartNotReadyException(crate::types::error::SnapStartNotReadyException),
369    /// <p>Lambda couldn't restore the snapshot within the timeout limit.</p>
370    SnapStartTimeoutException(crate::types::error::SnapStartTimeoutException),
371    /// <p>Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.</p>
372    SubnetIpAddressLimitReachedException(crate::types::error::SubnetIpAddressLimitReachedException),
373    /// <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
374    TooManyRequestsException(crate::types::error::TooManyRequestsException),
375    /// <p>The content type of the <code>Invoke</code> request body is not JSON.</p>
376    UnsupportedMediaTypeException(crate::types::error::UnsupportedMediaTypeException),
377    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
378    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
379    variable wildcard pattern and check `.code()`:
380     \
381    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
382     \
383    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-InvokeWithResponseStreamError) for what information is available for the error.")]
384    Unhandled(crate::error::sealed_unhandled::Unhandled),
385}
386impl InvokeWithResponseStreamError {
387    /// Creates the `InvokeWithResponseStreamError::Unhandled` variant from any error type.
388    pub fn unhandled(
389        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
390    ) -> Self {
391        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
392            source: err.into(),
393            meta: ::std::default::Default::default(),
394        })
395    }
396
397    /// Creates the `InvokeWithResponseStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
398    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
399        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
400            source: err.clone().into(),
401            meta: err,
402        })
403    }
404    ///
405    /// Returns error metadata, which includes the error code, message,
406    /// request ID, and potentially additional information.
407    ///
408    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
409        match self {
410            Self::Ec2AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
411            Self::Ec2ThrottledException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
412            Self::Ec2UnexpectedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
413            Self::EfsioException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
414            Self::EfsMountConnectivityException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
415            Self::EfsMountFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
416            Self::EfsMountTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
417            Self::EniLimitReachedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
418            Self::InvalidParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
419            Self::InvalidRequestContentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
420            Self::InvalidRuntimeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
421            Self::InvalidSecurityGroupIdException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
422            Self::InvalidSubnetIdException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
423            Self::InvalidZipFileException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
424            Self::KmsAccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
425            Self::KmsDisabledException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
426            Self::KmsInvalidStateException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
427            Self::KmsNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
428            Self::NoPublishedVersionException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
429            Self::RecursiveInvocationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
430            Self::RequestTooLargeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
431            Self::ResourceConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
432            Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
433            Self::ResourceNotReadyException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
434            Self::S3FilesMountConnectivityException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
435            Self::S3FilesMountFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
436            Self::S3FilesMountTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
437            Self::SerializedRequestEntityTooLargeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
438            Self::ServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
439            Self::SnapStartException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
440            Self::SnapStartNotReadyException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
441            Self::SnapStartTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
442            Self::SubnetIpAddressLimitReachedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
443            Self::TooManyRequestsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
444            Self::UnsupportedMediaTypeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
445            Self::Unhandled(e) => &e.meta,
446        }
447    }
448    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::Ec2AccessDeniedException`.
449    pub fn is_ec2_access_denied_exception(&self) -> bool {
450        matches!(self, Self::Ec2AccessDeniedException(_))
451    }
452    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::Ec2ThrottledException`.
453    pub fn is_ec2_throttled_exception(&self) -> bool {
454        matches!(self, Self::Ec2ThrottledException(_))
455    }
456    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::Ec2UnexpectedException`.
457    pub fn is_ec2_unexpected_exception(&self) -> bool {
458        matches!(self, Self::Ec2UnexpectedException(_))
459    }
460    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::EfsioException`.
461    pub fn is_efsio_exception(&self) -> bool {
462        matches!(self, Self::EfsioException(_))
463    }
464    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::EfsMountConnectivityException`.
465    pub fn is_efs_mount_connectivity_exception(&self) -> bool {
466        matches!(self, Self::EfsMountConnectivityException(_))
467    }
468    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::EfsMountFailureException`.
469    pub fn is_efs_mount_failure_exception(&self) -> bool {
470        matches!(self, Self::EfsMountFailureException(_))
471    }
472    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::EfsMountTimeoutException`.
473    pub fn is_efs_mount_timeout_exception(&self) -> bool {
474        matches!(self, Self::EfsMountTimeoutException(_))
475    }
476    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::EniLimitReachedException`.
477    pub fn is_eni_limit_reached_exception(&self) -> bool {
478        matches!(self, Self::EniLimitReachedException(_))
479    }
480    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::InvalidParameterValueException`.
481    pub fn is_invalid_parameter_value_exception(&self) -> bool {
482        matches!(self, Self::InvalidParameterValueException(_))
483    }
484    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::InvalidRequestContentException`.
485    pub fn is_invalid_request_content_exception(&self) -> bool {
486        matches!(self, Self::InvalidRequestContentException(_))
487    }
488    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::InvalidRuntimeException`.
489    pub fn is_invalid_runtime_exception(&self) -> bool {
490        matches!(self, Self::InvalidRuntimeException(_))
491    }
492    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::InvalidSecurityGroupIdException`.
493    pub fn is_invalid_security_group_id_exception(&self) -> bool {
494        matches!(self, Self::InvalidSecurityGroupIdException(_))
495    }
496    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::InvalidSubnetIdException`.
497    pub fn is_invalid_subnet_id_exception(&self) -> bool {
498        matches!(self, Self::InvalidSubnetIdException(_))
499    }
500    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::InvalidZipFileException`.
501    pub fn is_invalid_zip_file_exception(&self) -> bool {
502        matches!(self, Self::InvalidZipFileException(_))
503    }
504    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::KmsAccessDeniedException`.
505    pub fn is_kms_access_denied_exception(&self) -> bool {
506        matches!(self, Self::KmsAccessDeniedException(_))
507    }
508    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::KmsDisabledException`.
509    pub fn is_kms_disabled_exception(&self) -> bool {
510        matches!(self, Self::KmsDisabledException(_))
511    }
512    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::KmsInvalidStateException`.
513    pub fn is_kms_invalid_state_exception(&self) -> bool {
514        matches!(self, Self::KmsInvalidStateException(_))
515    }
516    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::KmsNotFoundException`.
517    pub fn is_kms_not_found_exception(&self) -> bool {
518        matches!(self, Self::KmsNotFoundException(_))
519    }
520    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::NoPublishedVersionException`.
521    pub fn is_no_published_version_exception(&self) -> bool {
522        matches!(self, Self::NoPublishedVersionException(_))
523    }
524    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::RecursiveInvocationException`.
525    pub fn is_recursive_invocation_exception(&self) -> bool {
526        matches!(self, Self::RecursiveInvocationException(_))
527    }
528    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::RequestTooLargeException`.
529    pub fn is_request_too_large_exception(&self) -> bool {
530        matches!(self, Self::RequestTooLargeException(_))
531    }
532    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::ResourceConflictException`.
533    pub fn is_resource_conflict_exception(&self) -> bool {
534        matches!(self, Self::ResourceConflictException(_))
535    }
536    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::ResourceNotFoundException`.
537    pub fn is_resource_not_found_exception(&self) -> bool {
538        matches!(self, Self::ResourceNotFoundException(_))
539    }
540    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::ResourceNotReadyException`.
541    pub fn is_resource_not_ready_exception(&self) -> bool {
542        matches!(self, Self::ResourceNotReadyException(_))
543    }
544    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::S3FilesMountConnectivityException`.
545    pub fn is_s3_files_mount_connectivity_exception(&self) -> bool {
546        matches!(self, Self::S3FilesMountConnectivityException(_))
547    }
548    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::S3FilesMountFailureException`.
549    pub fn is_s3_files_mount_failure_exception(&self) -> bool {
550        matches!(self, Self::S3FilesMountFailureException(_))
551    }
552    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::S3FilesMountTimeoutException`.
553    pub fn is_s3_files_mount_timeout_exception(&self) -> bool {
554        matches!(self, Self::S3FilesMountTimeoutException(_))
555    }
556    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::SerializedRequestEntityTooLargeException`.
557    pub fn is_serialized_request_entity_too_large_exception(&self) -> bool {
558        matches!(self, Self::SerializedRequestEntityTooLargeException(_))
559    }
560    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::ServiceException`.
561    pub fn is_service_exception(&self) -> bool {
562        matches!(self, Self::ServiceException(_))
563    }
564    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::SnapStartException`.
565    pub fn is_snap_start_exception(&self) -> bool {
566        matches!(self, Self::SnapStartException(_))
567    }
568    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::SnapStartNotReadyException`.
569    pub fn is_snap_start_not_ready_exception(&self) -> bool {
570        matches!(self, Self::SnapStartNotReadyException(_))
571    }
572    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::SnapStartTimeoutException`.
573    pub fn is_snap_start_timeout_exception(&self) -> bool {
574        matches!(self, Self::SnapStartTimeoutException(_))
575    }
576    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::SubnetIpAddressLimitReachedException`.
577    pub fn is_subnet_ip_address_limit_reached_exception(&self) -> bool {
578        matches!(self, Self::SubnetIpAddressLimitReachedException(_))
579    }
580    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::TooManyRequestsException`.
581    pub fn is_too_many_requests_exception(&self) -> bool {
582        matches!(self, Self::TooManyRequestsException(_))
583    }
584    /// Returns `true` if the error kind is `InvokeWithResponseStreamError::UnsupportedMediaTypeException`.
585    pub fn is_unsupported_media_type_exception(&self) -> bool {
586        matches!(self, Self::UnsupportedMediaTypeException(_))
587    }
588}
589impl ::std::error::Error for InvokeWithResponseStreamError {
590    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
591        match self {
592            Self::Ec2AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
593            Self::Ec2ThrottledException(_inner) => ::std::option::Option::Some(_inner),
594            Self::Ec2UnexpectedException(_inner) => ::std::option::Option::Some(_inner),
595            Self::EfsioException(_inner) => ::std::option::Option::Some(_inner),
596            Self::EfsMountConnectivityException(_inner) => ::std::option::Option::Some(_inner),
597            Self::EfsMountFailureException(_inner) => ::std::option::Option::Some(_inner),
598            Self::EfsMountTimeoutException(_inner) => ::std::option::Option::Some(_inner),
599            Self::EniLimitReachedException(_inner) => ::std::option::Option::Some(_inner),
600            Self::InvalidParameterValueException(_inner) => ::std::option::Option::Some(_inner),
601            Self::InvalidRequestContentException(_inner) => ::std::option::Option::Some(_inner),
602            Self::InvalidRuntimeException(_inner) => ::std::option::Option::Some(_inner),
603            Self::InvalidSecurityGroupIdException(_inner) => ::std::option::Option::Some(_inner),
604            Self::InvalidSubnetIdException(_inner) => ::std::option::Option::Some(_inner),
605            Self::InvalidZipFileException(_inner) => ::std::option::Option::Some(_inner),
606            Self::KmsAccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
607            Self::KmsDisabledException(_inner) => ::std::option::Option::Some(_inner),
608            Self::KmsInvalidStateException(_inner) => ::std::option::Option::Some(_inner),
609            Self::KmsNotFoundException(_inner) => ::std::option::Option::Some(_inner),
610            Self::NoPublishedVersionException(_inner) => ::std::option::Option::Some(_inner),
611            Self::RecursiveInvocationException(_inner) => ::std::option::Option::Some(_inner),
612            Self::RequestTooLargeException(_inner) => ::std::option::Option::Some(_inner),
613            Self::ResourceConflictException(_inner) => ::std::option::Option::Some(_inner),
614            Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
615            Self::ResourceNotReadyException(_inner) => ::std::option::Option::Some(_inner),
616            Self::S3FilesMountConnectivityException(_inner) => ::std::option::Option::Some(_inner),
617            Self::S3FilesMountFailureException(_inner) => ::std::option::Option::Some(_inner),
618            Self::S3FilesMountTimeoutException(_inner) => ::std::option::Option::Some(_inner),
619            Self::SerializedRequestEntityTooLargeException(_inner) => ::std::option::Option::Some(_inner),
620            Self::ServiceException(_inner) => ::std::option::Option::Some(_inner),
621            Self::SnapStartException(_inner) => ::std::option::Option::Some(_inner),
622            Self::SnapStartNotReadyException(_inner) => ::std::option::Option::Some(_inner),
623            Self::SnapStartTimeoutException(_inner) => ::std::option::Option::Some(_inner),
624            Self::SubnetIpAddressLimitReachedException(_inner) => ::std::option::Option::Some(_inner),
625            Self::TooManyRequestsException(_inner) => ::std::option::Option::Some(_inner),
626            Self::UnsupportedMediaTypeException(_inner) => ::std::option::Option::Some(_inner),
627            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
628        }
629    }
630}
631impl ::std::fmt::Display for InvokeWithResponseStreamError {
632    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
633        match self {
634            Self::Ec2AccessDeniedException(_inner) => _inner.fmt(f),
635            Self::Ec2ThrottledException(_inner) => _inner.fmt(f),
636            Self::Ec2UnexpectedException(_inner) => _inner.fmt(f),
637            Self::EfsioException(_inner) => _inner.fmt(f),
638            Self::EfsMountConnectivityException(_inner) => _inner.fmt(f),
639            Self::EfsMountFailureException(_inner) => _inner.fmt(f),
640            Self::EfsMountTimeoutException(_inner) => _inner.fmt(f),
641            Self::EniLimitReachedException(_inner) => _inner.fmt(f),
642            Self::InvalidParameterValueException(_inner) => _inner.fmt(f),
643            Self::InvalidRequestContentException(_inner) => _inner.fmt(f),
644            Self::InvalidRuntimeException(_inner) => _inner.fmt(f),
645            Self::InvalidSecurityGroupIdException(_inner) => _inner.fmt(f),
646            Self::InvalidSubnetIdException(_inner) => _inner.fmt(f),
647            Self::InvalidZipFileException(_inner) => _inner.fmt(f),
648            Self::KmsAccessDeniedException(_inner) => _inner.fmt(f),
649            Self::KmsDisabledException(_inner) => _inner.fmt(f),
650            Self::KmsInvalidStateException(_inner) => _inner.fmt(f),
651            Self::KmsNotFoundException(_inner) => _inner.fmt(f),
652            Self::NoPublishedVersionException(_inner) => _inner.fmt(f),
653            Self::RecursiveInvocationException(_inner) => _inner.fmt(f),
654            Self::RequestTooLargeException(_inner) => _inner.fmt(f),
655            Self::ResourceConflictException(_inner) => _inner.fmt(f),
656            Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
657            Self::ResourceNotReadyException(_inner) => _inner.fmt(f),
658            Self::S3FilesMountConnectivityException(_inner) => _inner.fmt(f),
659            Self::S3FilesMountFailureException(_inner) => _inner.fmt(f),
660            Self::S3FilesMountTimeoutException(_inner) => _inner.fmt(f),
661            Self::SerializedRequestEntityTooLargeException(_inner) => _inner.fmt(f),
662            Self::ServiceException(_inner) => _inner.fmt(f),
663            Self::SnapStartException(_inner) => _inner.fmt(f),
664            Self::SnapStartNotReadyException(_inner) => _inner.fmt(f),
665            Self::SnapStartTimeoutException(_inner) => _inner.fmt(f),
666            Self::SubnetIpAddressLimitReachedException(_inner) => _inner.fmt(f),
667            Self::TooManyRequestsException(_inner) => _inner.fmt(f),
668            Self::UnsupportedMediaTypeException(_inner) => _inner.fmt(f),
669            Self::Unhandled(_inner) => {
670                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
671                    write!(f, "unhandled error ({code})")
672                } else {
673                    f.write_str("unhandled error")
674                }
675            }
676        }
677    }
678}
679impl ::aws_smithy_types::retry::ProvideErrorKind for InvokeWithResponseStreamError {
680    fn code(&self) -> ::std::option::Option<&str> {
681        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
682    }
683    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
684        ::std::option::Option::None
685    }
686}
687impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvokeWithResponseStreamError {
688    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
689        match self {
690            Self::Ec2AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
691            Self::Ec2ThrottledException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
692            Self::Ec2UnexpectedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
693            Self::EfsioException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
694            Self::EfsMountConnectivityException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
695            Self::EfsMountFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
696            Self::EfsMountTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
697            Self::EniLimitReachedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
698            Self::InvalidParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
699            Self::InvalidRequestContentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
700            Self::InvalidRuntimeException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
701            Self::InvalidSecurityGroupIdException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
702            Self::InvalidSubnetIdException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
703            Self::InvalidZipFileException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
704            Self::KmsAccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
705            Self::KmsDisabledException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
706            Self::KmsInvalidStateException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
707            Self::KmsNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
708            Self::NoPublishedVersionException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
709            Self::RecursiveInvocationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
710            Self::RequestTooLargeException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
711            Self::ResourceConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
712            Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
713            Self::ResourceNotReadyException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
714            Self::S3FilesMountConnectivityException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
715            Self::S3FilesMountFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
716            Self::S3FilesMountTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
717            Self::SerializedRequestEntityTooLargeException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
718            Self::ServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
719            Self::SnapStartException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
720            Self::SnapStartNotReadyException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
721            Self::SnapStartTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
722            Self::SubnetIpAddressLimitReachedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
723            Self::TooManyRequestsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
724            Self::UnsupportedMediaTypeException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
725            Self::Unhandled(_inner) => &_inner.meta,
726        }
727    }
728}
729impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for InvokeWithResponseStreamError {
730    fn create_unhandled_error(
731        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
732        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
733    ) -> Self {
734        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
735            source,
736            meta: meta.unwrap_or_default(),
737        })
738    }
739}
740impl ::aws_types::request_id::RequestId for crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError {
741    fn request_id(&self) -> Option<&str> {
742        self.meta().request_id()
743    }
744}
745
746pub use crate::operation::invoke_with_response_stream::_invoke_with_response_stream_input::InvokeWithResponseStreamInput;
747
748pub use crate::operation::invoke_with_response_stream::_invoke_with_response_stream_output::InvokeWithResponseStreamOutput;
749
750mod _invoke_with_response_stream_input;
751
752mod _invoke_with_response_stream_output;
753
754/// Builders
755pub mod builders;