Package com.pulumi.aws.cloudwatch.inputs
Class MetricAlarmState.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudwatch.inputs.MetricAlarmState.Builder
-
- Enclosing class:
- MetricAlarmState
public static final class MetricAlarmState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(MetricAlarmState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MetricAlarmState.Builder
actionsEnabled(com.pulumi.core.Output<java.lang.Boolean> actionsEnabled)
MetricAlarmState.Builder
actionsEnabled(java.lang.Boolean actionsEnabled)
MetricAlarmState.Builder
alarmActions(com.pulumi.core.Output<java.util.List<java.lang.String>> alarmActions)
MetricAlarmState.Builder
alarmActions(java.lang.String... alarmActions)
MetricAlarmState.Builder
alarmActions(java.util.List<java.lang.String> alarmActions)
MetricAlarmState.Builder
alarmDescription(com.pulumi.core.Output<java.lang.String> alarmDescription)
MetricAlarmState.Builder
alarmDescription(java.lang.String alarmDescription)
MetricAlarmState.Builder
arn(com.pulumi.core.Output<java.lang.String> arn)
MetricAlarmState.Builder
arn(java.lang.String arn)
MetricAlarmState
build()
MetricAlarmState.Builder
comparisonOperator(com.pulumi.core.Output<java.lang.String> comparisonOperator)
MetricAlarmState.Builder
comparisonOperator(java.lang.String comparisonOperator)
MetricAlarmState.Builder
datapointsToAlarm(com.pulumi.core.Output<java.lang.Integer> datapointsToAlarm)
MetricAlarmState.Builder
datapointsToAlarm(java.lang.Integer datapointsToAlarm)
MetricAlarmState.Builder
dimensions(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> dimensions)
MetricAlarmState.Builder
dimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)
MetricAlarmState.Builder
evaluateLowSampleCountPercentiles(com.pulumi.core.Output<java.lang.String> evaluateLowSampleCountPercentiles)
MetricAlarmState.Builder
evaluateLowSampleCountPercentiles(java.lang.String evaluateLowSampleCountPercentiles)
MetricAlarmState.Builder
evaluationPeriods(com.pulumi.core.Output<java.lang.Integer> evaluationPeriods)
MetricAlarmState.Builder
evaluationPeriods(java.lang.Integer evaluationPeriods)
MetricAlarmState.Builder
extendedStatistic(com.pulumi.core.Output<java.lang.String> extendedStatistic)
MetricAlarmState.Builder
extendedStatistic(java.lang.String extendedStatistic)
MetricAlarmState.Builder
insufficientDataActions(com.pulumi.core.Output<java.util.List<java.lang.String>> insufficientDataActions)
MetricAlarmState.Builder
insufficientDataActions(java.lang.String... insufficientDataActions)
MetricAlarmState.Builder
insufficientDataActions(java.util.List<java.lang.String> insufficientDataActions)
MetricAlarmState.Builder
metricName(com.pulumi.core.Output<java.lang.String> metricName)
MetricAlarmState.Builder
metricName(java.lang.String metricName)
MetricAlarmState.Builder
metricQueries(MetricAlarmMetricQueryArgs... metricQueries)
MetricAlarmState.Builder
metricQueries(com.pulumi.core.Output<java.util.List<MetricAlarmMetricQueryArgs>> metricQueries)
MetricAlarmState.Builder
metricQueries(java.util.List<MetricAlarmMetricQueryArgs> metricQueries)
MetricAlarmState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
MetricAlarmState.Builder
name(java.lang.String name)
MetricAlarmState.Builder
namespace(com.pulumi.core.Output<java.lang.String> namespace)
MetricAlarmState.Builder
namespace(java.lang.String namespace)
MetricAlarmState.Builder
okActions(com.pulumi.core.Output<java.util.List<java.lang.String>> okActions)
MetricAlarmState.Builder
okActions(java.lang.String... okActions)
MetricAlarmState.Builder
okActions(java.util.List<java.lang.String> okActions)
MetricAlarmState.Builder
period(com.pulumi.core.Output<java.lang.Integer> period)
MetricAlarmState.Builder
period(java.lang.Integer period)
MetricAlarmState.Builder
statistic(com.pulumi.core.Output<java.lang.String> statistic)
MetricAlarmState.Builder
statistic(java.lang.String statistic)
MetricAlarmState.Builder
tags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
MetricAlarmState.Builder
tags(java.util.Map<java.lang.String,java.lang.String> tags)
MetricAlarmState.Builder
tagsAll(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
Deprecated.Please use `tags` instead.MetricAlarmState.Builder
tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
Deprecated.Please use `tags` instead.MetricAlarmState.Builder
threshold(com.pulumi.core.Output<java.lang.Double> threshold)
MetricAlarmState.Builder
threshold(java.lang.Double threshold)
MetricAlarmState.Builder
thresholdMetricId(com.pulumi.core.Output<java.lang.String> thresholdMetricId)
MetricAlarmState.Builder
thresholdMetricId(java.lang.String thresholdMetricId)
MetricAlarmState.Builder
treatMissingData(com.pulumi.core.Output<java.lang.String> treatMissingData)
MetricAlarmState.Builder
treatMissingData(java.lang.String treatMissingData)
MetricAlarmState.Builder
unit(com.pulumi.core.Output<java.lang.String> unit)
MetricAlarmState.Builder
unit(java.lang.String unit)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(MetricAlarmState defaults)
-
-
Method Detail
-
actionsEnabled
public MetricAlarmState.Builder actionsEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> actionsEnabled)
- Parameters:
actionsEnabled
- Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to `true`.- Returns:
- builder
-
actionsEnabled
public MetricAlarmState.Builder actionsEnabled(java.lang.Boolean actionsEnabled)
- Parameters:
actionsEnabled
- Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to `true`.- Returns:
- builder
-
alarmActions
public MetricAlarmState.Builder alarmActions(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> alarmActions)
- Parameters:
alarmActions
- The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
alarmActions
public MetricAlarmState.Builder alarmActions(java.util.List<java.lang.String> alarmActions)
- Parameters:
alarmActions
- The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
alarmActions
public MetricAlarmState.Builder alarmActions(java.lang.String... alarmActions)
- Parameters:
alarmActions
- The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
alarmDescription
public MetricAlarmState.Builder alarmDescription(@Nullable com.pulumi.core.Output<java.lang.String> alarmDescription)
- Parameters:
alarmDescription
- The description for the alarm.- Returns:
- builder
-
alarmDescription
public MetricAlarmState.Builder alarmDescription(java.lang.String alarmDescription)
- Parameters:
alarmDescription
- The description for the alarm.- Returns:
- builder
-
arn
public MetricAlarmState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn
- The ARN of the CloudWatch Metric Alarm.- Returns:
- builder
-
arn
public MetricAlarmState.Builder arn(java.lang.String arn)
- Parameters:
arn
- The ARN of the CloudWatch Metric Alarm.- Returns:
- builder
-
comparisonOperator
public MetricAlarmState.Builder comparisonOperator(@Nullable com.pulumi.core.Output<java.lang.String> comparisonOperator)
- Parameters:
comparisonOperator
- The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: `GreaterThanOrEqualToThreshold`, `GreaterThanThreshold`, `LessThanThreshold`, `LessThanOrEqualToThreshold`. Additionally, the values `LessThanLowerOrGreaterThanUpperThreshold`, `LessThanLowerThreshold`, and `GreaterThanUpperThreshold` are used only for alarms based on anomaly detection models.- Returns:
- builder
-
comparisonOperator
public MetricAlarmState.Builder comparisonOperator(java.lang.String comparisonOperator)
- Parameters:
comparisonOperator
- The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: `GreaterThanOrEqualToThreshold`, `GreaterThanThreshold`, `LessThanThreshold`, `LessThanOrEqualToThreshold`. Additionally, the values `LessThanLowerOrGreaterThanUpperThreshold`, `LessThanLowerThreshold`, and `GreaterThanUpperThreshold` are used only for alarms based on anomaly detection models.- Returns:
- builder
-
datapointsToAlarm
public MetricAlarmState.Builder datapointsToAlarm(@Nullable com.pulumi.core.Output<java.lang.Integer> datapointsToAlarm)
- Parameters:
datapointsToAlarm
- The number of datapoints that must be breaching to trigger the alarm.- Returns:
- builder
-
datapointsToAlarm
public MetricAlarmState.Builder datapointsToAlarm(java.lang.Integer datapointsToAlarm)
- Parameters:
datapointsToAlarm
- The number of datapoints that must be breaching to trigger the alarm.- Returns:
- builder
-
dimensions
public MetricAlarmState.Builder dimensions(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> dimensions)
- Parameters:
dimensions
- The dimensions for the alarm's associated metric. For the list of available dimensions see the AWS documentation [here](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).- Returns:
- builder
-
dimensions
public MetricAlarmState.Builder dimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)
- Parameters:
dimensions
- The dimensions for the alarm's associated metric. For the list of available dimensions see the AWS documentation [here](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).- Returns:
- builder
-
evaluateLowSampleCountPercentiles
public MetricAlarmState.Builder evaluateLowSampleCountPercentiles(@Nullable com.pulumi.core.Output<java.lang.String> evaluateLowSampleCountPercentiles)
- Parameters:
evaluateLowSampleCountPercentiles
- Used only for alarms based on percentiles. If you specify `ignore`, the alarm state will not change during periods with too few data points to be statistically significant. If you specify `evaluate` or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available. The following values are supported: `ignore`, and `evaluate`.- Returns:
- builder
-
evaluateLowSampleCountPercentiles
public MetricAlarmState.Builder evaluateLowSampleCountPercentiles(java.lang.String evaluateLowSampleCountPercentiles)
- Parameters:
evaluateLowSampleCountPercentiles
- Used only for alarms based on percentiles. If you specify `ignore`, the alarm state will not change during periods with too few data points to be statistically significant. If you specify `evaluate` or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available. The following values are supported: `ignore`, and `evaluate`.- Returns:
- builder
-
evaluationPeriods
public MetricAlarmState.Builder evaluationPeriods(@Nullable com.pulumi.core.Output<java.lang.Integer> evaluationPeriods)
- Parameters:
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.- Returns:
- builder
-
evaluationPeriods
public MetricAlarmState.Builder evaluationPeriods(java.lang.Integer evaluationPeriods)
- Parameters:
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.- Returns:
- builder
-
extendedStatistic
public MetricAlarmState.Builder extendedStatistic(@Nullable com.pulumi.core.Output<java.lang.String> extendedStatistic)
- Parameters:
extendedStatistic
- The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.- Returns:
- builder
-
extendedStatistic
public MetricAlarmState.Builder extendedStatistic(java.lang.String extendedStatistic)
- Parameters:
extendedStatistic
- The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.- Returns:
- builder
-
insufficientDataActions
public MetricAlarmState.Builder insufficientDataActions(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> insufficientDataActions)
- Parameters:
insufficientDataActions
- The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
insufficientDataActions
public MetricAlarmState.Builder insufficientDataActions(java.util.List<java.lang.String> insufficientDataActions)
- Parameters:
insufficientDataActions
- The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
insufficientDataActions
public MetricAlarmState.Builder insufficientDataActions(java.lang.String... insufficientDataActions)
- Parameters:
insufficientDataActions
- The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
metricName
public MetricAlarmState.Builder metricName(@Nullable com.pulumi.core.Output<java.lang.String> metricName)
- Parameters:
metricName
- The name for the alarm's associated metric. See docs for [supported metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).- Returns:
- builder
-
metricName
public MetricAlarmState.Builder metricName(java.lang.String metricName)
- Parameters:
metricName
- The name for the alarm's associated metric. See docs for [supported metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).- Returns:
- builder
-
metricQueries
public MetricAlarmState.Builder metricQueries(@Nullable com.pulumi.core.Output<java.util.List<MetricAlarmMetricQueryArgs>> metricQueries)
- Parameters:
metricQueries
- Enables you to create an alarm based on a metric math expression. You may specify at most 20.- Returns:
- builder
-
metricQueries
public MetricAlarmState.Builder metricQueries(java.util.List<MetricAlarmMetricQueryArgs> metricQueries)
- Parameters:
metricQueries
- Enables you to create an alarm based on a metric math expression. You may specify at most 20.- Returns:
- builder
-
metricQueries
public MetricAlarmState.Builder metricQueries(MetricAlarmMetricQueryArgs... metricQueries)
- Parameters:
metricQueries
- Enables you to create an alarm based on a metric math expression. You may specify at most 20.- Returns:
- builder
-
name
public MetricAlarmState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- The descriptive name for the alarm. This name must be unique within the user's AWS account- Returns:
- builder
-
name
public MetricAlarmState.Builder name(java.lang.String name)
- Parameters:
name
- The descriptive name for the alarm. This name must be unique within the user's AWS account- Returns:
- builder
-
namespace
public MetricAlarmState.Builder namespace(@Nullable com.pulumi.core.Output<java.lang.String> namespace)
- Parameters:
namespace
- The namespace for the alarm's associated metric. See docs for the [list of namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/aws-namespaces.html). See docs for [supported metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).- Returns:
- builder
-
namespace
public MetricAlarmState.Builder namespace(java.lang.String namespace)
- Parameters:
namespace
- The namespace for the alarm's associated metric. See docs for the [list of namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/aws-namespaces.html). See docs for [supported metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).- Returns:
- builder
-
okActions
public MetricAlarmState.Builder okActions(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> okActions)
- Parameters:
okActions
- The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
okActions
public MetricAlarmState.Builder okActions(java.util.List<java.lang.String> okActions)
- Parameters:
okActions
- The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
okActions
public MetricAlarmState.Builder okActions(java.lang.String... okActions)
- Parameters:
okActions
- The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- builder
-
period
public MetricAlarmState.Builder period(@Nullable com.pulumi.core.Output<java.lang.Integer> period)
- Parameters:
period
- The period in seconds over which the specified `statistic` is applied. Valid values are `10`, `30`, or any multiple of `60`.- Returns:
- builder
-
period
public MetricAlarmState.Builder period(java.lang.Integer period)
- Parameters:
period
- The period in seconds over which the specified `statistic` is applied. Valid values are `10`, `30`, or any multiple of `60`.- Returns:
- builder
-
statistic
public MetricAlarmState.Builder statistic(@Nullable com.pulumi.core.Output<java.lang.String> statistic)
- Parameters:
statistic
- The statistic to apply to the alarm's associated metric. Either of the following is supported: `SampleCount`, `Average`, `Sum`, `Minimum`, `Maximum`- Returns:
- builder
-
statistic
public MetricAlarmState.Builder statistic(java.lang.String statistic)
- Parameters:
statistic
- The statistic to apply to the alarm's associated metric. Either of the following is supported: `SampleCount`, `Average`, `Sum`, `Minimum`, `Maximum`- Returns:
- builder
-
tags
public MetricAlarmState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags
- A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. > **NOTE:** If you specify at least one `metric_query`, you may not specify a `metric_name`, `namespace`, `period` or `statistic`. If you do not specify a `metric_query`, you must specify each of these (although you may use `extended_statistic` instead of `statistic`).- Returns:
- builder
-
tags
public MetricAlarmState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags
- A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. > **NOTE:** If you specify at least one `metric_query`, you may not specify a `metric_name`, `namespace`, `period` or `statistic`. If you do not specify a `metric_query`, you must specify each of these (although you may use `extended_statistic` instead of `statistic`).- Returns:
- builder
-
tagsAll
@Deprecated public MetricAlarmState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
Deprecated.Please use `tags` instead.- Parameters:
tagsAll
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.- Returns:
- builder
-
tagsAll
@Deprecated public MetricAlarmState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
Deprecated.Please use `tags` instead.- Parameters:
tagsAll
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.- Returns:
- builder
-
threshold
public MetricAlarmState.Builder threshold(@Nullable com.pulumi.core.Output<java.lang.Double> threshold)
- Parameters:
threshold
- The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models.- Returns:
- builder
-
threshold
public MetricAlarmState.Builder threshold(java.lang.Double threshold)
- Parameters:
threshold
- The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models.- Returns:
- builder
-
thresholdMetricId
public MetricAlarmState.Builder thresholdMetricId(@Nullable com.pulumi.core.Output<java.lang.String> thresholdMetricId)
- Parameters:
thresholdMetricId
- If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function.- Returns:
- builder
-
thresholdMetricId
public MetricAlarmState.Builder thresholdMetricId(java.lang.String thresholdMetricId)
- Parameters:
thresholdMetricId
- If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function.- Returns:
- builder
-
treatMissingData
public MetricAlarmState.Builder treatMissingData(@Nullable com.pulumi.core.Output<java.lang.String> treatMissingData)
- Parameters:
treatMissingData
- Sets how this alarm is to handle missing data points. The following values are supported: `missing`, `ignore`, `breaching` and `notBreaching`. Defaults to `missing`.- Returns:
- builder
-
treatMissingData
public MetricAlarmState.Builder treatMissingData(java.lang.String treatMissingData)
- Parameters:
treatMissingData
- Sets how this alarm is to handle missing data points. The following values are supported: `missing`, `ignore`, `breaching` and `notBreaching`. Defaults to `missing`.- Returns:
- builder
-
unit
public MetricAlarmState.Builder unit(@Nullable com.pulumi.core.Output<java.lang.String> unit)
- Parameters:
unit
- The unit for the alarm's associated metric.- Returns:
- builder
-
unit
public MetricAlarmState.Builder unit(java.lang.String unit)
- Parameters:
unit
- The unit for the alarm's associated metric.- Returns:
- builder
-
build
public MetricAlarmState build()
-
-