pub struct VerifySMSSandboxPhoneNumber { /* private fields */ }
Expand description
Fluent builder constructing a request to VerifySMSSandboxPhoneNumber
.
Verifies a destination phone number with a one-time password (OTP) for the calling Amazon Web Services account.
When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.
Implementations§
source§impl VerifySMSSandboxPhoneNumber
impl VerifySMSSandboxPhoneNumber
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<VerifySMSSandboxPhoneNumber, AwsResponseRetryClassifier>, SdkError<VerifySMSSandboxPhoneNumberError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<VerifySMSSandboxPhoneNumber, AwsResponseRetryClassifier>, SdkError<VerifySMSSandboxPhoneNumberError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<VerifySmsSandboxPhoneNumberOutput, SdkError<VerifySMSSandboxPhoneNumberError>>
pub async fn send(
self
) -> Result<VerifySmsSandboxPhoneNumberOutput, SdkError<VerifySMSSandboxPhoneNumberError>>
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 phone_number(self, input: impl Into<String>) -> Self
pub fn phone_number(self, input: impl Into<String>) -> Self
The destination phone number to verify.
sourcepub fn set_phone_number(self, input: Option<String>) -> Self
pub fn set_phone_number(self, input: Option<String>) -> Self
The destination phone number to verify.
sourcepub fn one_time_password(self, input: impl Into<String>) -> Self
pub fn one_time_password(self, input: impl Into<String>) -> Self
The OTP sent to the destination number from the CreateSMSSandBoxPhoneNumber
call.
sourcepub fn set_one_time_password(self, input: Option<String>) -> Self
pub fn set_one_time_password(self, input: Option<String>) -> Self
The OTP sent to the destination number from the CreateSMSSandBoxPhoneNumber
call.
Trait Implementations§
source§impl Clone for VerifySMSSandboxPhoneNumber
impl Clone for VerifySMSSandboxPhoneNumber
source§fn clone(&self) -> VerifySMSSandboxPhoneNumber
fn clone(&self) -> VerifySMSSandboxPhoneNumber
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more