Package com.pulumi.aws.cloudwatch.inputs
Class CompositeAlarmState.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudwatch.inputs.CompositeAlarmState.Builder
-
- Enclosing class:
- CompositeAlarmState
public static final class CompositeAlarmState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(CompositeAlarmState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeAlarmState.BuilderactionsEnabled(com.pulumi.core.Output<java.lang.Boolean> actionsEnabled)CompositeAlarmState.BuilderactionsEnabled(java.lang.Boolean actionsEnabled)CompositeAlarmState.BuilderactionsSuppressor(CompositeAlarmActionsSuppressorArgs actionsSuppressor)CompositeAlarmState.BuilderactionsSuppressor(com.pulumi.core.Output<CompositeAlarmActionsSuppressorArgs> actionsSuppressor)CompositeAlarmState.BuilderalarmActions(com.pulumi.core.Output<java.util.List<java.lang.String>> alarmActions)CompositeAlarmState.BuilderalarmActions(java.lang.String... alarmActions)CompositeAlarmState.BuilderalarmActions(java.util.List<java.lang.String> alarmActions)CompositeAlarmState.BuilderalarmDescription(com.pulumi.core.Output<java.lang.String> alarmDescription)CompositeAlarmState.BuilderalarmDescription(java.lang.String alarmDescription)CompositeAlarmState.BuilderalarmName(com.pulumi.core.Output<java.lang.String> alarmName)CompositeAlarmState.BuilderalarmName(java.lang.String alarmName)CompositeAlarmState.BuilderalarmRule(com.pulumi.core.Output<java.lang.String> alarmRule)CompositeAlarmState.BuilderalarmRule(java.lang.String alarmRule)CompositeAlarmState.Builderarn(com.pulumi.core.Output<java.lang.String> arn)CompositeAlarmState.Builderarn(java.lang.String arn)CompositeAlarmStatebuild()CompositeAlarmState.BuilderinsufficientDataActions(com.pulumi.core.Output<java.util.List<java.lang.String>> insufficientDataActions)CompositeAlarmState.BuilderinsufficientDataActions(java.lang.String... insufficientDataActions)CompositeAlarmState.BuilderinsufficientDataActions(java.util.List<java.lang.String> insufficientDataActions)CompositeAlarmState.BuilderokActions(com.pulumi.core.Output<java.util.List<java.lang.String>> okActions)CompositeAlarmState.BuilderokActions(java.lang.String... okActions)CompositeAlarmState.BuilderokActions(java.util.List<java.lang.String> okActions)CompositeAlarmState.Builderregion(com.pulumi.core.Output<java.lang.String> region)CompositeAlarmState.Builderregion(java.lang.String region)CompositeAlarmState.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)CompositeAlarmState.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)CompositeAlarmState.BuildertagsAll(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)CompositeAlarmState.BuildertagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(CompositeAlarmState defaults)
-
-
Method Detail
-
actionsEnabled
public CompositeAlarmState.Builder actionsEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> actionsEnabled)
- Parameters:
actionsEnabled- Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to `true`.- Returns:
- builder
-
actionsEnabled
public CompositeAlarmState.Builder actionsEnabled(java.lang.Boolean actionsEnabled)
- Parameters:
actionsEnabled- Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to `true`.- Returns:
- builder
-
actionsSuppressor
public CompositeAlarmState.Builder actionsSuppressor(@Nullable com.pulumi.core.Output<CompositeAlarmActionsSuppressorArgs> actionsSuppressor)
- Parameters:
actionsSuppressor- Actions will be suppressed if the suppressor alarm is in the ALARM state.- Returns:
- builder
-
actionsSuppressor
public CompositeAlarmState.Builder actionsSuppressor(CompositeAlarmActionsSuppressorArgs actionsSuppressor)
- Parameters:
actionsSuppressor- Actions will be suppressed if the suppressor alarm is in the ALARM state.- Returns:
- builder
-
alarmActions
public CompositeAlarmState.Builder alarmActions(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> alarmActions)
- Parameters:
alarmActions- The set of actions to execute when this alarm transitions to the `ALARM` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
alarmActions
public CompositeAlarmState.Builder alarmActions(java.util.List<java.lang.String> alarmActions)
- Parameters:
alarmActions- The set of actions to execute when this alarm transitions to the `ALARM` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
alarmActions
public CompositeAlarmState.Builder alarmActions(java.lang.String... alarmActions)
- Parameters:
alarmActions- The set of actions to execute when this alarm transitions to the `ALARM` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
alarmDescription
public CompositeAlarmState.Builder alarmDescription(@Nullable com.pulumi.core.Output<java.lang.String> alarmDescription)
- Parameters:
alarmDescription- The description for the composite alarm.- Returns:
- builder
-
alarmDescription
public CompositeAlarmState.Builder alarmDescription(java.lang.String alarmDescription)
- Parameters:
alarmDescription- The description for the composite alarm.- Returns:
- builder
-
alarmName
public CompositeAlarmState.Builder alarmName(@Nullable com.pulumi.core.Output<java.lang.String> alarmName)
- Parameters:
alarmName- The name for the composite alarm. This name must be unique within the region.- Returns:
- builder
-
alarmName
public CompositeAlarmState.Builder alarmName(java.lang.String alarmName)
- Parameters:
alarmName- The name for the composite alarm. This name must be unique within the region.- Returns:
- builder
-
alarmRule
public CompositeAlarmState.Builder alarmRule(@Nullable com.pulumi.core.Output<java.lang.String> alarmRule)
- Parameters:
alarmRule- Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see [Creating a Composite Alarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Composite_Alarm.html). The maximum length is 10240 characters. Leading and trailing whitespace are not allowed.- Returns:
- builder
-
alarmRule
public CompositeAlarmState.Builder alarmRule(java.lang.String alarmRule)
- Parameters:
alarmRule- Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see [Creating a Composite Alarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Composite_Alarm.html). The maximum length is 10240 characters. Leading and trailing whitespace are not allowed.- Returns:
- builder
-
arn
public CompositeAlarmState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn- The ARN of the composite alarm.- Returns:
- builder
-
arn
public CompositeAlarmState.Builder arn(java.lang.String arn)
- Parameters:
arn- The ARN of the composite alarm.- Returns:
- builder
-
insufficientDataActions
public CompositeAlarmState.Builder insufficientDataActions(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> insufficientDataActions)
- Parameters:
insufficientDataActions- The set of actions to execute when this alarm transitions to the `INSUFFICIENT_DATA` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
insufficientDataActions
public CompositeAlarmState.Builder insufficientDataActions(java.util.List<java.lang.String> insufficientDataActions)
- Parameters:
insufficientDataActions- The set of actions to execute when this alarm transitions to the `INSUFFICIENT_DATA` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
insufficientDataActions
public CompositeAlarmState.Builder insufficientDataActions(java.lang.String... insufficientDataActions)
- Parameters:
insufficientDataActions- The set of actions to execute when this alarm transitions to the `INSUFFICIENT_DATA` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
okActions
public CompositeAlarmState.Builder okActions(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> okActions)
- Parameters:
okActions- The set of actions to execute when this alarm transitions to an `OK` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
okActions
public CompositeAlarmState.Builder okActions(java.util.List<java.lang.String> okActions)
- Parameters:
okActions- The set of actions to execute when this alarm transitions to an `OK` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
okActions
public CompositeAlarmState.Builder okActions(java.lang.String... okActions)
- Parameters:
okActions- The set of actions to execute when this alarm transitions to an `OK` state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed.- Returns:
- builder
-
region
public CompositeAlarmState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public CompositeAlarmState.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
tags
public CompositeAlarmState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- A map of tags to associate with the alarm. Up to 50 tags are allowed. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public CompositeAlarmState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- A map of tags to associate with the alarm. Up to 50 tags are allowed. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tagsAll
public CompositeAlarmState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
- Parameters:
tagsAll- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tagsAll
public CompositeAlarmState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
- Parameters:
tagsAll- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
build
public CompositeAlarmState build()
-
-