1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct SignUp;
6impl SignUp {
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::sign_up::SignUpInput,
14 ) -> ::std::result::Result<
15 crate::operation::sign_up::SignUpOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::sign_up::SignUpError,
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::sign_up::SignUpError>().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(output.downcast::<crate::operation::sign_up::SignUpOutput>().expect("correct output type"))
31 }
32
33 pub(crate) async fn orchestrate_with_stop_point(
34 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
35 input: crate::operation::sign_up::SignUpInput,
36 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
37 ) -> ::std::result::Result<
38 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
39 ::aws_smithy_runtime_api::client::result::SdkError<
40 ::aws_smithy_runtime_api::client::interceptors::context::Error,
41 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
42 >,
43 > {
44 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
45 use ::tracing::Instrument;
46 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Cognito Identity Provider", "SignUp", input, runtime_plugins, stop_point)
47 .instrument(::tracing::debug_span!(
50 "Cognito Identity Provider.SignUp",
51 "rpc.service" = "Cognito Identity Provider",
52 "rpc.method" = "SignUp",
53 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
54 "rpc.system" = "aws-api",
55 ))
56 .await
57 }
58
59 pub(crate) fn operation_runtime_plugins(
60 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
61 client_config: &crate::config::Config,
62 config_override: ::std::option::Option<crate::config::Builder>,
63 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
64 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
65
66 if let ::std::option::Option::Some(config_override) = config_override {
67 for plugin in config_override.runtime_plugins.iter().cloned() {
68 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
69 }
70 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
71 config_override,
72 client_config.config.clone(),
73 &client_config.runtime_components,
74 ));
75 }
76 runtime_plugins
77 }
78}
79impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for SignUp {
80 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
81 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("SignUp");
82
83 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
84 SignUpRequestSerializer,
85 ));
86 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
87 SignUpResponseDeserializer,
88 ));
89
90 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
91 crate::config::auth::Params::builder()
92 .operation_name("SignUp")
93 .build()
94 .expect("required fields set"),
95 ));
96
97 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
98 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
99 "SignUp",
100 "Cognito Identity Provider",
101 ));
102
103 ::std::option::Option::Some(cfg.freeze())
104 }
105
106 fn runtime_components(
107 &self,
108 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
109 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
110 #[allow(unused_mut)]
111 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("SignUp")
112 .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
113 .with_interceptor(SignUpEndpointParamsInterceptor)
114 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
115 crate::operation::sign_up::SignUpError,
116 >::new())
117 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
118 crate::operation::sign_up::SignUpError,
119 >::new())
120 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
121 crate::operation::sign_up::SignUpError,
122 >::new());
123
124 ::std::borrow::Cow::Owned(rcb)
125 }
126}
127
128#[derive(Debug)]
129struct SignUpResponseDeserializer;
130impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SignUpResponseDeserializer {
131 fn deserialize_nonstreaming(
132 &self,
133 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
134 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
135 let (success, status) = (response.status().is_success(), response.status().as_u16());
136 let headers = response.headers();
137 let body = response.body().bytes().expect("body loaded");
138 #[allow(unused_mut)]
139 let mut force_error = false;
140 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
141 let parse_result = if !success && status != 200 || force_error {
142 crate::protocol_serde::shape_sign_up::de_sign_up_http_error(status, headers, body)
143 } else {
144 crate::protocol_serde::shape_sign_up::de_sign_up_http_response(status, headers, body)
145 };
146 crate::protocol_serde::type_erase_result(parse_result)
147 }
148}
149#[derive(Debug)]
150struct SignUpRequestSerializer;
151impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SignUpRequestSerializer {
152 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
153 fn serialize_input(
154 &self,
155 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
156 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
157 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
158 let input = input.downcast::<crate::operation::sign_up::SignUpInput>().expect("correct type");
159 let _header_serialization_settings = _cfg
160 .load::<crate::serialization_settings::HeaderSerializationSettings>()
161 .cloned()
162 .unwrap_or_default();
163 let mut request_builder = {
164 #[allow(clippy::uninlined_format_args)]
165 fn uri_base(
166 _input: &crate::operation::sign_up::SignUpInput,
167 output: &mut ::std::string::String,
168 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
169 use ::std::fmt::Write as _;
170 ::std::write!(output, "/").expect("formatting should succeed");
171 ::std::result::Result::Ok(())
172 }
173 #[allow(clippy::unnecessary_wraps)]
174 fn update_http_builder(
175 input: &crate::operation::sign_up::SignUpInput,
176 builder: ::http::request::Builder,
177 ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
178 let mut uri = ::std::string::String::new();
179 uri_base(input, &mut uri)?;
180 ::std::result::Result::Ok(builder.method("POST").uri(uri))
181 }
182 let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
183 builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.1");
184 builder = _header_serialization_settings.set_default_header(
185 builder,
186 ::http::header::HeaderName::from_static("x-amz-target"),
187 "AWSCognitoIdentityProviderService.SignUp",
188 );
189 builder
190 };
191 let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_sign_up::ser_sign_up_input(&input)?);
192 if let Some(content_length) = body.content_length() {
193 let content_length = content_length.to_string();
194 request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
195 }
196 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
197 }
198}
199#[derive(Debug)]
200struct SignUpEndpointParamsInterceptor;
201
202impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SignUpEndpointParamsInterceptor {
203 fn name(&self) -> &'static str {
204 "SignUpEndpointParamsInterceptor"
205 }
206
207 fn read_before_execution(
208 &self,
209 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
210 '_,
211 ::aws_smithy_runtime_api::client::interceptors::context::Input,
212 ::aws_smithy_runtime_api::client::interceptors::context::Output,
213 ::aws_smithy_runtime_api::client::interceptors::context::Error,
214 >,
215 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
216 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
217 let _input = context.input().downcast_ref::<SignUpInput>().ok_or("failed to downcast to SignUpInput")?;
218
219 let params = crate::config::endpoint::Params::builder()
220 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
221 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
222 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
223 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
224 .build()
225 .map_err(|err| {
226 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
227 })?;
228 cfg.interceptor_state()
229 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
230 ::std::result::Result::Ok(())
231 }
232}
233
234#[non_exhaustive]
239#[derive(::std::fmt::Debug)]
240pub enum SignUpError {
241 CodeDeliveryFailureException(crate::types::error::CodeDeliveryFailureException),
243 ForbiddenException(crate::types::error::ForbiddenException),
245 InternalErrorException(crate::types::error::InternalErrorException),
247 InvalidEmailRoleAccessPolicyException(crate::types::error::InvalidEmailRoleAccessPolicyException),
249 InvalidLambdaResponseException(crate::types::error::InvalidLambdaResponseException),
251 InvalidParameterException(crate::types::error::InvalidParameterException),
253 InvalidPasswordException(crate::types::error::InvalidPasswordException),
255 InvalidSmsRoleAccessPolicyException(crate::types::error::InvalidSmsRoleAccessPolicyException),
257 InvalidSmsRoleTrustRelationshipException(crate::types::error::InvalidSmsRoleTrustRelationshipException),
259 LimitExceededException(crate::types::error::LimitExceededException),
261 NotAuthorizedException(crate::types::error::NotAuthorizedException),
263 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
265 TooManyRequestsException(crate::types::error::TooManyRequestsException),
267 UnexpectedLambdaException(crate::types::error::UnexpectedLambdaException),
269 UserLambdaValidationException(crate::types::error::UserLambdaValidationException),
271 UsernameExistsException(crate::types::error::UsernameExistsException),
273 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
275 variable wildcard pattern and check `.code()`:
276 \
277 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
278 \
279 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SignUpError) for what information is available for the error.")]
280 Unhandled(crate::error::sealed_unhandled::Unhandled),
281}
282impl SignUpError {
283 pub fn unhandled(
285 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
286 ) -> Self {
287 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
288 source: err.into(),
289 meta: ::std::default::Default::default(),
290 })
291 }
292
293 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
295 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
296 source: err.clone().into(),
297 meta: err,
298 })
299 }
300 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
305 match self {
306 Self::CodeDeliveryFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
307 Self::ForbiddenException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
308 Self::InternalErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
309 Self::InvalidEmailRoleAccessPolicyException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
310 Self::InvalidLambdaResponseException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
311 Self::InvalidParameterException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
312 Self::InvalidPasswordException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
313 Self::InvalidSmsRoleAccessPolicyException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
314 Self::InvalidSmsRoleTrustRelationshipException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
315 Self::LimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
316 Self::NotAuthorizedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
317 Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
318 Self::TooManyRequestsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
319 Self::UnexpectedLambdaException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
320 Self::UserLambdaValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
321 Self::UsernameExistsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
322 Self::Unhandled(e) => &e.meta,
323 }
324 }
325 pub fn is_code_delivery_failure_exception(&self) -> bool {
327 matches!(self, Self::CodeDeliveryFailureException(_))
328 }
329 pub fn is_forbidden_exception(&self) -> bool {
331 matches!(self, Self::ForbiddenException(_))
332 }
333 pub fn is_internal_error_exception(&self) -> bool {
335 matches!(self, Self::InternalErrorException(_))
336 }
337 pub fn is_invalid_email_role_access_policy_exception(&self) -> bool {
339 matches!(self, Self::InvalidEmailRoleAccessPolicyException(_))
340 }
341 pub fn is_invalid_lambda_response_exception(&self) -> bool {
343 matches!(self, Self::InvalidLambdaResponseException(_))
344 }
345 pub fn is_invalid_parameter_exception(&self) -> bool {
347 matches!(self, Self::InvalidParameterException(_))
348 }
349 pub fn is_invalid_password_exception(&self) -> bool {
351 matches!(self, Self::InvalidPasswordException(_))
352 }
353 pub fn is_invalid_sms_role_access_policy_exception(&self) -> bool {
355 matches!(self, Self::InvalidSmsRoleAccessPolicyException(_))
356 }
357 pub fn is_invalid_sms_role_trust_relationship_exception(&self) -> bool {
359 matches!(self, Self::InvalidSmsRoleTrustRelationshipException(_))
360 }
361 pub fn is_limit_exceeded_exception(&self) -> bool {
363 matches!(self, Self::LimitExceededException(_))
364 }
365 pub fn is_not_authorized_exception(&self) -> bool {
367 matches!(self, Self::NotAuthorizedException(_))
368 }
369 pub fn is_resource_not_found_exception(&self) -> bool {
371 matches!(self, Self::ResourceNotFoundException(_))
372 }
373 pub fn is_too_many_requests_exception(&self) -> bool {
375 matches!(self, Self::TooManyRequestsException(_))
376 }
377 pub fn is_unexpected_lambda_exception(&self) -> bool {
379 matches!(self, Self::UnexpectedLambdaException(_))
380 }
381 pub fn is_user_lambda_validation_exception(&self) -> bool {
383 matches!(self, Self::UserLambdaValidationException(_))
384 }
385 pub fn is_username_exists_exception(&self) -> bool {
387 matches!(self, Self::UsernameExistsException(_))
388 }
389}
390impl ::std::error::Error for SignUpError {
391 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
392 match self {
393 Self::CodeDeliveryFailureException(_inner) => ::std::option::Option::Some(_inner),
394 Self::ForbiddenException(_inner) => ::std::option::Option::Some(_inner),
395 Self::InternalErrorException(_inner) => ::std::option::Option::Some(_inner),
396 Self::InvalidEmailRoleAccessPolicyException(_inner) => ::std::option::Option::Some(_inner),
397 Self::InvalidLambdaResponseException(_inner) => ::std::option::Option::Some(_inner),
398 Self::InvalidParameterException(_inner) => ::std::option::Option::Some(_inner),
399 Self::InvalidPasswordException(_inner) => ::std::option::Option::Some(_inner),
400 Self::InvalidSmsRoleAccessPolicyException(_inner) => ::std::option::Option::Some(_inner),
401 Self::InvalidSmsRoleTrustRelationshipException(_inner) => ::std::option::Option::Some(_inner),
402 Self::LimitExceededException(_inner) => ::std::option::Option::Some(_inner),
403 Self::NotAuthorizedException(_inner) => ::std::option::Option::Some(_inner),
404 Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
405 Self::TooManyRequestsException(_inner) => ::std::option::Option::Some(_inner),
406 Self::UnexpectedLambdaException(_inner) => ::std::option::Option::Some(_inner),
407 Self::UserLambdaValidationException(_inner) => ::std::option::Option::Some(_inner),
408 Self::UsernameExistsException(_inner) => ::std::option::Option::Some(_inner),
409 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
410 }
411 }
412}
413impl ::std::fmt::Display for SignUpError {
414 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
415 match self {
416 Self::CodeDeliveryFailureException(_inner) => _inner.fmt(f),
417 Self::ForbiddenException(_inner) => _inner.fmt(f),
418 Self::InternalErrorException(_inner) => _inner.fmt(f),
419 Self::InvalidEmailRoleAccessPolicyException(_inner) => _inner.fmt(f),
420 Self::InvalidLambdaResponseException(_inner) => _inner.fmt(f),
421 Self::InvalidParameterException(_inner) => _inner.fmt(f),
422 Self::InvalidPasswordException(_inner) => _inner.fmt(f),
423 Self::InvalidSmsRoleAccessPolicyException(_inner) => _inner.fmt(f),
424 Self::InvalidSmsRoleTrustRelationshipException(_inner) => _inner.fmt(f),
425 Self::LimitExceededException(_inner) => _inner.fmt(f),
426 Self::NotAuthorizedException(_inner) => _inner.fmt(f),
427 Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
428 Self::TooManyRequestsException(_inner) => _inner.fmt(f),
429 Self::UnexpectedLambdaException(_inner) => _inner.fmt(f),
430 Self::UserLambdaValidationException(_inner) => _inner.fmt(f),
431 Self::UsernameExistsException(_inner) => _inner.fmt(f),
432 Self::Unhandled(_inner) => {
433 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
434 write!(f, "unhandled error ({code})")
435 } else {
436 f.write_str("unhandled error")
437 }
438 }
439 }
440 }
441}
442impl ::aws_smithy_types::retry::ProvideErrorKind for SignUpError {
443 fn code(&self) -> ::std::option::Option<&str> {
444 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
445 }
446 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
447 ::std::option::Option::None
448 }
449}
450impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SignUpError {
451 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
452 match self {
453 Self::CodeDeliveryFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
454 Self::ForbiddenException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
455 Self::InternalErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
456 Self::InvalidEmailRoleAccessPolicyException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
457 Self::InvalidLambdaResponseException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
458 Self::InvalidParameterException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
459 Self::InvalidPasswordException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
460 Self::InvalidSmsRoleAccessPolicyException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
461 Self::InvalidSmsRoleTrustRelationshipException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
462 Self::LimitExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
463 Self::NotAuthorizedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
464 Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
465 Self::TooManyRequestsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
466 Self::UnexpectedLambdaException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
467 Self::UserLambdaValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
468 Self::UsernameExistsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
469 Self::Unhandled(_inner) => &_inner.meta,
470 }
471 }
472}
473impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SignUpError {
474 fn create_unhandled_error(
475 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
476 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
477 ) -> Self {
478 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
479 source,
480 meta: meta.unwrap_or_default(),
481 })
482 }
483}
484impl ::aws_types::request_id::RequestId for crate::operation::sign_up::SignUpError {
485 fn request_id(&self) -> Option<&str> {
486 self.meta().request_id()
487 }
488}
489
490pub use crate::operation::sign_up::_sign_up_output::SignUpOutput;
491
492pub use crate::operation::sign_up::_sign_up_input::SignUpInput;
493
494mod _sign_up_input;
495
496mod _sign_up_output;
497
498pub mod builders;