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

com.pulumi.aws.iot.inputs.TopicRuleErrorActionCloudwatchMetricArgs 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.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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicRuleErrorActionCloudwatchMetricArgs Empty = new TopicRuleErrorActionCloudwatchMetricArgs();

    /**
     * The CloudWatch metric name.
     * 
     */
    @Import(name="metricName", required=true)
    private Output metricName;

    /**
     * @return The CloudWatch metric name.
     * 
     */
    public Output metricName() {
        return this.metricName;
    }

    /**
     * The CloudWatch metric namespace name.
     * 
     */
    @Import(name="metricNamespace", required=true)
    private Output metricNamespace;

    /**
     * @return The CloudWatch metric namespace name.
     * 
     */
    public Output metricNamespace() {
        return this.metricNamespace;
    }

    /**
     * An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).
     * 
     */
    @Import(name="metricTimestamp")
    private @Nullable Output metricTimestamp;

    /**
     * @return An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).
     * 
     */
    public Optional> metricTimestamp() {
        return Optional.ofNullable(this.metricTimestamp);
    }

    /**
     * The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
     * 
     */
    @Import(name="metricUnit", required=true)
    private Output metricUnit;

    /**
     * @return The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
     * 
     */
    public Output metricUnit() {
        return this.metricUnit;
    }

    /**
     * The CloudWatch metric value.
     * 
     */
    @Import(name="metricValue", required=true)
    private Output metricValue;

    /**
     * @return The CloudWatch metric value.
     * 
     */
    public Output metricValue() {
        return this.metricValue;
    }

    /**
     * The IAM role ARN that allows access to the CloudWatch metric.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The IAM role ARN that allows access to the CloudWatch metric.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    private TopicRuleErrorActionCloudwatchMetricArgs() {}

    private TopicRuleErrorActionCloudwatchMetricArgs(TopicRuleErrorActionCloudwatchMetricArgs $) {
        this.metricName = $.metricName;
        this.metricNamespace = $.metricNamespace;
        this.metricTimestamp = $.metricTimestamp;
        this.metricUnit = $.metricUnit;
        this.metricValue = $.metricValue;
        this.roleArn = $.roleArn;
    }

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

    public static final class Builder {
        private TopicRuleErrorActionCloudwatchMetricArgs $;

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

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

        /**
         * @param metricName The CloudWatch metric name.
         * 
         * @return builder
         * 
         */
        public Builder metricName(Output metricName) {
            $.metricName = metricName;
            return this;
        }

        /**
         * @param metricName The CloudWatch metric name.
         * 
         * @return builder
         * 
         */
        public Builder metricName(String metricName) {
            return metricName(Output.of(metricName));
        }

        /**
         * @param metricNamespace The CloudWatch metric namespace name.
         * 
         * @return builder
         * 
         */
        public Builder metricNamespace(Output metricNamespace) {
            $.metricNamespace = metricNamespace;
            return this;
        }

        /**
         * @param metricNamespace The CloudWatch metric namespace name.
         * 
         * @return builder
         * 
         */
        public Builder metricNamespace(String metricNamespace) {
            return metricNamespace(Output.of(metricNamespace));
        }

        /**
         * @param metricTimestamp An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).
         * 
         * @return builder
         * 
         */
        public Builder metricTimestamp(@Nullable Output metricTimestamp) {
            $.metricTimestamp = metricTimestamp;
            return this;
        }

        /**
         * @param metricTimestamp An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).
         * 
         * @return builder
         * 
         */
        public Builder metricTimestamp(String metricTimestamp) {
            return metricTimestamp(Output.of(metricTimestamp));
        }

        /**
         * @param metricUnit The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
         * 
         * @return builder
         * 
         */
        public Builder metricUnit(Output metricUnit) {
            $.metricUnit = metricUnit;
            return this;
        }

        /**
         * @param metricUnit The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
         * 
         * @return builder
         * 
         */
        public Builder metricUnit(String metricUnit) {
            return metricUnit(Output.of(metricUnit));
        }

        /**
         * @param metricValue The CloudWatch metric value.
         * 
         * @return builder
         * 
         */
        public Builder metricValue(Output metricValue) {
            $.metricValue = metricValue;
            return this;
        }

        /**
         * @param metricValue The CloudWatch metric value.
         * 
         * @return builder
         * 
         */
        public Builder metricValue(String metricValue) {
            return metricValue(Output.of(metricValue));
        }

        /**
         * @param roleArn The IAM role ARN that allows access to the CloudWatch metric.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The IAM role ARN that allows access to the CloudWatch metric.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        public TopicRuleErrorActionCloudwatchMetricArgs build() {
            if ($.metricName == null) {
                throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchMetricArgs", "metricName");
            }
            if ($.metricNamespace == null) {
                throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchMetricArgs", "metricNamespace");
            }
            if ($.metricUnit == null) {
                throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchMetricArgs", "metricUnit");
            }
            if ($.metricValue == null) {
                throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchMetricArgs", "metricValue");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchMetricArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy