Struct aws_sdk_cognitoidentityprovider::operation::verify_software_token::builders::VerifySoftwareTokenFluentBuilder
source · pub struct VerifySoftwareTokenFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to VerifySoftwareToken
.
Use this API to register a user's entered time-based one-time password (TOTP) code and mark the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoints.
Implementations§
source§impl VerifySoftwareTokenFluentBuilder
impl VerifySoftwareTokenFluentBuilder
sourcepub fn as_input(&self) -> &VerifySoftwareTokenInputBuilder
pub fn as_input(&self) -> &VerifySoftwareTokenInputBuilder
Access the VerifySoftwareToken as a reference.
sourcepub async fn send(
self
) -> Result<VerifySoftwareTokenOutput, SdkError<VerifySoftwareTokenError, HttpResponse>>
pub async fn send( self ) -> Result<VerifySoftwareTokenOutput, SdkError<VerifySoftwareTokenError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<VerifySoftwareTokenOutput, VerifySoftwareTokenError, Self>
pub fn customize( self ) -> CustomizableOperation<VerifySoftwareTokenOutput, VerifySoftwareTokenError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn access_token(self, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
A valid access token that Amazon Cognito issued to the user whose software token you want to verify.
sourcepub fn set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
A valid access token that Amazon Cognito issued to the user whose software token you want to verify.
sourcepub fn get_access_token(&self) -> &Option<String>
pub fn get_access_token(&self) -> &Option<String>
A valid access token that Amazon Cognito issued to the user whose software token you want to verify.
sourcepub fn session(self, input: impl Into<String>) -> Self
pub fn session(self, input: impl Into<String>) -> Self
The session that should be passed both ways in challenge-response calls to the service.
sourcepub fn set_session(self, input: Option<String>) -> Self
pub fn set_session(self, input: Option<String>) -> Self
The session that should be passed both ways in challenge-response calls to the service.
sourcepub fn get_session(&self) -> &Option<String>
pub fn get_session(&self) -> &Option<String>
The session that should be passed both ways in challenge-response calls to the service.
sourcepub fn user_code(self, input: impl Into<String>) -> Self
pub fn user_code(self, input: impl Into<String>) -> Self
The one- time password computed using the secret code returned by AssociateSoftwareToken.
sourcepub fn set_user_code(self, input: Option<String>) -> Self
pub fn set_user_code(self, input: Option<String>) -> Self
The one- time password computed using the secret code returned by AssociateSoftwareToken.
sourcepub fn get_user_code(&self) -> &Option<String>
pub fn get_user_code(&self) -> &Option<String>
The one- time password computed using the secret code returned by AssociateSoftwareToken.
sourcepub fn friendly_device_name(self, input: impl Into<String>) -> Self
pub fn friendly_device_name(self, input: impl Into<String>) -> Self
The friendly device name.
sourcepub fn set_friendly_device_name(self, input: Option<String>) -> Self
pub fn set_friendly_device_name(self, input: Option<String>) -> Self
The friendly device name.
sourcepub fn get_friendly_device_name(&self) -> &Option<String>
pub fn get_friendly_device_name(&self) -> &Option<String>
The friendly device name.
Trait Implementations§
source§impl Clone for VerifySoftwareTokenFluentBuilder
impl Clone for VerifySoftwareTokenFluentBuilder
source§fn clone(&self) -> VerifySoftwareTokenFluentBuilder
fn clone(&self) -> VerifySoftwareTokenFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for VerifySoftwareTokenFluentBuilder
impl !RefUnwindSafe for VerifySoftwareTokenFluentBuilder
impl Send for VerifySoftwareTokenFluentBuilder
impl Sync for VerifySoftwareTokenFluentBuilder
impl Unpin for VerifySoftwareTokenFluentBuilder
impl !UnwindSafe for VerifySoftwareTokenFluentBuilder
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