pub struct CreateSMSSandboxPhoneNumber { /* private fields */ }Expand description
Fluent builder constructing a request to CreateSMSSandboxPhoneNumber.
Adds a destination phone number to an Amazon Web Services account in the SMS sandbox and sends a one-time password (OTP) to that phone number.
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 CreateSMSSandboxPhoneNumber
impl CreateSMSSandboxPhoneNumber
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateSMSSandboxPhoneNumber, AwsResponseRetryClassifier>, SdkError<CreateSMSSandboxPhoneNumberError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateSMSSandboxPhoneNumber, AwsResponseRetryClassifier>, SdkError<CreateSMSSandboxPhoneNumberError>>
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<CreateSmsSandboxPhoneNumberOutput, SdkError<CreateSMSSandboxPhoneNumberError>>
pub async fn send(
self
) -> Result<CreateSmsSandboxPhoneNumberOutput, SdkError<CreateSMSSandboxPhoneNumberError>>
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. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
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. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
sourcepub fn language_code(self, input: LanguageCodeString) -> Self
pub fn language_code(self, input: LanguageCodeString) -> Self
The language to use for sending the OTP. The default value is en-US.
sourcepub fn set_language_code(self, input: Option<LanguageCodeString>) -> Self
pub fn set_language_code(self, input: Option<LanguageCodeString>) -> Self
The language to use for sending the OTP. The default value is en-US.
Trait Implementations§
source§impl Clone for CreateSMSSandboxPhoneNumber
impl Clone for CreateSMSSandboxPhoneNumber
source§fn clone(&self) -> CreateSMSSandboxPhoneNumber
fn clone(&self) -> CreateSMSSandboxPhoneNumber
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more