pub struct Builder { /* private fields */ }
Expand description

Implementations§

(DEPRECATED) Describes the forgotten password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.

(DEPRECATED) Describes the forgotten password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.

Examples found in repository?
src/json_deser.rs (lines 3505-3507)
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",
            ),
        ),
    }
}

Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.

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?
src/json_deser.rs (lines 3510-3512)
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",
            ),
        ),
    }
}

Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.

Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.

Examples found in repository?
src/json_deser.rs (lines 3515-3517)
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",
            ),
        ),
    }
}

Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.

Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.

Examples found in repository?
src/json_deser.rs (lines 3520-3522)
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",
            ),
        ),
    }
}

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.

The required attributes to sign up new users in the user pool.

Examples found in repository?
src/json_deser.rs (lines 3525-3527)
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",
            ),
        ),
    }
}

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.

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?
src/json_deser.rs (lines 3530-3539)
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",
            ),
        ),
    }
}

The Amazon Cognito user pool name.

The Amazon Cognito user pool name.

Examples found in repository?
src/json_deser.rs (lines 3542-3548)
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",
            ),
        ),
    }
}

Describes the email or SMS verification message for your Amazon Cognito user pool, configured as a part of your Amplify project.

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?
src/json_deser.rs (lines 3551-3553)
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",
            ),
        ),
    }
}

Consumes the builder and constructs a CreateBackendAuthUserPoolConfig.

Examples found in repository?
src/json_deser.rs (line 3568)
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",
            ),
        ),
    }
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more