Struct aws_sdk_lightsail::client::fluent_builders::GetAlarms
source · [−]pub struct GetAlarms<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to GetAlarms
.
Returns information about the configured alarms. Specify an alarm name in your request to return information about a specific alarm, or specify a monitored resource name to return information about all alarms for a specific resource.
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> GetAlarms<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetAlarms<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<GetAlarmsOutput, SdkError<GetAlarmsError>> where
R::Policy: SmithyRetryPolicy<GetAlarmsInputOperationOutputAlias, GetAlarmsOutput, GetAlarmsError, GetAlarmsInputOperationRetryAlias>,
pub async fn send(self) -> Result<GetAlarmsOutput, SdkError<GetAlarmsError>> where
R::Policy: SmithyRetryPolicy<GetAlarmsInputOperationOutputAlias, GetAlarmsOutput, GetAlarmsError, GetAlarmsInputOperationRetryAlias>,
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.
Specify an alarm name to return information about a specific alarm.
The name of the alarm.
Specify an alarm name to return information about a specific alarm.
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetAlarms
request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetAlarms
request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
The name of the Lightsail resource being monitored by the alarm.
Specify a monitored resource name to return information about all alarms for a specific resource.
The name of the Lightsail resource being monitored by the alarm.
Specify a monitored resource name to return information about all alarms for a specific resource.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for GetAlarms<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for GetAlarms<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