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

com.pulumi.aws.iot.inputs.TopicRuleErrorActionCloudwatchLogsArgs 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.iot.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicRuleErrorActionCloudwatchLogsArgs Empty = new TopicRuleErrorActionCloudwatchLogsArgs();

    /**
     * The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
     * 
     */
    @Import(name="batchMode")
    private @Nullable Output batchMode;

    /**
     * @return The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
     * 
     */
    public Optional> batchMode() {
        return Optional.ofNullable(this.batchMode);
    }

    /**
     * The CloudWatch log group name.
     * 
     */
    @Import(name="logGroupName", required=true)
    private Output logGroupName;

    /**
     * @return The CloudWatch log group name.
     * 
     */
    public Output logGroupName() {
        return this.logGroupName;
    }

    /**
     * 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;
    }

    private TopicRuleErrorActionCloudwatchLogsArgs() {}

    private TopicRuleErrorActionCloudwatchLogsArgs(TopicRuleErrorActionCloudwatchLogsArgs $) {
        this.batchMode = $.batchMode;
        this.logGroupName = $.logGroupName;
        this.roleArn = $.roleArn;
    }

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

    public static final class Builder {
        private TopicRuleErrorActionCloudwatchLogsArgs $;

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

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

        /**
         * @param batchMode The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
         * 
         * @return builder
         * 
         */
        public Builder batchMode(@Nullable Output batchMode) {
            $.batchMode = batchMode;
            return this;
        }

        /**
         * @param batchMode The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
         * 
         * @return builder
         * 
         */
        public Builder batchMode(Boolean batchMode) {
            return batchMode(Output.of(batchMode));
        }

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

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

        /**
         * @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));
        }

        public TopicRuleErrorActionCloudwatchLogsArgs build() {
            if ($.logGroupName == null) {
                throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchLogsArgs", "logGroupName");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchLogsArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy