pub struct Builder { /* private fields */ }Expand description
A builder for CreateBackendAuthUserPoolConfig.
Implementations§
source§impl Builder
impl Builder
sourcepub fn forgot_password(
self,
input: CreateBackendAuthForgotPasswordConfig
) -> Self
pub fn forgot_password(
self,
input: CreateBackendAuthForgotPasswordConfig
) -> Self
(DEPRECATED) Describes the forgotten password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
sourcepub fn set_forgot_password(
self,
input: Option<CreateBackendAuthForgotPasswordConfig>
) -> Self
pub fn set_forgot_password(
self,
input: Option<CreateBackendAuthForgotPasswordConfig>
) -> Self
(DEPRECATED) Describes the forgotten password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn mfa(self, input: CreateBackendAuthMfaConfig) -> Self
pub fn mfa(self, input: CreateBackendAuthMfaConfig) -> Self
Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
sourcepub fn set_mfa(self, input: Option<CreateBackendAuthMfaConfig>) -> Self
pub fn set_mfa(self, input: Option<CreateBackendAuthMfaConfig>) -> Self
Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn o_auth(self, input: CreateBackendAuthOAuthConfig) -> Self
pub fn o_auth(self, input: CreateBackendAuthOAuthConfig) -> Self
Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
sourcepub fn set_o_auth(self, input: Option<CreateBackendAuthOAuthConfig>) -> Self
pub fn set_o_auth(self, input: Option<CreateBackendAuthOAuthConfig>) -> Self
Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn password_policy(
self,
input: CreateBackendAuthPasswordPolicyConfig
) -> Self
pub fn password_policy(
self,
input: CreateBackendAuthPasswordPolicyConfig
) -> Self
Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
sourcepub fn set_password_policy(
self,
input: Option<CreateBackendAuthPasswordPolicyConfig>
) -> Self
pub fn set_password_policy(
self,
input: Option<CreateBackendAuthPasswordPolicyConfig>
) -> Self
Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn required_sign_up_attributes(
self,
input: RequiredSignUpAttributesElement
) -> Self
pub fn required_sign_up_attributes(
self,
input: RequiredSignUpAttributesElement
) -> Self
Appends an item to required_sign_up_attributes.
To override the contents of this collection use set_required_sign_up_attributes.
The required attributes to sign up new users in the user pool.
sourcepub fn set_required_sign_up_attributes(
self,
input: Option<Vec<RequiredSignUpAttributesElement>>
) -> Self
pub fn set_required_sign_up_attributes(
self,
input: Option<Vec<RequiredSignUpAttributesElement>>
) -> Self
The required attributes to sign up new users in the user pool.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn sign_in_method(self, input: SignInMethod) -> Self
pub fn sign_in_method(self, input: SignInMethod) -> Self
Describes the sign-in methods that your Amplify app users use to log in using the Amazon Cognito user pool, configured as a part of your Amplify project.
sourcepub fn set_sign_in_method(self, input: Option<SignInMethod>) -> Self
pub fn set_sign_in_method(self, input: Option<SignInMethod>) -> Self
Describes the sign-in methods that your Amplify app users use to log in using the Amazon Cognito user pool, configured as a part of your Amplify project.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn user_pool_name(self, input: impl Into<String>) -> Self
pub fn user_pool_name(self, input: impl Into<String>) -> Self
The Amazon Cognito user pool name.
sourcepub fn set_user_pool_name(self, input: Option<String>) -> Self
pub fn set_user_pool_name(self, input: Option<String>) -> Self
The Amazon Cognito user pool name.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn verification_message(
self,
input: CreateBackendAuthVerificationMessageConfig
) -> Self
pub fn verification_message(
self,
input: CreateBackendAuthVerificationMessageConfig
) -> Self
Describes the email or SMS verification message for your Amazon Cognito user pool, configured as a part of your Amplify project.
sourcepub fn set_verification_message(
self,
input: Option<CreateBackendAuthVerificationMessageConfig>
) -> Self
pub fn set_verification_message(
self,
input: Option<CreateBackendAuthVerificationMessageConfig>
) -> Self
Describes the email or SMS verification message for your Amazon Cognito user pool, configured as a part of your Amplify project.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn build(self) -> CreateBackendAuthUserPoolConfig
pub fn build(self) -> CreateBackendAuthUserPoolConfig
Consumes the builder and constructs a CreateBackendAuthUserPoolConfig.
Examples found in repository?
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
pub(crate) fn deser_structure_crate_model_create_backend_auth_user_pool_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CreateBackendAuthUserPoolConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::create_backend_auth_user_pool_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"forgotPassword" => {
builder = builder.set_forgot_password(
crate::json_deser::deser_structure_crate_model_create_backend_auth_forgot_password_config(tokens)?
);
}
"mfa" => {
builder = builder.set_mfa(
crate::json_deser::deser_structure_crate_model_create_backend_auth_mfa_config(tokens)?
);
}
"oAuth" => {
builder = builder.set_o_auth(
crate::json_deser::deser_structure_crate_model_create_backend_auth_o_auth_config(tokens)?
);
}
"passwordPolicy" => {
builder = builder.set_password_policy(
crate::json_deser::deser_structure_crate_model_create_backend_auth_password_policy_config(tokens)?
);
}
"requiredSignUpAttributes" => {
builder = builder.set_required_sign_up_attributes(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_required_sign_up_attributes_element(tokens)?
);
}
"signInMethod" => {
builder = builder.set_sign_in_method(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::SignInMethod::from(u.as_ref()))
})
.transpose()?,
);
}
"userPoolName" => {
builder = builder.set_user_pool_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"verificationMessage" => {
builder = builder.set_verification_message(
crate::json_deser::deser_structure_crate_model_create_backend_auth_verification_message_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}