1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct HeadObject;
6impl HeadObject {
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::head_object::HeadObjectInput,
14 ) -> ::std::result::Result<
15 crate::operation::head_object::HeadObjectOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::head_object::HeadObjectError,
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::head_object::HeadObjectError>()
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::head_object::HeadObjectOutput>()
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::head_object::HeadObjectInput,
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("s3", "HeadObject", input, runtime_plugins, stop_point).await
54 }
55
56 pub(crate) fn operation_runtime_plugins(
57 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
58 client_config: &crate::config::Config,
59 config_override: ::std::option::Option<crate::config::Builder>,
60 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
61 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
62 runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![
63 ::aws_runtime::auth::sigv4::SCHEME_ID,
64 #[cfg(feature = "sigv4a")]
65 {
66 ::aws_runtime::auth::sigv4a::SCHEME_ID
67 },
68 crate::s3_express::auth::SCHEME_ID,
69 ::aws_smithy_runtime::client::auth::no_auth::NO_AUTH_SCHEME_ID,
70 ]));
71 if let ::std::option::Option::Some(config_override) = config_override {
72 for plugin in config_override.runtime_plugins.iter().cloned() {
73 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
74 }
75 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
76 config_override,
77 client_config.config.clone(),
78 &client_config.runtime_components,
79 ));
80 }
81 runtime_plugins
82 }
83}
84impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for HeadObject {
85 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
86 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("HeadObject");
87
88 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
89 HeadObjectRequestSerializer,
90 ));
91 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
92 HeadObjectResponseDeserializer,
93 ));
94
95 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
96 ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
97 ));
98
99 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
100 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("HeadObject", "s3"));
101 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
102 signing_options.double_uri_encode = false;
103 signing_options.content_sha256_header = true;
104 signing_options.normalize_uri_path = false;
105 signing_options.payload_override = None;
106
107 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
108 signing_options,
109 ..::std::default::Default::default()
110 });
111
112 ::std::option::Option::Some(cfg.freeze())
113 }
114
115 fn runtime_components(
116 &self,
117 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
118 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
119 #[allow(unused_mut)]
120 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("HeadObject")
121 .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
122 .with_interceptor(HeadObjectEndpointParamsInterceptor)
123 .with_interceptor(crate::s3_expires_interceptor::S3ExpiresInterceptor)
124 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
125 crate::operation::head_object::HeadObjectError,
126 >::new())
127 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
128 crate::operation::head_object::HeadObjectError,
129 >::new())
130 .with_retry_classifier(
131 ::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<crate::operation::head_object::HeadObjectError>::builder()
132 .transient_errors({
133 let mut transient_errors: Vec<&'static str> = ::aws_runtime::retries::classifiers::TRANSIENT_ERRORS.into();
134 transient_errors.push("InternalError");
135 ::std::borrow::Cow::Owned(transient_errors)
136 })
137 .build(),
138 );
139
140 ::std::borrow::Cow::Owned(rcb)
141 }
142}
143
144#[derive(Debug)]
145struct HeadObjectResponseDeserializer;
146impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for HeadObjectResponseDeserializer {
147 fn deserialize_nonstreaming(
148 &self,
149 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
150 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
151 let (success, status) = (response.status().is_success(), response.status().as_u16());
152 let headers = response.headers();
153 let body = response.body().bytes().expect("body loaded");
154 #[allow(unused_mut)]
155 let mut force_error = false;
156 ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
157 if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
158 force_error = true;
159 }
160 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
161 let parse_result = if !success && status != 200 || force_error {
162 crate::protocol_serde::shape_head_object::de_head_object_http_error(status, headers, body)
163 } else {
164 crate::protocol_serde::shape_head_object::de_head_object_http_response(status, headers, body)
165 };
166 crate::protocol_serde::type_erase_result(parse_result)
167 }
168}
169#[derive(Debug)]
170struct HeadObjectRequestSerializer;
171impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for HeadObjectRequestSerializer {
172 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
173 fn serialize_input(
174 &self,
175 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
176 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
177 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
178 let input = input.downcast::<crate::operation::head_object::HeadObjectInput>().expect("correct type");
179 let _header_serialization_settings = _cfg
180 .load::<crate::serialization_settings::HeaderSerializationSettings>()
181 .cloned()
182 .unwrap_or_default();
183 let mut request_builder = {
184 fn uri_base(
185 _input: &crate::operation::head_object::HeadObjectInput,
186 output: &mut ::std::string::String,
187 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
188 use ::std::fmt::Write as _;
189 let input_1 = &_input.key;
190 let input_1 = input_1
191 .as_ref()
192 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("key", "cannot be empty or unset"))?;
193 let key = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Greedy);
194 if key.is_empty() {
195 return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
196 "key",
197 "cannot be empty or unset",
198 ));
199 }
200 ::std::write!(output, "/{Key}", Key = key).expect("formatting should succeed");
201 ::std::result::Result::Ok(())
202 }
203 fn uri_query(
204 _input: &crate::operation::head_object::HeadObjectInput,
205 mut output: &mut ::std::string::String,
206 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
207 let mut query = ::aws_smithy_http::query::Writer::new(output);
208 if let ::std::option::Option::Some(inner_2) = &_input.response_cache_control {
209 {
210 query.push_kv("response-cache-control", &::aws_smithy_http::query::fmt_string(inner_2));
211 }
212 }
213 if let ::std::option::Option::Some(inner_3) = &_input.response_content_disposition {
214 {
215 query.push_kv("response-content-disposition", &::aws_smithy_http::query::fmt_string(inner_3));
216 }
217 }
218 if let ::std::option::Option::Some(inner_4) = &_input.response_content_encoding {
219 {
220 query.push_kv("response-content-encoding", &::aws_smithy_http::query::fmt_string(inner_4));
221 }
222 }
223 if let ::std::option::Option::Some(inner_5) = &_input.response_content_language {
224 {
225 query.push_kv("response-content-language", &::aws_smithy_http::query::fmt_string(inner_5));
226 }
227 }
228 if let ::std::option::Option::Some(inner_6) = &_input.response_content_type {
229 {
230 query.push_kv("response-content-type", &::aws_smithy_http::query::fmt_string(inner_6));
231 }
232 }
233 if let ::std::option::Option::Some(inner_7) = &_input.response_expires {
234 {
235 query.push_kv(
236 "response-expires",
237 &::aws_smithy_http::query::fmt_timestamp(inner_7, ::aws_smithy_types::date_time::Format::HttpDate)?,
238 );
239 }
240 }
241 if let ::std::option::Option::Some(inner_8) = &_input.version_id {
242 {
243 query.push_kv("versionId", &::aws_smithy_http::query::fmt_string(inner_8));
244 }
245 }
246 if let ::std::option::Option::Some(inner_9) = &_input.part_number {
247 {
248 query.push_kv("partNumber", ::aws_smithy_types::primitive::Encoder::from(*inner_9).encode());
249 }
250 }
251 ::std::result::Result::Ok(())
252 }
253 #[allow(clippy::unnecessary_wraps)]
254 fn update_http_builder(
255 input: &crate::operation::head_object::HeadObjectInput,
256 builder: ::http::request::Builder,
257 ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
258 let mut uri = ::std::string::String::new();
259 uri_base(input, &mut uri)?;
260 uri_query(input, &mut uri)?;
261 let builder = crate::protocol_serde::shape_head_object::ser_head_object_headers(input, builder)?;
262 ::std::result::Result::Ok(builder.method("HEAD").uri(uri))
263 }
264 let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
265 builder
266 };
267 let body = ::aws_smithy_types::body::SdkBody::from("");
268
269 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
270 }
271}
272#[derive(Debug)]
273struct HeadObjectEndpointParamsInterceptor;
274
275impl ::aws_smithy_runtime_api::client::interceptors::Intercept for HeadObjectEndpointParamsInterceptor {
276 fn name(&self) -> &'static str {
277 "HeadObjectEndpointParamsInterceptor"
278 }
279
280 fn read_before_execution(
281 &self,
282 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
283 '_,
284 ::aws_smithy_runtime_api::client::interceptors::context::Input,
285 ::aws_smithy_runtime_api::client::interceptors::context::Output,
286 ::aws_smithy_runtime_api::client::interceptors::context::Error,
287 >,
288 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
289 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
290 let _input = context
291 .input()
292 .downcast_ref::<HeadObjectInput>()
293 .ok_or("failed to downcast to HeadObjectInput")?;
294
295 let params = crate::config::endpoint::Params::builder()
296 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
297 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
298 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
299 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
300 .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
301 .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
302 .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
303 .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
304 .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
305 .set_bucket(Some(
306 _input
307 .bucket
308 .clone()
309 .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
310 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
311 ))
312 .set_key(Some(
313 _input
314 .key
315 .clone()
316 .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
317 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("key", "A required field was not set"))?,
318 ))
319 .build()
320 .map_err(|err| {
321 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
322 })?;
323 cfg.interceptor_state()
324 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
325 ::std::result::Result::Ok(())
326 }
327}
328
329#[allow(unreachable_code, unused_variables)]
333#[cfg(test)]
334mod head_object_test {
335
336 #[::tokio::test]
339 #[::tracing_test::traced_test]
340 async fn head_object_uri_encoding_request() {
341 let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
342 let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
343 let config_builder = config_builder.region(::aws_types::region::Region::new("us-east-1"));
344 let mut config_builder = config_builder;
345 config_builder.set_region(Some(crate::config::Region::new("us-east-1")));
346
347 let config = config_builder.http_client(http_client).build();
348 let client = crate::Client::from_conf(config);
349 let result = client
350 .head_object()
351 .set_bucket(::std::option::Option::Some("test-bucket".to_owned()))
352 .set_key(::std::option::Option::Some("<> `?🐱".to_owned()))
353 .send()
354 .await;
355 let _ = dbg!(result);
356 let http_request = request_receiver.expect_request();
357 let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
358 ::pretty_assertions::assert_eq!(http_request.method(), "HEAD", "method was incorrect");
359 ::pretty_assertions::assert_eq!(uri.path(), "/%3C%3E%20%60%3F%F0%9F%90%B1", "path was incorrect");
360 }
361
362 #[::tokio::test]
365 #[::tracing_test::traced_test]
366 async fn head_object_empty_body_response() {
367 let expected_output = crate::types::error::NotFound::builder().build();
368 let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(
369 ::http::response::Builder::new()
370 .header("content-type", "application/xml")
371 .header("date", "Thu, 03 Jun 2021 04:05:52 GMT")
372 .header("server", "AmazonS3")
373 .header(
374 "x-amz-id-2",
375 "UTniwu6QmCIjVeuK2ZfeWBOnu7SqMQOS3Vac6B/K4H2ZCawYUl+nDbhGTImuyhZ5DFiojR3Kcz4=",
376 )
377 .header("x-amz-request-id", "GRZ6BZ468DF52F2E")
378 .status(404)
379 .body(::aws_smithy_types::body::SdkBody::from(""))
380 .unwrap(),
381 )
382 .unwrap();
383 use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
384 use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
385
386 let op = crate::operation::head_object::HeadObject::new();
387 let config = op.config().expect("the operation has config");
388 let de = config
389 .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
390 .expect("the config must have a deserializer");
391
392 let parsed = de.deserialize_streaming(&mut http_response);
393 let parsed = parsed.unwrap_or_else(|| {
394 let http_response = http_response.map(|body| {
395 ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
396 body.bytes().unwrap(),
397 ::aws_smithy_protocol_test::MediaType::from("application/xml"),
398 )))
399 });
400 de.deserialize_nonstreaming(&http_response)
401 });
402 let parsed = parsed.expect_err("should be error response");
403 let parsed: &crate::operation::head_object::HeadObjectError = parsed.as_operation_error().expect("operation error").downcast_ref().unwrap();
404 if let crate::operation::head_object::HeadObjectError::NotFound(parsed) = parsed {
405 ::pretty_assertions::assert_eq!(parsed.message, expected_output.message, "Unexpected value for `message`");
406 } else {
407 panic!("wrong variant: Got: {:?}. Expected: {:?}", parsed, expected_output);
408 }
409 }
410}
411
412#[non_exhaustive]
414#[derive(::std::fmt::Debug)]
415pub enum HeadObjectError {
416 NotFound(crate::types::error::NotFound),
418 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
420 variable wildcard pattern and check `.code()`:
421 \
422 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
423 \
424 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-HeadObjectError) for what information is available for the error.")]
425 Unhandled(crate::error::sealed_unhandled::Unhandled),
426}
427impl HeadObjectError {
428 pub fn unhandled(
430 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
431 ) -> Self {
432 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
433 source: err.into(),
434 meta: ::std::default::Default::default(),
435 })
436 }
437
438 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
440 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
441 source: err.clone().into(),
442 meta: err,
443 })
444 }
445 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
450 match self {
451 Self::NotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
452 Self::Unhandled(e) => &e.meta,
453 }
454 }
455 pub fn is_not_found(&self) -> bool {
457 matches!(self, Self::NotFound(_))
458 }
459}
460impl ::std::error::Error for HeadObjectError {
461 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
462 match self {
463 Self::NotFound(_inner) => ::std::option::Option::Some(_inner),
464 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
465 }
466 }
467}
468impl ::std::fmt::Display for HeadObjectError {
469 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
470 match self {
471 Self::NotFound(_inner) => _inner.fmt(f),
472 Self::Unhandled(_inner) => {
473 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
474 write!(f, "unhandled error ({code})")
475 } else {
476 f.write_str("unhandled error")
477 }
478 }
479 }
480 }
481}
482impl ::aws_smithy_types::retry::ProvideErrorKind for HeadObjectError {
483 fn code(&self) -> ::std::option::Option<&str> {
484 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
485 }
486 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
487 ::std::option::Option::None
488 }
489}
490impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for HeadObjectError {
491 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
492 match self {
493 Self::NotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
494 Self::Unhandled(_inner) => &_inner.meta,
495 }
496 }
497}
498impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for HeadObjectError {
499 fn create_unhandled_error(
500 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
501 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
502 ) -> Self {
503 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
504 source,
505 meta: meta.unwrap_or_default(),
506 })
507 }
508}
509impl crate::s3_request_id::RequestIdExt for crate::operation::head_object::HeadObjectError {
510 fn extended_request_id(&self) -> Option<&str> {
511 self.meta().extended_request_id()
512 }
513}
514impl ::aws_types::request_id::RequestId for crate::operation::head_object::HeadObjectError {
515 fn request_id(&self) -> Option<&str> {
516 self.meta().request_id()
517 }
518}
519
520pub use crate::operation::head_object::_head_object_output::HeadObjectOutput;
521
522pub use crate::operation::head_object::_head_object_input::HeadObjectInput;
523
524mod _head_object_input;
525
526mod _head_object_output;
527
528pub mod builders;