aws_sdk_medialive/client/
list_cluster_alerts.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListClusterAlerts`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`cluster_id(impl Into<String>)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::set_cluster_id):<br>required: **true**<br>The unique ID of the cluster<br>
8    ///   - [`max_results(i32)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::set_max_results):<br>required: **false**<br>The maximum number of items to return<br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::set_next_token):<br>required: **false**<br>The next pagination token<br>
10    ///   - [`state_filter(impl Into<String>)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::state_filter) / [`set_state_filter(Option<String>)`](crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::set_state_filter):<br>required: **false**<br>Specifies the set of alerts to return based on their state. SET - Return only alerts with SET state. CLEARED - Return only alerts with CLEARED state. ALL - Return all alerts.<br>
11    /// - On success, responds with [`ListClusterAlertsOutput`](crate::operation::list_cluster_alerts::ListClusterAlertsOutput) with field(s):
12    ///   - [`alerts(Option<Vec::<ClusterAlert>>)`](crate::operation::list_cluster_alerts::ListClusterAlertsOutput::alerts): The alerts found for this cluster
13    ///   - [`next_token(Option<String>)`](crate::operation::list_cluster_alerts::ListClusterAlertsOutput::next_token): The token to use to retrieve the next page of results
14    /// - On failure, responds with [`SdkError<ListClusterAlertsError>`](crate::operation::list_cluster_alerts::ListClusterAlertsError)
15    pub fn list_cluster_alerts(&self) -> crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder {
16        crate::operation::list_cluster_alerts::builders::ListClusterAlertsFluentBuilder::new(self.handle.clone())
17    }
18}