Struct aws_sdk_lightsail::client::fluent_builders::DeleteAlarm [−][src]
pub struct DeleteAlarm<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteAlarm
.
Deletes an alarm.
An alarm is used to monitor a single metric for one of your resources. When a metric condition is met, the alarm can notify you by email, SMS text message, and a banner displayed on the Amazon Lightsail console. For more information, see Alarms in Amazon Lightsail.
Implementations
impl<C, M, R> DeleteAlarm<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteAlarm<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<DeleteAlarmOutput, SdkError<DeleteAlarmError>> where
R::Policy: SmithyRetryPolicy<DeleteAlarmInputOperationOutputAlias, DeleteAlarmOutput, DeleteAlarmError, DeleteAlarmInputOperationRetryAlias>,
pub async fn send(self) -> Result<DeleteAlarmOutput, SdkError<DeleteAlarmError>> where
R::Policy: SmithyRetryPolicy<DeleteAlarmInputOperationOutputAlias, DeleteAlarmOutput, DeleteAlarmError, DeleteAlarmInputOperationRetryAlias>,
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 name of the alarm to delete.
The name of the alarm to delete.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeleteAlarm<C, M, R>
impl<C, M, R> Unpin for DeleteAlarm<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeleteAlarm<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