com.pulumi.aws.iot.inputs.TopicRuleCloudwatchAlarmArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.iot.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class TopicRuleCloudwatchAlarmArgs extends com.pulumi.resources.ResourceArgs {
public static final TopicRuleCloudwatchAlarmArgs Empty = new TopicRuleCloudwatchAlarmArgs();
/**
* The CloudWatch alarm name.
*
*/
@Import(name="alarmName", required=true)
private Output alarmName;
/**
* @return The CloudWatch alarm name.
*
*/
public Output alarmName() {
return this.alarmName;
}
/**
* The IAM role ARN that allows access to the CloudWatch alarm.
*
*/
@Import(name="roleArn", required=true)
private Output roleArn;
/**
* @return The IAM role ARN that allows access to the CloudWatch alarm.
*
*/
public Output roleArn() {
return this.roleArn;
}
/**
* The reason for the alarm change.
*
*/
@Import(name="stateReason", required=true)
private Output stateReason;
/**
* @return The reason for the alarm change.
*
*/
public Output stateReason() {
return this.stateReason;
}
/**
* The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
*
*/
@Import(name="stateValue", required=true)
private Output stateValue;
/**
* @return The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
*
*/
public Output stateValue() {
return this.stateValue;
}
private TopicRuleCloudwatchAlarmArgs() {}
private TopicRuleCloudwatchAlarmArgs(TopicRuleCloudwatchAlarmArgs $) {
this.alarmName = $.alarmName;
this.roleArn = $.roleArn;
this.stateReason = $.stateReason;
this.stateValue = $.stateValue;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TopicRuleCloudwatchAlarmArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private TopicRuleCloudwatchAlarmArgs $;
public Builder() {
$ = new TopicRuleCloudwatchAlarmArgs();
}
public Builder(TopicRuleCloudwatchAlarmArgs defaults) {
$ = new TopicRuleCloudwatchAlarmArgs(Objects.requireNonNull(defaults));
}
/**
* @param alarmName The CloudWatch alarm name.
*
* @return builder
*
*/
public Builder alarmName(Output alarmName) {
$.alarmName = alarmName;
return this;
}
/**
* @param alarmName The CloudWatch alarm name.
*
* @return builder
*
*/
public Builder alarmName(String alarmName) {
return alarmName(Output.of(alarmName));
}
/**
* @param roleArn The IAM role ARN that allows access to the CloudWatch alarm.
*
* @return builder
*
*/
public Builder roleArn(Output roleArn) {
$.roleArn = roleArn;
return this;
}
/**
* @param roleArn The IAM role ARN that allows access to the CloudWatch alarm.
*
* @return builder
*
*/
public Builder roleArn(String roleArn) {
return roleArn(Output.of(roleArn));
}
/**
* @param stateReason The reason for the alarm change.
*
* @return builder
*
*/
public Builder stateReason(Output stateReason) {
$.stateReason = stateReason;
return this;
}
/**
* @param stateReason The reason for the alarm change.
*
* @return builder
*
*/
public Builder stateReason(String stateReason) {
return stateReason(Output.of(stateReason));
}
/**
* @param stateValue The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
*
* @return builder
*
*/
public Builder stateValue(Output stateValue) {
$.stateValue = stateValue;
return this;
}
/**
* @param stateValue The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
*
* @return builder
*
*/
public Builder stateValue(String stateValue) {
return stateValue(Output.of(stateValue));
}
public TopicRuleCloudwatchAlarmArgs build() {
if ($.alarmName == null) {
throw new MissingRequiredPropertyException("TopicRuleCloudwatchAlarmArgs", "alarmName");
}
if ($.roleArn == null) {
throw new MissingRequiredPropertyException("TopicRuleCloudwatchAlarmArgs", "roleArn");
}
if ($.stateReason == null) {
throw new MissingRequiredPropertyException("TopicRuleCloudwatchAlarmArgs", "stateReason");
}
if ($.stateValue == null) {
throw new MissingRequiredPropertyException("TopicRuleCloudwatchAlarmArgs", "stateValue");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy