aws_sdk_geomaps/operation/
get_static_map.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `GetStaticMap`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct GetStaticMap;
6impl GetStaticMap {
7    /// Creates a new `GetStaticMap`
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::get_static_map::GetStaticMapInput,
14    ) -> ::std::result::Result<
15        crate::operation::get_static_map::GetStaticMapOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::get_static_map::GetStaticMapError,
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::get_static_map::GetStaticMapError>()
27                    .expect("correct error type")
28            })
29        };
30        use ::tracing::Instrument;
31        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
32            // Create a parent span for the entire operation. Includes a random, internal-only,
33            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
34            .instrument(::tracing::debug_span!(
35                "geomaps.GetStaticMap",
36                "rpc.service" = "geomaps",
37                "rpc.method" = "GetStaticMap",
38                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
39                "rpc.system" = "aws-api",
40            ))
41            .await
42            .map_err(map_err)?;
43        let output = context.finalize().map_err(map_err)?;
44        ::std::result::Result::Ok(
45            output
46                .downcast::<crate::operation::get_static_map::GetStaticMapOutput>()
47                .expect("correct output type"),
48        )
49    }
50
51    pub(crate) async fn orchestrate_with_stop_point(
52        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
53        input: crate::operation::get_static_map::GetStaticMapInput,
54        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
55    ) -> ::std::result::Result<
56        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
57        ::aws_smithy_runtime_api::client::result::SdkError<
58            ::aws_smithy_runtime_api::client::interceptors::context::Error,
59            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
60        >,
61    > {
62        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
63        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("geomaps", "GetStaticMap", input, runtime_plugins, stop_point).await
64    }
65
66    pub(crate) fn operation_runtime_plugins(
67        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
68        client_config: &crate::config::Config,
69        config_override: ::std::option::Option<crate::config::Builder>,
70    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
71        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
72        runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![
73            ::aws_runtime::auth::sigv4::SCHEME_ID,
74        ]));
75        if let ::std::option::Option::Some(config_override) = config_override {
76            for plugin in config_override.runtime_plugins.iter().cloned() {
77                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
78            }
79            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
80                config_override,
81                client_config.config.clone(),
82                &client_config.runtime_components,
83            ));
84        }
85        runtime_plugins
86    }
87}
88impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for GetStaticMap {
89    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
90        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetStaticMap");
91
92        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
93            GetStaticMapRequestSerializer,
94        ));
95        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
96            GetStaticMapResponseDeserializer,
97        ));
98
99        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
100            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
101        ));
102
103        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("GetStaticMap", "geomaps"));
104        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
105        signing_options.double_uri_encode = true;
106        signing_options.content_sha256_header = false;
107        signing_options.normalize_uri_path = true;
108        signing_options.payload_override = None;
109
110        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
111            signing_options,
112            ..::std::default::Default::default()
113        });
114
115        ::std::option::Option::Some(cfg.freeze())
116    }
117
118    fn runtime_components(
119        &self,
120        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
121    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
122        #[allow(unused_mut)]
123        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetStaticMap")
124            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
125            .with_interceptor(GetStaticMapEndpointParamsInterceptor)
126            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
127                crate::operation::get_static_map::GetStaticMapError,
128            >::new())
129            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
130                crate::operation::get_static_map::GetStaticMapError,
131            >::new())
132            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
133                crate::operation::get_static_map::GetStaticMapError,
134            >::new());
135
136        ::std::borrow::Cow::Owned(rcb)
137    }
138}
139
140#[derive(Debug)]
141struct GetStaticMapResponseDeserializer;
142impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetStaticMapResponseDeserializer {
143    fn deserialize_nonstreaming(
144        &self,
145        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
146    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
147        let (success, status) = (response.status().is_success(), response.status().as_u16());
148        let headers = response.headers();
149        let body = response.body().bytes().expect("body loaded");
150        #[allow(unused_mut)]
151        let mut force_error = false;
152        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
153        let parse_result = if !success && status != 200 || force_error {
154            crate::protocol_serde::shape_get_static_map::de_get_static_map_http_error(status, headers, body)
155        } else {
156            crate::protocol_serde::shape_get_static_map::de_get_static_map_http_response(status, headers, body)
157        };
158        crate::protocol_serde::type_erase_result(parse_result)
159    }
160}
161#[derive(Debug)]
162struct GetStaticMapRequestSerializer;
163impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetStaticMapRequestSerializer {
164    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
165    fn serialize_input(
166        &self,
167        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
168        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
169    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
170        let input = input
171            .downcast::<crate::operation::get_static_map::GetStaticMapInput>()
172            .expect("correct type");
173        let _header_serialization_settings = _cfg
174            .load::<crate::serialization_settings::HeaderSerializationSettings>()
175            .cloned()
176            .unwrap_or_default();
177        let mut request_builder = {
178            fn uri_base(
179                _input: &crate::operation::get_static_map::GetStaticMapInput,
180                output: &mut ::std::string::String,
181            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
182                use ::std::fmt::Write as _;
183                let input_1 = &_input.file_name;
184                let input_1 = input_1
185                    .as_ref()
186                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("file_name", "cannot be empty or unset"))?;
187                let file_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
188                if file_name.is_empty() {
189                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
190                        "file_name",
191                        "cannot be empty or unset",
192                    ));
193                }
194                ::std::write!(output, "/static/{FileName}", FileName = file_name).expect("formatting should succeed");
195                ::std::result::Result::Ok(())
196            }
197            fn uri_query(
198                _input: &crate::operation::get_static_map::GetStaticMapInput,
199                mut output: &mut ::std::string::String,
200            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
201                let mut query = ::aws_smithy_http::query::Writer::new(output);
202                if let ::std::option::Option::Some(inner_2) = &_input.bounding_box {
203                    {
204                        query.push_kv("bounding-box", &::aws_smithy_http::query::fmt_string(inner_2));
205                    }
206                }
207                if let ::std::option::Option::Some(inner_3) = &_input.bounded_positions {
208                    {
209                        query.push_kv("bounded-positions", &::aws_smithy_http::query::fmt_string(inner_3));
210                    }
211                }
212                if let ::std::option::Option::Some(inner_4) = &_input.center {
213                    {
214                        query.push_kv("center", &::aws_smithy_http::query::fmt_string(inner_4));
215                    }
216                }
217                if let ::std::option::Option::Some(inner_5) = &_input.color_scheme {
218                    {
219                        query.push_kv("color-scheme", &::aws_smithy_http::query::fmt_string(inner_5));
220                    }
221                }
222                if let ::std::option::Option::Some(inner_6) = &_input.compact_overlay {
223                    {
224                        query.push_kv("compact-overlay", &::aws_smithy_http::query::fmt_string(inner_6));
225                    }
226                }
227                if let ::std::option::Option::Some(inner_7) = &_input.crop_labels {
228                    {
229                        query.push_kv("crop-labels", ::aws_smithy_types::primitive::Encoder::from(*inner_7).encode());
230                    }
231                }
232                if let ::std::option::Option::Some(inner_8) = &_input.geo_json_overlay {
233                    {
234                        query.push_kv("geojson-overlay", &::aws_smithy_http::query::fmt_string(inner_8));
235                    }
236                }
237                let inner_9 = &_input.height;
238                let inner_9 = inner_9
239                    .as_ref()
240                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("height", "cannot be empty or unset"))?;
241                query.push_kv("height", ::aws_smithy_types::primitive::Encoder::from(*inner_9).encode());
242                if let ::std::option::Option::Some(inner_10) = &_input.key {
243                    {
244                        query.push_kv("key", &::aws_smithy_http::query::fmt_string(inner_10));
245                    }
246                }
247                if let ::std::option::Option::Some(inner_11) = &_input.label_size {
248                    {
249                        query.push_kv("label-size", &::aws_smithy_http::query::fmt_string(inner_11));
250                    }
251                }
252                if let ::std::option::Option::Some(inner_12) = &_input.language {
253                    {
254                        query.push_kv("lang", &::aws_smithy_http::query::fmt_string(inner_12));
255                    }
256                }
257                if let ::std::option::Option::Some(inner_13) = &_input.padding {
258                    {
259                        query.push_kv("padding", ::aws_smithy_types::primitive::Encoder::from(*inner_13).encode());
260                    }
261                }
262                if let ::std::option::Option::Some(inner_14) = &_input.political_view {
263                    {
264                        query.push_kv("political-view", &::aws_smithy_http::query::fmt_string(inner_14));
265                    }
266                }
267                if let ::std::option::Option::Some(inner_15) = &_input.points_of_interests {
268                    {
269                        query.push_kv("pois", &::aws_smithy_http::query::fmt_string(inner_15));
270                    }
271                }
272                if let ::std::option::Option::Some(inner_16) = &_input.radius {
273                    {
274                        query.push_kv("radius", ::aws_smithy_types::primitive::Encoder::from(*inner_16).encode());
275                    }
276                }
277                if let ::std::option::Option::Some(inner_17) = &_input.scale_bar_unit {
278                    {
279                        query.push_kv("scale-unit", &::aws_smithy_http::query::fmt_string(inner_17));
280                    }
281                }
282                if let ::std::option::Option::Some(inner_18) = &_input.style {
283                    {
284                        query.push_kv("style", &::aws_smithy_http::query::fmt_string(inner_18));
285                    }
286                }
287                let inner_19 = &_input.width;
288                let inner_19 = inner_19
289                    .as_ref()
290                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("width", "cannot be empty or unset"))?;
291                query.push_kv("width", ::aws_smithy_types::primitive::Encoder::from(*inner_19).encode());
292                if let ::std::option::Option::Some(inner_20) = &_input.zoom {
293                    {
294                        query.push_kv("zoom", ::aws_smithy_types::primitive::Encoder::from(*inner_20).encode());
295                    }
296                }
297                ::std::result::Result::Ok(())
298            }
299            #[allow(clippy::unnecessary_wraps)]
300            fn update_http_builder(
301                input: &crate::operation::get_static_map::GetStaticMapInput,
302                builder: ::http::request::Builder,
303            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
304                let mut uri = ::std::string::String::new();
305                uri_base(input, &mut uri)?;
306                uri_query(input, &mut uri)?;
307                ::std::result::Result::Ok(builder.method("GET").uri(uri))
308            }
309            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
310            builder
311        };
312        let body = ::aws_smithy_types::body::SdkBody::from("");
313
314        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
315    }
316}
317#[derive(Debug)]
318struct GetStaticMapEndpointParamsInterceptor;
319
320impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetStaticMapEndpointParamsInterceptor {
321    fn name(&self) -> &'static str {
322        "GetStaticMapEndpointParamsInterceptor"
323    }
324
325    fn read_before_execution(
326        &self,
327        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
328            '_,
329            ::aws_smithy_runtime_api::client::interceptors::context::Input,
330            ::aws_smithy_runtime_api::client::interceptors::context::Output,
331            ::aws_smithy_runtime_api::client::interceptors::context::Error,
332        >,
333        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
334    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
335        let _input = context
336            .input()
337            .downcast_ref::<GetStaticMapInput>()
338            .ok_or("failed to downcast to GetStaticMapInput")?;
339
340        let params = crate::config::endpoint::Params::builder()
341            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
342            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
343            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
344            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
345            .build()
346            .map_err(|err| {
347                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
348            })?;
349        cfg.interceptor_state()
350            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
351        ::std::result::Result::Ok(())
352    }
353}
354
355// The get_* functions below are generated from JMESPath expressions in the
356// operationContextParams trait. They target the operation's input shape.
357
358/// Error type for the `GetStaticMapError` operation.
359#[non_exhaustive]
360#[derive(::std::fmt::Debug)]
361pub enum GetStaticMapError {
362    /// <p>The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.</p>
363    AccessDeniedException(crate::types::error::AccessDeniedException),
364    /// <p>The request processing has failed because of an unknown error, exception or failure.</p>
365    InternalServerException(crate::types::error::InternalServerException),
366    /// <p>The request was denied due to request throttling.</p>
367    ThrottlingException(crate::types::error::ThrottlingException),
368    /// <p>The input fails to satisfy the constraints specified by an AWS service.</p>
369    ValidationException(crate::types::error::ValidationException),
370    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
371    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
372    variable wildcard pattern and check `.code()`:
373     \
374    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
375     \
376    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetStaticMapError) for what information is available for the error.")]
377    Unhandled(crate::error::sealed_unhandled::Unhandled),
378}
379impl GetStaticMapError {
380    /// Creates the `GetStaticMapError::Unhandled` variant from any error type.
381    pub fn unhandled(
382        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
383    ) -> Self {
384        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
385            source: err.into(),
386            meta: ::std::default::Default::default(),
387        })
388    }
389
390    /// Creates the `GetStaticMapError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
391    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
392        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
393            source: err.clone().into(),
394            meta: err,
395        })
396    }
397    ///
398    /// Returns error metadata, which includes the error code, message,
399    /// request ID, and potentially additional information.
400    ///
401    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
402        match self {
403            Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
404            Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
405            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
406            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
407            Self::Unhandled(e) => &e.meta,
408        }
409    }
410    /// Returns `true` if the error kind is `GetStaticMapError::AccessDeniedException`.
411    pub fn is_access_denied_exception(&self) -> bool {
412        matches!(self, Self::AccessDeniedException(_))
413    }
414    /// Returns `true` if the error kind is `GetStaticMapError::InternalServerException`.
415    pub fn is_internal_server_exception(&self) -> bool {
416        matches!(self, Self::InternalServerException(_))
417    }
418    /// Returns `true` if the error kind is `GetStaticMapError::ThrottlingException`.
419    pub fn is_throttling_exception(&self) -> bool {
420        matches!(self, Self::ThrottlingException(_))
421    }
422    /// Returns `true` if the error kind is `GetStaticMapError::ValidationException`.
423    pub fn is_validation_exception(&self) -> bool {
424        matches!(self, Self::ValidationException(_))
425    }
426}
427impl ::std::error::Error for GetStaticMapError {
428    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
429        match self {
430            Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
431            Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
432            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
433            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
434            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
435        }
436    }
437}
438impl ::std::fmt::Display for GetStaticMapError {
439    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
440        match self {
441            Self::AccessDeniedException(_inner) => _inner.fmt(f),
442            Self::InternalServerException(_inner) => _inner.fmt(f),
443            Self::ThrottlingException(_inner) => _inner.fmt(f),
444            Self::ValidationException(_inner) => _inner.fmt(f),
445            Self::Unhandled(_inner) => {
446                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
447                    write!(f, "unhandled error ({code})")
448                } else {
449                    f.write_str("unhandled error")
450                }
451            }
452        }
453    }
454}
455impl ::aws_smithy_types::retry::ProvideErrorKind for GetStaticMapError {
456    fn code(&self) -> ::std::option::Option<&str> {
457        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
458    }
459    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
460        match self {
461            Self::InternalServerException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
462            Self::ThrottlingException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
463            _ => ::std::option::Option::None,
464        }
465    }
466}
467impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetStaticMapError {
468    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
469        match self {
470            Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
471            Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
472            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
473            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
474            Self::Unhandled(_inner) => &_inner.meta,
475        }
476    }
477}
478impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetStaticMapError {
479    fn create_unhandled_error(
480        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
481        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
482    ) -> Self {
483        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
484            source,
485            meta: meta.unwrap_or_default(),
486        })
487    }
488}
489impl ::aws_types::request_id::RequestId for crate::operation::get_static_map::GetStaticMapError {
490    fn request_id(&self) -> Option<&str> {
491        self.meta().request_id()
492    }
493}
494
495pub use crate::operation::get_static_map::_get_static_map_output::GetStaticMapOutput;
496
497pub use crate::operation::get_static_map::_get_static_map_input::GetStaticMapInput;
498
499mod _get_static_map_input;
500
501mod _get_static_map_output;
502
503/// Builders
504pub mod builders;