1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct WriteGetObjectResponse;
6impl WriteGetObjectResponse {
7 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::write_get_object_response::WriteGetObjectResponseInput,
14 ) -> ::std::result::Result<
15 crate::operation::write_get_object_response::WriteGetObjectResponseOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::write_get_object_response::WriteGetObjectResponseError,
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::write_get_object_response::WriteGetObjectResponseError>()
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::write_get_object_response::WriteGetObjectResponseOutput>()
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::write_get_object_response::WriteGetObjectResponseInput,
44 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
45 ) -> ::std::result::Result<
46 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
47 ::aws_smithy_runtime_api::client::result::SdkError<
48 ::aws_smithy_runtime_api::client::interceptors::context::Error,
49 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
50 >,
51 > {
52 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
53 use ::tracing::Instrument;
54 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("S3", "WriteGetObjectResponse", input, runtime_plugins, stop_point)
55 .instrument(::tracing::debug_span!(
58 "S3.WriteGetObjectResponse",
59 "rpc.service" = "S3",
60 "rpc.method" = "WriteGetObjectResponse",
61 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
62 "rpc.system" = "aws-api",
63 ))
64 .await
65 }
66
67 pub(crate) fn operation_runtime_plugins(
68 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
69 client_config: &crate::config::Config,
70 config_override: ::std::option::Option<crate::config::Builder>,
71 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
72 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
73
74 if let ::std::option::Option::Some(config_override) = config_override {
75 for plugin in config_override.runtime_plugins.iter().cloned() {
76 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
77 }
78 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
79 config_override,
80 client_config.config.clone(),
81 &client_config.runtime_components,
82 ));
83 }
84 runtime_plugins
85 }
86}
87impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for WriteGetObjectResponse {
88 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
89 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("WriteGetObjectResponse");
90
91 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
92 WriteGetObjectResponseRequestSerializer,
93 ));
94 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
95 WriteGetObjectResponseResponseDeserializer,
96 ));
97
98 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
99 crate::config::auth::Params::builder()
100 .operation_name("WriteGetObjectResponse")
101 .build()
102 .expect("required fields set"),
103 ));
104
105 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
106 "WriteGetObjectResponse",
107 "S3",
108 ));
109 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
110 signing_options.double_uri_encode = true;
111 signing_options.content_sha256_header = true;
112 signing_options.normalize_uri_path = false;
113 signing_options.payload_override = Some(::aws_sigv4::http_request::SignableBody::UnsignedPayload);
114
115 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
116 signing_options,
117 ..::std::default::Default::default()
118 });
119
120 ::std::option::Option::Some(cfg.freeze())
121 }
122
123 fn runtime_components(
124 &self,
125 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
126 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
127 #[allow(unused_mut)]
128 let mut rcb =
129 ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("WriteGetObjectResponse")
130 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
131 WriteGetObjectResponseTelemetryInputCaptureInterceptor,
132 ))
133 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
134 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
135 ))
136 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
137 WriteGetObjectResponseEndpointParamsInterceptor,
138 ))
139 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
140 crate::operation::write_get_object_response::WriteGetObjectResponseError,
141 >::new())
142 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
143 crate::operation::write_get_object_response::WriteGetObjectResponseError,
144 >::new())
145 .with_retry_classifier(
146 ::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
147 crate::operation::write_get_object_response::WriteGetObjectResponseError,
148 >::builder()
149 .transient_errors({
150 let mut transient_errors: Vec<&'static str> = ::aws_runtime::retries::classifiers::TRANSIENT_ERRORS.into();
151 transient_errors.push("InternalError");
152 ::std::borrow::Cow::Owned(transient_errors)
153 })
154 .build(),
155 );
156
157 ::std::borrow::Cow::Owned(rcb)
158 }
159}
160
161#[derive(Debug)]
162struct WriteGetObjectResponseTelemetryInputCaptureInterceptor;
163
164#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
165impl ::aws_smithy_runtime_api::client::interceptors::Intercept for WriteGetObjectResponseTelemetryInputCaptureInterceptor {
166 fn name(&self) -> &'static str {
167 "WriteGetObjectResponseTelemetryInputCaptureInterceptor"
168 }
169
170 fn read_before_execution(
171 &self,
172 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
173 '_,
174 ::aws_smithy_runtime_api::client::interceptors::context::Input,
175 ::aws_smithy_runtime_api::client::interceptors::context::Output,
176 ::aws_smithy_runtime_api::client::interceptors::context::Error,
177 >,
178 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
179 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
180 let ::std::option::Option::Some(requested) = cfg
182 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
183 .filter(|r| !r.is_empty())
184 else {
185 return ::std::result::Result::Ok(());
186 };
187
188 let ::std::option::Option::Some(input) = context.input().downcast_ref::<WriteGetObjectResponseInput>() else {
189 return ::std::result::Result::Ok(());
191 };
192
193 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
194 if requested.should_capture("RequestRoute") {
195 if let ::std::option::Option::Some(value) = input.request_route.as_deref() {
196 captured.insert("RequestRoute", value);
197 }
198 }
199 if requested.should_capture("RequestToken") {
200 if let ::std::option::Option::Some(value) = input.request_token.as_deref() {
201 captured.insert("RequestToken", value);
202 }
203 }
204 if requested.should_capture("ErrorCode") {
205 if let ::std::option::Option::Some(value) = input.error_code.as_deref() {
206 captured.insert("ErrorCode", value);
207 }
208 }
209 if requested.should_capture("ErrorMessage") {
210 if let ::std::option::Option::Some(value) = input.error_message.as_deref() {
211 captured.insert("ErrorMessage", value);
212 }
213 }
214 if requested.should_capture("AcceptRanges") {
215 if let ::std::option::Option::Some(value) = input.accept_ranges.as_deref() {
216 captured.insert("AcceptRanges", value);
217 }
218 }
219 if requested.should_capture("CacheControl") {
220 if let ::std::option::Option::Some(value) = input.cache_control.as_deref() {
221 captured.insert("CacheControl", value);
222 }
223 }
224 if requested.should_capture("ContentDisposition") {
225 if let ::std::option::Option::Some(value) = input.content_disposition.as_deref() {
226 captured.insert("ContentDisposition", value);
227 }
228 }
229 if requested.should_capture("ContentEncoding") {
230 if let ::std::option::Option::Some(value) = input.content_encoding.as_deref() {
231 captured.insert("ContentEncoding", value);
232 }
233 }
234 if requested.should_capture("ContentLanguage") {
235 if let ::std::option::Option::Some(value) = input.content_language.as_deref() {
236 captured.insert("ContentLanguage", value);
237 }
238 }
239 if requested.should_capture("ContentRange") {
240 if let ::std::option::Option::Some(value) = input.content_range.as_deref() {
241 captured.insert("ContentRange", value);
242 }
243 }
244 if requested.should_capture("ContentType") {
245 if let ::std::option::Option::Some(value) = input.content_type.as_deref() {
246 captured.insert("ContentType", value);
247 }
248 }
249 if requested.should_capture("ChecksumCRC32") {
250 if let ::std::option::Option::Some(value) = input.checksum_crc32.as_deref() {
251 captured.insert("ChecksumCRC32", value);
252 }
253 }
254 if requested.should_capture("ChecksumCRC32C") {
255 if let ::std::option::Option::Some(value) = input.checksum_crc32_c.as_deref() {
256 captured.insert("ChecksumCRC32C", value);
257 }
258 }
259 if requested.should_capture("ChecksumCRC64NVME") {
260 if let ::std::option::Option::Some(value) = input.checksum_crc64_nvme.as_deref() {
261 captured.insert("ChecksumCRC64NVME", value);
262 }
263 }
264 if requested.should_capture("ChecksumSHA1") {
265 if let ::std::option::Option::Some(value) = input.checksum_sha1.as_deref() {
266 captured.insert("ChecksumSHA1", value);
267 }
268 }
269 if requested.should_capture("ChecksumSHA256") {
270 if let ::std::option::Option::Some(value) = input.checksum_sha256.as_deref() {
271 captured.insert("ChecksumSHA256", value);
272 }
273 }
274 if requested.should_capture("ChecksumSHA512") {
275 if let ::std::option::Option::Some(value) = input.checksum_sha512.as_deref() {
276 captured.insert("ChecksumSHA512", value);
277 }
278 }
279 if requested.should_capture("ChecksumMD5") {
280 if let ::std::option::Option::Some(value) = input.checksum_md5.as_deref() {
281 captured.insert("ChecksumMD5", value);
282 }
283 }
284 if requested.should_capture("ChecksumXXHASH64") {
285 if let ::std::option::Option::Some(value) = input.checksum_xxhash64.as_deref() {
286 captured.insert("ChecksumXXHASH64", value);
287 }
288 }
289 if requested.should_capture("ChecksumXXHASH3") {
290 if let ::std::option::Option::Some(value) = input.checksum_xxhash3.as_deref() {
291 captured.insert("ChecksumXXHASH3", value);
292 }
293 }
294 if requested.should_capture("ChecksumXXHASH128") {
295 if let ::std::option::Option::Some(value) = input.checksum_xxhash128.as_deref() {
296 captured.insert("ChecksumXXHASH128", value);
297 }
298 }
299 if requested.should_capture("ETag") {
300 if let ::std::option::Option::Some(value) = input.e_tag.as_deref() {
301 captured.insert("ETag", value);
302 }
303 }
304 if requested.should_capture("Expiration") {
305 if let ::std::option::Option::Some(value) = input.expiration.as_deref() {
306 captured.insert("Expiration", value);
307 }
308 }
309 if requested.should_capture("Restore") {
310 if let ::std::option::Option::Some(value) = input.restore.as_deref() {
311 captured.insert("Restore", value);
312 }
313 }
314 if requested.should_capture("SSECustomerAlgorithm") {
315 if let ::std::option::Option::Some(value) = input.sse_customer_algorithm.as_deref() {
316 captured.insert("SSECustomerAlgorithm", value);
317 }
318 }
319 if requested.should_capture("SSECustomerKeyMD5") {
320 if let ::std::option::Option::Some(value) = input.sse_customer_key_md5.as_deref() {
321 captured.insert("SSECustomerKeyMD5", value);
322 }
323 }
324 if requested.should_capture("VersionId") {
325 if let ::std::option::Option::Some(value) = input.version_id.as_deref() {
326 captured.insert("VersionId", value);
327 }
328 }
329
330 cfg.interceptor_state().store_put(captured);
331 ::std::result::Result::Ok(())
332 }
333}
334#[derive(Debug)]
335struct WriteGetObjectResponseResponseDeserializer;
336impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for WriteGetObjectResponseResponseDeserializer {
337 fn deserialize_nonstreaming_with_config(
338 &self,
339 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
340 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
341 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
342 let (success, status) = (response.status().is_success(), response.status().as_u16());
343 let headers = response.headers();
344 let body = response.body().bytes().expect("body loaded");
345 #[allow(unused_mut)]
346 let mut force_error = false;
347 ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
348 if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
349 force_error = true;
350 }
351 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
352 let parse_result = if !success && status != 200 || force_error {
353 crate::protocol_serde::shape_write_get_object_response::de_write_get_object_response_http_error(status, headers, body)
354 } else {
355 crate::protocol_serde::shape_write_get_object_response::de_write_get_object_response_http_response(status, headers, body)
356 };
357 crate::protocol_serde::type_erase_result(parse_result)
358 }
359}
360#[derive(Debug)]
361struct WriteGetObjectResponseRequestSerializer;
362impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for WriteGetObjectResponseRequestSerializer {
363 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
364 fn serialize_input(
365 &self,
366 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
367 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
368 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
369 let input = input
370 .downcast::<crate::operation::write_get_object_response::WriteGetObjectResponseInput>()
371 .expect("correct type");
372 let _header_serialization_settings = _cfg
373 .load::<crate::serialization_settings::HeaderSerializationSettings>()
374 .cloned()
375 .unwrap_or_default();
376 let mut request_builder = {
377 #[allow(clippy::uninlined_format_args)]
378 fn uri_base(
379 _input: &crate::operation::write_get_object_response::WriteGetObjectResponseInput,
380 output: &mut ::std::string::String,
381 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
382 use ::std::fmt::Write as _;
383 ::std::write!(output, "/WriteGetObjectResponse").expect("formatting should succeed");
384 ::std::result::Result::Ok(())
385 }
386 #[allow(clippy::unnecessary_wraps)]
387 fn update_http_builder(
388 input: &crate::operation::write_get_object_response::WriteGetObjectResponseInput,
389 builder: ::http_1x::request::Builder,
390 ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
391 let mut uri = ::std::string::String::new();
392 uri_base(input, &mut uri)?;
393 let builder = crate::protocol_serde::shape_write_get_object_response::ser_write_get_object_response_headers(input, builder)?;
394 ::std::result::Result::Ok(builder.method("POST").uri(uri))
395 }
396 let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
397 builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/octet-stream");
398 builder
399 };
400 let body = crate::protocol_serde::shape_write_get_object_response_input::ser_body_http_payload(input.body)?.into_inner();
401 if let Some(content_length) = body.content_length() {
402 let content_length = content_length.to_string();
403 request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
404 }
405 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
406 }
407}
408#[derive(Debug)]
409struct WriteGetObjectResponseEndpointParamsInterceptor;
410
411#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
412impl ::aws_smithy_runtime_api::client::interceptors::Intercept for WriteGetObjectResponseEndpointParamsInterceptor {
413 fn name(&self) -> &'static str {
414 "WriteGetObjectResponseEndpointParamsInterceptor"
415 }
416
417 fn read_before_execution(
418 &self,
419 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
420 '_,
421 ::aws_smithy_runtime_api::client::interceptors::context::Input,
422 ::aws_smithy_runtime_api::client::interceptors::context::Output,
423 ::aws_smithy_runtime_api::client::interceptors::context::Error,
424 >,
425 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
426 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
427 let _input = context
428 .input()
429 .downcast_ref::<WriteGetObjectResponseInput>()
430 .ok_or("failed to downcast to WriteGetObjectResponseInput")?;
431
432 let endpoint_prefix = {
433 let request_route = _input.request_route.as_deref().unwrap_or_default();
434 if request_route.is_empty() {
435 return Err(
436 ::aws_smithy_runtime_api::client::endpoint::error::InvalidEndpointError::failed_to_construct_uri(
437 "request_route was unset or empty but must be set as part of the endpoint prefix",
438 )
439 .into(),
440 );
441 }
442 #[allow(clippy::uninlined_format_args)]
443 ::aws_smithy_runtime_api::client::endpoint::EndpointPrefix::new(format!("{RequestRoute}.", RequestRoute = request_route))
444 }
445 .map_err(|err| ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint prefix could not be built", err))?;
446 cfg.interceptor_state().store_put(endpoint_prefix);
447
448 let params = crate::config::endpoint::Params::builder()
449 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
450 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
451 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
452 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
453 .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
454 .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
455 .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
456 .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
457 .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
458 .set_use_object_lambda_endpoint(Some(true))
459 .build()
460 .map_err(|err| {
461 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
462 })?;
463 cfg.interceptor_state()
464 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
465 ::std::result::Result::Ok(())
466 }
467}
468
469#[non_exhaustive]
474#[derive(::std::fmt::Debug)]
475pub enum WriteGetObjectResponseError {
476 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
478 variable wildcard pattern and check `.code()`:
479 \
480 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
481 \
482 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-WriteGetObjectResponseError) for what information is available for the error.")]
483 Unhandled(crate::error::sealed_unhandled::Unhandled),
484}
485impl WriteGetObjectResponseError {
486 pub fn unhandled(
488 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
489 ) -> Self {
490 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
491 source: err.into(),
492 meta: ::std::default::Default::default(),
493 })
494 }
495
496 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
498 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
499 source: err.clone().into(),
500 meta: err,
501 })
502 }
503 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
508 match self {
509 Self::Unhandled(e) => &e.meta,
510 }
511 }
512}
513impl ::std::error::Error for WriteGetObjectResponseError {
514 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
515 match self {
516 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
517 }
518 }
519}
520impl ::std::fmt::Display for WriteGetObjectResponseError {
521 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
522 match self {
523 Self::Unhandled(_inner) => {
524 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
525 write!(f, "unhandled error ({code})")
526 } else {
527 f.write_str("unhandled error")
528 }
529 }
530 }
531 }
532}
533impl ::aws_smithy_types::retry::ProvideErrorKind for WriteGetObjectResponseError {
534 fn code(&self) -> ::std::option::Option<&str> {
535 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
536 }
537 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
538 ::std::option::Option::None
539 }
540}
541impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for WriteGetObjectResponseError {
542 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
543 match self {
544 Self::Unhandled(_inner) => &_inner.meta,
545 }
546 }
547}
548impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for WriteGetObjectResponseError {
549 fn create_unhandled_error(
550 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
551 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
552 ) -> Self {
553 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
554 source,
555 meta: meta.unwrap_or_default(),
556 })
557 }
558}
559impl crate::s3_request_id::RequestIdExt for crate::operation::write_get_object_response::WriteGetObjectResponseError {
560 fn extended_request_id(&self) -> Option<&str> {
561 self.meta().extended_request_id()
562 }
563}
564impl ::aws_types::request_id::RequestId for crate::operation::write_get_object_response::WriteGetObjectResponseError {
565 fn request_id(&self) -> Option<&str> {
566 self.meta().request_id()
567 }
568}
569
570pub use crate::operation::write_get_object_response::_write_get_object_response_input::WriteGetObjectResponseInput;
571
572pub use crate::operation::write_get_object_response::_write_get_object_response_output::WriteGetObjectResponseOutput;
573
574mod _write_get_object_response_input;
575
576mod _write_get_object_response_output;
577
578pub mod builders;