#[non_exhaustive]pub struct ConfirmSignUpInput {
pub client_id: Option<String>,
pub secret_hash: Option<String>,
pub username: Option<String>,
pub confirmation_code: Option<String>,
pub force_alias_creation: Option<bool>,
pub analytics_metadata: Option<AnalyticsMetadataType>,
pub user_context_data: Option<UserContextDataType>,
pub client_metadata: Option<HashMap<String, String>>,
}
Expand description
Represents the request to confirm registration of a user.
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 ID of the app client 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.
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 sent by a user's request to confirm registration.
force_alias_creation: Option<bool>
Boolean to be specified to force user confirmation irrespective of existing alias. By default set to False
. If this parameter is set to True
and the phone number/email used for sign up confirmation already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user being confirmed. If set to False
, the API will throw an AliasExistsException error.
analytics_metadata: Option<AnalyticsMetadataType>
The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmSignUp
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 ConfirmSignUp 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 ConfirmSignUp 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 ConfirmSignUpInput
impl ConfirmSignUpInput
sourcepub fn client_id(&self) -> Option<&str>
pub fn client_id(&self) -> Option<&str>
The ID of the app client 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.
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 sent by a user's request to confirm registration.
sourcepub fn force_alias_creation(&self) -> Option<bool>
pub fn force_alias_creation(&self) -> Option<bool>
Boolean to be specified to force user confirmation irrespective of existing alias. By default set to False
. If this parameter is set to True
and the phone number/email used for sign up confirmation already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user being confirmed. If set to False
, the API will throw an AliasExistsException error.
sourcepub fn analytics_metadata(&self) -> Option<&AnalyticsMetadataType>
pub fn analytics_metadata(&self) -> Option<&AnalyticsMetadataType>
The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmSignUp
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 ConfirmSignUp 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 ConfirmSignUp 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 ConfirmSignUpInput
impl ConfirmSignUpInput
sourcepub fn builder() -> ConfirmSignUpInputBuilder
pub fn builder() -> ConfirmSignUpInputBuilder
Creates a new builder-style object to manufacture ConfirmSignUpInput
.
Trait Implementations§
source§impl Clone for ConfirmSignUpInput
impl Clone for ConfirmSignUpInput
source§fn clone(&self) -> ConfirmSignUpInput
fn clone(&self) -> ConfirmSignUpInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfirmSignUpInput
impl Debug for ConfirmSignUpInput
source§impl PartialEq for ConfirmSignUpInput
impl PartialEq for ConfirmSignUpInput
source§fn eq(&self, other: &ConfirmSignUpInput) -> bool
fn eq(&self, other: &ConfirmSignUpInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConfirmSignUpInput
Auto Trait Implementations§
impl Freeze for ConfirmSignUpInput
impl RefUnwindSafe for ConfirmSignUpInput
impl Send for ConfirmSignUpInput
impl Sync for ConfirmSignUpInput
impl Unpin for ConfirmSignUpInput
impl UnwindSafe for ConfirmSignUpInput
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