aws_sdk_datazone/operation/
delete_time_series_data_points.rs

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