pub struct Builder { /* private fields */ }
Expand description
A builder for CreateBackendAuthUserPoolConfig
.
Implementations
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more