1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct RegisterClient;
6impl RegisterClient {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::register_client::RegisterClientInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::register_client::RegisterClientOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::register_client::RegisterClientInput,
18 ) -> ::std::result::Result<crate::operation::register_client::RegisterClientOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_client::RegisterClientError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
19 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<::aws_smithy_runtime_api::client::interceptors::context::Error, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>| {
20 err.map_service_error(|err| {
21 err.downcast::<crate::operation::register_client::RegisterClientError>().expect("correct error type")
22 })
23 };
24 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
25 .await
26 .map_err(map_err)?;
27 let output = context.finalize().map_err(map_err)?;
28 ::std::result::Result::Ok(output.downcast::<crate::operation::register_client::RegisterClientOutput>().expect("correct output type"))
29 }
30
31 pub(crate) async fn orchestrate_with_stop_point(
32 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
33 input: crate::operation::register_client::RegisterClientInput,
34 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
35 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, ::aws_smithy_runtime_api::client::result::SdkError<::aws_smithy_runtime_api::client::interceptors::context::Error, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
36 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
37 use ::tracing::Instrument;
38 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point(
39 "SSO OIDC",
40 "RegisterClient",
41 input,
42 runtime_plugins,
43 stop_point
44 )
45 .instrument(::tracing::debug_span!(
48 "SSO OIDC.RegisterClient",
49 "rpc.service" = "SSO OIDC",
50 "rpc.method" = "RegisterClient",
51 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
52 "rpc.system" = "aws-api",
53 ))
54 .await
55 }
56
57 pub(crate) fn operation_runtime_plugins(
58 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
59 client_config: &crate::config::Config,
60 config_override: ::std::option::Option<crate::config::Builder>,
61 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
62 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
63
64 if let ::std::option::Option::Some(config_override) = config_override {
65 for plugin in config_override.runtime_plugins.iter().cloned() {
66 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
67 }
68 runtime_plugins = runtime_plugins.with_operation_plugin(
69 crate::config::ConfigOverrideRuntimePlugin::new(config_override, client_config.config.clone(), &client_config.runtime_components)
70 );
71 }
72 runtime_plugins
73 }
74}
75impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for RegisterClient {
76 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
77 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("RegisterClient");
78
79 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(RegisterClientRequestSerializer));
80 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(RegisterClientResponseDeserializer));
81
82 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
83 crate::config::auth::Params::builder()
84 .operation_name("RegisterClient")
85 .build()
86 .expect("required fields set")
87 ));
88
89 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
90cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
91 "RegisterClient",
92 "SSO OIDC",
93 ));
94
95 ::std::option::Option::Some(cfg.freeze())
96 }
97
98 fn runtime_components(&self, _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
99 #[allow(unused_mut)]
100 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("RegisterClient")
101 .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
102.with_interceptor(RegisterClientEndpointParamsInterceptor)
103 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<crate::operation::register_client::RegisterClientError>::new())
104.with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<crate::operation::register_client::RegisterClientError>::new())
105.with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<crate::operation::register_client::RegisterClientError>::new());
106
107 ::std::borrow::Cow::Owned(rcb)
108 }
109 }
110
111
112#[derive(Debug)]
113 struct RegisterClientResponseDeserializer;
114 impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RegisterClientResponseDeserializer {
115
116
117 fn deserialize_nonstreaming_with_config(&self, response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, _cfg: &::aws_smithy_types::config_bag::ConfigBag) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
118 let (success, status) = (response.status().is_success(), response.status().as_u16());
119 #[allow(unused_mut)]
120 let mut force_error = false;
121 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
122 if !success && status != 200 || force_error {
123 let headers = response.headers();
124 let body = response.body().bytes().expect("body loaded");
125#[allow(unused_mut)]
126 let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body)
127 .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
128 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
129 let generic = generic_builder.build();
130let error_code = match generic.code() {
131 ::std::option::Option::Some(code) => code,
132 ::std::option::Option::None => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::register_client::RegisterClientError::unhandled(generic)))),
133 };
134 let _error_message = generic.message().map(|msg| msg.to_owned());
135 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
136 .expect("a SharedClientProtocol is required");
137let err = match error_code {
138"InternalServerException" => crate::operation::register_client::RegisterClientError::InternalServerException({
139let mut tmp = match protocol.deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
140 .and_then(|mut deser| crate::types::error::InternalServerException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
141 {
142 ::std::result::Result::Ok(val) => val,
143 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
144 };
145 tmp.meta = generic;
146if tmp.message.is_none() {
147 tmp.message = _error_message;
148 }
149tmp
150}),
151"InvalidClientMetadataException" => crate::operation::register_client::RegisterClientError::InvalidClientMetadataException({
152let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidClientMetadataException::SCHEMA, _cfg)
153 .and_then(|mut deser| crate::types::error::InvalidClientMetadataException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
154 {
155 ::std::result::Result::Ok(val) => val,
156 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
157 };
158 tmp.meta = generic;
159if tmp.message.is_none() {
160 tmp.message = _error_message;
161 }
162tmp
163}),
164"InvalidRedirectUriException" => crate::operation::register_client::RegisterClientError::InvalidRedirectUriException({
165let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidRedirectUriException::SCHEMA, _cfg)
166 .and_then(|mut deser| crate::types::error::InvalidRedirectUriException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
167 {
168 ::std::result::Result::Ok(val) => val,
169 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
170 };
171 tmp.meta = generic;
172if tmp.message.is_none() {
173 tmp.message = _error_message;
174 }
175tmp
176}),
177"InvalidRequestException" => crate::operation::register_client::RegisterClientError::InvalidRequestException({
178let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidRequestException::SCHEMA, _cfg)
179 .and_then(|mut deser| crate::types::error::InvalidRequestException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
180 {
181 ::std::result::Result::Ok(val) => val,
182 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
183 };
184 tmp.meta = generic;
185if tmp.message.is_none() {
186 tmp.message = _error_message;
187 }
188tmp
189}),
190"InvalidScopeException" => crate::operation::register_client::RegisterClientError::InvalidScopeException({
191let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidScopeException::SCHEMA, _cfg)
192 .and_then(|mut deser| crate::types::error::InvalidScopeException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
193 {
194 ::std::result::Result::Ok(val) => val,
195 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
196 };
197 tmp.meta = generic;
198if tmp.message.is_none() {
199 tmp.message = _error_message;
200 }
201tmp
202}),
203"SlowDownException" => crate::operation::register_client::RegisterClientError::SlowDownException({
204let mut tmp = match protocol.deserialize_response(response, crate::types::error::SlowDownException::SCHEMA, _cfg)
205 .and_then(|mut deser| crate::types::error::SlowDownException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
206 {
207 ::std::result::Result::Ok(val) => val,
208 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
209 };
210 tmp.meta = generic;
211if tmp.message.is_none() {
212 tmp.message = _error_message;
213 }
214tmp
215}),
216"UnsupportedGrantTypeException" => crate::operation::register_client::RegisterClientError::UnsupportedGrantTypeException({
217let mut tmp = match protocol.deserialize_response(response, crate::types::error::UnsupportedGrantTypeException::SCHEMA, _cfg)
218 .and_then(|mut deser| crate::types::error::UnsupportedGrantTypeException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
219 {
220 ::std::result::Result::Ok(val) => val,
221 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
222 };
223 tmp.meta = generic;
224if tmp.message.is_none() {
225 tmp.message = _error_message;
226 }
227tmp
228}),
229_ => crate::operation::register_client::RegisterClientError::generic(generic)
230};
231 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err)))
232} else {
233 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
234 .expect("a SharedClientProtocol is required");
235 let mut deser = protocol.deserialize_response(response, RegisterClient::OUTPUT_SCHEMA, _cfg)
236 .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
237 let body = response.body().bytes().expect("body loaded");
238 let output = crate::operation::register_client::RegisterClientOutput::deserialize_with_response(
239 &mut *deser,
240 response.headers(),
241 response.status().into(),
242 body,
243 ).map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
244 ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
245 }
246 }
247 }
248#[derive(Debug)]
249 struct RegisterClientRequestSerializer;
250 impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RegisterClientRequestSerializer {
251 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
252 fn serialize_input(&self, input: ::aws_smithy_runtime_api::client::interceptors::context::Input, _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
253 let input = input.downcast::<crate::operation::register_client::RegisterClientInput>().expect("correct type");
254 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
255 .expect("a SharedClientProtocol is required");
256 let mut request = protocol.serialize_request(
257 &input, RegisterClient::INPUT_SCHEMA, "", _cfg,
258 ).map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
259
260 return ::std::result::Result::Ok(request);
261 }
262 }
263#[derive(Debug)]
264 struct RegisterClientEndpointParamsInterceptor;
265
266 impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RegisterClientEndpointParamsInterceptor {
267 fn name(&self) -> &'static str {
268 "RegisterClientEndpointParamsInterceptor"
269 }
270
271 fn read_before_execution(
272 &self,
273 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_, ::aws_smithy_runtime_api::client::interceptors::context::Input, ::aws_smithy_runtime_api::client::interceptors::context::Output, ::aws_smithy_runtime_api::client::interceptors::context::Error>,
274 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
275 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
276 let _input = context.input()
277 .downcast_ref::<RegisterClientInput>()
278 .ok_or("failed to downcast to RegisterClientInput")?;
279
280
281
282 let params = crate::config::endpoint::Params::builder()
283 .set_region(cfg.load::<::aws_types::region::Region>().map(|r|r.as_ref().to_owned()))
284.set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
285.set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
286.set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
287 .build()
288 .map_err(|err| ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err))?;
289 cfg.interceptor_state().store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
290 ::std::result::Result::Ok(())
291 }
292 }
293
294 #[non_exhaustive]
301#[derive(::std::fmt::Debug)]
302pub enum RegisterClientError {
303 InternalServerException(crate::types::error::InternalServerException),
305 InvalidClientMetadataException(crate::types::error::InvalidClientMetadataException),
307 InvalidRedirectUriException(crate::types::error::InvalidRedirectUriException),
309 InvalidRequestException(crate::types::error::InvalidRequestException),
311 InvalidScopeException(crate::types::error::InvalidScopeException),
313 SlowDownException(crate::types::error::SlowDownException),
315 UnsupportedGrantTypeException(crate::types::error::UnsupportedGrantTypeException),
317 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
319 variable wildcard pattern and check `.code()`:
320 \
321 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
322 \
323 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RegisterClientError) for what information is available for the error.")]
324 Unhandled(crate::error::sealed_unhandled::Unhandled),
325}
326impl RegisterClientError {
327 pub fn unhandled(err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>) -> Self {
329 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.into(), meta: ::std::default::Default::default() })
330 }
331
332 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
334 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.clone().into(), meta: err })
335 }
336 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
341 match self {
342 Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
343 Self::InvalidClientMetadataException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
344 Self::InvalidRedirectUriException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
345 Self::InvalidRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
346 Self::InvalidScopeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
347 Self::SlowDownException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
348 Self::UnsupportedGrantTypeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
349 Self::Unhandled(e) => &e.meta,
350 }
351 }
352 pub fn is_internal_server_exception(&self) -> bool {
354 matches!(self, Self::InternalServerException(_))
355 }
356 pub fn is_invalid_client_metadata_exception(&self) -> bool {
358 matches!(self, Self::InvalidClientMetadataException(_))
359 }
360 pub fn is_invalid_redirect_uri_exception(&self) -> bool {
362 matches!(self, Self::InvalidRedirectUriException(_))
363 }
364 pub fn is_invalid_request_exception(&self) -> bool {
366 matches!(self, Self::InvalidRequestException(_))
367 }
368 pub fn is_invalid_scope_exception(&self) -> bool {
370 matches!(self, Self::InvalidScopeException(_))
371 }
372 pub fn is_slow_down_exception(&self) -> bool {
374 matches!(self, Self::SlowDownException(_))
375 }
376 pub fn is_unsupported_grant_type_exception(&self) -> bool {
378 matches!(self, Self::UnsupportedGrantTypeException(_))
379 }
380}
381impl ::std::error::Error for RegisterClientError {
382 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
383 match self {
384 Self::InternalServerException(_inner) =>
385 ::std::option::Option::Some(_inner)
386 ,
387 Self::InvalidClientMetadataException(_inner) =>
388 ::std::option::Option::Some(_inner)
389 ,
390 Self::InvalidRedirectUriException(_inner) =>
391 ::std::option::Option::Some(_inner)
392 ,
393 Self::InvalidRequestException(_inner) =>
394 ::std::option::Option::Some(_inner)
395 ,
396 Self::InvalidScopeException(_inner) =>
397 ::std::option::Option::Some(_inner)
398 ,
399 Self::SlowDownException(_inner) =>
400 ::std::option::Option::Some(_inner)
401 ,
402 Self::UnsupportedGrantTypeException(_inner) =>
403 ::std::option::Option::Some(_inner)
404 ,
405 Self::Unhandled(_inner) => {
406 ::std::option::Option::Some(&*_inner.source)
407 }
408 }
409 }
410}
411impl ::std::fmt::Display for RegisterClientError {
412 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
413 match self {
414 Self::InternalServerException(_inner) =>
415 _inner.fmt(f)
416 ,
417 Self::InvalidClientMetadataException(_inner) =>
418 _inner.fmt(f)
419 ,
420 Self::InvalidRedirectUriException(_inner) =>
421 _inner.fmt(f)
422 ,
423 Self::InvalidRequestException(_inner) =>
424 _inner.fmt(f)
425 ,
426 Self::InvalidScopeException(_inner) =>
427 _inner.fmt(f)
428 ,
429 Self::SlowDownException(_inner) =>
430 _inner.fmt(f)
431 ,
432 Self::UnsupportedGrantTypeException(_inner) =>
433 _inner.fmt(f)
434 ,
435 Self::Unhandled(_inner) => {
436 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
437 write!(f, "unhandled error ({code})")
438 } else {
439 f.write_str("unhandled error")
440 }
441 }
442 }
443 }
444}
445impl ::aws_smithy_types::retry::ProvideErrorKind for RegisterClientError {
446 fn code(&self) -> ::std::option::Option<&str> {
447 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
448 }
449 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
450 ::std::option::Option::None
451 }
452}
453impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RegisterClientError {
454 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
455 match self {
456 Self::InternalServerException(_inner) =>
457 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
458 ,
459 Self::InvalidClientMetadataException(_inner) =>
460 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
461 ,
462 Self::InvalidRedirectUriException(_inner) =>
463 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
464 ,
465 Self::InvalidRequestException(_inner) =>
466 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
467 ,
468 Self::InvalidScopeException(_inner) =>
469 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
470 ,
471 Self::SlowDownException(_inner) =>
472 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
473 ,
474 Self::UnsupportedGrantTypeException(_inner) =>
475 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
476 ,
477 Self::Unhandled(_inner) => {
478 &_inner.meta
479 }
480 }
481 }
482}
483impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RegisterClientError {
484 fn create_unhandled_error(
485 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
486 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>
487 ) -> Self {
488 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source, meta: meta.unwrap_or_default() })
489 }
490}
491impl ::aws_types::request_id::RequestId for crate::operation::register_client::RegisterClientError {
492 fn request_id(&self) -> Option<&str> {
493 self.meta().request_id()
494 }
495 }
496
497pub use crate::operation::register_client::_register_client_input::RegisterClientInput;
498
499pub use crate::operation::register_client::_register_client_output::RegisterClientOutput;
500
501mod _register_client_input;
502
503mod _register_client_output;
504
505pub mod builders;
507