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

com.pulumi.aws.appconfig.inputs.EnvironmentMonitorArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.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;
import java.util.Optional;
import javax.annotation.Nullable;


public final class EnvironmentMonitorArgs extends com.pulumi.resources.ResourceArgs {

    public static final EnvironmentMonitorArgs Empty = new EnvironmentMonitorArgs();

    /**
     * ARN of the Amazon CloudWatch alarm.
     * 
     */
    @Import(name="alarmArn", required=true)
    private Output alarmArn;

    /**
     * @return ARN of the Amazon CloudWatch alarm.
     * 
     */
    public Output alarmArn() {
        return this.alarmArn;
    }

    /**
     * ARN of an IAM role for AWS AppConfig to monitor `alarm_arn`.
     * 
     */
    @Import(name="alarmRoleArn")
    private @Nullable Output alarmRoleArn;

    /**
     * @return ARN of an IAM role for AWS AppConfig to monitor `alarm_arn`.
     * 
     */
    public Optional> alarmRoleArn() {
        return Optional.ofNullable(this.alarmRoleArn);
    }

    private EnvironmentMonitorArgs() {}

    private EnvironmentMonitorArgs(EnvironmentMonitorArgs $) {
        this.alarmArn = $.alarmArn;
        this.alarmRoleArn = $.alarmRoleArn;
    }

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

    public static final class Builder {
        private EnvironmentMonitorArgs $;

        public Builder() {
            $ = new EnvironmentMonitorArgs();
        }

        public Builder(EnvironmentMonitorArgs defaults) {
            $ = new EnvironmentMonitorArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param alarmArn ARN of the Amazon CloudWatch alarm.
         * 
         * @return builder
         * 
         */
        public Builder alarmArn(Output alarmArn) {
            $.alarmArn = alarmArn;
            return this;
        }

        /**
         * @param alarmArn ARN of the Amazon CloudWatch alarm.
         * 
         * @return builder
         * 
         */
        public Builder alarmArn(String alarmArn) {
            return alarmArn(Output.of(alarmArn));
        }

        /**
         * @param alarmRoleArn ARN of an IAM role for AWS AppConfig to monitor `alarm_arn`.
         * 
         * @return builder
         * 
         */
        public Builder alarmRoleArn(@Nullable Output alarmRoleArn) {
            $.alarmRoleArn = alarmRoleArn;
            return this;
        }

        /**
         * @param alarmRoleArn ARN of an IAM role for AWS AppConfig to monitor `alarm_arn`.
         * 
         * @return builder
         * 
         */
        public Builder alarmRoleArn(String alarmRoleArn) {
            return alarmRoleArn(Output.of(alarmRoleArn));
        }

        public EnvironmentMonitorArgs build() {
            if ($.alarmArn == null) {
                throw new MissingRequiredPropertyException("EnvironmentMonitorArgs", "alarmArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy