All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.appconfig.outputs.GetEnvironmentMonitor Maven / Gradle / Ivy

// *** 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.appconfig.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetEnvironmentMonitor {
    /**
     * @return ARN of the Amazon CloudWatch alarm.
     * 
     */
    private String alarmArn;
    /**
     * @return ARN of an IAM role for AWS AppConfig to monitor.
     * 
     */
    private String alarmRoleArn;

    private GetEnvironmentMonitor() {}
    /**
     * @return ARN of the Amazon CloudWatch alarm.
     * 
     */
    public String alarmArn() {
        return this.alarmArn;
    }
    /**
     * @return ARN of an IAM role for AWS AppConfig to monitor.
     * 
     */
    public String alarmRoleArn() {
        return this.alarmRoleArn;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetEnvironmentMonitor defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String alarmArn;
        private String alarmRoleArn;
        public Builder() {}
        public Builder(GetEnvironmentMonitor defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alarmArn = defaults.alarmArn;
    	      this.alarmRoleArn = defaults.alarmRoleArn;
        }

        @CustomType.Setter
        public Builder alarmArn(String alarmArn) {
            if (alarmArn == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentMonitor", "alarmArn");
            }
            this.alarmArn = alarmArn;
            return this;
        }
        @CustomType.Setter
        public Builder alarmRoleArn(String alarmRoleArn) {
            if (alarmRoleArn == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentMonitor", "alarmRoleArn");
            }
            this.alarmRoleArn = alarmRoleArn;
            return this;
        }
        public GetEnvironmentMonitor build() {
            final var _resultValue = new GetEnvironmentMonitor();
            _resultValue.alarmArn = alarmArn;
            _resultValue.alarmRoleArn = alarmRoleArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy