Struct aws_sdk_cognitoidentityprovider::operation::confirm_forgot_password::ConfirmForgotPasswordInput
source · #[non_exhaustive]pub struct ConfirmForgotPasswordInput {
pub client_id: Option<String>,
pub secret_hash: Option<String>,
pub username: Option<String>,
pub confirmation_code: Option<String>,
pub password: Option<String>,
pub analytics_metadata: Option<AnalyticsMetadataType>,
pub user_context_data: Option<UserContextDataType>,
pub client_metadata: Option<HashMap<String, String>>,
}
Expand description
The request representing the confirmation for a password reset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_id: Option<String>
The app client ID of the app associated with the user pool.
secret_hash: Option<String>
A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. For more information about SecretHash
, see Computing secret hash values.
username: Option<String>
The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username
isn't an alias attribute in your user pool, this value must be the sub
of a local user or the username of a user from a third-party IdP.
confirmation_code: Option<String>
The confirmation code from your user's request to reset their password. For more information, see ForgotPassword.
password: Option<String>
The new password that your user wants to set.
analytics_metadata: Option<AnalyticsMetadataType>
The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmForgotPassword
calls.
user_context_data: Option<UserContextDataType>
Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
client_metadata: Option<HashMap<String, String>>
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
You create custom workflows by assigning Lambda functions to user pool triggers. When you use the ConfirmForgotPassword API action, Amazon Cognito invokes the function that is assigned to the post confirmation trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a clientMetadata
attribute, which provides the data that you assigned to the ClientMetadata parameter in your ConfirmForgotPassword request. In your function code in Lambda, you can process the clientMetadata
value to enhance your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
-
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
-
Validate the ClientMetadata value.
-
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
Implementations§
source§impl ConfirmForgotPasswordInput
impl ConfirmForgotPasswordInput
sourcepub fn client_id(&self) -> Option<&str>
pub fn client_id(&self) -> Option<&str>
The app client ID of the app associated with the user pool.
sourcepub fn secret_hash(&self) -> Option<&str>
pub fn secret_hash(&self) -> Option<&str>
A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. For more information about SecretHash
, see Computing secret hash values.
sourcepub fn username(&self) -> Option<&str>
pub fn username(&self) -> Option<&str>
The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username
isn't an alias attribute in your user pool, this value must be the sub
of a local user or the username of a user from a third-party IdP.
sourcepub fn confirmation_code(&self) -> Option<&str>
pub fn confirmation_code(&self) -> Option<&str>
The confirmation code from your user's request to reset their password. For more information, see ForgotPassword.
sourcepub fn analytics_metadata(&self) -> Option<&AnalyticsMetadataType>
pub fn analytics_metadata(&self) -> Option<&AnalyticsMetadataType>
The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmForgotPassword
calls.
sourcepub fn user_context_data(&self) -> Option<&UserContextDataType>
pub fn user_context_data(&self) -> Option<&UserContextDataType>
Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
sourcepub fn client_metadata(&self) -> Option<&HashMap<String, String>>
pub fn client_metadata(&self) -> Option<&HashMap<String, String>>
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
You create custom workflows by assigning Lambda functions to user pool triggers. When you use the ConfirmForgotPassword API action, Amazon Cognito invokes the function that is assigned to the post confirmation trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a clientMetadata
attribute, which provides the data that you assigned to the ClientMetadata parameter in your ConfirmForgotPassword request. In your function code in Lambda, you can process the clientMetadata
value to enhance your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
-
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
-
Validate the ClientMetadata value.
-
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
source§impl ConfirmForgotPasswordInput
impl ConfirmForgotPasswordInput
sourcepub fn builder() -> ConfirmForgotPasswordInputBuilder
pub fn builder() -> ConfirmForgotPasswordInputBuilder
Creates a new builder-style object to manufacture ConfirmForgotPasswordInput
.
Trait Implementations§
source§impl Clone for ConfirmForgotPasswordInput
impl Clone for ConfirmForgotPasswordInput
source§fn clone(&self) -> ConfirmForgotPasswordInput
fn clone(&self) -> ConfirmForgotPasswordInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfirmForgotPasswordInput
impl Debug for ConfirmForgotPasswordInput
source§impl PartialEq for ConfirmForgotPasswordInput
impl PartialEq for ConfirmForgotPasswordInput
source§fn eq(&self, other: &ConfirmForgotPasswordInput) -> bool
fn eq(&self, other: &ConfirmForgotPasswordInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConfirmForgotPasswordInput
Auto Trait Implementations§
impl Freeze for ConfirmForgotPasswordInput
impl RefUnwindSafe for ConfirmForgotPasswordInput
impl Send for ConfirmForgotPasswordInput
impl Sync for ConfirmForgotPasswordInput
impl Unpin for ConfirmForgotPasswordInput
impl UnwindSafe for ConfirmForgotPasswordInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more