1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct BatchGetTriggers;
6impl BatchGetTriggers {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::batch_get_triggers::BatchGetTriggersInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::batch_get_triggers::BatchGetTriggersOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::batch_get_triggers::BatchGetTriggersInput,
18 ) -> ::std::result::Result<
19 crate::operation::batch_get_triggers::BatchGetTriggersOutput,
20 ::aws_smithy_runtime_api::client::result::SdkError<
21 crate::operation::batch_get_triggers::BatchGetTriggersError,
22 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
23 >,
24 > {
25 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
26 ::aws_smithy_runtime_api::client::interceptors::context::Error,
27 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
28 >| {
29 err.map_service_error(|err| {
30 err.downcast::<crate::operation::batch_get_triggers::BatchGetTriggersError>()
31 .expect("correct error type")
32 })
33 };
34 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
35 .await
36 .map_err(map_err)?;
37 let output = context.finalize().map_err(map_err)?;
38 ::std::result::Result::Ok(
39 output
40 .downcast::<crate::operation::batch_get_triggers::BatchGetTriggersOutput>()
41 .expect("correct output type"),
42 )
43 }
44
45 pub(crate) async fn orchestrate_with_stop_point(
46 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
47 input: crate::operation::batch_get_triggers::BatchGetTriggersInput,
48 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
49 ) -> ::std::result::Result<
50 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
51 ::aws_smithy_runtime_api::client::result::SdkError<
52 ::aws_smithy_runtime_api::client::interceptors::context::Error,
53 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
54 >,
55 > {
56 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
57 use ::tracing::Instrument;
58 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Glue", "BatchGetTriggers", input, runtime_plugins, stop_point)
59 .instrument(::tracing::debug_span!(
62 "Glue.BatchGetTriggers",
63 "rpc.service" = "Glue",
64 "rpc.method" = "BatchGetTriggers",
65 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
66 "rpc.system" = "aws-api",
67 ))
68 .await
69 }
70
71 pub(crate) fn operation_runtime_plugins(
72 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
73 client_config: &crate::config::Config,
74 config_override: ::std::option::Option<crate::config::Builder>,
75 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
76 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
77
78 if let ::std::option::Option::Some(config_override) = config_override {
79 for plugin in config_override.runtime_plugins.iter().cloned() {
80 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
81 }
82 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
83 config_override,
84 client_config.config.clone(),
85 &client_config.runtime_components,
86 ));
87 }
88 runtime_plugins
89 }
90}
91pub(crate) mod error_registry {
100 pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
101 ::aws_smithy_schema::registry::TypeRegistry::builder()
102 .insert_error_shape(
103 crate::types::error::InternalServiceException::SCHEMA,
104 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
105 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServiceException::deserialize(d)?))
106 },
107 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
108 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServiceException::deserialize(d)?))
109 },
110 )
111.insert_error_shape(
112 crate::types::error::InvalidInputException::SCHEMA,
113 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
114 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidInputException::deserialize(d)?))
115 },
116 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
117 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidInputException::deserialize(d)?))
118 },
119 )
120.insert_error_shape(
121 crate::types::error::OperationTimeoutException::SCHEMA,
122 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
123 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
124 },
125 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
126 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
127 },
128 )
129 .build()
130 });
131}
132impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for BatchGetTriggers {
133 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
134 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("BatchGetTriggers");
135
136 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
137 BatchGetTriggersRequestSerializer,
138 ));
139 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
140 BatchGetTriggersResponseDeserializer,
141 ));
142
143 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
144 crate::config::auth::Params::builder()
145 .operation_name("BatchGetTriggers")
146 .build()
147 .expect("required fields set"),
148 ));
149
150 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("BatchGetTriggers", "Glue"));
151 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
152 signing_options.double_uri_encode = true;
153 signing_options.content_sha256_header = false;
154 signing_options.normalize_uri_path = true;
155 signing_options.payload_override = None;
156
157 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
158 signing_options,
159 ..::std::default::Default::default()
160 });
161
162 ::std::option::Option::Some(cfg.freeze())
163 }
164
165 fn runtime_components(
166 &self,
167 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
168 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
169 #[allow(unused_mut)]
170 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("BatchGetTriggers")
171 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
172 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
173 ))
174 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
175 BatchGetTriggersEndpointParamsInterceptor,
176 ))
177 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
178 crate::operation::batch_get_triggers::BatchGetTriggersError,
179 >::new())
180 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
181 crate::operation::batch_get_triggers::BatchGetTriggersError,
182 >::new())
183 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
184 crate::operation::batch_get_triggers::BatchGetTriggersError,
185 >::new())
186 .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
187 crate::operation::batch_get_triggers::BatchGetTriggersError,
188 >::new());
189
190 ::std::borrow::Cow::Owned(rcb)
191 }
192}
193
194#[derive(Debug)]
195struct BatchGetTriggersResponseDeserializer;
196impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for BatchGetTriggersResponseDeserializer {
197 fn deserialize_nonstreaming_with_config(
198 &self,
199 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
200 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
201 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
202 let (success, status) = (response.status().is_success(), response.status().as_u16());
203 #[allow(unused_variables)]
208 let body = response.body().bytes().expect("body loaded");
209 let headers = response.headers();
210 #[allow(unused_mut)]
211 let mut force_error = false;
212 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
213 if !success && status != 200 || force_error {
214 let protocol = _cfg
215 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
216 .expect("a SharedClientProtocol is required");
217 #[allow(unused_mut)]
218 let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
219 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
220 })?;
221 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
222 let generic = generic_builder.build();
223 let error_code = match generic.code() {
224 ::std::option::Option::Some(code) => code,
225 ::std::option::Option::None => {
226 return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
227 ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::batch_get_triggers::BatchGetTriggersError::unhandled(
228 generic,
229 )),
230 ))
231 }
232 };
233 let _error_message = generic.message().map(|msg| msg.to_owned());
234 let err = match error_code {
235 "InternalServiceException" => crate::operation::batch_get_triggers::BatchGetTriggersError::InternalServiceException({
236 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
237 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
238 e,
239 ))
240 })?;
241 let mut tmp = <crate::types::error::builders::InternalServiceExceptionBuilder>::default();
242 tmp.deserialize_members(&mut *deser).map_err(|e| {
243 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
244 e,
245 ))
246 })?;
247 if tmp.message.is_none() {
248 tmp.message = _error_message;
249 }
250 let tmp = tmp.meta(generic);
251 tmp.build()
252 }),
253 "InvalidInputException" => crate::operation::batch_get_triggers::BatchGetTriggersError::InvalidInputException({
254 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
255 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
256 e,
257 ))
258 })?;
259 let mut tmp = <crate::types::error::builders::InvalidInputExceptionBuilder>::default();
260 tmp.deserialize_members(&mut *deser).map_err(|e| {
261 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
262 e,
263 ))
264 })?;
265 if tmp.message.is_none() {
266 tmp.message = _error_message;
267 }
268 let tmp = tmp.meta(generic);
269 tmp.build()
270 }),
271 "OperationTimeoutException" => crate::operation::batch_get_triggers::BatchGetTriggersError::OperationTimeoutException({
272 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
273 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
274 e,
275 ))
276 })?;
277 let mut tmp = <crate::types::error::builders::OperationTimeoutExceptionBuilder>::default();
278 tmp.deserialize_members(&mut *deser).map_err(|e| {
279 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
280 e,
281 ))
282 })?;
283 if tmp.message.is_none() {
284 tmp.message = _error_message;
285 }
286 let tmp = tmp.meta(generic);
287 tmp.build()
288 }),
289 _ => {
290 match protocol
298 .deserialize_error_response(response, _cfg)
299 .ok()
300 .and_then(|mut deser| {
301 ::aws_smithy_schema::registry::reify_error(
302 crate::operation::batch_get_triggers::error_registry::REGISTRY
303 .or(&crate::error_type_registry::REGISTRY),
304 error_code,
305 &mut *deser,
306 )
307 }) {
308 ::std::option::Option::Some(source) => <crate::operation::batch_get_triggers::BatchGetTriggersError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
309 ::std::option::Option::None => crate::operation::batch_get_triggers::BatchGetTriggersError::generic(generic),
310 }
311 }
312 };
313 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
314 ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
315 ))
316 } else {
317 let protocol = _cfg
318 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
319 .expect("a SharedClientProtocol is required");
320 let mut deser = protocol
321 .deserialize_response(response, BatchGetTriggers::OUTPUT_SCHEMA, _cfg)
322 .map_err(|e| {
323 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
324 })?;
325 let _response_headers = headers;
329 #[allow(unused_mut)]
333 let mut output = <crate::operation::batch_get_triggers::builders::BatchGetTriggersOutputBuilder>::default();
334 output.deserialize_members(&mut *deser).map_err(|e| {
335 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
336 })?;
337 output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
338 let output = output.build();
339 ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
340 }
341 }
342}
343#[derive(Debug)]
344struct BatchGetTriggersRequestSerializer;
345impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for BatchGetTriggersRequestSerializer {
346 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
347 fn serialize_input(
348 &self,
349 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
350 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
351 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
352 let input = input
353 .downcast::<crate::operation::batch_get_triggers::BatchGetTriggersInput>()
354 .expect("correct type");
355
356 let protocol = _cfg
357 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
358 .expect("a SharedClientProtocol is required");
359 let mut request = protocol
360 .serialize_request(&input, BatchGetTriggers::INPUT_SCHEMA, "/", _cfg)
361 .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
362
363 return ::std::result::Result::Ok(request);
364 }
365}
366#[derive(Debug)]
367struct BatchGetTriggersEndpointParamsInterceptor;
368
369#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
370impl ::aws_smithy_runtime_api::client::interceptors::Intercept for BatchGetTriggersEndpointParamsInterceptor {
371 fn name(&self) -> &'static str {
372 "BatchGetTriggersEndpointParamsInterceptor"
373 }
374
375 fn read_before_execution(
376 &self,
377 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
378 '_,
379 ::aws_smithy_runtime_api::client::interceptors::context::Input,
380 ::aws_smithy_runtime_api::client::interceptors::context::Output,
381 ::aws_smithy_runtime_api::client::interceptors::context::Error,
382 >,
383 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
384 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
385 let _input = context
386 .input()
387 .downcast_ref::<BatchGetTriggersInput>()
388 .ok_or("failed to downcast to BatchGetTriggersInput")?;
389
390 let params = crate::config::endpoint::Params::builder()
391 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
392 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
393 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
394 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
395 .build()
396 .map_err(|err| {
397 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
398 })?;
399 cfg.interceptor_state()
400 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
401 ::std::result::Result::Ok(())
402 }
403}
404
405#[non_exhaustive]
410#[derive(::std::fmt::Debug)]
411pub enum BatchGetTriggersError {
412 InternalServiceException(crate::types::error::InternalServiceException),
414 InvalidInputException(crate::types::error::InvalidInputException),
416 OperationTimeoutException(crate::types::error::OperationTimeoutException),
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-BatchGetTriggersError) for what information is available for the error.")]
425 Unhandled(crate::error::sealed_unhandled::Unhandled),
426}
427impl BatchGetTriggersError {
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::InternalServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
452 Self::InvalidInputException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
453 Self::OperationTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
454 Self::Unhandled(e) => &e.meta,
455 }
456 }
457 pub fn is_internal_service_exception(&self) -> bool {
459 matches!(self, Self::InternalServiceException(_))
460 }
461 pub fn is_invalid_input_exception(&self) -> bool {
463 matches!(self, Self::InvalidInputException(_))
464 }
465 pub fn is_operation_timeout_exception(&self) -> bool {
467 matches!(self, Self::OperationTimeoutException(_))
468 }
469}
470impl ::std::error::Error for BatchGetTriggersError {
471 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
472 match self {
473 Self::InternalServiceException(_inner) => ::std::option::Option::Some(_inner),
474 Self::InvalidInputException(_inner) => ::std::option::Option::Some(_inner),
475 Self::OperationTimeoutException(_inner) => ::std::option::Option::Some(_inner),
476 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
477 }
478 }
479}
480impl ::std::fmt::Display for BatchGetTriggersError {
481 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
482 match self {
483 Self::InternalServiceException(_inner) => _inner.fmt(f),
484 Self::InvalidInputException(_inner) => _inner.fmt(f),
485 Self::OperationTimeoutException(_inner) => _inner.fmt(f),
486 Self::Unhandled(_inner) => {
487 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
488 write!(f, "unhandled error ({code})")
489 } else {
490 f.write_str("unhandled error")
491 }
492 }
493 }
494 }
495}
496impl ::aws_smithy_types::retry::ProvideErrorKind for BatchGetTriggersError {
497 fn code(&self) -> ::std::option::Option<&str> {
498 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
499 }
500 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
501 ::std::option::Option::None
502 }
503}
504impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for BatchGetTriggersError {
505 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
506 match self {
507 Self::InternalServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
508 Self::InvalidInputException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
509 Self::OperationTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
510 Self::Unhandled(_inner) => &_inner.meta,
511 }
512 }
513}
514impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for BatchGetTriggersError {
515 fn create_unhandled_error(
516 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
517 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
518 ) -> Self {
519 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
520 source,
521 meta: meta.unwrap_or_default(),
522 })
523 }
524}
525impl ::aws_types::request_id::RequestId for crate::operation::batch_get_triggers::BatchGetTriggersError {
526 fn request_id(&self) -> Option<&str> {
527 self.meta().request_id()
528 }
529}
530
531pub use crate::operation::batch_get_triggers::_batch_get_triggers_input::BatchGetTriggersInput;
532
533pub use crate::operation::batch_get_triggers::_batch_get_triggers_output::BatchGetTriggersOutput;
534
535mod _batch_get_triggers_input;
536
537mod _batch_get_triggers_output;
538
539pub mod builders;