pub struct Builder { /* private fields */ }Expand description
A builder for AwsCloudWatchAlarmDetails.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn actions_enabled(self, input: bool) -> Self
pub fn actions_enabled(self, input: bool) -> Self
Indicates whether actions should be executed during any changes to the alarm state.
sourcepub fn set_actions_enabled(self, input: Option<bool>) -> Self
pub fn set_actions_enabled(self, input: Option<bool>) -> Self
Indicates whether actions should be executed during any changes to the alarm state.
sourcepub fn alarm_actions(self, input: impl Into<String>) -> Self
pub fn alarm_actions(self, input: impl Into<String>) -> Self
Appends an item to alarm_actions.
To override the contents of this collection use set_alarm_actions.
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an ALARM state from any other state.
sourcepub fn set_alarm_actions(self, input: Option<Vec<String>>) -> Self
pub fn set_alarm_actions(self, input: Option<Vec<String>>) -> Self
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an ALARM state from any other state.
sourcepub fn set_alarm_arn(self, input: Option<String>) -> Self
pub fn set_alarm_arn(self, input: Option<String>) -> Self
The ARN of the alarm.
sourcepub fn alarm_configuration_updated_timestamp(
self,
input: impl Into<String>
) -> Self
pub fn alarm_configuration_updated_timestamp(
self,
input: impl Into<String>
) -> Self
The time stamp of the last update to the alarm configuration.
sourcepub fn set_alarm_configuration_updated_timestamp(
self,
input: Option<String>
) -> Self
pub fn set_alarm_configuration_updated_timestamp(
self,
input: Option<String>
) -> Self
The time stamp of the last update to the alarm configuration.
sourcepub fn alarm_description(self, input: impl Into<String>) -> Self
pub fn alarm_description(self, input: impl Into<String>) -> Self
The description of the alarm.
sourcepub fn set_alarm_description(self, input: Option<String>) -> Self
pub fn set_alarm_description(self, input: Option<String>) -> Self
The description of the alarm.
sourcepub fn alarm_name(self, input: impl Into<String>) -> Self
pub fn alarm_name(self, input: impl Into<String>) -> Self
The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.
sourcepub fn set_alarm_name(self, input: Option<String>) -> Self
pub fn set_alarm_name(self, input: Option<String>) -> Self
The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.
sourcepub fn comparison_operator(self, input: impl Into<String>) -> Self
pub fn comparison_operator(self, input: impl Into<String>) -> Self
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
sourcepub fn set_comparison_operator(self, input: Option<String>) -> Self
pub fn set_comparison_operator(self, input: Option<String>) -> Self
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
sourcepub fn datapoints_to_alarm(self, input: i32) -> Self
pub fn datapoints_to_alarm(self, input: i32) -> Self
The number of datapoints that must be breaching to trigger the alarm.
sourcepub fn set_datapoints_to_alarm(self, input: Option<i32>) -> Self
pub fn set_datapoints_to_alarm(self, input: Option<i32>) -> Self
The number of datapoints that must be breaching to trigger the alarm.
sourcepub fn dimensions(self, input: AwsCloudWatchAlarmDimensionsDetails) -> Self
pub fn dimensions(self, input: AwsCloudWatchAlarmDimensionsDetails) -> Self
Appends an item to dimensions.
To override the contents of this collection use set_dimensions.
The dimensions for the metric associated with the alarm.
sourcepub fn set_dimensions(
self,
input: Option<Vec<AwsCloudWatchAlarmDimensionsDetails>>
) -> Self
pub fn set_dimensions(
self,
input: Option<Vec<AwsCloudWatchAlarmDimensionsDetails>>
) -> Self
The dimensions for the metric associated with the alarm.
sourcepub fn evaluate_low_sample_count_percentile(
self,
input: impl Into<String>
) -> Self
pub fn evaluate_low_sample_count_percentile(
self,
input: impl Into<String>
) -> Self
Used only for alarms based on percentiles. If ignore, the alarm state does not change during periods with too few data points to be statistically significant. If evaluate or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.
sourcepub fn set_evaluate_low_sample_count_percentile(
self,
input: Option<String>
) -> Self
pub fn set_evaluate_low_sample_count_percentile(
self,
input: Option<String>
) -> Self
Used only for alarms based on percentiles. If ignore, the alarm state does not change during periods with too few data points to be statistically significant. If evaluate or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.
sourcepub fn evaluation_periods(self, input: i32) -> Self
pub fn evaluation_periods(self, input: i32) -> Self
The number of periods over which data is compared to the specified threshold.
sourcepub fn set_evaluation_periods(self, input: Option<i32>) -> Self
pub fn set_evaluation_periods(self, input: Option<i32>) -> Self
The number of periods over which data is compared to the specified threshold.
sourcepub fn extended_statistic(self, input: impl Into<String>) -> Self
pub fn extended_statistic(self, input: impl Into<String>) -> Self
The percentile statistic for the metric associated with the alarm.
sourcepub fn set_extended_statistic(self, input: Option<String>) -> Self
pub fn set_extended_statistic(self, input: Option<String>) -> Self
The percentile statistic for the metric associated with the alarm.
sourcepub fn insufficient_data_actions(self, input: impl Into<String>) -> Self
pub fn insufficient_data_actions(self, input: impl Into<String>) -> Self
Appends an item to insufficient_data_actions.
To override the contents of this collection use set_insufficient_data_actions.
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN.
sourcepub fn set_insufficient_data_actions(self, input: Option<Vec<String>>) -> Self
pub fn set_insufficient_data_actions(self, input: Option<Vec<String>>) -> Self
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use Metrics instead and you can't specify MetricName.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use Metrics instead and you can't specify MetricName.
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify Namespace and you use Metrics instead.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify Namespace and you use Metrics instead.
sourcepub fn ok_actions(self, input: impl Into<String>) -> Self
pub fn ok_actions(self, input: impl Into<String>) -> Self
Appends an item to ok_actions.
To override the contents of this collection use set_ok_actions.
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an ARN.
sourcepub fn set_ok_actions(self, input: Option<Vec<String>>) -> Self
pub fn set_ok_actions(self, input: Option<Vec<String>>) -> Self
The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an ARN.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
sourcepub fn statistic(self, input: impl Into<String>) -> Self
pub fn statistic(self, input: impl Into<String>) -> Self
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.
For an alarm based on a metric, you must specify either Statistic or ExtendedStatistic but not both.
For an alarm based on a math expression, you can't specify Statistic. Instead, you use Metrics.
sourcepub fn set_statistic(self, input: Option<String>) -> Self
pub fn set_statistic(self, input: Option<String>) -> Self
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.
For an alarm based on a metric, you must specify either Statistic or ExtendedStatistic but not both.
For an alarm based on a math expression, you can't specify Statistic. Instead, you use Metrics.
sourcepub fn set_threshold(self, input: Option<f64>) -> Self
pub fn set_threshold(self, input: Option<f64>) -> Self
The value to compare with the specified statistic.
sourcepub fn threshold_metric_id(self, input: impl Into<String>) -> Self
pub fn threshold_metric_id(self, input: impl Into<String>) -> Self
n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND function used as the threshold for the alarm.
sourcepub fn set_threshold_metric_id(self, input: Option<String>) -> Self
pub fn set_threshold_metric_id(self, input: Option<String>) -> Self
n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND function used as the threshold for the alarm.
sourcepub fn treat_missing_data(self, input: impl Into<String>) -> Self
pub fn treat_missing_data(self, input: impl Into<String>) -> Self
Sets how this alarm is to handle missing data points.
sourcepub fn set_treat_missing_data(self, input: Option<String>) -> Self
pub fn set_treat_missing_data(self, input: Option<String>) -> Self
Sets how this alarm is to handle missing data points.
sourcepub fn unit(self, input: impl Into<String>) -> Self
pub fn unit(self, input: impl Into<String>) -> Self
The unit of the metric associated with the alarm.
sourcepub fn set_unit(self, input: Option<String>) -> Self
pub fn set_unit(self, input: Option<String>) -> Self
The unit of the metric associated with the alarm.
sourcepub fn build(self) -> AwsCloudWatchAlarmDetails
pub fn build(self) -> AwsCloudWatchAlarmDetails
Consumes the builder and constructs a AwsCloudWatchAlarmDetails.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more