Struct aws_sdk_lightsail::client::fluent_builders::SendContactMethodVerification [−][src]
pub struct SendContactMethodVerification<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to SendContactMethodVerification
.
Sends a verification request to an email contact method to ensure it's owned by the requester. SMS contact methods don't need to be verified.
A contact method is used to send you notifications about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in each AWS Region. However, SMS text messaging is not supported in some AWS Regions, and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.
A verification request is sent to the contact method when you initially create it. Use this action to send another verification request if a previous verification request was deleted, or has expired.
Notifications are not sent to an email contact method until after it is verified, and confirmed as valid.
Implementations
impl<C, M, R> SendContactMethodVerification<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> SendContactMethodVerification<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<SendContactMethodVerificationOutput, SdkError<SendContactMethodVerificationError>> where
R::Policy: SmithyRetryPolicy<SendContactMethodVerificationInputOperationOutputAlias, SendContactMethodVerificationOutput, SendContactMethodVerificationError, SendContactMethodVerificationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<SendContactMethodVerificationOutput, SdkError<SendContactMethodVerificationError>> where
R::Policy: SmithyRetryPolicy<SendContactMethodVerificationInputOperationOutputAlias, SendContactMethodVerificationOutput, SendContactMethodVerificationError, SendContactMethodVerificationInputOperationRetryAlias>,
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.
The protocol to verify, such as Email
or SMS
(text messaging).
The protocol to verify, such as Email
or SMS
(text messaging).
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for SendContactMethodVerification<C, M, R>
impl<C, M, R> Send for SendContactMethodVerification<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for SendContactMethodVerification<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for SendContactMethodVerification<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for SendContactMethodVerification<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more