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.
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.
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.
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.
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.
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.
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.
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.
sourcepub fn build(self) -> CreateBackendAuthUserPoolConfig
pub fn build(self) -> CreateBackendAuthUserPoolConfig
Consumes the builder and constructs a CreateBackendAuthUserPoolConfig
.