aws_sdk_s3/operation/
put_bucket_lifecycle_configuration.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `PutBucketLifecycleConfiguration`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct PutBucketLifecycleConfiguration;
6impl PutBucketLifecycleConfiguration {
7    /// Creates a new `PutBucketLifecycleConfiguration`
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::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
14    ) -> ::std::result::Result<
15        crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError,
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::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError>()
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::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationOutput>()
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::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
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(
54            "s3",
55            "PutBucketLifecycleConfiguration",
56            input,
57            runtime_plugins,
58            stop_point,
59        )
60        .await
61    }
62
63    pub(crate) fn operation_runtime_plugins(
64        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
65        client_config: &crate::config::Config,
66        config_override: ::std::option::Option<crate::config::Builder>,
67    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
68        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
69        runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![
70            ::aws_runtime::auth::sigv4::SCHEME_ID,
71            #[cfg(feature = "sigv4a")]
72            {
73                ::aws_runtime::auth::sigv4a::SCHEME_ID
74            },
75            crate::s3_express::auth::SCHEME_ID,
76            ::aws_smithy_runtime::client::auth::no_auth::NO_AUTH_SCHEME_ID,
77        ]));
78        if let ::std::option::Option::Some(config_override) = config_override {
79            for plugin in config_override.runtime_plugins.iter().cloned() {
80                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
81            }
82            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
83                config_override,
84                client_config.config.clone(),
85                &client_config.runtime_components,
86            ));
87        }
88        runtime_plugins
89    }
90}
91impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for PutBucketLifecycleConfiguration {
92    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
93        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("PutBucketLifecycleConfiguration");
94
95        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
96            PutBucketLifecycleConfigurationRequestSerializer,
97        ));
98        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
99            PutBucketLifecycleConfigurationResponseDeserializer,
100        ));
101
102        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
103            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
104        ));
105
106        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
107            "PutBucketLifecycleConfiguration",
108            "s3",
109        ));
110        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
111        signing_options.double_uri_encode = false;
112        signing_options.content_sha256_header = true;
113        signing_options.normalize_uri_path = false;
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        cfg.store_put(crate::s3_express::checksum::provide_default_checksum_algorithm());
121
122        ::std::option::Option::Some(cfg.freeze())
123    }
124
125    fn runtime_components(
126        &self,
127        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
128    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
129        #[allow(unused_mut)]
130        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("PutBucketLifecycleConfiguration")
131            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
132            .with_interceptor(PutBucketLifecycleConfigurationEndpointParamsInterceptor)
133            .with_interceptor(crate::http_request_checksum::RequestChecksumInterceptor::new(
134                |input: &::aws_smithy_runtime_api::client::interceptors::context::Input| {
135                    let input: &crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput =
136                        input.downcast_ref().expect("correct type");
137                    let checksum_algorithm = input.checksum_algorithm();
138                    let checksum_algorithm = checksum_algorithm.map(|algorithm| algorithm.as_str()).or(Some("md5"));
139                    let checksum_algorithm = match checksum_algorithm {
140                        Some(algo) => Some(
141                            algo.parse::<::aws_smithy_checksums::ChecksumAlgorithm>()
142                                .map_err(::aws_smithy_types::error::operation::BuildError::other)?,
143                        ),
144                        None => None,
145                    };
146                    ::std::result::Result::<_, ::aws_smithy_runtime_api::box_error::BoxError>::Ok(checksum_algorithm)
147                },
148            ))
149            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
150                crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError,
151            >::new())
152            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
153                crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError,
154            >::new())
155            .with_retry_classifier(
156                ::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
157                    crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError,
158                >::builder()
159                .transient_errors({
160                    let mut transient_errors: Vec<&'static str> = ::aws_runtime::retries::classifiers::TRANSIENT_ERRORS.into();
161                    transient_errors.push("InternalError");
162                    ::std::borrow::Cow::Owned(transient_errors)
163                })
164                .build(),
165            );
166
167        ::std::borrow::Cow::Owned(rcb)
168    }
169}
170
171#[derive(Debug)]
172struct PutBucketLifecycleConfigurationResponseDeserializer;
173impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutBucketLifecycleConfigurationResponseDeserializer {
174    fn deserialize_nonstreaming(
175        &self,
176        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
177    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
178        let (success, status) = (response.status().is_success(), response.status().as_u16());
179        let headers = response.headers();
180        let body = response.body().bytes().expect("body loaded");
181        #[allow(unused_mut)]
182        let mut force_error = false;
183        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
184        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
185            force_error = true;
186        }
187        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
188        let parse_result = if !success && status != 200 || force_error {
189            crate::protocol_serde::shape_put_bucket_lifecycle_configuration::de_put_bucket_lifecycle_configuration_http_error(status, headers, body)
190        } else {
191            crate::protocol_serde::shape_put_bucket_lifecycle_configuration::de_put_bucket_lifecycle_configuration_http_response(
192                status, headers, body,
193            )
194        };
195        crate::protocol_serde::type_erase_result(parse_result)
196    }
197}
198#[derive(Debug)]
199struct PutBucketLifecycleConfigurationRequestSerializer;
200impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutBucketLifecycleConfigurationRequestSerializer {
201    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
202    fn serialize_input(
203        &self,
204        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
205        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
206    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
207        let input = input
208            .downcast::<crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput>()
209            .expect("correct type");
210        let _header_serialization_settings = _cfg
211            .load::<crate::serialization_settings::HeaderSerializationSettings>()
212            .cloned()
213            .unwrap_or_default();
214        let mut request_builder = {
215            fn uri_base(
216                _input: &crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
217                output: &mut ::std::string::String,
218            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
219                use ::std::fmt::Write as _;
220                ::std::write!(output, "/").expect("formatting should succeed");
221                ::std::result::Result::Ok(())
222            }
223            fn uri_query(
224                _input: &crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
225                mut output: &mut ::std::string::String,
226            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
227                let mut query = ::aws_smithy_http::query::Writer::new(output);
228                query.push_v("lifecycle");
229                ::std::result::Result::Ok(())
230            }
231            #[allow(clippy::unnecessary_wraps)]
232            fn update_http_builder(
233                input: &crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
234                builder: ::http::request::Builder,
235            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
236                let mut uri = ::std::string::String::new();
237                uri_base(input, &mut uri)?;
238                uri_query(input, &mut uri)?;
239                let builder =
240                    crate::protocol_serde::shape_put_bucket_lifecycle_configuration::ser_put_bucket_lifecycle_configuration_headers(input, builder)?;
241                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
242            }
243            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
244            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
245            builder
246        };
247        let body = ::aws_smithy_types::body::SdkBody::from(
248            crate::protocol_serde::shape_put_bucket_lifecycle_configuration_input::ser_lifecycle_configuration_http_payload(
249                &input.lifecycle_configuration,
250            )?,
251        );
252        if let Some(content_length) = body.content_length() {
253            let content_length = content_length.to_string();
254            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
255        }
256        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
257    }
258}
259#[derive(Debug)]
260struct PutBucketLifecycleConfigurationEndpointParamsInterceptor;
261
262impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutBucketLifecycleConfigurationEndpointParamsInterceptor {
263    fn name(&self) -> &'static str {
264        "PutBucketLifecycleConfigurationEndpointParamsInterceptor"
265    }
266
267    fn read_before_execution(
268        &self,
269        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
270            '_,
271            ::aws_smithy_runtime_api::client::interceptors::context::Input,
272            ::aws_smithy_runtime_api::client::interceptors::context::Output,
273            ::aws_smithy_runtime_api::client::interceptors::context::Error,
274        >,
275        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
276    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
277        let _input = context
278            .input()
279            .downcast_ref::<PutBucketLifecycleConfigurationInput>()
280            .ok_or("failed to downcast to PutBucketLifecycleConfigurationInput")?;
281
282        let params = crate::config::endpoint::Params::builder()
283            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
284            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
285            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
286            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
287            .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
288            .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
289            .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
290            .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
291            .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
292            .set_use_s3_express_control_endpoint(Some(true))
293            .set_bucket(Some(
294                _input
295                    .bucket
296                    .clone()
297                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
298                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
299            ))
300            .build()
301            .map_err(|err| {
302                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
303            })?;
304        cfg.interceptor_state()
305            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
306        ::std::result::Result::Ok(())
307    }
308}
309
310// The get_* functions below are generated from JMESPath expressions in the
311// operationContextParams trait. They target the operation's input shape.
312
313#[allow(unreachable_code, unused_variables)]
314#[cfg(test)]
315mod put_bucket_lifecycle_configuration_test {
316
317    /// This test validates that the content md5 header is set correctly
318    /// Test ID: PutBucketLifecycleConfiguration
319    #[::tokio::test]
320    #[::tracing_test::traced_test]
321    async fn put_bucket_lifecycle_configuration_request() {
322        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
323        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
324        let config_builder = config_builder.region(::aws_types::region::Region::new("us-east-1"));
325        let mut config_builder = config_builder;
326        config_builder.set_region(Some(crate::config::Region::new("us-east-1")));
327
328        let config = config_builder.http_client(http_client).build();
329        let client = crate::Client::from_conf(config);
330        let result = client
331            .put_bucket_lifecycle_configuration()
332            .set_bucket(::std::option::Option::Some("test-bucket".to_owned()))
333            .set_lifecycle_configuration(::std::option::Option::Some(
334                crate::types::BucketLifecycleConfiguration::builder()
335                    .set_rules(::std::option::Option::Some(vec![crate::types::LifecycleRule::builder()
336                        .set_expiration(::std::option::Option::Some(
337                            crate::types::LifecycleExpiration::builder()
338                                .set_days(::std::option::Option::Some(1))
339                                .build(),
340                        ))
341                        .set_status(::std::option::Option::Some(
342                            "Enabled"
343                                .parse::<crate::types::ExpirationStatus>()
344                                .expect("static value validated to member"),
345                        ))
346                        .set_id(::std::option::Option::Some("Expire".to_owned()))
347                        .build()
348                        .unwrap()]))
349                    .build()
350                    .unwrap(),
351            ))
352            .send()
353            .await;
354        let _ = dbg!(result);
355        let http_request = request_receiver.expect_request();
356        let expected_headers = [("content-md5", "JP8DTuCSH6yDC8wNGg4+mA==")];
357        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
358        let body = http_request.body().bytes().expect("body should be strict");
359        ::aws_smithy_protocol_test::assert_ok(
360        ::aws_smithy_protocol_test::validate_body(body, "<LifecycleConfiguration xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\">\n    <Rule>\n        <Expiration>\n            <Days>1</Days>\n        </Expiration>\n        <ID>Expire</ID>\n        <Status>Enabled</Status>\n    </Rule>\n</LifecycleConfiguration>\n", ::aws_smithy_protocol_test::MediaType::from("application/xml"))
361        );
362        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
363        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
364        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
365    }
366}
367
368/// Error type for the `PutBucketLifecycleConfigurationError` operation.
369#[non_exhaustive]
370#[derive(::std::fmt::Debug)]
371pub enum PutBucketLifecycleConfigurationError {
372    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
373    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
374    variable wildcard pattern and check `.code()`:
375     \
376    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
377     \
378    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-PutBucketLifecycleConfigurationError) for what information is available for the error.")]
379    Unhandled(crate::error::sealed_unhandled::Unhandled),
380}
381impl PutBucketLifecycleConfigurationError {
382    /// Creates the `PutBucketLifecycleConfigurationError::Unhandled` variant from any error type.
383    pub fn unhandled(
384        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
385    ) -> Self {
386        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
387            source: err.into(),
388            meta: ::std::default::Default::default(),
389        })
390    }
391
392    /// Creates the `PutBucketLifecycleConfigurationError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
393    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
394        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
395            source: err.clone().into(),
396            meta: err,
397        })
398    }
399    ///
400    /// Returns error metadata, which includes the error code, message,
401    /// request ID, and potentially additional information.
402    ///
403    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
404        match self {
405            Self::Unhandled(e) => &e.meta,
406        }
407    }
408}
409impl ::std::error::Error for PutBucketLifecycleConfigurationError {
410    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
411        match self {
412            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
413        }
414    }
415}
416impl ::std::fmt::Display for PutBucketLifecycleConfigurationError {
417    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
418        match self {
419            Self::Unhandled(_inner) => {
420                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
421                    write!(f, "unhandled error ({code})")
422                } else {
423                    f.write_str("unhandled error")
424                }
425            }
426        }
427    }
428}
429impl ::aws_smithy_types::retry::ProvideErrorKind for PutBucketLifecycleConfigurationError {
430    fn code(&self) -> ::std::option::Option<&str> {
431        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
432    }
433    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
434        ::std::option::Option::None
435    }
436}
437impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for PutBucketLifecycleConfigurationError {
438    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
439        match self {
440            Self::Unhandled(_inner) => &_inner.meta,
441        }
442    }
443}
444impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for PutBucketLifecycleConfigurationError {
445    fn create_unhandled_error(
446        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
447        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
448    ) -> Self {
449        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
450            source,
451            meta: meta.unwrap_or_default(),
452        })
453    }
454}
455impl crate::s3_request_id::RequestIdExt for crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError {
456    fn extended_request_id(&self) -> Option<&str> {
457        self.meta().extended_request_id()
458    }
459}
460impl ::aws_types::request_id::RequestId for crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError {
461    fn request_id(&self) -> Option<&str> {
462        self.meta().request_id()
463    }
464}
465
466pub use crate::operation::put_bucket_lifecycle_configuration::_put_bucket_lifecycle_configuration_output::PutBucketLifecycleConfigurationOutput;
467
468pub use crate::operation::put_bucket_lifecycle_configuration::_put_bucket_lifecycle_configuration_input::PutBucketLifecycleConfigurationInput;
469
470mod _put_bucket_lifecycle_configuration_input;
471
472mod _put_bucket_lifecycle_configuration_output;
473
474/// Builders
475pub mod builders;