1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct GetBlob;
6impl GetBlob {
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::get_blob::GetBlobInput,
14 ) -> ::std::result::Result<
15 crate::operation::get_blob::GetBlobOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::get_blob::GetBlobError,
18 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19 >,
20 > {
21 let map_err =
22 |err: ::aws_smithy_runtime_api::client::result::SdkError<
23 ::aws_smithy_runtime_api::client::interceptors::context::Error,
24 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
25 >| { err.map_service_error(|err| err.downcast::<crate::operation::get_blob::GetBlobError>().expect("correct error type")) };
26 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
27 .await
28 .map_err(map_err)?;
29 let output = context.finalize().map_err(map_err)?;
30 ::std::result::Result::Ok(
31 output
32 .downcast::<crate::operation::get_blob::GetBlobOutput>()
33 .expect("correct output type"),
34 )
35 }
36
37 pub(crate) async fn orchestrate_with_stop_point(
38 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
39 input: crate::operation::get_blob::GetBlobInput,
40 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
41 ) -> ::std::result::Result<
42 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
43 ::aws_smithy_runtime_api::client::result::SdkError<
44 ::aws_smithy_runtime_api::client::interceptors::context::Error,
45 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
46 >,
47 > {
48 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
49 use ::tracing::Instrument;
50 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("CodeCommit", "GetBlob", input, runtime_plugins, stop_point)
51 .instrument(::tracing::debug_span!(
54 "CodeCommit.GetBlob",
55 "rpc.service" = "CodeCommit",
56 "rpc.method" = "GetBlob",
57 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
58 "rpc.system" = "aws-api",
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
70 if let ::std::option::Option::Some(config_override) = config_override {
71 for plugin in config_override.runtime_plugins.iter().cloned() {
72 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
73 }
74 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
75 config_override,
76 client_config.config.clone(),
77 &client_config.runtime_components,
78 ));
79 }
80 runtime_plugins
81 }
82}
83impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for GetBlob {
84 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
85 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetBlob");
86
87 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
88 GetBlobRequestSerializer,
89 ));
90 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
91 GetBlobResponseDeserializer,
92 ));
93
94 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
95 crate::config::auth::Params::builder()
96 .operation_name("GetBlob")
97 .build()
98 .expect("required fields set"),
99 ));
100
101 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("GetBlob", "CodeCommit"));
102 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
103 signing_options.double_uri_encode = true;
104 signing_options.content_sha256_header = false;
105 signing_options.normalize_uri_path = true;
106 signing_options.payload_override = None;
107
108 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
109 signing_options,
110 ..::std::default::Default::default()
111 });
112
113 ::std::option::Option::Some(cfg.freeze())
114 }
115
116 fn runtime_components(
117 &self,
118 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
119 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
120 #[allow(unused_mut)]
121 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetBlob")
122 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
123 GetBlobTelemetryInputCaptureInterceptor,
124 ))
125 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
126 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
127 ))
128 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
129 GetBlobEndpointParamsInterceptor,
130 ))
131 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
132 crate::operation::get_blob::GetBlobError,
133 >::new())
134 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
135 crate::operation::get_blob::GetBlobError,
136 >::new())
137 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
138 crate::operation::get_blob::GetBlobError,
139 >::new())
140 .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
141 crate::operation::get_blob::GetBlobError,
142 >::new());
143
144 ::std::borrow::Cow::Owned(rcb)
145 }
146}
147
148#[derive(Debug)]
149struct GetBlobTelemetryInputCaptureInterceptor;
150
151#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
152impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetBlobTelemetryInputCaptureInterceptor {
153 fn name(&self) -> &'static str {
154 "GetBlobTelemetryInputCaptureInterceptor"
155 }
156
157 fn read_before_execution(
158 &self,
159 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
160 '_,
161 ::aws_smithy_runtime_api::client::interceptors::context::Input,
162 ::aws_smithy_runtime_api::client::interceptors::context::Output,
163 ::aws_smithy_runtime_api::client::interceptors::context::Error,
164 >,
165 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
166 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
167 let ::std::option::Option::Some(requested) = cfg
169 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
170 .filter(|r| !r.is_empty())
171 else {
172 return ::std::result::Result::Ok(());
173 };
174
175 let ::std::option::Option::Some(input) = context.input().downcast_ref::<GetBlobInput>() else {
176 return ::std::result::Result::Ok(());
178 };
179
180 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
181 if requested.should_capture("repositoryName") {
182 if let ::std::option::Option::Some(value) = input.repository_name.as_deref() {
183 captured.insert("repositoryName", value);
184 }
185 }
186 if requested.should_capture("blobId") {
187 if let ::std::option::Option::Some(value) = input.blob_id.as_deref() {
188 captured.insert("blobId", value);
189 }
190 }
191
192 cfg.interceptor_state().store_put(captured);
193 ::std::result::Result::Ok(())
194 }
195}
196#[derive(Debug)]
197struct GetBlobResponseDeserializer;
198impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBlobResponseDeserializer {
199 fn deserialize_nonstreaming_with_config(
200 &self,
201 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
202 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
203 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
204 let (success, status) = (response.status().is_success(), response.status().as_u16());
205 let headers = response.headers();
206 let body = response.body().bytes().expect("body loaded");
207 #[allow(unused_mut)]
208 let mut force_error = false;
209 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
210 let parse_result = if !success && status != 200 || force_error {
211 crate::protocol_serde::shape_get_blob::de_get_blob_http_error(status, headers, body)
212 } else {
213 crate::protocol_serde::shape_get_blob::de_get_blob_http_response(status, headers, body)
214 };
215 crate::protocol_serde::type_erase_result(parse_result)
216 }
217}
218#[derive(Debug)]
219struct GetBlobRequestSerializer;
220impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetBlobRequestSerializer {
221 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
222 fn serialize_input(
223 &self,
224 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
225 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
226 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
227 let input = input.downcast::<crate::operation::get_blob::GetBlobInput>().expect("correct type");
228 let _header_serialization_settings = _cfg
229 .load::<crate::serialization_settings::HeaderSerializationSettings>()
230 .cloned()
231 .unwrap_or_default();
232 let mut request_builder = {
233 #[allow(clippy::uninlined_format_args)]
234 fn uri_base(
235 _input: &crate::operation::get_blob::GetBlobInput,
236 output: &mut ::std::string::String,
237 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
238 use ::std::fmt::Write as _;
239 ::std::write!(output, "/").expect("formatting should succeed");
240 ::std::result::Result::Ok(())
241 }
242 #[allow(clippy::unnecessary_wraps)]
243 fn update_http_builder(
244 input: &crate::operation::get_blob::GetBlobInput,
245 builder: ::http_1x::request::Builder,
246 ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
247 let mut uri = ::std::string::String::new();
248 uri_base(input, &mut uri)?;
249 ::std::result::Result::Ok(builder.method("POST").uri(uri))
250 }
251 let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
252 builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
253 builder = _header_serialization_settings.set_default_header(
254 builder,
255 ::http_1x::header::HeaderName::from_static("x-amz-target"),
256 "CodeCommit_20150413.GetBlob",
257 );
258 builder
259 };
260 let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_get_blob::ser_get_blob_input(&input)?);
261 if let Some(content_length) = body.content_length() {
262 let content_length = content_length.to_string();
263 request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
264 }
265 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
266 }
267}
268#[derive(Debug)]
269struct GetBlobEndpointParamsInterceptor;
270
271#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
272impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetBlobEndpointParamsInterceptor {
273 fn name(&self) -> &'static str {
274 "GetBlobEndpointParamsInterceptor"
275 }
276
277 fn read_before_execution(
278 &self,
279 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
280 '_,
281 ::aws_smithy_runtime_api::client::interceptors::context::Input,
282 ::aws_smithy_runtime_api::client::interceptors::context::Output,
283 ::aws_smithy_runtime_api::client::interceptors::context::Error,
284 >,
285 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
286 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
287 let _input = context
288 .input()
289 .downcast_ref::<GetBlobInput>()
290 .ok_or("failed to downcast to GetBlobInput")?;
291
292 let params = crate::config::endpoint::Params::builder()
293 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
294 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
295 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
296 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
297 .build()
298 .map_err(|err| {
299 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
300 })?;
301 cfg.interceptor_state()
302 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
303 ::std::result::Result::Ok(())
304 }
305}
306
307#[non_exhaustive]
312#[derive(::std::fmt::Debug)]
313pub enum GetBlobError {
314 BlobIdDoesNotExistException(crate::types::error::BlobIdDoesNotExistException),
316 BlobIdRequiredException(crate::types::error::BlobIdRequiredException),
318 EncryptionIntegrityChecksFailedException(crate::types::error::EncryptionIntegrityChecksFailedException),
320 EncryptionKeyAccessDeniedException(crate::types::error::EncryptionKeyAccessDeniedException),
322 EncryptionKeyDisabledException(crate::types::error::EncryptionKeyDisabledException),
324 EncryptionKeyNotFoundException(crate::types::error::EncryptionKeyNotFoundException),
326 EncryptionKeyUnavailableException(crate::types::error::EncryptionKeyUnavailableException),
328 FileTooLargeException(crate::types::error::FileTooLargeException),
330 InvalidBlobIdException(crate::types::error::InvalidBlobIdException),
332 InvalidRepositoryNameException(crate::types::error::InvalidRepositoryNameException),
336 RepositoryDoesNotExistException(crate::types::error::RepositoryDoesNotExistException),
338 RepositoryNameRequiredException(crate::types::error::RepositoryNameRequiredException),
340 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
342 variable wildcard pattern and check `.code()`:
343 \
344 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
345 \
346 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetBlobError) for what information is available for the error.")]
347 Unhandled(crate::error::sealed_unhandled::Unhandled),
348}
349impl GetBlobError {
350 pub fn unhandled(
352 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
353 ) -> Self {
354 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
355 source: err.into(),
356 meta: ::std::default::Default::default(),
357 })
358 }
359
360 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
362 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
363 source: err.clone().into(),
364 meta: err,
365 })
366 }
367 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
372 match self {
373 Self::BlobIdDoesNotExistException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
374 Self::BlobIdRequiredException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
375 Self::EncryptionIntegrityChecksFailedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
376 Self::EncryptionKeyAccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
377 Self::EncryptionKeyDisabledException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
378 Self::EncryptionKeyNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
379 Self::EncryptionKeyUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
380 Self::FileTooLargeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
381 Self::InvalidBlobIdException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
382 Self::InvalidRepositoryNameException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
383 Self::RepositoryDoesNotExistException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
384 Self::RepositoryNameRequiredException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
385 Self::Unhandled(e) => &e.meta,
386 }
387 }
388 pub fn is_blob_id_does_not_exist_exception(&self) -> bool {
390 matches!(self, Self::BlobIdDoesNotExistException(_))
391 }
392 pub fn is_blob_id_required_exception(&self) -> bool {
394 matches!(self, Self::BlobIdRequiredException(_))
395 }
396 pub fn is_encryption_integrity_checks_failed_exception(&self) -> bool {
398 matches!(self, Self::EncryptionIntegrityChecksFailedException(_))
399 }
400 pub fn is_encryption_key_access_denied_exception(&self) -> bool {
402 matches!(self, Self::EncryptionKeyAccessDeniedException(_))
403 }
404 pub fn is_encryption_key_disabled_exception(&self) -> bool {
406 matches!(self, Self::EncryptionKeyDisabledException(_))
407 }
408 pub fn is_encryption_key_not_found_exception(&self) -> bool {
410 matches!(self, Self::EncryptionKeyNotFoundException(_))
411 }
412 pub fn is_encryption_key_unavailable_exception(&self) -> bool {
414 matches!(self, Self::EncryptionKeyUnavailableException(_))
415 }
416 pub fn is_file_too_large_exception(&self) -> bool {
418 matches!(self, Self::FileTooLargeException(_))
419 }
420 pub fn is_invalid_blob_id_exception(&self) -> bool {
422 matches!(self, Self::InvalidBlobIdException(_))
423 }
424 pub fn is_invalid_repository_name_exception(&self) -> bool {
426 matches!(self, Self::InvalidRepositoryNameException(_))
427 }
428 pub fn is_repository_does_not_exist_exception(&self) -> bool {
430 matches!(self, Self::RepositoryDoesNotExistException(_))
431 }
432 pub fn is_repository_name_required_exception(&self) -> bool {
434 matches!(self, Self::RepositoryNameRequiredException(_))
435 }
436}
437impl ::std::error::Error for GetBlobError {
438 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
439 match self {
440 Self::BlobIdDoesNotExistException(_inner) => ::std::option::Option::Some(_inner),
441 Self::BlobIdRequiredException(_inner) => ::std::option::Option::Some(_inner),
442 Self::EncryptionIntegrityChecksFailedException(_inner) => ::std::option::Option::Some(_inner),
443 Self::EncryptionKeyAccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
444 Self::EncryptionKeyDisabledException(_inner) => ::std::option::Option::Some(_inner),
445 Self::EncryptionKeyNotFoundException(_inner) => ::std::option::Option::Some(_inner),
446 Self::EncryptionKeyUnavailableException(_inner) => ::std::option::Option::Some(_inner),
447 Self::FileTooLargeException(_inner) => ::std::option::Option::Some(_inner),
448 Self::InvalidBlobIdException(_inner) => ::std::option::Option::Some(_inner),
449 Self::InvalidRepositoryNameException(_inner) => ::std::option::Option::Some(_inner),
450 Self::RepositoryDoesNotExistException(_inner) => ::std::option::Option::Some(_inner),
451 Self::RepositoryNameRequiredException(_inner) => ::std::option::Option::Some(_inner),
452 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
453 }
454 }
455}
456impl ::std::fmt::Display for GetBlobError {
457 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
458 match self {
459 Self::BlobIdDoesNotExistException(_inner) => _inner.fmt(f),
460 Self::BlobIdRequiredException(_inner) => _inner.fmt(f),
461 Self::EncryptionIntegrityChecksFailedException(_inner) => _inner.fmt(f),
462 Self::EncryptionKeyAccessDeniedException(_inner) => _inner.fmt(f),
463 Self::EncryptionKeyDisabledException(_inner) => _inner.fmt(f),
464 Self::EncryptionKeyNotFoundException(_inner) => _inner.fmt(f),
465 Self::EncryptionKeyUnavailableException(_inner) => _inner.fmt(f),
466 Self::FileTooLargeException(_inner) => _inner.fmt(f),
467 Self::InvalidBlobIdException(_inner) => _inner.fmt(f),
468 Self::InvalidRepositoryNameException(_inner) => _inner.fmt(f),
469 Self::RepositoryDoesNotExistException(_inner) => _inner.fmt(f),
470 Self::RepositoryNameRequiredException(_inner) => _inner.fmt(f),
471 Self::Unhandled(_inner) => {
472 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
473 write!(f, "unhandled error ({code})")
474 } else {
475 f.write_str("unhandled error")
476 }
477 }
478 }
479 }
480}
481impl ::aws_smithy_types::retry::ProvideErrorKind for GetBlobError {
482 fn code(&self) -> ::std::option::Option<&str> {
483 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
484 }
485 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
486 ::std::option::Option::None
487 }
488}
489impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetBlobError {
490 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
491 match self {
492 Self::BlobIdDoesNotExistException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
493 Self::BlobIdRequiredException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
494 Self::EncryptionIntegrityChecksFailedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
495 Self::EncryptionKeyAccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
496 Self::EncryptionKeyDisabledException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
497 Self::EncryptionKeyNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
498 Self::EncryptionKeyUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
499 Self::FileTooLargeException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
500 Self::InvalidBlobIdException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
501 Self::InvalidRepositoryNameException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
502 Self::RepositoryDoesNotExistException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
503 Self::RepositoryNameRequiredException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
504 Self::Unhandled(_inner) => &_inner.meta,
505 }
506 }
507}
508impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetBlobError {
509 fn create_unhandled_error(
510 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
511 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
512 ) -> Self {
513 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
514 source,
515 meta: meta.unwrap_or_default(),
516 })
517 }
518}
519impl ::aws_types::request_id::RequestId for crate::operation::get_blob::GetBlobError {
520 fn request_id(&self) -> Option<&str> {
521 self.meta().request_id()
522 }
523}
524
525pub use crate::operation::get_blob::_get_blob_input::GetBlobInput;
526
527pub use crate::operation::get_blob::_get_blob_output::GetBlobOutput;
528
529mod _get_blob_input;
530
531mod _get_blob_output;
532
533pub mod builders;