Struct aws_sdk_cloudwatch::client::fluent_builders::DeleteAlarms
source · [−]pub struct DeleteAlarms<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteAlarms
.
Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, this total can include no more than one composite alarm. For example, you could delete 99 metric alarms and one composite alarms with one operation, but you can't delete two composite alarms with one operation.
In the event of an error, no alarms are deleted.
It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle because there is always still a composite alarm that depends on that alarm that you want to delete.
To get out of such a situation, you must break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest change to make to break a cycle is to change the AlarmRule
of one of the alarms to False
.
Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
Implementations
impl<C, M, R> DeleteAlarms<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteAlarms<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteAlarmsOutput, SdkError<DeleteAlarmsError>> where
R::Policy: SmithyRetryPolicy<DeleteAlarmsInputOperationOutputAlias, DeleteAlarmsOutput, DeleteAlarmsError, DeleteAlarmsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteAlarmsOutput, SdkError<DeleteAlarmsError>> where
R::Policy: SmithyRetryPolicy<DeleteAlarmsInputOperationOutputAlias, DeleteAlarmsOutput, DeleteAlarmsError, DeleteAlarmsInputOperationRetryAlias>,
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.
Appends an item to AlarmNames
.
To override the contents of this collection use set_alarm_names
.
The alarms to be deleted.
The alarms to be deleted.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeleteAlarms<C, M, R>
impl<C, M, R> Unpin for DeleteAlarms<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeleteAlarms<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