Struct aws_sdk_lightsail::client::fluent_builders::DeleteContactMethod [−][src]
pub struct DeleteContactMethod<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteContactMethod
.
Deletes a contact method.
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.
Implementations
impl<C, M, R> DeleteContactMethod<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteContactMethod<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteContactMethodOutput, SdkError<DeleteContactMethodError>> where
R::Policy: SmithyRetryPolicy<DeleteContactMethodInputOperationOutputAlias, DeleteContactMethodOutput, DeleteContactMethodError, DeleteContactMethodInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteContactMethodOutput, SdkError<DeleteContactMethodError>> where
R::Policy: SmithyRetryPolicy<DeleteContactMethodInputOperationOutputAlias, DeleteContactMethodOutput, DeleteContactMethodError, DeleteContactMethodInputOperationRetryAlias>,
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 that will be deleted, such as Email
or SMS
(text messaging).
To delete an Email
and an SMS
contact method if you added both, you must run separate DeleteContactMethod
actions to delete each protocol.
The protocol that will be deleted, such as Email
or SMS
(text messaging).
To delete an Email
and an SMS
contact method if you added both, you must run separate DeleteContactMethod
actions to delete each protocol.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeleteContactMethod<C, M, R>
impl<C, M, R> Send for DeleteContactMethod<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeleteContactMethod<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeleteContactMethod<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeleteContactMethod<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