1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct ListResources;
6impl ListResources {
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::list_resources::ListResourcesInput,
14 ) -> ::std::result::Result<
15 crate::operation::list_resources::ListResourcesOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::list_resources::ListResourcesError,
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::list_resources::ListResourcesError>()
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::list_resources::ListResourcesOutput>()
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::list_resources::ListResourcesInput,
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("cloudcontrol", "ListResources", 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 ]));
65 if let ::std::option::Option::Some(config_override) = config_override {
66 for plugin in config_override.runtime_plugins.iter().cloned() {
67 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
68 }
69 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
70 config_override,
71 client_config.config.clone(),
72 &client_config.runtime_components,
73 ));
74 }
75 runtime_plugins
76 }
77}
78impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ListResources {
79 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
80 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ListResources");
81
82 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
83 ListResourcesRequestSerializer,
84 ));
85 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
86 ListResourcesResponseDeserializer,
87 ));
88
89 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
90 ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
91 ));
92
93 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
94 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
95 "ListResources",
96 "cloudcontrol",
97 ));
98 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
99 signing_options.double_uri_encode = true;
100 signing_options.content_sha256_header = false;
101 signing_options.normalize_uri_path = true;
102 signing_options.payload_override = None;
103
104 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
105 signing_options,
106 ..::std::default::Default::default()
107 });
108
109 ::std::option::Option::Some(cfg.freeze())
110 }
111
112 fn runtime_components(
113 &self,
114 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
115 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
116 #[allow(unused_mut)]
117 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ListResources")
118 .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
119 .with_interceptor(ListResourcesEndpointParamsInterceptor)
120 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
121 crate::operation::list_resources::ListResourcesError,
122 >::new())
123 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
124 crate::operation::list_resources::ListResourcesError,
125 >::new())
126 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
127 crate::operation::list_resources::ListResourcesError,
128 >::new());
129
130 ::std::borrow::Cow::Owned(rcb)
131 }
132}
133
134#[derive(Debug)]
135struct ListResourcesResponseDeserializer;
136impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListResourcesResponseDeserializer {
137 fn deserialize_nonstreaming(
138 &self,
139 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
140 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
141 let (success, status) = (response.status().is_success(), response.status().as_u16());
142 let headers = response.headers();
143 let body = response.body().bytes().expect("body loaded");
144 #[allow(unused_mut)]
145 let mut force_error = false;
146 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
147 let parse_result = if !success && status != 200 || force_error {
148 crate::protocol_serde::shape_list_resources::de_list_resources_http_error(status, headers, body)
149 } else {
150 crate::protocol_serde::shape_list_resources::de_list_resources_http_response(status, headers, body)
151 };
152 crate::protocol_serde::type_erase_result(parse_result)
153 }
154}
155#[derive(Debug)]
156struct ListResourcesRequestSerializer;
157impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListResourcesRequestSerializer {
158 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
159 fn serialize_input(
160 &self,
161 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
162 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
163 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
164 let input = input
165 .downcast::<crate::operation::list_resources::ListResourcesInput>()
166 .expect("correct type");
167 let _header_serialization_settings = _cfg
168 .load::<crate::serialization_settings::HeaderSerializationSettings>()
169 .cloned()
170 .unwrap_or_default();
171 let mut request_builder = {
172 fn uri_base(
173 _input: &crate::operation::list_resources::ListResourcesInput,
174 output: &mut ::std::string::String,
175 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
176 use ::std::fmt::Write as _;
177 ::std::write!(output, "/").expect("formatting should succeed");
178 ::std::result::Result::Ok(())
179 }
180 #[allow(clippy::unnecessary_wraps)]
181 fn update_http_builder(
182 input: &crate::operation::list_resources::ListResourcesInput,
183 builder: ::http::request::Builder,
184 ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
185 let mut uri = ::std::string::String::new();
186 uri_base(input, &mut uri)?;
187 ::std::result::Result::Ok(builder.method("POST").uri(uri))
188 }
189 let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
190 builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
191 builder = _header_serialization_settings.set_default_header(
192 builder,
193 ::http::header::HeaderName::from_static("x-amz-target"),
194 "CloudApiService.ListResources",
195 );
196 builder
197 };
198 let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_resources::ser_list_resources_input(&input)?);
199 if let Some(content_length) = body.content_length() {
200 let content_length = content_length.to_string();
201 request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
202 }
203 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
204 }
205}
206#[derive(Debug)]
207struct ListResourcesEndpointParamsInterceptor;
208
209impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListResourcesEndpointParamsInterceptor {
210 fn name(&self) -> &'static str {
211 "ListResourcesEndpointParamsInterceptor"
212 }
213
214 fn read_before_execution(
215 &self,
216 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
217 '_,
218 ::aws_smithy_runtime_api::client::interceptors::context::Input,
219 ::aws_smithy_runtime_api::client::interceptors::context::Output,
220 ::aws_smithy_runtime_api::client::interceptors::context::Error,
221 >,
222 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
223 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
224 let _input = context
225 .input()
226 .downcast_ref::<ListResourcesInput>()
227 .ok_or("failed to downcast to ListResourcesInput")?;
228
229 let params = crate::config::endpoint::Params::builder()
230 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
231 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
232 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
233 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
234 .build()
235 .map_err(|err| {
236 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
237 })?;
238 cfg.interceptor_state()
239 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
240 ::std::result::Result::Ok(())
241 }
242}
243
244#[non_exhaustive]
249#[derive(::std::fmt::Debug)]
250pub enum ListResourcesError {
251 AlreadyExistsException(crate::types::error::AlreadyExistsException),
253 GeneralServiceException(crate::types::error::GeneralServiceException),
255 HandlerFailureException(crate::types::error::HandlerFailureException),
257 HandlerInternalFailureException(crate::types::error::HandlerInternalFailureException),
259 InvalidCredentialsException(crate::types::error::InvalidCredentialsException),
261 InvalidRequestException(crate::types::error::InvalidRequestException),
263 NetworkFailureException(crate::types::error::NetworkFailureException),
265 NotStabilizedException(crate::types::error::NotStabilizedException),
267 NotUpdatableException(crate::types::error::NotUpdatableException),
269 PrivateTypeException(crate::types::error::PrivateTypeException),
271 ResourceConflictException(crate::types::error::ResourceConflictException),
273 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
275 ServiceInternalErrorException(crate::types::error::ServiceInternalErrorException),
277 ServiceLimitExceededException(crate::types::error::ServiceLimitExceededException),
279 ThrottlingException(crate::types::error::ThrottlingException),
281 TypeNotFoundException(crate::types::error::TypeNotFoundException),
283 UnsupportedActionException(crate::types::error::UnsupportedActionException),
285 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
287 variable wildcard pattern and check `.code()`:
288 \
289 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
290 \
291 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListResourcesError) for what information is available for the error.")]
292 Unhandled(crate::error::sealed_unhandled::Unhandled),
293}
294impl ListResourcesError {
295 pub fn unhandled(
297 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
298 ) -> Self {
299 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
300 source: err.into(),
301 meta: ::std::default::Default::default(),
302 })
303 }
304
305 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
307 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
308 source: err.clone().into(),
309 meta: err,
310 })
311 }
312 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
317 match self {
318 Self::AlreadyExistsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
319 Self::GeneralServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
320 Self::HandlerFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
321 Self::HandlerInternalFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
322 Self::InvalidCredentialsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
323 Self::InvalidRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
324 Self::NetworkFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
325 Self::NotStabilizedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
326 Self::NotUpdatableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
327 Self::PrivateTypeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
328 Self::ResourceConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
329 Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
330 Self::ServiceInternalErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
331 Self::ServiceLimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
332 Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
333 Self::TypeNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
334 Self::UnsupportedActionException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
335 Self::Unhandled(e) => &e.meta,
336 }
337 }
338 pub fn is_already_exists_exception(&self) -> bool {
340 matches!(self, Self::AlreadyExistsException(_))
341 }
342 pub fn is_general_service_exception(&self) -> bool {
344 matches!(self, Self::GeneralServiceException(_))
345 }
346 pub fn is_handler_failure_exception(&self) -> bool {
348 matches!(self, Self::HandlerFailureException(_))
349 }
350 pub fn is_handler_internal_failure_exception(&self) -> bool {
352 matches!(self, Self::HandlerInternalFailureException(_))
353 }
354 pub fn is_invalid_credentials_exception(&self) -> bool {
356 matches!(self, Self::InvalidCredentialsException(_))
357 }
358 pub fn is_invalid_request_exception(&self) -> bool {
360 matches!(self, Self::InvalidRequestException(_))
361 }
362 pub fn is_network_failure_exception(&self) -> bool {
364 matches!(self, Self::NetworkFailureException(_))
365 }
366 pub fn is_not_stabilized_exception(&self) -> bool {
368 matches!(self, Self::NotStabilizedException(_))
369 }
370 pub fn is_not_updatable_exception(&self) -> bool {
372 matches!(self, Self::NotUpdatableException(_))
373 }
374 pub fn is_private_type_exception(&self) -> bool {
376 matches!(self, Self::PrivateTypeException(_))
377 }
378 pub fn is_resource_conflict_exception(&self) -> bool {
380 matches!(self, Self::ResourceConflictException(_))
381 }
382 pub fn is_resource_not_found_exception(&self) -> bool {
384 matches!(self, Self::ResourceNotFoundException(_))
385 }
386 pub fn is_service_internal_error_exception(&self) -> bool {
388 matches!(self, Self::ServiceInternalErrorException(_))
389 }
390 pub fn is_service_limit_exceeded_exception(&self) -> bool {
392 matches!(self, Self::ServiceLimitExceededException(_))
393 }
394 pub fn is_throttling_exception(&self) -> bool {
396 matches!(self, Self::ThrottlingException(_))
397 }
398 pub fn is_type_not_found_exception(&self) -> bool {
400 matches!(self, Self::TypeNotFoundException(_))
401 }
402 pub fn is_unsupported_action_exception(&self) -> bool {
404 matches!(self, Self::UnsupportedActionException(_))
405 }
406}
407impl ::std::error::Error for ListResourcesError {
408 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
409 match self {
410 Self::AlreadyExistsException(_inner) => ::std::option::Option::Some(_inner),
411 Self::GeneralServiceException(_inner) => ::std::option::Option::Some(_inner),
412 Self::HandlerFailureException(_inner) => ::std::option::Option::Some(_inner),
413 Self::HandlerInternalFailureException(_inner) => ::std::option::Option::Some(_inner),
414 Self::InvalidCredentialsException(_inner) => ::std::option::Option::Some(_inner),
415 Self::InvalidRequestException(_inner) => ::std::option::Option::Some(_inner),
416 Self::NetworkFailureException(_inner) => ::std::option::Option::Some(_inner),
417 Self::NotStabilizedException(_inner) => ::std::option::Option::Some(_inner),
418 Self::NotUpdatableException(_inner) => ::std::option::Option::Some(_inner),
419 Self::PrivateTypeException(_inner) => ::std::option::Option::Some(_inner),
420 Self::ResourceConflictException(_inner) => ::std::option::Option::Some(_inner),
421 Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
422 Self::ServiceInternalErrorException(_inner) => ::std::option::Option::Some(_inner),
423 Self::ServiceLimitExceededException(_inner) => ::std::option::Option::Some(_inner),
424 Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
425 Self::TypeNotFoundException(_inner) => ::std::option::Option::Some(_inner),
426 Self::UnsupportedActionException(_inner) => ::std::option::Option::Some(_inner),
427 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
428 }
429 }
430}
431impl ::std::fmt::Display for ListResourcesError {
432 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
433 match self {
434 Self::AlreadyExistsException(_inner) => _inner.fmt(f),
435 Self::GeneralServiceException(_inner) => _inner.fmt(f),
436 Self::HandlerFailureException(_inner) => _inner.fmt(f),
437 Self::HandlerInternalFailureException(_inner) => _inner.fmt(f),
438 Self::InvalidCredentialsException(_inner) => _inner.fmt(f),
439 Self::InvalidRequestException(_inner) => _inner.fmt(f),
440 Self::NetworkFailureException(_inner) => _inner.fmt(f),
441 Self::NotStabilizedException(_inner) => _inner.fmt(f),
442 Self::NotUpdatableException(_inner) => _inner.fmt(f),
443 Self::PrivateTypeException(_inner) => _inner.fmt(f),
444 Self::ResourceConflictException(_inner) => _inner.fmt(f),
445 Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
446 Self::ServiceInternalErrorException(_inner) => _inner.fmt(f),
447 Self::ServiceLimitExceededException(_inner) => _inner.fmt(f),
448 Self::ThrottlingException(_inner) => _inner.fmt(f),
449 Self::TypeNotFoundException(_inner) => _inner.fmt(f),
450 Self::UnsupportedActionException(_inner) => _inner.fmt(f),
451 Self::Unhandled(_inner) => {
452 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
453 write!(f, "unhandled error ({code})")
454 } else {
455 f.write_str("unhandled error")
456 }
457 }
458 }
459 }
460}
461impl ::aws_smithy_types::retry::ProvideErrorKind for ListResourcesError {
462 fn code(&self) -> ::std::option::Option<&str> {
463 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
464 }
465 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
466 ::std::option::Option::None
467 }
468}
469impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListResourcesError {
470 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
471 match self {
472 Self::AlreadyExistsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
473 Self::GeneralServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
474 Self::HandlerFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
475 Self::HandlerInternalFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
476 Self::InvalidCredentialsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
477 Self::InvalidRequestException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
478 Self::NetworkFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
479 Self::NotStabilizedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
480 Self::NotUpdatableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
481 Self::PrivateTypeException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
482 Self::ResourceConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
483 Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
484 Self::ServiceInternalErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
485 Self::ServiceLimitExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
486 Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
487 Self::TypeNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
488 Self::UnsupportedActionException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
489 Self::Unhandled(_inner) => &_inner.meta,
490 }
491 }
492}
493impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListResourcesError {
494 fn create_unhandled_error(
495 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
496 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
497 ) -> Self {
498 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
499 source,
500 meta: meta.unwrap_or_default(),
501 })
502 }
503}
504impl ::aws_types::request_id::RequestId for crate::operation::list_resources::ListResourcesError {
505 fn request_id(&self) -> Option<&str> {
506 self.meta().request_id()
507 }
508}
509
510pub use crate::operation::list_resources::_list_resources_output::ListResourcesOutput;
511
512pub use crate::operation::list_resources::_list_resources_input::ListResourcesInput;
513
514mod _list_resources_input;
515
516mod _list_resources_output;
517
518pub mod builders;
520
521pub mod paginator;