Struct aws_sdk_cognitoidentityprovider::types::builders::UserAttributeUpdateSettingsTypeBuilder
source · #[non_exhaustive]pub struct UserAttributeUpdateSettingsTypeBuilder { /* private fields */ }Expand description
A builder for UserAttributeUpdateSettingsType.
Implementations§
source§impl UserAttributeUpdateSettingsTypeBuilder
impl UserAttributeUpdateSettingsTypeBuilder
sourcepub fn attributes_require_verification_before_update(
self,
input: VerifiedAttributeType
) -> Self
pub fn attributes_require_verification_before_update( self, input: VerifiedAttributeType ) -> Self
Appends an item to attributes_require_verification_before_update.
To override the contents of this collection use set_attributes_require_verification_before_update.
Requires that your user verifies their email address, phone number, or both before Amazon Cognito updates the value of that attribute. When you update a user attribute that has this option activated, Amazon Cognito sends a verification message to the new phone number or email address. Amazon Cognito doesn’t change the value of the attribute until your user responds to the verification message and confirms the new value.
You can verify an updated email address or phone number with a VerifyUserAttribute API request. You can also call the AdminUpdateUserAttributes API and set email_verified or phone_number_verified to true.
When AttributesRequireVerificationBeforeUpdate is false, your user pool doesn't require that your users verify attribute changes before Amazon Cognito updates them. In a user pool where AttributesRequireVerificationBeforeUpdate is false, API operations that change attribute values can immediately update a user’s email or phone_number attribute.
sourcepub fn set_attributes_require_verification_before_update(
self,
input: Option<Vec<VerifiedAttributeType>>
) -> Self
pub fn set_attributes_require_verification_before_update( self, input: Option<Vec<VerifiedAttributeType>> ) -> Self
Requires that your user verifies their email address, phone number, or both before Amazon Cognito updates the value of that attribute. When you update a user attribute that has this option activated, Amazon Cognito sends a verification message to the new phone number or email address. Amazon Cognito doesn’t change the value of the attribute until your user responds to the verification message and confirms the new value.
You can verify an updated email address or phone number with a VerifyUserAttribute API request. You can also call the AdminUpdateUserAttributes API and set email_verified or phone_number_verified to true.
When AttributesRequireVerificationBeforeUpdate is false, your user pool doesn't require that your users verify attribute changes before Amazon Cognito updates them. In a user pool where AttributesRequireVerificationBeforeUpdate is false, API operations that change attribute values can immediately update a user’s email or phone_number attribute.
sourcepub fn get_attributes_require_verification_before_update(
&self
) -> &Option<Vec<VerifiedAttributeType>>
pub fn get_attributes_require_verification_before_update( &self ) -> &Option<Vec<VerifiedAttributeType>>
Requires that your user verifies their email address, phone number, or both before Amazon Cognito updates the value of that attribute. When you update a user attribute that has this option activated, Amazon Cognito sends a verification message to the new phone number or email address. Amazon Cognito doesn’t change the value of the attribute until your user responds to the verification message and confirms the new value.
You can verify an updated email address or phone number with a VerifyUserAttribute API request. You can also call the AdminUpdateUserAttributes API and set email_verified or phone_number_verified to true.
When AttributesRequireVerificationBeforeUpdate is false, your user pool doesn't require that your users verify attribute changes before Amazon Cognito updates them. In a user pool where AttributesRequireVerificationBeforeUpdate is false, API operations that change attribute values can immediately update a user’s email or phone_number attribute.
sourcepub fn build(self) -> UserAttributeUpdateSettingsType
pub fn build(self) -> UserAttributeUpdateSettingsType
Consumes the builder and constructs a UserAttributeUpdateSettingsType.
Trait Implementations§
source§impl Clone for UserAttributeUpdateSettingsTypeBuilder
impl Clone for UserAttributeUpdateSettingsTypeBuilder
source§fn clone(&self) -> UserAttributeUpdateSettingsTypeBuilder
fn clone(&self) -> UserAttributeUpdateSettingsTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UserAttributeUpdateSettingsTypeBuilder
impl Default for UserAttributeUpdateSettingsTypeBuilder
source§fn default() -> UserAttributeUpdateSettingsTypeBuilder
fn default() -> UserAttributeUpdateSettingsTypeBuilder
source§impl PartialEq for UserAttributeUpdateSettingsTypeBuilder
impl PartialEq for UserAttributeUpdateSettingsTypeBuilder
source§fn eq(&self, other: &UserAttributeUpdateSettingsTypeBuilder) -> bool
fn eq(&self, other: &UserAttributeUpdateSettingsTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.