aws_sdk_datazone/operation/
get_time_series_data_point.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `GetTimeSeriesDataPoint`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct GetTimeSeriesDataPoint;
6impl GetTimeSeriesDataPoint {
7    /// Creates a new `GetTimeSeriesDataPoint`
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_time_series_data_point::GetTimeSeriesDataPointInput,
14    ) -> ::std::result::Result<
15        crate::operation::get_time_series_data_point::GetTimeSeriesDataPointOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError,
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_time_series_data_point::GetTimeSeriesDataPointError>()
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::get_time_series_data_point::GetTimeSeriesDataPointOutput>()
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::get_time_series_data_point::GetTimeSeriesDataPointInput,
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        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("datazone", "GetTimeSeriesDataPoint", input, runtime_plugins, stop_point)
54            .await
55    }
56
57    pub(crate) fn operation_runtime_plugins(
58        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
59        client_config: &crate::config::Config,
60        config_override: ::std::option::Option<crate::config::Builder>,
61    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
62        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
63        runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![
64            ::aws_runtime::auth::sigv4::SCHEME_ID,
65        ]));
66        if let ::std::option::Option::Some(config_override) = config_override {
67            for plugin in config_override.runtime_plugins.iter().cloned() {
68                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
69            }
70            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
71                config_override,
72                client_config.config.clone(),
73                &client_config.runtime_components,
74            ));
75        }
76        runtime_plugins
77    }
78}
79impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for GetTimeSeriesDataPoint {
80    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
81        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetTimeSeriesDataPoint");
82
83        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
84            GetTimeSeriesDataPointRequestSerializer,
85        ));
86        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
87            GetTimeSeriesDataPointResponseDeserializer,
88        ));
89
90        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
91            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
92        ));
93
94        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
95            "GetTimeSeriesDataPoint",
96            "datazone",
97        ));
98        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
99        signing_options.double_uri_encode = true;
100        signing_options.content_sha256_header = false;
101        signing_options.normalize_uri_path = true;
102        signing_options.payload_override = None;
103
104        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
105            signing_options,
106            ..::std::default::Default::default()
107        });
108
109        ::std::option::Option::Some(cfg.freeze())
110    }
111
112    fn runtime_components(
113        &self,
114        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
115    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
116        #[allow(unused_mut)]
117        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetTimeSeriesDataPoint")
118            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
119            .with_interceptor(GetTimeSeriesDataPointEndpointParamsInterceptor)
120            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
121                crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError,
122            >::new())
123            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
124                crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError,
125            >::new())
126            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
127                crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError,
128            >::new());
129
130        ::std::borrow::Cow::Owned(rcb)
131    }
132}
133
134#[derive(Debug)]
135struct GetTimeSeriesDataPointResponseDeserializer;
136impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetTimeSeriesDataPointResponseDeserializer {
137    fn deserialize_nonstreaming(
138        &self,
139        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
140    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
141        let (success, status) = (response.status().is_success(), response.status().as_u16());
142        let headers = response.headers();
143        let body = response.body().bytes().expect("body loaded");
144        #[allow(unused_mut)]
145        let mut force_error = false;
146        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
147        let parse_result = if !success && status != 200 || force_error {
148            crate::protocol_serde::shape_get_time_series_data_point::de_get_time_series_data_point_http_error(status, headers, body)
149        } else {
150            crate::protocol_serde::shape_get_time_series_data_point::de_get_time_series_data_point_http_response(status, headers, body)
151        };
152        crate::protocol_serde::type_erase_result(parse_result)
153    }
154}
155#[derive(Debug)]
156struct GetTimeSeriesDataPointRequestSerializer;
157impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetTimeSeriesDataPointRequestSerializer {
158    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
159    fn serialize_input(
160        &self,
161        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
162        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
163    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
164        let input = input
165            .downcast::<crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput>()
166            .expect("correct type");
167        let _header_serialization_settings = _cfg
168            .load::<crate::serialization_settings::HeaderSerializationSettings>()
169            .cloned()
170            .unwrap_or_default();
171        let mut request_builder = {
172            fn uri_base(
173                _input: &crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput,
174                output: &mut ::std::string::String,
175            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
176                use ::std::fmt::Write as _;
177                let input_1 = &_input.domain_identifier;
178                let input_1 = input_1.as_ref().ok_or_else(|| {
179                    ::aws_smithy_types::error::operation::BuildError::missing_field("domain_identifier", "cannot be empty or unset")
180                })?;
181                let domain_identifier = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
182                if domain_identifier.is_empty() {
183                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
184                        "domain_identifier",
185                        "cannot be empty or unset",
186                    ));
187                }
188                let input_2 = &_input.entity_type;
189                let input_2 = input_2
190                    .as_ref()
191                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("entity_type", "cannot be empty or unset"))?;
192                let entity_type = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
193                if entity_type.is_empty() {
194                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
195                        "entity_type",
196                        "cannot be empty or unset",
197                    ));
198                }
199                let input_3 = &_input.entity_identifier;
200                let input_3 = input_3.as_ref().ok_or_else(|| {
201                    ::aws_smithy_types::error::operation::BuildError::missing_field("entity_identifier", "cannot be empty or unset")
202                })?;
203                let entity_identifier = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
204                if entity_identifier.is_empty() {
205                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
206                        "entity_identifier",
207                        "cannot be empty or unset",
208                    ));
209                }
210                let input_4 = &_input.identifier;
211                let input_4 = input_4
212                    .as_ref()
213                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("identifier", "cannot be empty or unset"))?;
214                let identifier = ::aws_smithy_http::label::fmt_string(input_4, ::aws_smithy_http::label::EncodingStrategy::Default);
215                if identifier.is_empty() {
216                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
217                        "identifier",
218                        "cannot be empty or unset",
219                    ));
220                }
221                ::std::write!(
222                    output,
223                    "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points/{identifier}",
224                    domainIdentifier = domain_identifier,
225                    entityType = entity_type,
226                    entityIdentifier = entity_identifier,
227                    identifier = identifier
228                )
229                .expect("formatting should succeed");
230                ::std::result::Result::Ok(())
231            }
232            fn uri_query(
233                _input: &crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput,
234                mut output: &mut ::std::string::String,
235            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
236                let mut query = ::aws_smithy_http::query::Writer::new(output);
237                let inner_5 = &_input.form_name;
238                let inner_5 = inner_5
239                    .as_ref()
240                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("form_name", "cannot be empty or unset"))?;
241                if inner_5.is_empty() {
242                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
243                        "form_name",
244                        "cannot be empty or unset",
245                    ));
246                }
247                query.push_kv("formName", &::aws_smithy_http::query::fmt_string(inner_5));
248                ::std::result::Result::Ok(())
249            }
250            #[allow(clippy::unnecessary_wraps)]
251            fn update_http_builder(
252                input: &crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput,
253                builder: ::http::request::Builder,
254            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
255                let mut uri = ::std::string::String::new();
256                uri_base(input, &mut uri)?;
257                uri_query(input, &mut uri)?;
258                ::std::result::Result::Ok(builder.method("GET").uri(uri))
259            }
260            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
261            builder
262        };
263        let body = ::aws_smithy_types::body::SdkBody::from("");
264
265        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
266    }
267}
268#[derive(Debug)]
269struct GetTimeSeriesDataPointEndpointParamsInterceptor;
270
271impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetTimeSeriesDataPointEndpointParamsInterceptor {
272    fn name(&self) -> &'static str {
273        "GetTimeSeriesDataPointEndpointParamsInterceptor"
274    }
275
276    fn read_before_execution(
277        &self,
278        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
279            '_,
280            ::aws_smithy_runtime_api::client::interceptors::context::Input,
281            ::aws_smithy_runtime_api::client::interceptors::context::Output,
282            ::aws_smithy_runtime_api::client::interceptors::context::Error,
283        >,
284        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
285    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
286        let _input = context
287            .input()
288            .downcast_ref::<GetTimeSeriesDataPointInput>()
289            .ok_or("failed to downcast to GetTimeSeriesDataPointInput")?;
290
291        let params = crate::config::endpoint::Params::builder()
292            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
293            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
294            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
295            .build()
296            .map_err(|err| {
297                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
298            })?;
299        cfg.interceptor_state()
300            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
301        ::std::result::Result::Ok(())
302    }
303}
304
305// The get_* functions below are generated from JMESPath expressions in the
306// operationContextParams trait. They target the operation's input shape.
307
308/// Error type for the `GetTimeSeriesDataPointError` operation.
309#[non_exhaustive]
310#[derive(::std::fmt::Debug)]
311pub enum GetTimeSeriesDataPointError {
312    /// <p>You do not have sufficient access to perform this action.</p>
313    AccessDeniedException(crate::types::error::AccessDeniedException),
314    /// <p>The request has failed because of an unknown error, exception or failure.</p>
315    InternalServerException(crate::types::error::InternalServerException),
316    /// <p>The specified resource cannot be found.</p>
317    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
318    /// <p>The request was denied due to request throttling.</p>
319    ThrottlingException(crate::types::error::ThrottlingException),
320    /// <p>The input fails to satisfy the constraints specified by the Amazon Web Services service.</p>
321    ValidationException(crate::types::error::ValidationException),
322    /// <p>You do not have permission to perform this action.</p>
323    UnauthorizedException(crate::types::error::UnauthorizedException),
324    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
325    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
326    variable wildcard pattern and check `.code()`:
327     \
328    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
329     \
330    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetTimeSeriesDataPointError) for what information is available for the error.")]
331    Unhandled(crate::error::sealed_unhandled::Unhandled),
332}
333impl GetTimeSeriesDataPointError {
334    /// Creates the `GetTimeSeriesDataPointError::Unhandled` variant from any error type.
335    pub fn unhandled(
336        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
337    ) -> Self {
338        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
339            source: err.into(),
340            meta: ::std::default::Default::default(),
341        })
342    }
343
344    /// Creates the `GetTimeSeriesDataPointError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
345    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
346        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
347            source: err.clone().into(),
348            meta: err,
349        })
350    }
351    ///
352    /// Returns error metadata, which includes the error code, message,
353    /// request ID, and potentially additional information.
354    ///
355    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
356        match self {
357            Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
358            Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
359            Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
360            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
361            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
362            Self::UnauthorizedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
363            Self::Unhandled(e) => &e.meta,
364        }
365    }
366    /// Returns `true` if the error kind is `GetTimeSeriesDataPointError::AccessDeniedException`.
367    pub fn is_access_denied_exception(&self) -> bool {
368        matches!(self, Self::AccessDeniedException(_))
369    }
370    /// Returns `true` if the error kind is `GetTimeSeriesDataPointError::InternalServerException`.
371    pub fn is_internal_server_exception(&self) -> bool {
372        matches!(self, Self::InternalServerException(_))
373    }
374    /// Returns `true` if the error kind is `GetTimeSeriesDataPointError::ResourceNotFoundException`.
375    pub fn is_resource_not_found_exception(&self) -> bool {
376        matches!(self, Self::ResourceNotFoundException(_))
377    }
378    /// Returns `true` if the error kind is `GetTimeSeriesDataPointError::ThrottlingException`.
379    pub fn is_throttling_exception(&self) -> bool {
380        matches!(self, Self::ThrottlingException(_))
381    }
382    /// Returns `true` if the error kind is `GetTimeSeriesDataPointError::ValidationException`.
383    pub fn is_validation_exception(&self) -> bool {
384        matches!(self, Self::ValidationException(_))
385    }
386    /// Returns `true` if the error kind is `GetTimeSeriesDataPointError::UnauthorizedException`.
387    pub fn is_unauthorized_exception(&self) -> bool {
388        matches!(self, Self::UnauthorizedException(_))
389    }
390}
391impl ::std::error::Error for GetTimeSeriesDataPointError {
392    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
393        match self {
394            Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
395            Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
396            Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
397            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
398            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
399            Self::UnauthorizedException(_inner) => ::std::option::Option::Some(_inner),
400            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
401        }
402    }
403}
404impl ::std::fmt::Display for GetTimeSeriesDataPointError {
405    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
406        match self {
407            Self::AccessDeniedException(_inner) => _inner.fmt(f),
408            Self::InternalServerException(_inner) => _inner.fmt(f),
409            Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
410            Self::ThrottlingException(_inner) => _inner.fmt(f),
411            Self::ValidationException(_inner) => _inner.fmt(f),
412            Self::UnauthorizedException(_inner) => _inner.fmt(f),
413            Self::Unhandled(_inner) => {
414                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
415                    write!(f, "unhandled error ({code})")
416                } else {
417                    f.write_str("unhandled error")
418                }
419            }
420        }
421    }
422}
423impl ::aws_smithy_types::retry::ProvideErrorKind for GetTimeSeriesDataPointError {
424    fn code(&self) -> ::std::option::Option<&str> {
425        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
426    }
427    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
428        match self {
429            Self::InternalServerException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
430            Self::ThrottlingException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
431            _ => ::std::option::Option::None,
432        }
433    }
434}
435impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetTimeSeriesDataPointError {
436    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
437        match self {
438            Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
439            Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
440            Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
441            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
442            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
443            Self::UnauthorizedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
444            Self::Unhandled(_inner) => &_inner.meta,
445        }
446    }
447}
448impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetTimeSeriesDataPointError {
449    fn create_unhandled_error(
450        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
451        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
452    ) -> Self {
453        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
454            source,
455            meta: meta.unwrap_or_default(),
456        })
457    }
458}
459impl ::aws_types::request_id::RequestId for crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError {
460    fn request_id(&self) -> Option<&str> {
461        self.meta().request_id()
462    }
463}
464
465pub use crate::operation::get_time_series_data_point::_get_time_series_data_point_output::GetTimeSeriesDataPointOutput;
466
467pub use crate::operation::get_time_series_data_point::_get_time_series_data_point_input::GetTimeSeriesDataPointInput;
468
469mod _get_time_series_data_point_input;
470
471mod _get_time_series_data_point_output;
472
473/// Builders
474pub mod builders;